• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

url-pattern

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Is

<url-pattern>/foo/*.do</url-pattern>

valid?

Can we combine directory match with extension match?

thanks
 
Fahad Cheruveedu
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, It is valid
 
Rob Spoor
Sheriff
Pie
Posts: 20369
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shiaber Shaam wrote:Can we combine directory match with extension match?

Every time you ask yourself this type of question, the first thing you should do is try it yourself.
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sure, will do.

i read in hfsj about 3 types of mapping and i couldnt find the combinations.


thanks
 
Hong Anderson
Ranch Hand
Posts: 1936
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, actually it's not a directory, it's a url-pattern.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic