Accessing Form properties from JSP

O

Oleg Konovalov

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 ?


TIA,
Oleg.
P.S.: using Struts 1.3.
 
L

Lew

Oleg said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top