Instead of <html:link ... />...</html:link> Try: <html:link ...>...</html:link>
Notice the lack of slash in the example. Basically, you are closing the <html:link > tag before you intend to close it. -Wes > -----Original Message----- > From: priya [mailto:[EMAIL PROTECTED] > Sent: Monday, November 20, 2006 10:56 AM > To: user@struts.apache.org > Subject: html:link newbie problem > > This is probably a very simple question but this being my first struts > application its not that simple for me :) > > > - I am using pagination on one of my jsp pages. There is a > simple text > box and 2 hidden fields (size, start) which do a search and calls > search.do. > - search.do passes attributes in its request object back > to this jsp > page. If there are attributes the results are shown. > - If there are multiple results (> 10) then Next page link > is shown. > I am calling search again using the Next page link and > passing a different > start and size parameter which will handle pagination. > - The parameters are converted to attributes in the search and > returned to the jsp page > > > <% java.util.HashMap map =new java.util.HashMap(); > map.put("size", String.valueOf(size)); > map.put("start",String.valueOf(start)); > pageContext.setAttribute("map",map);%> > > <%if (startWithNumber == 0) {%>Previous Page<%} else > {%><html:link page="/search.do" name="map"/>Previous Page<%}%> | > <%if (nextPage == false) {%>Next Page<%} else > {%><html:link > page="/search.do" name="map"/>Next Page</html:link><%}%> > <br><br> > > The problem is that even if I close the <html:link tag> the > html shows up > like this > > Previous Page | <a > href="/adam/search.do?size=10&start=0"></a>Next Page</html:link> > <br><br> > > so I cant click the link.. How do I get the Next Page inside > the <a> tag? > > Please do point out if there is a flaw in the way I am > creating the link > itself. Your suggestions are much appreciated! > > Priya > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]