This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

popup form in spring

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • 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
  • 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: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!