Vasserman
Vasserman

Reputation: 71

JSP url argument passing

Is there any way to pass params to the function in this way:
      www.smth.com/func.jsp/1/2/3
but not like this:
      www.smth.com/func.jsp?a=1&b=2&c3
Using PHP i just define the method
      function func($a, $b, $c) {
      ...
      }
Of course I can write
      www.smth.com/func.jsp?1&2&3
but this is not so clean as
      www.smth.com/func.jsp/1/2/3

thank you

Upvotes: 0

Views: 282

Answers (1)

Bozho
Bozho

Reputation: 597016

You can use UrlRewriteFilter to do this. It's similar to apache's mod_rewrite.

Upvotes: 1

Related Questions