A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Do we need servlet mapping of a servlet in web.xml while using struts Action and forwarding.
Joined: Mar 18, 2011
May 24, 2011 14:31:23
I have simple jsp page say home.jsp in which i have defined it to post to "form.do."
Now consider that I have used action mapping and action path="/form", etc
in the forward tag I have used name="success" and path="/form" .
Now it wont work as it doesnt find form
. But if I use servlet mapping in web.xml to map form servlet then it works. Now if this is the correct way why I have not found any references to it.
Joined: May 03, 2011
May 26, 2011 12:04:16
This will be easier to answer if you post your code. But I believe the
variable specifies the
, whereas the
variable is the one that specifies the Servlet location.
I agree. Here's the link:
subject: Do we need servlet mapping of a servlet in web.xml while using struts Action and forwarding.
How to secure my page
Question about "path" in the "action" tag ?
Mapping a main Action Servlet to other servlets
java.lang.NullPointerException: Module 'null' not found
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014