Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

popup form in spring

 
Prasath Premkumar
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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac 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
 
Hong Anderson
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic