Re: url rewriting

2003-04-06 Thread SA
I think you can use html:rewrite.

a href=test class=redbold
 onClick=TestWindow=window.open('html:rewrite page=?LINK.do?
/','TestWindow',

'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,
 resizable=no, width=620,height=250,left=20,top=20'); return
false;
 Test Link/a

Richard Raquepo wrote:

 yes by using the html:link , but i want to control the size of the created
 window? how can it be done?
 - Original Message -
 From: Claude Betancourt [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, April 03, 2003 1:51 PM
 Subject: Re: url rewriting

  the session is attached to the browser instance and not the individual
  window, so by popping a new window with a new action you'll carry the same
  session attributes without the need to specify the session id.
  -c
 
  - Original Message -
  From: Richard Raquepo [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, April 03, 2003 12:56 AM
  Subject: url rewriting
 
 
  i have this kind of link that will open a new window:
 
  a href=test class=redbold
  onClick=TestWindow=window.open('?LINK.do?','TestWindow',
 
 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,
  resizable=no, width=620,height=250,left=20,top=20'); return
 false;
  Test Link/a
 
  i wan't to be able to transfer my current session to the new browser? what
  tag should i use so that i can passed the current sessionid in the
 ?LINK.do?
  ?
 
  or is it possible to use html:link tag that has a new window with my
  parameters in it?
 
  thanks a lot...
 
 
  -
  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: url rewriting

2003-04-02 Thread Claude Betancourt
the session is attached to the browser instance and not the individual
window, so by popping a new window with a new action you'll carry the same
session attributes without the need to specify the session id.
-c

- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 12:56 AM
Subject: url rewriting


i have this kind of link that will open a new window:

a href=test class=redbold
onClick=TestWindow=window.open('?LINK.do?','TestWindow',
'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,
resizable=no, width=620,height=250,left=20,top=20'); return false;
Test Link/a

i wan't to be able to transfer my current session to the new browser? what
tag should i use so that i can passed the current sessionid in the ?LINK.do?
?

or is it possible to use html:link tag that has a new window with my
parameters in it?

thanks a lot...


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



Re: url rewriting

2003-04-02 Thread Richard Raquepo
yes by using the html:link , but i want to control the size of the created
window? how can it be done?
- Original Message -
From: Claude Betancourt [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 1:51 PM
Subject: Re: url rewriting


 the session is attached to the browser instance and not the individual
 window, so by popping a new window with a new action you'll carry the same
 session attributes without the need to specify the session id.
 -c

 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, April 03, 2003 12:56 AM
 Subject: url rewriting


 i have this kind of link that will open a new window:

 a href=test class=redbold
 onClick=TestWindow=window.open('?LINK.do?','TestWindow',

'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,
 resizable=no, width=620,height=250,left=20,top=20'); return
false;
 Test Link/a

 i wan't to be able to transfer my current session to the new browser? what
 tag should i use so that i can passed the current sessionid in the
?LINK.do?
 ?

 or is it possible to use html:link tag that has a new window with my
 parameters in it?

 thanks a lot...


 -
 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: url rewriting

2003-04-02 Thread Andrew Hill
That only applies if your using cookies to pass the sessionId to the server.
If you are also supporting users without cookies enabled you will still need
to rewrite the url.

-Original Message-
From: Claude Betancourt [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 April 2003 13:52
To: Struts Users Mailing List
Subject: Re: url rewriting


the session is attached to the browser instance and not the individual
window, so by popping a new window with a new action you'll carry the same
session attributes without the need to specify the session id.
-c

- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 12:56 AM
Subject: url rewriting


i have this kind of link that will open a new window:

a href=test class=redbold
onClick=TestWindow=window.open('?LINK.do?','TestWindow',
'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,
resizable=no, width=620,height=250,left=20,top=20'); return false;
Test Link/a

i wan't to be able to transfer my current session to the new browser? what
tag should i use so that i can passed the current sessionid in the ?LINK.do?
?

or is it possible to use html:link tag that has a new window with my
parameters in it?

thanks a lot...


-
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: URL Rewriting

2003-03-19 Thread David Graham
My Tomcat 4.1.18 does this automatically if cookies are off.

David



From: Wendy Cameron [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED]
Subject: URL Rewriting
Date: Thu, 20 Mar 2003 12:36:44 +1000
We have come up against a problem with URL re-writing in Tomcat, basically 
what happens is if the user switches off, cookies all session information 
is lost.  We need to have session information even if cookies are disabled, 
is there some options somewhere in Tomcat 4.1.18 to switch on, URL 
rewriting to put in the session id and do url rewriting based session 
tracking.

Regards Wendy

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


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


RE: URL Rewriting

2003-03-19 Thread Wendy Cameron
This is what I would have expected, but isnt our experience and I am not sure why.

Regards Wendy

 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 20, 2003 12:38 PM
 To: [EMAIL PROTECTED]
 Subject: Re: URL Rewriting
 
 
 My Tomcat 4.1.18 does this automatically if cookies are off.
 
 David
 
 
 
 From: Wendy Cameron [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: Struts Users Mailing List (E-mail) 
 [EMAIL PROTECTED]
 Subject: URL Rewriting
 Date: Thu, 20 Mar 2003 12:36:44 +1000
 
 We have come up against a problem with URL re-writing in 
 Tomcat, basically 
 what happens is if the user switches off, cookies all 
 session information 
 is lost.  We need to have session information even if 
 cookies are disabled, 
 is there some options somewhere in Tomcat 4.1.18 to switch on, URL 
 rewriting to put in the session id and do url rewriting 
 based session 
 tracking.
 
 Regards Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 Add photos to your messages with MSN 8. Get 2 months FREE*.  
 http://join.msn.com/?page=features/featuredemail
 
 
 -
 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: URL Rewriting

2003-03-19 Thread Max Cooper
You do actually have to go through the pains of rewriting all of your URLs
in links and things for this to work. If you have a link in a page like
this: a href=/loseMySession.doLose it!/a you will lose the session,
since there is no call to rewrite the URL.

I believe that the Struts tags will rewrite the URLs as part of their normal
processing, so they might be very helpful. But you have to use them
consistently! One bad URL in the whole site/app will drop the session if the
user clicks on it.

-Max

- Original Message -
From: Wendy Cameron [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 6:39 PM
Subject: RE: URL Rewriting


This is what I would have expected, but isnt our experience and I am not
sure why.

Regards Wendy

 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 20, 2003 12:38 PM
 To: [EMAIL PROTECTED]
 Subject: Re: URL Rewriting


 My Tomcat 4.1.18 does this automatically if cookies are off.

 David



 From: Wendy Cameron [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List (E-mail)
 [EMAIL PROTECTED]
 Subject: URL Rewriting
 Date: Thu, 20 Mar 2003 12:36:44 +1000
 
 We have come up against a problem with URL re-writing in
 Tomcat, basically
 what happens is if the user switches off, cookies all
 session information
 is lost.  We need to have session information even if
 cookies are disabled,
 is there some options somewhere in Tomcat 4.1.18 to switch on, URL
 rewriting to put in the session id and do url rewriting
 based session
 tracking.
 
 Regards Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 _
 Add photos to your messages with MSN 8. Get 2 months FREE*.
 http://join.msn.com/?page=features/featuredemail


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



Re: URL Rewriting support in Struts html:form and html:link

2002-08-02 Thread Craig R. McClanahan



On Fri, 2 Aug 2002, Nekkalapudi, Viplava wrote:

 Date: Fri, 2 Aug 2002 14:47:29 -0500
 From: Nekkalapudi, Viplava [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: URL Rewriting support in Struts html:form and html:link

 Craig
  All containers that implement Servlet 2.2 or 2.3 are required to support
 URL rewriting, which encodes the session identifier in the url as a path
 parameter (not a query parameter). However, it is up to your application to
 make sure you call response.encodeURL() as you are creating such links. The
 good news for Struts users is that tags like html:form and html:link do
 this for you, so that if you create all your links with the tags, you don't
 have to worry about URL rewriting yourself.
 /Craig

  This means if I disable Cookies in  my browser (either by disabling from
 browser settings or through weblogic.xml with session-descriptor,
  our web application developed with Struts 1.0.2 and Weblogic Server 6.1
 should work fine.
  But it is not working if we disable cookies.


If you always construct your hyperlinks using html:link, then this
should indeed work.  It sounds like there might be a problem with URL
rewriting in WebLogic.

A quick way to check this would be to put something like this in your
page:

  a href='%= response.encodeURL(/foo/bar.jsp) %'Test Link/a

and examine the HTML output that gets created.  You should see a URL that
has a ;JSESSIONID= path parameter if cookies are turned off.  Because
this bypasses the Struts tag, it can directly prove whether there is a
problem with your container or not.

  Please clarify.
 ---  Vip

Craig


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




Re: URL Rewriting

2001-12-19 Thread Sudhir S. Shetty

Can anybody please mail me the syntax for sending multiple (3-4) parameters
through the html:link tag , if possible with some code if using the Map
inter face.
thanks,
Sudhir
- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 18:23
Subject: RE: URL Rewriting


hint
url
http://jakarta.apache.org/struts/struts-html.html#link
/url
quote
If you prefer to specify a java.util.Map that contains all of the
request parameters to be added to the hyperlink, use one of the
following techniques:


Specify only the name attribute - The named JSP bean (optionally scoped
by the value of the scope attribute) must identify a java.util.Map
containing the parameters.
Specify both name and property attributes - The specified property
getter method will be called on the bean identified by the name (and
optional scope) attributes, in order to return the java.util.Map
containing the parameters.
As the Map is processed, the keys are assumed to be the names of query
parameters to be appended to the hyperlink. The value associated with
each key must be either a String or a String array representing the
parameter value(s), or an object whose toString() method will be called.
If a String array is specified, more than one value for the same query
parameter name will be created.
/quote
/hint

hth,
tomK



 -Original Message-
 From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
 Sent: dinsdag 18 december 2001 13:48
 To: Struts Users Mailing List
 Subject: URL Rewriting


 Hi Everybody,
I've just started using struts in my
 application, I
 have a Overview Screen from which I have to pass 2 request
 parameters to the
 ActionForward bean, I dont have a Form Bean for this overview screen.
 The problem I face is using URL rewiting, when i pass these
 parametrs in the
 html:link  tag it gives me an error, and if i use the a href tag I
 bypass the servlet, Kindly suggest me a method, or the right
 syntax for
 html:link.
 The Link I've used in my app is as follows :-
 html:link
 page=fee.do?action=Editls_company_name=%=rs.getString(2)%
 ls_rate_table=
 %=rs.getString(3)% %=rs.getString(1)%html:link




 --
 To unsubscribe, e-mail:
 mailto:struts-user- [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]




RE: URL Rewriting

2001-12-19 Thread Jesse Alexander (KABS 11)

Hi,

have you checked in the mailing-list-archives at:

http://www.mail-archive.com/struts-user@jakarta.apache.org/

Searching for HashMap resulted in a list containing a reference to
this message:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19443.html

Which seems to do what you want...


hope this helps
Alexander Jesse

-Original Message-
From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 12:27 PM
To: Struts Users Mailing List
Subject: Re: URL Rewriting


Can anybody please mail me the syntax for sending multiple (3-4) parameters
through the html:link tag , if possible with some code if using the Map
inter face.
thanks,
Sudhir
- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 18:23
Subject: RE: URL Rewriting


hint
url
http://jakarta.apache.org/struts/struts-html.html#link
/url
quote
If you prefer to specify a java.util.Map that contains all of the
request parameters to be added to the hyperlink, use one of the
following techniques:


Specify only the name attribute - The named JSP bean (optionally scoped
by the value of the scope attribute) must identify a java.util.Map
containing the parameters.
Specify both name and property attributes - The specified property
getter method will be called on the bean identified by the name (and
optional scope) attributes, in order to return the java.util.Map
containing the parameters.
As the Map is processed, the keys are assumed to be the names of query
parameters to be appended to the hyperlink. The value associated with
each key must be either a String or a String array representing the
parameter value(s), or an object whose toString() method will be called.
If a String array is specified, more than one value for the same query
parameter name will be created.
/quote
/hint

hth,
tomK



 -Original Message-
 From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
 Sent: dinsdag 18 december 2001 13:48
 To: Struts Users Mailing List
 Subject: URL Rewriting


 Hi Everybody,
I've just started using struts in my
 application, I
 have a Overview Screen from which I have to pass 2 request
 parameters to the
 ActionForward bean, I dont have a Form Bean for this overview screen.
 The problem I face is using URL rewiting, when i pass these
 parametrs in the
 html:link  tag it gives me an error, and if i use the a href tag I
 bypass the servlet, Kindly suggest me a method, or the right
 syntax for
 html:link.
 The Link I've used in my app is as follows :-
 html:link
 page=fee.do?action=Editls_company_name=%=rs.getString(2)%
 ls_rate_table=
 %=rs.getString(3)% %=rs.getString(1)%html:link




 --
 To unsubscribe, e-mail:
 mailto:struts-user- [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]

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




Re: URL Rewriting

2001-12-19 Thread João Guilherme Del Valle

Ok, the message you said follows.
But, the html:parameter tag doesn´t _still_ exist in struts, right? Is
there a standart way to pass more than one parameter?



 Thanks for all the help people, I can now successfully pass one
 variable.  How can I pass more that one variable?

Hi,

I've read this in the struts examples that come with the source code.
%
   java.util.HashMap newValues = new java.util.HashMap();
   newValues.put(para1, value1);
   newValues.put(para2, bean1.getAttribute1();
   pageContext.setAttribute(paras, newValues);
%
html:link page=/Action.do name=paras
   html:img page=/media/icons/RemoveCartItem16.gif/
/html:link

You put all your parameters in a hashmap an pass it to the
html:link tag.

I would prefer something like this:
html:link
   html:parameter name= property=/
   html:parameter name= property=/
/html:link

but this is still not in the stuts source, I guess.

Volker



Joao Guilherme Del Valle
[EMAIL PROTECTED]
Visionnaire Informática SA
http://www.visionnaire.com.br
Tel/Fax: +55 41 373-7400 r: 217


- Original Message -
From: Jesse Alexander (KABS 11) [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, December 19, 2001 8:41 AM
Subject: RE: URL Rewriting


 Hi,

 have you checked in the mailing-list-archives at:

 http://www.mail-archive.com/struts-user@jakarta.apache.org/

 Searching for HashMap resulted in a list containing a reference to
 this message:

 http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19443.html

 Which seems to do what you want...


 hope this helps
 Alexander Jesse

 -Original Message-
 From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 12:27 PM
 To: Struts Users Mailing List
 Subject: Re: URL Rewriting


 Can anybody please mail me the syntax for sending multiple (3-4)
parameters
 through the html:link tag , if possible with some code if using the Map
 inter face.
 thanks,
 Sudhir
 - Original Message -
 From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, December 18, 2001 18:23
 Subject: RE: URL Rewriting


 hint
 url
 http://jakarta.apache.org/struts/struts-html.html#link
 /url
 quote
 If you prefer to specify a java.util.Map that contains all of the
 request parameters to be added to the hyperlink, use one of the
 following techniques:


 Specify only the name attribute - The named JSP bean (optionally scoped
 by the value of the scope attribute) must identify a java.util.Map
 containing the parameters.
 Specify both name and property attributes - The specified property
 getter method will be called on the bean identified by the name (and
 optional scope) attributes, in order to return the java.util.Map
 containing the parameters.
 As the Map is processed, the keys are assumed to be the names of query
 parameters to be appended to the hyperlink. The value associated with
 each key must be either a String or a String array representing the
 parameter value(s), or an object whose toString() method will be called.
 If a String array is specified, more than one value for the same query
 parameter name will be created.
 /quote
 /hint

 hth,
 tomK



  -Original Message-
  From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
  Sent: dinsdag 18 december 2001 13:48
  To: Struts Users Mailing List
  Subject: URL Rewriting
 
 
  Hi Everybody,
 I've just started using struts in my
  application, I
  have a Overview Screen from which I have to pass 2 request
  parameters to the
  ActionForward bean, I dont have a Form Bean for this overview screen.
  The problem I face is using URL rewiting, when i pass these
  parametrs in the
  html:link  tag it gives me an error, and if i use the a href tag I
  bypass the servlet, Kindly suggest me a method, or the right
  syntax for
  html:link.
  The Link I've used in my app is as follows :-
  html:link
  page=fee.do?action=Editls_company_name=%=rs.getString(2)%
  ls_rate_table=
  %=rs.getString(3)% %=rs.getString(1)%html:link
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user- [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]

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




RE: URL Rewriting

2001-12-19 Thread Jesse Alexander (KABS 11)

Hi,

well the first phrase I've read...code. %...  gives exactly a working
code-snippet. I think using that it should be easy to get a working
version in your own code...

hope this helps
Alexander Jesse

PS: search for HashMap link gives you an even better hitlist, where you
can find other samples...

-Original Message-
From: João Guilherme Del Valle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 1:55 PM
To: Struts Users Mailing List
Subject: Re: URL Rewriting


Ok, the message you said follows.
But, the html:parameter tag doesn´t _still_ exist in struts, right? Is
there a standart way to pass more than one parameter?



 Thanks for all the help people, I can now successfully pass one
 variable.  How can I pass more that one variable?

Hi,

I've read this in the struts examples that come with the source code.
%
   java.util.HashMap newValues = new java.util.HashMap();
   newValues.put(para1, value1);
   newValues.put(para2, bean1.getAttribute1();
   pageContext.setAttribute(paras, newValues);
%
html:link page=/Action.do name=paras
   html:img page=/media/icons/RemoveCartItem16.gif/
/html:link

You put all your parameters in a hashmap an pass it to the
html:link tag.

I would prefer something like this:
html:link
   html:parameter name= property=/
   html:parameter name= property=/
/html:link

but this is still not in the stuts source, I guess.

Volker



Joao Guilherme Del Valle
[EMAIL PROTECTED]
Visionnaire Informática SA
http://www.visionnaire.com.br
Tel/Fax: +55 41 373-7400 r: 217


- Original Message -
From: Jesse Alexander (KABS 11) [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, December 19, 2001 8:41 AM
Subject: RE: URL Rewriting


 Hi,

 have you checked in the mailing-list-archives at:

 http://www.mail-archive.com/struts-user@jakarta.apache.org/

 Searching for HashMap resulted in a list containing a reference to
 this message:

 http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19443.html

 Which seems to do what you want...


 hope this helps
 Alexander Jesse

 -Original Message-
 From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 12:27 PM
 To: Struts Users Mailing List
 Subject: Re: URL Rewriting


 Can anybody please mail me the syntax for sending multiple (3-4)
parameters
 through the html:link tag , if possible with some code if using the Map
 inter face.
 thanks,
 Sudhir
 - Original Message -
 From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, December 18, 2001 18:23
 Subject: RE: URL Rewriting


 hint
 url
 http://jakarta.apache.org/struts/struts-html.html#link
 /url
 quote
 If you prefer to specify a java.util.Map that contains all of the
 request parameters to be added to the hyperlink, use one of the
 following techniques:


 Specify only the name attribute - The named JSP bean (optionally scoped
 by the value of the scope attribute) must identify a java.util.Map
 containing the parameters.
 Specify both name and property attributes - The specified property
 getter method will be called on the bean identified by the name (and
 optional scope) attributes, in order to return the java.util.Map
 containing the parameters.
 As the Map is processed, the keys are assumed to be the names of query
 parameters to be appended to the hyperlink. The value associated with
 each key must be either a String or a String array representing the
 parameter value(s), or an object whose toString() method will be called.
 If a String array is specified, more than one value for the same query
 parameter name will be created.
 /quote
 /hint

 hth,
 tomK



  -Original Message-
  From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
  Sent: dinsdag 18 december 2001 13:48
  To: Struts Users Mailing List
  Subject: URL Rewriting
 
 
  Hi Everybody,
 I've just started using struts in my
  application, I
  have a Overview Screen from which I have to pass 2 request
  parameters to the
  ActionForward bean, I dont have a Form Bean for this overview screen.
  The problem I face is using URL rewiting, when i pass these
  parametrs in the
  html:link  tag it gives me an error, and if i use the a href tag I
  bypass the servlet, Kindly suggest me a method, or the right
  syntax for
  html:link.
  The Link I've used in my app is as follows :-
  html:link
  page=fee.do?action=Editls_company_name=%=rs.getString(2)%
  ls_rate_table=
  %=rs.getString(3)% %=rs.getString(1)%html:link
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user- [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

RE: URL Rewriting

2001-12-18 Thread Tom Klaasen (TeleRelay)

hint
url
http://jakarta.apache.org/struts/struts-html.html#link
/url
quote
If you prefer to specify a java.util.Map that contains all of the
request parameters to be added to the hyperlink, use one of the
following techniques:


Specify only the name attribute - The named JSP bean (optionally scoped
by the value of the scope attribute) must identify a java.util.Map
containing the parameters. 
Specify both name and property attributes - The specified property
getter method will be called on the bean identified by the name (and
optional scope) attributes, in order to return the java.util.Map
containing the parameters. 
As the Map is processed, the keys are assumed to be the names of query
parameters to be appended to the hyperlink. The value associated with
each key must be either a String or a String array representing the
parameter value(s), or an object whose toString() method will be called.
If a String array is specified, more than one value for the same query
parameter name will be created.
/quote
/hint

hth,
tomK



 -Original Message-
 From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]] 
 Sent: dinsdag 18 december 2001 13:48
 To: Struts Users Mailing List
 Subject: URL Rewriting
 
 
 Hi Everybody,
I've just started using struts in my 
 application, I
 have a Overview Screen from which I have to pass 2 request 
 parameters to the
 ActionForward bean, I dont have a Form Bean for this overview screen.
 The problem I face is using URL rewiting, when i pass these 
 parametrs in the
 html:link  tag it gives me an error, and if i use the a href tag I
 bypass the servlet, Kindly suggest me a method, or the right 
 syntax for
 html:link.
 The Link I've used in my app is as follows :-
 html:link
 page=fee.do?action=Editls_company_name=%=rs.getString(2)%
 ls_rate_table=
 %=rs.getString(3)% %=rs.getString(1)%html:link
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [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]




Re: URL Rewriting

2001-12-18 Thread Sudhir S. Shetty

Can anyone give me some example code with reference to the following example
thanks ,
regards,
Sudhir
- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 18:23
Subject: RE: URL Rewriting


hint
url
http://jakarta.apache.org/struts/struts-html.html#link
/url
quote
If you prefer to specify a java.util.Map that contains all of the
request parameters to be added to the hyperlink, use one of the
following techniques:


Specify only the name attribute - The named JSP bean (optionally scoped
by the value of the scope attribute) must identify a java.util.Map
containing the parameters.
Specify both name and property attributes - The specified property
getter method will be called on the bean identified by the name (and
optional scope) attributes, in order to return the java.util.Map
containing the parameters.
As the Map is processed, the keys are assumed to be the names of query
parameters to be appended to the hyperlink. The value associated with
each key must be either a String or a String array representing the
parameter value(s), or an object whose toString() method will be called.
If a String array is specified, more than one value for the same query
parameter name will be created.
/quote
/hint

hth,
tomK



 -Original Message-
 From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
 Sent: dinsdag 18 december 2001 13:48
 To: Struts Users Mailing List
 Subject: URL Rewriting


 Hi Everybody,
I've just started using struts in my
 application, I
 have a Overview Screen from which I have to pass 2 request
 parameters to the
 ActionForward bean, I dont have a Form Bean for this overview screen.
 The problem I face is using URL rewiting, when i pass these
 parametrs in the
 html:link  tag it gives me an error, and if i use the a href tag I
 bypass the servlet, Kindly suggest me a method, or the right
 syntax for
 html:link.
 The Link I've used in my app is as follows :-
 html:link
 page=fee.do?action=Editls_company_name=%=rs.getString(2)%
 ls_rate_table=
 %=rs.getString(3)% %=rs.getString(1)%html:link




 --
 To unsubscribe, e-mail:
 mailto:struts-user- [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]




Re: URL rewriting and cookies

2001-12-04 Thread Ted Husted

The img tag is mainly there in case the images in a secure location, and
the user needs to be logged in to get them. In which case, URL rewriting
would be required to retrieve them (or the user would be asked to log in
to retrieve each image ;-(

You are not required to use the img tag if the images are in a public
location. If the images are on another server, you may want to pass the
URL in a bean, or as part of your own tag. If not, you can also use the
conventional img tag with relative references, or a scriplet to insert
the path to the current context.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


Aapo Laakkonen wrote:
 
  The Struts tag is doing this because this is the
  result of URL rewriting. The syntax is strange,
  as you put it, because the session id is encoded
  as a path parameter, and not part of the query
  string. This is all explained in the Servlet spec.
 
 Is it possible to fix this behavior somehow? What
 do you mean about strange syntax? And I'm still not
 sure that where the problem exists. Are you saying
 that IBM WebSphere 3.5.4 on AIX is somehow broken
 or doesn't implement Servlet specification as it
 should? I'm quite sure that there is some other
 people who are using struts on WebSphere. Do you
 have this kind of problems when URL-rewriting is
 turned on?
 
 Kind regards
 Aapo Laakkonen
 
 --
 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]




Re: URL rewriting and cookies

2001-11-01 Thread Aapo Laakkonen

I still have not got any answers for the problem described below.

Is there some problems with struts custom img-tag?

Why it is generating tags like this?

img src=/images/blue.gif;jsessionid=0001CEAAQCTISJFXCZWNZLC2WNA

Where does this ';' came from and why there it is not '?' instead?

Do I have to add ? on every picture if I like to use URL rewriting instead
of cookies?

  Could you post an example of the type of URLs you're seeing?

 Here is the struts html:img-tag:

 html:img srcKey=img.pixel.blue altKey=img.pixel.blue.alt width=715
 height=7 border=0/

 And it generates output like this:

 img src=/images/blue.gif;jsessionid=0001CEAAQCTISJFXCZWNZLC2WNA alt=
 height=7 width=715 border=0

 As you see ;jsessionid=0001CEAAQCTISJFXCZWNZLC2WNA is absolutely crap
that
 I don't want to have in src-attribute. This occurs only when I enable
 URL-rewriting and disable cookies in my application server (WAS 3.5.4 on
 AIX). I have WAS modified struts package installed.

 My client likes to use URL-rewriting and disable cookies... I'm not sure
if
 this problem occurs even if both URL rewriting and Cookies are enabled.
But
 again my client wants to use only URL-rewriting, because they have quite
 strict deployment standards.

 Images are not served by WAS as my client uses separate Web Server for
 serving static content and they don't want to have any overhead that is
 generated by WAS layer if the files can be served directly by Apache or
some
 other Web Server as it is the case with images in this app.

 Can someone at least confirm me if the problem exists in struts framework
or
 somewhere else so I can point my finger to the source of the problem...
and
 leave you to think how you can improve this great framework.

 Have you heard anything about WebWare for Python? I think that Struts
 developers should look at the ideas implemented in WebWare... if you
already
 have not. It's really nice app server ... at least in developer's point of
 view, imho.

 Original message:
 -
 I have some small problems with struts on WebSphere 3.5.4 on AIX.

 Everything works fine, if I enable cookies and disable URL rewriting. But
 when I enable URL rewriting and disable cookies (or maybe I just need to
 enable URL rewriting) struts is generating (or is it because of
 struts)strange URL's. For example if I have used html:img
 srcKey=image.logo... / tag then struts generates the tag correctly but
 adds session id at the end of HTML's img-tags source attribute. And then
 the image is not displayed to the user because the generated URL points to
 wrong place.

 How can I remove struts from adding session ids at the end of the src
 attribute?



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




Re: URL rewriting

2001-07-05 Thread rajiv mulay



if it is done internally, then if we disable 
cookies in browser session is not carried forward to other pages.

rajiv

  - Original Message - 
  From: 
  suhas 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, July 05, 2001 11:15 
  AM
  Subject: Re: URL rewriting
  
  it is done internally by struts tags . 
  That's one of the reason u are using struts tag instead of normal html tags 
  .
  Suhas
  
  
- Original Message - 
From: 
rajiv mulay 

To: [EMAIL PROTECTED] 

Sent: Thursday, July 05, 2001 10:22 
AM
Subject: URL rewriting

how to achive url rewriting in 
sturts.

rajiv


Re: URL rewriting

2001-07-05 Thread Eda Srinivasareddy
 Hi 
I also read some where in struts user guide, that the struts internally handles the URL rewriting. But when we run our application which is perfectly running when cookies are enabled is not running when cookies are disabled. What might be the reason.
If u have any example which runs even if the cookies are disabled, please forward it.
Thanks
Eda
 suhas [EMAIL PROTECTED] wrote: 




it is done internally by struts tags . That's one of the reason u are using struts tag instead of normal html tags .
Suhas


- Original Message - 
From: rajiv mulay 
To: [EMAIL PROTECTED] 
Sent: Thursday, July 05, 2001 10:22 AM
Subject: URL rewriting

how to achive url rewriting in sturts.

rajivDo You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!http://personal.mail.yahoo.com/

RE: URL rewriting

2001-07-05 Thread Tim Buchalka



You 
need to check out the html:link custom tag to handle URL 
rewriting.

Refer 
to the online manual for details:-

http://jakarta.apache.org/struts/struts-html.html#link

Hope 
this helps.

Regards

Tim

  -Original Message-From: Eda Srinivasareddy 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, 5 July 2001 6:46 
  PMTo: [EMAIL PROTECTED]; suhasSubject: Re: 
  URL rewriting
  Hi 
  I also read some where in struts user guide, that the struts internally 
  handles the URL rewriting. But when we run our application which is perfectly 
  running when cookies are enabled is not running when cookies are disabled. 
  What might be the reason. 
  If u have any example which runs even if the cookies are disabled, please 
  forward it. 
  Thanks 
  Eda 
   suhas [EMAIL PROTECTED] wrote: 
  



it is done internally by struts tags . 
That's one of the reason u are using struts tag instead of normal html tags 
.
Suhas


  - Original Message - 
  From: 
  rajiv mulay 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, July 05, 2001 10:22 
  AM
  Subject: URL rewriting
  
  how to achive url rewriting in 
  sturts.
  
  rajiv
  
  
  Do You Yahoo!?Get personalized email addresses from Yahoo! Mail - 
  only $35 a year!http://personal.mail.yahoo.com/


Re: URL rewriting

2001-07-04 Thread suhas



it is done internally by struts tags . That's 
one of the reason u are using struts tag instead of normal html tags 
.
Suhas


  - Original Message - 
  From: 
  rajiv mulay 
  
  To: [EMAIL PROTECTED] 
  Sent: Thursday, July 05, 2001 10:22 
  AM
  Subject: URL rewriting
  
  how to achive url rewriting in 
  sturts.
  
  rajiv