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


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

Re: Accessing Form proper

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Lew" <lew@THRWHITE.remove-dii-this>
Subject Re: Accessing Form proper
Message-ID <8M6dnV0ICJNfIyTbnZ2dnUVZ_rbinZ2d@comcast.com> (permalink)
X-Comment-To comp.lang.java.gui,comp.l
Newsgroups comp.lang.java.gui
In-Reply-To <Fw9ui.2216$zg3.1121@trnddc04>
References <Fw9ui.2216$zg3.1121@trnddc04>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 27
Date Wed, 27 Apr 2011 15:37:47 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918667 96.60.20.240 (Wed, 27 Apr 2011 10:37:47 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:37:47 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2207

Show key headers only | 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