On 9/27/07, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: > > how to open a new browser windows in Struts without to use > > javascript code in jsp page? > > Opening a new page is a client-side function. Since Struts is a > server-side system, there's no way to do this. > > You could use the "target" attribute of the <form...> tag, which > instructs the browser to open a new window for the result of the form. > That's as close as you're going to get.
Same goes for the link <a ...> tag. The attribute you add to make your form/link requests open a new browser window/tab is: target="_blank" Technically, this will open a new window without javascript. It is just adding an HTML attribute to your form or link tags in your generated HTML response. No javascript required. -Van -- Mike "Van" Riper [EMAIL PROTECTED] http://weblogs.java.net/blog/van_riper/ Silicon Valley Web Developer JUG https://sv-web-jug.dev.java.net JUGs International MAP http://tinyurl.com/ynktb2 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]