cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niket Anand" <niketan...@npi.stpn.soft.net>
Subject Re: Fw: <input type="image" src="images/submit.gif" name="cocoon-action" value="Submit">
Date Tue, 26 Feb 2002 12:30:04 GMT
I have changed POST to GET, but still it is giving same error with url
http://localhost:8080/cocoon2.0.2/tutorial/results-dept.html?name=&cocoon-ac
tion-Find+Department.x=47&cocoon-action-Find+Department.y=9
so how to move next?
----- Original Message -----
From: "Jörn Heid" <heid@fh-heilbronn.de>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, February 26, 2002 5:34 PM
Subject: AW: Fw: <input type="image" src="images/submit.gif"
name="cocoon-action" value="Submit">


> I haven't read all mails regarding this topic but if you change the form
> method to GET you can see that using submit the url will look like
>
> ...?cocoon-action-Add+Department=submit
>
> while a image will add the position of the click inside that image (here
for
> example 2/4; as this could be used for image maps):
>
> ...?cocoon-action-Add+Department.x=2&cocoon-action-Add+Department.y=4&
>
> So the possible .x has to be removed
>
> -----Urspr√ľngliche Nachricht-----
> Von: Niket Anand [mailto:niketanand@npi.stpn.soft.net]
> Gesendet: Dienstag, 26. Februar 2002 13:13
> An: cocoon-users@xml.apache.org
> Betreff: Re: Fw: <input type="image" src="images/submit.gif"
> name="cocoon-action" value="Submit">
>
>
> Hi Torsten,
> It works fine with type="submit" and  name ="cocoon-action-Add
Department".
> But if I change type="image" and src="images/submit.gif", it gives
following
> error.
> Here is the snippet of log line made in sitemap.log
> #############################
> DEBUG   (2002-02-26) 17:37.18:094   [sitemap]
> (/cocoon2.0.2/tutorial/images/bar-bottom-right.gif)
> HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern tutorial/**
> DEBUG   (2002-02-26) 17:37.18:094   [sitemap]
> (/cocoon2.0.2/tutorial/images/bar-bottom-right.gif)
> HttpProcessor[8080][4]/AbstractSitemap:
> Current Sitemap Parameters:
> PARAM: '1' VALUE: 'images/bar-bottom-right.gif'
> PARAM: '0' VALUE: 'tutorial/images/bar-bottom-right.gif'
>
> DEBUG   (2002-02-26) 17:37.18:134   [sitemap]
> (/cocoon2.0.2/tutorial/images/submit-button.gif)
> HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern tutorial/**
> DEBUG   (2002-02-26) 17:37.18:134   [sitemap]
> (/cocoon2.0.2/tutorial/images/submit-button.gif)
> HttpProcessor[8080][4]/AbstractSitemap:
> Current Sitemap Parameters:
> PARAM: '1' VALUE: 'images/submit-button.gif'
> PARAM: '0' VALUE: 'tutorial/images/submit-button.gif'
>
> DEBUG   (2002-02-26) 17:37.18:144   [sitemap]
> (/cocoon2.0.2/tutorial/images/dot.gif)
HttpProcessor[8080][0]/sitemap_xmap:
> Matched wildcard pattern tutorial/**
> DEBUG   (2002-02-26) 17:37.18:144   [sitemap]
> (/cocoon2.0.2/tutorial/images/dot.gif)
> HttpProcessor[8080][0]/AbstractSitemap:
> Current Sitemap Parameters:
> PARAM: '1' VALUE: 'images/dot.gif'
> PARAM: '0' VALUE: 'tutorial/images/dot.gif'
> ###########################################
>
> Cocoon 2 - Internal server error
>
> --------------------------------------------------------------------------
--
> ----
>
> type fatal
>
> message String index out of range: -16
>
> description java.lang.StringIndexOutOfBoundsException: String index out of
> range: -16
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> stack-trace
>
> java.lang.StringIndexOutOfBoundsException: String index out of range: -16
> at java.lang.String.substring(String.java:1525)
> at
>
org.apache.cocoon.environment.http.HttpEnvironment.extractAction(HttpEnviron
> ment.java:139)
> at
>
org.apache.cocoon.environment.http.HttpEnvironment.(HttpEnvironment.java:106
> )
> at
>
org.apache.cocoon.servlet.CocoonServlet.getEnvironment(CocoonServlet.java:10
> 92)
> at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:954)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:201)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :163)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1011)
> at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
> )
> at java.lang.Thread.run(Thread.java:484)
>
>
> request-uri
>
> /cocoon2.0.2/tutorial/results-dept.html
>
> path-info
>
> tutorial/results-dept.html
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> ----- Original Message -----
> From: "Torsten Curdt" <tcurdt@dff.st>
> To: <cocoon-users@xml.apache.org>
> Sent: Tuesday, February 26, 2002 1:53 PM
> Subject: Re: Fw: <input type="image" src="images/submit.gif"
> name="cocoon-action" value="Submit">
>
>
> > On Tue, 26 Feb 2002, Niket Anand wrote:
> >
> > > Sorry to trouble you again.
> > > I am not able to invoke action class even applying all ur
instructions.
> > > I have also tried the employee-department example given in
> > > xml-cocoon2\build\cocoon\webapp\tutorial\docs.
> > > It is using same action name="cocoon-action-SUM" type but it itself
> could
> > > not able to invoke org.apache.cocoon.acting.DatabaseAddAction or
> > > org.apache.cocoon.acting.DatabaseDeleteAction class on click of
button.
> > > Please check this and let me know about my error.
> >
> > hm... sorry, man... if you want me to help you have to be more specific
> >
> > Please send your resulting HTML form and the log snippet of the POST
> > where I can see all the RequestParamter. What happens when you change
> > to type="submit"?
> > --
> > Torsten
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message