Win a copy of Spring in Action (5th edition) this week in the Spring forum!

Ratheesh Kamoor

Greenhorn
+ Follow
since Nov 27, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ratheesh Kamoor

Thanks, getProperty is working as expected
Thanks again
10 years ago
JSP
Thanks Duc Vo, I know that I can use welcome file . But when I use this option I am loosing query strings (Eg: bannerId = 123) when i read it from index.jsp.. What should I do to retain all query strings as it is ?
10 years ago
JSP
If any one typed as http://mysite.com/?bannerId=1234 , then this request should go to index.jsp. I dont want any other request to go to index.jsp
How can I achieve that.
10 years ago
JSP
I need to redirect http://mywebsite.com/?bannerId=12332 to a specific jsp

For that I created a url pattern as
<servlet>
<servlet-name>lostdocsJSP</servlet-name>
<jsp-file>/index.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>lostdocsJSP</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>

It is redirecting above URL to index.jsp , but all other requests for images, swf, xml also getting redirected to this JSP , How can I avoid this issue in WAS 6.1
I know that in Tomcat I can define a default URL pattern to bypass any unwanted requests, but it is not working in Webshpere.

Tomacat :
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>.jpg</url-pattern>
</servlet-mapping>
10 years ago
JSP