Re: Link-to-action?

2003-12-08 Thread Theodosios Paschalidis
Dennis,

thank you very much for the prompt reply. I had a brief look at the example
application but upon googling for a link tag in struts I found the following
http://husted.com/struts/resources/linkParam.htm (source code included)
This seems to be exactly what I need (had no time to try using it yet).
I hope this will be useful to all that face similar problems.

All the best,
Theo


- Original Message - 
From: Dennis Hunziker [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 9:04 AM
Subject: RE: Link-to-action?


 Hi

 In our current project we are using an adapted version of the LinkXTag
 class provided with the struts example application. Check out this class
 and I hope it is what you need.

 Kind regards
 Dennis Hunziker



 -Original Message-
 From: Theodosios Paschalidis [mailto:[EMAIL PROTECTED]
 Sent: Sonntag, 7. Dezember 2003 00:10
 To: [EMAIL PROTECTED]
 Subject: Link-to-action?

 Hi all,

 I am a new struts user utilizing it for my uni project. I have reached a
 point that I do not know how to handle the struts way and am really
 stuck! I spent a lot time on this and I would be grateful for any
 further info!

  I am dynamically producing some search results. I will be turning them
 into links and I want to pass a parameter.

 Is it possible that a user clicking on a link can trigger an action? eg
 having something like a href=DisplayItem.do?ItemId=223

 Using JSPs would be easy to do invoking the appropriate method directly
 the above way.

 Using servlets I could just do String
 itemId=request.getParameter(Itemid).
 Since an ActionClass is a servlet could I achieve the same using the
 Form as a transfer object for the ID property?

 If this cannot be done using the struts sequence (Form-Action) then
 maybe it will be easier forwarding to a JSP? Doing that though will
 require me using a scriptlet to retrieve the object of interest :( Any
 better way? (because my Items are nested I am trying to do it through an
 Action)

 In a nutshell: 1) I display a collection
2) I want to somehow select the item that the user
 clicked, for detailed description

 Any help will be really appreciated!
 Thank you for your time,
 Theo





 -
 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: Link-to-action?

2003-12-07 Thread Dennis Hunziker
Hi

In our current project we are using an adapted version of the LinkXTag
class provided with the struts example application. Check out this class
and I hope it is what you need.

Kind regards
Dennis Hunziker



-Original Message-
From: Theodosios Paschalidis [mailto:[EMAIL PROTECTED] 
Sent: Sonntag, 7. Dezember 2003 00:10
To: [EMAIL PROTECTED]
Subject: Link-to-action?

Hi all,

I am a new struts user utilizing it for my uni project. I have reached a
point that I do not know how to handle the struts way and am really
stuck! I spent a lot time on this and I would be grateful for any
further info!

 I am dynamically producing some search results. I will be turning them
into links and I want to pass a parameter.

Is it possible that a user clicking on a link can trigger an action? eg
having something like a href=DisplayItem.do?ItemId=223

Using JSPs would be easy to do invoking the appropriate method directly
the above way.

Using servlets I could just do String
itemId=request.getParameter(Itemid).
Since an ActionClass is a servlet could I achieve the same using the
Form as a transfer object for the ID property?

If this cannot be done using the struts sequence (Form-Action) then
maybe it will be easier forwarding to a JSP? Doing that though will
require me using a scriptlet to retrieve the object of interest :( Any
better way? (because my Items are nested I am trying to do it through an
Action)

In a nutshell: 1) I display a collection
   2) I want to somehow select the item that the user
clicked, for detailed description

Any help will be really appreciated!
Thank you for your time,
Theo





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



Link-to-action?

2003-12-06 Thread Theodosios Paschalidis
Hi all,

I am a new struts user utilizing it for my uni project. I have reached a point that I 
do not know how to handle the struts way and am really stuck! I spent a lot time on 
this and I would be grateful for any further info!

 I am dynamically producing some search results. I will be turning them into links and 
I want to pass a parameter.

Is it possible that a user clicking on a link can trigger an action? eg having 
something like a href=DisplayItem.do?ItemId=223

Using JSPs would be easy to do invoking the appropriate method directly the above way.

Using servlets I could just do String itemId=request.getParameter(Itemid).
Since an ActionClass is a servlet could I achieve the same using the Form as a 
transfer object for the ID property?

If this cannot be done using the struts sequence (Form-Action) then maybe it will be 
easier forwarding to a JSP? Doing that though will require me using a scriptlet to 
retrieve the object of interest :( Any better way? (because my Items are nested I am 
trying to do it through an Action)

In a nutshell: 1) I display a collection
   2) I want to somehow select the item that the user clicked, for 
detailed description

Any help will be really appreciated!
Thank you for your time,
Theo





forwarding to an offsite link in action

2003-01-29 Thread Gunther Peeters



Hello,

I'm writing a application that tracks clients who download a document. it
tracks their userid , writes to de database and redirects to the document.
the application is on a special url eg. track.downloadbooks.com so that i
can put this application on our server and the clients just have to change
their html without running a servlet/engine.

for this reason i want to redirect to another site from the trackaction. but
the actionforward only accepts relative forwards/redirects. i can't reach
anything offsite. does anyone have a solution for this ?

at the moment i use :

return(new ActionForward(link.getUrl()));


thanks in advance,

Gunther Peeters





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




Re: forwarding to an offsite link in action

2003-01-29 Thread Eric Rizzo
Gunther Peeters wrote:
[snip]

for this reason i want to redirect to another site from the trackaction. but
the actionforward only accepts relative forwards/redirects. i can't reach
anything offsite. does anyone have a solution for this ?


One thing you could do would be to forward to an internal page that 
consists only of an automatic redirect to the external URL. Something 
like this:

html
  head
meta http-equiv=refresh content=0;URL=www.google.com
  /head
/html


HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


smime.p7s
Description: S/MIME Cryptographic Signature