I do something similar with Struts tags:
<bean:define name="searchForm" id="myForm"
type="com.my.company.actionformbeans.MyGIMSearchForm" />
<bean:define id="pagingRequestURI" >
<html:rewrite page='<%="/GIM2Search.do?sqltitle="+ myForm.getSqlTitle() +
"&gim2index=" + myForm.getGim2index() + moreOfYourParams %>' />
</bean:define>
<display:table width="100%" border="1" pagesize="10" name="SQLList"
requestURI="<%=pagingRequestURI%>" >
<display:column property="gim2index" title="Index" />
...
Susan Bradeen
On 08/28/2003 08:17:40 AM "Robert Taylor" wrote:
> You could "build" the appropriate URL before populating the requestURI.
> One way to do this would be the following:
>
> <%
> String requestURI = new StringBuffer("/wact/pages/GIM2Search.do?")
>
>
.append("sqltitle=").append(request.getParameter("sqltitle")).append("&")
>
>
.append("gim2index=").append(request.getParameter("gim2index")).append("&")
> .append("submit=").append(request.getParameter("submit"))
> .toString();
> %>
>
> <display:table width="100%" border="1" pagesize="10" name="SQLList"
> requestURI="<%=requestURI%>">
> <display:column property="gim2index" title="Index" />
> <display:column property="sqltitle" title="SQL Name"
> href="GIM2Results.do" paramId="testsqlscript"
> paramProperty="sqlcode"/>
> <display:column property="description" title="Description" />
> <display:column property="owner" title="Owner" />
> <display:column property="lastused" title="Last Used" />
> </display:table>
>
>
> This should work.
>
> robert
>
> > -----Original Message-----
> > From: Mehta, Chirag (IT) [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 28, 2003 6:32 AM
> > To: [EMAIL PROTECTED]
> > Subject: Get URL
> >
> >
> > Hi,
> >
> > I was wondering if anyone could help. I never had a need for this but
i
> > do no and I dunno how to go about it.
> >
> > Basically I'm using the display taglib to create a table. I want to
only
> > put 10 item on one page and have the table automatically page number
the
> > table. My code is:
> >
> > <display:table width="100%" border="1" pagesize="10" name="SQLList" >
> > <display:column property="gim2index" title="Index" />
> > <display:column property="sqltitle" title="SQL Name"
> > href="GIM2Results.do" paramId="testsqlscript"
> > paramProperty="sqlcode"/>
> > <display:column property="description" title="Description" />
> > <display:column property="owner" title="Owner" />
> > <display:column property="lastused" title="Last Used" />
> > </display:table>
> >
> > This is the URL of the webpage:
> >
http://localhost:8080/wact/pages/GIM2Search.do?sqltitle=&gim2index=&desc
> > ription=&submit=Submit
> >
> > The thing is that the automatic page numbering links on the page point
> > to this URL:
> > http://localhost:8080/wact/pages/GIM2Results.jsp?page=2
> >
> > But I want it to point to this URL:
> >
http://localhost:8080/wact/pages/GIM2Search.do?sqltitle=&gim2index=&desc
> > ription=&submit=Submit&page=2
> >
> > The thing is I can't just set the requestURI to GIM2Search.do and the
> > rest of the parameters are dynamic.
> >
> > Anyone have any idea of how to do this?
> >
> > Thanks
> >
> > Chirag
> >
> >
> >
> >
> >
> > --
> > NOTICE: If received in error, please destroy and notify sender.
> > Sender does not waive confidentiality or privilege, and use is
prohibited.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]