0

Is there any way i can use Spring MVC to pass parameters to plain html or i have to use jsp only ?

I purchased a theme and all the files in the theme are html,js and css. Now i want to use spring mvc in my project , but i don't know how to pass parameters from spring mvc to plain html files .I am well aware of JSTL tags in jsp but it won't work in plain html.

I tried below :

<a href="/viewClass/${param1}"> but this dosen't work

Shall i use thymeleaf for an existing theme ?

1 Answer 1

1

The answer for your question is YES.

JSPs a bit old thing which had so many drawbacks.

Thymeleaf works smoothly with html.

Sign up to request clarification or add additional context in comments.

1 Comment

thanks man .. I am using thymeleaf now and it works perfectly

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.