okay...

in the page/servlet that has the link, put it in the session there...
if in jsp: 
<% 
javax.servlet.http.HttpSession session = request.getSession();
session.setAttribute("key","value");
%>

in servlet:
see prvious method...

-----Original Message-----
From: Antony Stace [mailto:[EMAIL PROTECTED]]
Sent: Friday, 25 January 2002 15:26
To: Struts Users Mailing List
Subject: Re: Changing address in address bar


Thanks for the reply.  This still leaves the address bar with the 

?loca=3    -(1)

part.  I want to get rid of (1)

Any ideas?

On Fri, 25 Jan 2002 15:24:28 +1100
<[EMAIL PROTECTED]> wrote:

> Set the loca=3 into the HttpSession.
> 
> ....
> javax.servlet.http.*;
> HttpSession session = request.getSession();
> ...
> // set into session..
> session.setAttribute("key","value");
> 
> // get from session...
> String loca = session.getAttribute("key");
> 
> HTH...
> 
> -----Original Message-----
> From: Antony Stace [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 25 January 2002 14:53
> To: [EMAIL PROTECTED]
> Subject: Changing address in address bar
> 
> 
> Hi
> 
> I have a link in a page
> 
> 
> http://localhost:8180/testapp/displayAvail.do?loca=3
> 
> which a user can click on.  When the page is diplayed I do not want
the 
> 
> ?loca=3
> 
> part displayed in the link location on the address bar, ie I just want
> 
> http://localhost:8180/testapp/displayAvail.do
> 
> displayed in the address bar.   Is there anyway using struts that I
can
> do this?
> 
> -- 
> 
> 
> Cheers
> 
> Tony
> ---------------------------------------------------------------------
> 
> 
> 
> _________________________________________________________
> 
> Do You Yahoo!?
> 
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> 
> 
> --
> 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]>


-- 


Cheers

Tony
---------------------------------------------------------------------



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com




--
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