Unless you you will not know the next page until your action executes,
you should specify
$link.setPage(templateName).setAction("mainframes").addQueryData("lang",
"eng")").  

The .setPage() method is only for the pull tool.  If you are trying to
set the template to be used in an action, use
data.setScreenTemplate(templateName) instead.

> -----Original Message-----
> From: m. lin [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, January 10, 2003 3:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to set a screen in Action class
> 
> 
> 
> > Actual code is:
> >
> > <a 
> > 
> href="$link.setAction("mainframes").addQueryData("lang","eng")")">Engl
> > ish</a
> >><br><br>
> >
> > in the actionclass , i should set another page..
> >
> > i tried it out by calling data.setPage("some.vm")
> > where data is a Rundata object here..but i could not set it.
> >
> 
> 
> Not sure I understand your question, but:
> 
> <a href ...   is supposed to be used in your .vm file.
> 
> data.setPage("some.vm")   is used in a class file, I hope you 
> have not got
> them mixed up.
> 
> cheers
> michael
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:turbine-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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

Reply via email to