hi
that is the same which i did.i have used the extension mapping
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
on my web.xml file.
but the i don't know why i am getting the error. when in the form on action
property i am giving the different path it is giving other error like
invalid path. but when the valid path is given this kind of error i am
getting why please can u help me out.
500 Internal Server Error
/mm/BoxAction.do:
javax.servlet.ServletException: Exception thrown processing JSP page.
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
at
allaire.jrun.servlet.JRunServletLoader.loadClass(JRunServletLoader.java:525)
at
allaire.jrun.servlet.JRunServletLoader.loadClass(JRunServletLoader.java:444)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.struts.taglib.FormTag.doStartTag(FormTag.java:503)
at
jrun__advertiser__ClickMeManagement2ejsp21._jspService(jrun__advertiser__Cli
ckMeManagement2ejsp21.java:67)
at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:174)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1589)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1432)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:481)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
at allaire.jrun.WorkerThread.run(WorkerThread.java:74)
byomakesh
-----Original Message-----
From: Mike Fitterman [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2001 16:10
To: [EMAIL PROTECTED]
Subject: re: FormTag problem
Don't know if this helps but it sure seems like it (this is from the doc):
There are two common approaches to defining the URLs that will be processed
by the controller servlet -- prefix matching and extension matching. An
appropriate mapping entry for each approach will be described below.
Prefix matching means that you want all URLs that start (after the context
path part) with a particular value to be passed to this servlet. Such an
entry might look like this:
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/execute/*</url-pattern>
</servlet-mapping>
which means that a request URI to match the /logon path described earlier
might look like this:
http://www.mycompany.com/myapplication/execute/logon
where /myapplication is the context path under which your application is
deployed.
Extension mapping, on the other hand, matches request URIs to the action
servlet based on the fact that the URI ends with a period followed by a
defined set of characters. For example, the JSP processing servlet is
mapped to the *.jsp pattern so that it is called to process every JSP page
that is requested. To use the *.do extension (which implies "do
something"), the mapping entry would look like this:
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
and a request URI to match the /logon path described earlier might look
like this:
http://www.mycompany.com/myapplication/logon.do
At 03:54 PM 1/24/2001 +0000, Chris Smith wrote:
>Sorry, if I was subscribed to the list, I'd have attached this to Howard
>Moore's message.
>
>I agree, I don't understand why the FormTag is stripping the path from
>the ".do" action. This forces you to have all your jsp's in the context
>root, not arranged in directories.
>
>I don't want to change my local copy of struts without understanding why
>the path is being stripped off, so my workaround is to use plain old html
>instead of the form tag:
>
>My jsp contains:
> <form name="prelodgementForm" method="post" action="<%=
>request.getContextPath() %>/freight/editPrelodgement.do">
>
>My struts-config.xml contains:
> <action
>path="/content/businesspartnersandstaff/fright/editPrelodgement" ...>
>
>Hope that helps in the interim.
>
>Chris Smith
Mike Fitterman 1 Network Drive UBUR02-205
Solaris Software Group Burlington, MA 01803-0902
Sun Microsystems, Inc 781-442-0843