This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get form values

 
Kai Unewisse
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again,
I am a little bit confused. I defined a FormBean AForm with parameter p1 and p2.
I use :
<html:form action="/aAction">
<html:hidden property="p1" />
<html:hidden property="p1" />
<html:form>

I said in struts-config :
<action path="/aAction"
type="AAction"
name="AForm"
validate="true"
input="/front/jsp/main.jsp"
scope="request">
<forward ... />
</action>
Do I have to do something with the FormBean in the Action like that to use the Bean in the next JSP page :
AForm af = (AForm) actionForm;
request.setAttribute("name", af );
How can I receive Attributes from the FormBean ?
<jsp:useBean id="some" type="AForm" scope="request"> ???
But I receive then an empty field when I say :
<html:text size='5' property="p1" name="some" />
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic