File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Load data only using form bean, without action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Load data only using form bean, without action class" Watch "Load data only using form bean, without action class" New topic
Author

Load data only using form bean, without action class

Micale Raj
Ranch Hand

Joined: Jul 01, 2009
Posts: 30

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

Joined: Oct 29, 2001
Posts: 8710
    
    6

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Micale Raj
Ranch Hand

Joined: Jul 01, 2009
Posts: 30

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 !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Load data only using form bean, without action class
 
Similar Threads
Want to display result on the page
How to use post method with ajax
the data in form is not being displayed :
Submit button
Action Chaining