• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to call to another JSP from one JSP using spring??

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am developing web application using spring. Can anyone please suggest me how to call JSP from one JSP?? And below is root of jsp.

| WebContent

| WEB-INF

| jsp

| welcome.jsp, login.jsp

how to call login.jsp from welcome.jsp??

Thanks in advance.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This doesn't have to do with Spring. But no jsp page can call another jsp page. You can import or include a jsp page inside another jsp page. But if you want a link on one jsp page that when the user clicks it displays the other jsp page. Well that link is just a regular link to a URL where that URL is mapped to the other jsp page.

JSP is completely a server side thing. Only the server can get the jsp page and render it all on the server. So if you have a jsp page rendered and it is now on the client, well guess what, it is no longer a jsp page but just an html page, which was rendered on the serverside via the jsp file.

Mark
 
It's a tiny ad only because the water is so cold.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic