The second choice sounds better.  Is there a substantive difference between
using redirect vs. using URLConnection?  They seem very similar to me.
Mike

> Mike,
> 
> If you don't know what the parameters are when you have the opportunity
> to write the link URL, that means you need the user to submit the form.
> You could have them submit the form directly to the other domain. If
> you need to see their choices first, you could do your processing and
> then construct a redirect to the other domain with the parameters on
> the query string as the response.
> 
> -Max
> 
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 19, 2002 9:13 AM
> Subject: linking to a page on different domain
> 
> 
>> I have a fairly simple problem, but can't figure out how to resolve it
>> within the Struts framework.
>>
>> What I want to do is link to a page on a different server / domain.
>> Normally, you just put like <a
> href="http://www.otherdomain.com/page?q1=v1>
>> tag (or the struts link tag).  This circumvents the controller, of
>> course.
>>
>> Complicating things, I need to pass parameters that reside on the same
>> Action Form.  This prevents me from pre-generating the link, because
>> the user could toggle check boxes, type in text fields, etc., and
>> these params+values should be passed to the request on
>> www.otherdomain.com.
>>
>> The only solution I've come up with is to have a Struts action that
>> uses URLConnection to send back the requested page back as the
>> response.  I haven't tried this yet (so maybe it doesn't work), but it
>> seems like such
> a
>> hack.
>>
>> Anyone have a better idea?  (I would *not* like to resolve this with
>> javascript.)
>>
>> Mike
>>
>>
>> --
>> To unsubscribe, e-mail:
> <mailto:[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]>


-- 



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

Reply via email to