On Thu, 5 Jul 2001, Greg Reddin wrote:

> > I need to
> > use one of "forward", "href" or "page". So now my problems are:
>
> Try setting up the "href" attribute to read
>
> href="javascript:performAction(...)"
>
> and see if that works.
>

 Good idea. Unfortunately, it didn't work. I tried:

        <html:link href="javascript:performAction(form, 'simpleQuery.do')"
                   paramId="offset"
                   paramName="resultNavigator"
                   paramProperty="startIndex">

but got:


Exception Report:

javax.servlet.ServletException: javascript:performAction(form, 
'simpleQuery.do')?offset=0
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:481)
        at
_0002fsimpleQuery_0002ejspsimpleQuery_jsp_6._jspService(_0002fsimpleQuery_0002ejspsimpleQuery_jsp_6.java:1844)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

...




Root Cause:

java.lang.IllegalArgumentException: javascript:performAction(form, 
'simpleQuery.do')?offset=0
        at
org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResponseBase.java:639)
        at
org.apache.catalina.connector.HttpResponseBase.encodeURL(HttpResponseBase.java:918)
        at
org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:418)
        at
org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:338)
        at
_0002fsimpleQuery_0002ejspsimpleQuery_jsp_6._jspService(_0002fsimpleQuery_0002ejspsimpleQuery_jsp_6.java:1044)
...


I also tried:

        <html:link href="javascript:performAction(form,
'simpleQuery.do?offset=<%= 10*i %>')"

but got an IllegalArgumentException.


Reply via email to