Are you going to get an external HTML page and putting your own code to it? In this case you can do that very easily using a wrapping JSP page and a tag library from the Jakarta Taglibs project: http://jakarta.apache.org/taglibs/doc/io-doc/intro.html Take a look to the "io:request" and "io:http" tags. Then you can put your own Javascript code all around in your JSP page. Ciao Antonio Petrelli
> There are no JSPs. All HTML. This is retrieved by another site. > > rgds > Antony Paul > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, September 29, 2004 12:17 PM > Subject: Re: Rendering javascript using Action > > > > Use an Action as you use a servlet. That is, in the "execute" method there > > is the parameter "HttpServletResponse response". Use it and render you > > HTML page. You can then "return null;" (it means "forward to nowhere") so > > your HTTP response will be made only of your text built inside the Action. > > But I think this is not the best way to use an Action. For me, if you want > > to render some Javascript, you should make a custom tag and use it in you > > JSP page. > > Ciao > > Antonio Petrelli > > > > Antony Paul wrote: > > > > >Hi all, > > > I have a need to render Javascript. How I can use an Action for this. > > >Using Struts 1.1. > > > > > >rgds > > >Antony Paul > > > > > > > > > --------------------------------------------------------------------- > > 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]