• 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

popup form in spring

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

I'm very new to Spring & i am working in a project using Spring technologies. So far, i have done as the login form shows in a seperate jsp after clicking on login anchor. Instead of doing so, i want to do it as a popup form when i click on login. How can i do this???

This code is in home.jsp which is in WEB-INF/jsp directory. The login.jsp page is also in the same directory.

I tried inserting this code in home.jsp:



but it doesnt seem to work.
Please give me solution to do this. If anyone can post example code for my criteria, it will be much more helpful.

Thanks.
 
Prasath Premkumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

No reply for me yet...... am i asking a wrong question??? or no answers to this question???

If anyone has an idea, please guide me since i'm a newbie to spring...

Thanks.
 
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

Prasath Premkumar wrote: Hi all,

I'm very new to Spring & i am working in a project using Spring technologies. So far, i have done as the login form shows in a seperate jsp after clicking on login anchor. Instead of doing so, i want to do it as a popup form when i click on login. How can i do this???

This code is in home.jsp which is in WEB-INF/jsp directory. The login.jsp page is also in the same directory.

I tried inserting this code in home.jsp:



but it doesnt seem to work.
Please give me solution to do this. If anyone can post example code for my criteria, it will be much more helpful.

Thanks.



The popup portion is about JavaScript and not Spring. The JavaScript can pop up a form, and when the user clicks the "submit" button the javascript then submits the "form"

For the authentication piece after the popup form is submitted, that part would be Spring Security, and most likely you would have to customize a Security Filter to handle it, or find the Spring URL like maybe j_spring_security_login or something like that.

Mark
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you using Spring Web Flow?
If you're not using Spring Web Flow, I don't think you will get a popup dialog automatically.
 
Creativity is allowing yourself to make mistakes; art is knowing which ones to keep. Keep this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic