I am using Struts 1.1 and have an action that ultimately forwards to a JSP page. In this JSP page I would like to present the user with an image button that will pop open a particular URL in a separate window.
I have seen a few suggestions regarding this on the mailing list but there are a few things that make this a bit tricky. First issue is that the window needs to be a javascript window because I want to control the size, I don't want to show a navigation bar, etc. (So the suggestion I've seen about posting to a target that doesn't exist won't work for me). Second issue is that I will have several of these pages and the URL will vary for each (so I'd like to write the code once as an include and vary the message - perhaps using the ApplicationResources file). The final issue is that the prefix for the URL will vary depending on what environment its deployed in. I currently have a scheme where I configure a few container/application variables through $TOMCAT/conf/web.xml that will give you the correct prefix. Ex. In development I would have urlPrefix = http://dev.techsupport.com/ In integration I would have urlPrefix = http://int.techsupport.com/ So basically, I want to configure the specific pages outside the JSP (ideally in the resource properties file) and I need to do some preprocessing before plunking it into the javascript (basically appending a urlPrefix variable that is available through the ServletContext). I have some ideas on how I could do this, but its not sitting well with me (you know what I mean?). Looking for something that is consistent with the struts MVC approach. TIA, - sean -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

