mod_rewrite to JSP

This one works great!! My question falls in second case.

1.
.htaccess
RewriteEngine On
RewriteRule ^(.*)$ http://other.example.com/index.jsp?param=$1 [R]

2.
Internal forward to the JSP file and has no luck. I presumed the Apache(or mod_jk?) failed to forward the request to tomcat. How can I do an internal forward for jsp?

.htaccess
RewriteEngine On
RewriteRule ^(.*)$ /index.jsp?param=$1 [R]

Thanks for the help,

Tien-Chih Wang

 

 

 

 

Top