File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Can't open a jsp in a pop up or iframe from another jsp in the same struts portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can Watch "Can New topic
Author

Can't open a jsp in a pop up or iframe from another jsp in the same struts portlet

Jeera Kamar
Greenhorn

Joined: Mar 10, 2011
Posts: 2
Hi There,
I have a simple struts portlet "MNPPortlet" deployed in weblogic portal, it contains some JSPs as the below hirearchy

MNPPortlet
WebContent
pages
A.jsp
B.jsp

I just want to open B.jsp in a popup window or in an iframe from A.jsp, I have tried the following
1- window.open("B.jsp")
2- <IFRAME src="B.jsp">

but it doesn't seem to work, I always get 404 page not found error, since it generates wrong URLs, any ideas how can i get the right URIs generated ?
P.S. it's working fine as struts application, not portlet

Thanks alot
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can't open a jsp in a pop up or iframe from another jsp in the same struts portlet
 
Similar Threads
How to get parameter using struts Tag
Changing the URL when using forward or redirect...
Getting Values from a window to parent page
pass the session variable to 2 jsp simultaneously
passing hidden field in jsp