Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts - Pop up windows

 
Heshawa De Silva
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Struts 1.3.8.
I can open jsp files in web-inf folder using 'Actionforwards'
Now I want to open a jsp in web-inf as pop up window.




This is how my page starts.
How can I open this pop up??
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

I'll move this thread to our Struts forum.
 
Rajagopal Mani
Ranch Hand
Posts: 84
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please clarify whether you want to open a popup from any parent window?
 
Aditya Keyal
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the JSP's placed within WEB-INF are protected you will have to use an action mapping to reach the JSP.
What you need to do is
a) Define an action path of type ForwardAction which allows you to directly goto the JSP inside the WEB-INF.
b) Call this from the current JSP using windows.open('actionname.do') either onclick or on windows load.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic