Bookmark Topic Watch Topic
  • New Topic

Url Pattern

 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

I am currently unsure in my web apps if I am correctly assigning the correct url.

I have a list of links where user can download several files:



My url pattern for the following is set as

But when I click the link, I always get a 404 error and my servlet does not capture the url.

The resource folder is under the WEB-INF folder and I am planning to stream the files into the servlet output response.
I am not sure but I think I miss something.
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Where is the page on which the links that you've given are?? You are using relative paths in the links, use full paths from the root of the context i.e. like
 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Ankit,

Thank you.. that is what I missed...

I will my post follow up question on the Spring forum since its spring specific.. I just tested it out on plain Servlet and JSP..

Kudos to you...
 
    Bookmark Topic Watch Topic
  • New Topic