Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2207

Re: Accessing Form proper

From "Lew" <lew@THRWHITE.remove-dii-this>
Subject Re: Accessing Form proper
Message-ID <8M6dnV0ICJNfIyTbnZ2dnUVZ_rbinZ2d@comcast.com> (permalink)
Newsgroups comp.lang.java.gui
References <Fw9ui.2216$zg3.1121@trnddc04>
Date 2011-04-27 15:37 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui,comp.l
Oleg Konovalov wrote:
> Hi,
> 
> I need to access some Struts Form properties (data) from the JSP page
> in order to populate it from the scriplet.
> Is there a way to do it ?
> 
> P.S.: using Struts 1.3. 

Using scriptlet in JSP is completely contrary to the point of using Struts.

The whole point of Struts is to separate the Model from the View from the 
Controller.

You will defeat the Struts ActionForm doing what you propose.

The usual approach is to populate the ActionForm prior to the display of the 
JSP.  This will automagically populate your screen.

-- 
Lew

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Accessing Form properties "Oleg Konovalov" <oleg.konovalov@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
  Re: Accessing Form proper "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000

csiph-web