Hey anu, can u tell me more abt the problem. Like do you want the user to be able to execute functionality written in an action class on the click of a link, like:
http://localhost:8080/myApp/myActionClass
When clicking on above link you wish to execute action class method public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
right?
If yes then you can write a tag in struts-config mentioning the mapping of a path to the class, like
<action-mappings>
<!-- Principal Actions -->
<action path="/myActionClass"
type="class name along with package name" scope="request" validate="false">
</action>
</action-mappings>
I mean, this can be one way of solving your problem. Do revert back in case I missed out something or you find some problem.
Message was edited by:
jdolphin
I wonder why the indentation is not coming proper even though while posting I take care it is indented.
Message was edited by:
jdolphin