Hi Pete!!

This works, I didn�t know that I could use the target attribute in the
<html:form> tag! Thanks! Do you also know how to specify the "old window" as
target from the second window , I would like to return to the first window
when the actions here are done?

/Linn�a

----- Original Message -----
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 7:33 PM
Subject: Re: struts-config.xml - How do I open a "success" path as a new
window???




On Thu, 14 Jun 2001, Peter Alfors wrote:

>
> What happens when you execute this?
>
> <td align="left"><a class="leftnav" href="myAction.do"
> target="_blank"><bean:message key="icon.calendar"/></td>
>
> I would think that this should do what you want??
>

You can also use the "target" attribute on an <html:form> or <html:link>
tag:

  <td align="left">
    <html:link styleclass="leftnav" page="/myAction.do"
                   target="_blank">
      <bean:message key="icon.calendar"/>
    </html:link>
  </td>

One advantage to this is that URL rewriting is automatically applied to
maintain session state even if you're not using cookies.

> Pete
>

Craig


>
> >      -----Original Message-----
> >      From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]]
> >      Sent: Wednesday, June 13, 2001 1:52 AM
> >      To: [EMAIL PROTECTED]
> >      Subject: struts-config.xml - How do I open a "success" path
> >      as a new window???
> >
> >      Hi!!
> >
> >      I want to my path
> >
> >          <forward name="success" path="/InsertAddress.jsp"/>
> >
> >      to open the jsp-page as a new window/page ( like the html
> >      tag
> >
> >      <td align="left"><a class="leftnav" href="http://...../";
> >      target="_blank"><bean:message key="icon.calendar"/></td> )
> >
> >      Any ideas how to do this with struts???
> >
> >      Thanks / Linn�a
> >
> >
> >
>



Reply via email to