File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure 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
  • 0
  • 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: 9214
9
Linux Mac OS X Windows
  • 0
  • 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
  • 0
  • 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 !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic