[jboss-dev-forums] [TODO - DEVELOPMENT] - problem with request.getRequestURL() in jboss

kishore_36 do-not-reply at jboss.com
Wed Feb 28 08:06:48 EST 2007


Hi,

I am using pagination in struts framework for the records shown in the table.
The pagination login is from the following link -------------- http://www.javaworld.com/javaworld/jw-07-2004/jw-0726-pagination.html
The issue I am facing is with respect to the hyperlink shown for the "Next page" link.

The Next Link shows the following url
In tomcat 
	/Context Path/<action path>.do

In JBoss
	/Context Path/ jsp folder/<jsp pagename>.jsp

This difference is due to the foll code 
StringBuffer url =new StringBuffer(r.getRequestURL().toString().substring(r.getRequestURL().toString().indexOf(r.getContextPath)));

In Tomcat it is behaving fine but in JBoss it is not taking the struts *.do factuality

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023630#4023630

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023630



More information about the jboss-dev-forums mailing list