global forward to tile definition does NOT work

2004-05-12 Thread Keith Bottner
I am trying to forward directly to a tiles definition from the
global-forwards with

# struts-config.xml
global-forwards
forward name=signon path=.alt.signon /
/global-forwards


My JSP page uses:
html:link forward=signonBLAH URL/html:link


However when the JSP is generated it actually generates
a href=.alt.signonBLAH URL/a

Any ideas on why global-forwards to tile definitions do not work?

Thanks in advance,

Keith


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: global forward to tile definition does NOT work

2004-05-12 Thread Mark Lowe
Use an empty action.

action path=/myaction type=com.foo.struts.EmptyAction
forward name=success path=mytiledef redirect=false /
/action
the action just needs to return this.
return (mapping.findForward(success));
and you'll be there.

On 12 May 2004, at 22:58, Keith Bottner wrote:

I am trying to forward directly to a tiles definition from the
global-forwards with
# struts-config.xml
global-forwards
forward name=signon path=.alt.signon /
/global-forwards
My JSP page uses:
html:link forward=signonBLAH URL/html:link
However when the JSP is generated it actually generates
a href=.alt.signonBLAH URL/a
Any ideas on why global-forwards to tile definitions do not work?

Thanks in advance,

Keith

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: global forward to tile definition does NOT work

2004-05-12 Thread Riyad Kalla
I sure hope there is a nicer way around it than this... is this really what it 
takes to use Tiles in this situation?

On Wednesday 12 May 2004 02:05 pm, Mark Lowe wrote:
 Use an empty action.

 action path=/myaction type=com.foo.struts.EmptyAction
   forward name=success path=mytiledef redirect=false /
 /action

 the action just needs to return this.
 return (mapping.findForward(success));

 and you'll be there.

 On 12 May 2004, at 22:58, Keith Bottner wrote:
  I am trying to forward directly to a tiles definition from the
  global-forwards with
 
  # struts-config.xml
  global-forwards
  forward name=signon path=.alt.signon /
  /global-forwards
 
 
  My JSP page uses:
  html:link forward=signonBLAH URL/html:link
 
 
  However when the JSP is generated it actually generates
  a href=.alt.signonBLAH URL/a
 
  Any ideas on why global-forwards to tile definitions do not work?
 
  Thanks in advance,
 
  Keith
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: global forward to tile definition does NOT work

2004-05-12 Thread Keith Bottner
Thanks for the feedback, that is what I am currently doing. My understanding
is that this should work by specifying the tiles definition directly and
therefore bypassing yet another action configuration, if so I wanted to find
out what black magic was necessary for it to actually work. Is there a way
to do it? Or is the various documentation incorrect in this ability?

Thanks,

Keith

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 12, 2004 4:05 PM
To: Struts Users Mailing List
Subject: Re: global forward to tile definition does NOT work


Use an empty action.

action path=/myaction type=com.foo.struts.EmptyAction
forward name=success path=mytiledef redirect=false /
/action

the action just needs to return this.
return (mapping.findForward(success));

and you'll be there.


On 12 May 2004, at 22:58, Keith Bottner wrote:

 I am trying to forward directly to a tiles definition from the 
 global-forwards with

 # struts-config.xml
 global-forwards
 forward name=signon path=.alt.signon / /global-forwards


 My JSP page uses:
 html:link forward=signonBLAH URL/html:link


 However when the JSP is generated it actually generates
 a href=.alt.signonBLAH URL/a

 Any ideas on why global-forwards to tile definitions do not work?

 Thanks in advance,

 Keith


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: global forward to tile definition does NOT work

2004-05-12 Thread Pingili, Madhupal
You don't even have to give type=xxx.xxx.xx.
Just use this syntax: 
action path=/viewHeading forward=.search.mainLayout
/action

Above works well for me.

---
Reddy

 -Original Message-
 From: Mark Lowe [SMTP:[EMAIL PROTECTED]
 Sent: Wednesday, May 12, 2004 5:05 PM
 To:   Struts Users Mailing List
 Subject:  Re: global forward to tile definition does NOT work
 
 Use an empty action.
 
 action path=/myaction type=com.foo.struts.EmptyAction
   forward name=success path=mytiledef redirect=false /
 /action
 
 the action just needs to return this.
 return (mapping.findForward(success));
 
 and you'll be there.
 
 
 On 12 May 2004, at 22:58, Keith Bottner wrote:
 
  I am trying to forward directly to a tiles definition from the
  global-forwards with
 
  # struts-config.xml
  global-forwards
  forward name=signon path=.alt.signon /
  /global-forwards
 
 
  My JSP page uses:
  html:link forward=signonBLAH URL/html:link
 
 
  However when the JSP is generated it actually generates
  a href=.alt.signonBLAH URL/a
 
  Any ideas on why global-forwards to tile definitions do not work?
 
  Thanks in advance,
 
  Keith
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]