Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set value in JSP from within an Action (Struts)

843840Feb 20 2008 — edited Feb 21 2008
Hy guys,

I am quite new to struts and I have encountered a problem that seems to have no answer.
The problem is that my application is based on struts, (so I have an Action that triggers, and interprets the action type) and within my Action I calculate a variable that needs to appear in the form on the JSP, on initializitation of page.

So far I tried by setting an attribute to the request, but seems to get me nowhere.
The only solution that I have found is using an entity object, that will initialize the form, but in this case I do not have such an option, so I have to do it other way.

Thanks in advance,
Ender

Edited by: end3r on Feb 20, 2008 12:28 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2008
Added on Feb 20 2008
3 comments
368 views