wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts - Pop up windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts - Pop up windows" Watch "Struts - Pop up windows" New topic
Author

Struts - Pop up windows

Heshawa De Silva
Greenhorn

Joined: Jun 28, 2011
Posts: 5
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

Joined: Oct 27, 2005
Posts: 19651
    
  18

Welcome to the Ranch!

I'll move this thread to our Struts forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Rajagopal Mani
Ranch Hand

Joined: Mar 24, 2011
Posts: 84

Please clarify whether you want to open a popup from any parent window?
Aditya Keyal
Ranch Hand

Joined: Dec 01, 2008
Posts: 71
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.




- Aditya Webservices Blog
 
Don't get me started about those stupid light bulbs.
 
subject: Struts - Pop up windows
 
Similar Threads
java.lang.ClassNotFoundException: org.apachi.struts.action.ActionServlet
tld files for struts 1.3.5
Struts 1.3.5 Tiles Issue
How to Avoid directives redundancy
Why: File "/WEB-INF/struts-html.tld" not found.