Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Load data only using form bean, without action class

 
Micale Raj
Ranch Hand
Posts: 30
Hibernate IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

I want to load data for a popup window just using a form bean's load method (without using action class ). How to do this ?

Thank you !
 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need some way to receive an HTTP request. The standard way to to that in Java is a Servlet. The servlet loads the form bean and puts it in the request as an attribute. In the JSP you can access the form bean via the implicit request object.
Frankly, it is easier to work with the framework rather than against it.
 
Micale Raj
Ranch Hand
Posts: 30
Hibernate IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Ess wrote:You need some way to receive an HTTP request. The standard way to to that in Java is a Servlet. The servlet loads the form bean and puts it in the request as an attribute. In the JSP you can access the form bean via the implicit request object.
Frankly, it is easier to work with the framework rather than against it.


Thank you very much for the reply. I did it using <html:form action="formBeanMappingName"></html:form> from struts taglib. Thanks !
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic