This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 1.0.1 using Wsad Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.0.1 using Wsad" Watch "Struts 1.0.1 using Wsad" New topic

Struts 1.0.1 using Wsad

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627

Is there any way I can call a POJO class or an Action class or an Action Form class from a JSP file? If so, can someone tell me how to do it?


Be Humble... Be Nice.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You "call" an action class by specifying action="/myAction" in an html:form tag. This causes the Struts ActionServlet to call the action class when the form is submitted. If you're trying to call a class from the browser without submitting a form, that's called AJAX, and is something you'll have to spend some time learning about if you want to do it.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Struts 1.0.1 using Wsad
Similar Threads
Cannot retrieve mapping for action
The server encountered an internal error () that prevented it from fulfilling this re
Can i call action class getRedirectUrl() method from another class?
can I call an action inside my action?
passing parameters to action class