Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

url-pattern  RSS feed

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, It is valid
 
Rob Spoor
Sheriff
Posts: 20937
81
Chrome Eclipse IDE Java Windows
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, actually it's not a directory, it's a url-pattern.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!