This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes Data from ActionForm without using bean:write Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Data from ActionForm without using bean:write" Watch "Data from ActionForm without using bean:write" New topic

Data from ActionForm without using bean:write

Daniel Platon
Ranch Hand

Joined: Oct 10, 2005
Posts: 42
Hello all...

I need to acces data from an ActionForm using standard JSP code (i.e. scriptlets). From what I understoond I can do something like:

but myForm is null. (I have changed the scope attribute in struts-config.xml to "session"). Should I do this some other way ?

Thank you
Kalyana Sundaram
Ranch Hand

Joined: Mar 18, 2005
Posts: 94
Please post your action-mapping for the one you are talking about. That would be helpful to see why the action-form is null.
And mostly people never tend to use scritplets in JSP. And also there would be less need to refer the form-bean using the JSP useBean tag.

Perhaps It would be easy for me to answer precisely, if you would explain what you were trying to do actually.

Only those who will risk going too far can possibly find out how far one can go !!!
I agree. Here's the link:
subject: Data from ActionForm without using bean:write