struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject RE: FW: <c:import > functionality in an Action class ?
Date Mon, 14 Jul 2003 21:59:01 GMT
--- "Ranjangaonkar, Vaibhav (HQP)" <Vaibhav.Ranjangaonkar@rhi.com> wrote:
> 
> Thanks David for responding !
> 
> Main reason - To be able to use this functionality outside
>    of jsp.
> 
> OK, my task is something like this -
> 
> I need to execute a servlet on an external site, get its
> output and store it in database. Parameters needed for 
> calling this servlet are prepared in an action. Now, I need
> to write all this code using HttpURLConnection. I can't use
> <c:import > tag here as the logic should be executed outside
> Of JSP.

It's not really an "IncludeAction", more of a get-response-from-servlet
action.  As I recall, it's trivial to get the result of hitting a URL
using the standard Java classes.  I don't see much benefit in adding this
to Struts when Java already makes it fairly easy.

David

> 
> If I have an Action doing this, I can take advantage of the 
> built-in code and the task will be much simpler. Since, this
> looks like common scenario ( because, there is a tag for this )
> I think, others will also benefit form this functionality.
> 
> Please correct me if I am going wrong somewhere ...
> 
> Thanks.
> 
> 
> -----Original Message-----
> From: David Graham [mailto:grahamdavid1980@yahoo.com] 
> Sent: Monday, July 14, 2003 2:20 PM
> To: Struts Developers List
> Subject: Re: FW: <c:import > functionality in an Action class ?
> 
> 
> --- "Ranjangaonkar, Vaibhav (HQP)" <Vaibhav.Ranjangaonkar@rhi.com>
> wrote:
> > 
> > Correction in the latest email -
> > 
> > Sorry, I meant <c:import> tag and not <c:url >
> > 
> 
> Why do you want an Action that does this?
> 
> David
> 
> > Thanks.
> > 
> > -----Original Message-----
> > From: Ranjangaonkar, Vaibhav (HQP)
> > Sent: Monday, July 14, 2003 2:01 PM
> > To: Struts Developers List
> > Subject: FW: <c:import > functionality in an Action class ?
> > 
> > 
> > 
> > OK, I think, I am not clear here, let me try to put it
> > in another way - 
> > 
> > Can we have a Action derived class in org.apache.struts.actions 
> > package ( like, IncludeAction ) that wraps the functionality in
> > JSTL <c:url > tag ? So, I think, this is more of whether
> > we want to an Action class like this. And, it's more
> > related to the core framework, so, it has to be asked in 
> > dev list... 
> > 
> > -----Original Message-----
> > From: James Mitchell [mailto:jmitchell@apache.org]
> > Sent: Monday, July 14, 2003 12:04 PM
> > To: Struts Developers
> > Subject: Re: <c:import > functionality in an Action class ?
> > 
> > 
> > On Monday 14 July 2003 14:39, you wrote:
> > > Does this sound like an user question ? Please explain ...
> > 
> > Yes, this is a user question.  Questions about the core framework are 
> > for the
> > dev list (this is basically true for most projects, not just struts).
> > 
> > >
> > > -----Original Message-----
> > > From: James Mitchell [mailto:jmitchell@apache.org]
> > > Sent: Monday, July 14, 2003 11:40 AM
> > > To: Struts Developers List
> > > Cc: Struts Users Mailing List
> > > Subject: Re: <c:import > functionality in an Action class ?
> > >
> > > On Monday 14 July 2003 12:25, Ranjangaonkar, Vaibhav (HQP) wrote:
> > > > I am looking for an Action class like IncludeAction but this class
> 
> > > > should be able to include contents from an external source and 
> > > > store
> > 
> > > > it in request/session scope, much like the <c:import > tag in 
> > > > JSTL.
> > > > But, I want to use this functionality outside of a JSP. Is there 
> > > > something like that already ? If not, do we need an one or we can 
> > > > get away without it ?
> > >
> > > Please ask "user" questions on the "users" list.
> > >
> > > > Please advise,
> > > > Thanks.
> > 
> > --
> > James Mitchell
> > Software Developer/Struts Evangelist http://www.struts-atlanta.org
> > 678-910-8017 AIM:jmitchtx
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> > 
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> 
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message