0

I am using Spring and Hibernate in my project.

Is there a way to handle dynamic URL(i.e. hyperlink which is populated dynamically depending on searchResult) through modelAttribute i.e. using a variable and passing same to controller just like passing input bean??

I am using @PathVariable for handling dynamic URL action from JSP to Controller. During the same if my dynamic URL contains combination of special characters like ./ then the URL is getting truncated.

Please help.

VJS
  • 2,891
  • 7
  • 38
  • 70
  • can u give me some example – VJS Nov 27 '14 at 08:04
  • possible duplicate of [Spring MVC Getting PathVariables containing dots and slashes](http://stackoverflow.com/questions/12516969/spring-mvc-getting-pathvariables-containing-dots-and-slashes) –  Nov 27 '14 at 08:10
  • see also http://stackoverflow.com/questions/3526523/spring-mvc-pathvariable-getting-truncated?rq=1 –  Nov 27 '14 at 08:11

1 Answers1

0

Possibly you may be experiencing a similar problem with Spring MVC Getting PathVariables containing dots and slashes.

Where it was resolved by changing the url declaration where its attribute instead of /{attribute} added the value in the url as/{atributo:.+}

Douglas Ribeiro
  • 2,867
  • 1
  • 18
  • 12