Re: multiple parameters within iterate loop

2004-02-19 Thread Kris Schneider
I'm not completely clear on how you've got your data set up, but something like
this should work with JSTL:



  Click to retrieve extract


Quoting Jacqueline Gomes <[EMAIL PROTECTED]>:

> Hi All,
> 
> I have a question regarding sending multiple parameters through a 
> tag.
> 
> I understand that you can set it up like this:
> 
> <%
>  java.util.HashMap paramValuesExtract = new java.util.HashMap();  
> 
> 
> paramValuesExtract.put("nextAction",BNOnlineConstants.NEXT_ACTION_EXTRACT_PDF);  
>  
>  request.setAttribute("paramValuesExtract",paramValuesExtract);
> %> 
>  
>target="_blank"
>   name="paramValuesExtract">Click to retrieve extract   
> 
> However, I have dynamic values within a bean that I want to send through to
> the link.
> I have a collection retrieveExtractDetails from which I am reading
> attributes.  I want to attach extractId and organisationId to the link as
> name/value pairs.
> 
> 
> 
>target="_blank"
> name="paramValuesExtract">Click to retrieve 
> extract  
>   
> 
> 
> 
> Any advice would be apprciated.
> 
> Thanks,
> 
> Jackie. 

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>

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



multiple parameters within iterate loop

2004-02-18 Thread Jacqueline Gomes
Hi All,

I have a question regarding sending multiple parameters through a  tag.

I understand that you can set it up like this:

<%
 java.util.HashMap paramValuesExtract = new java.util.HashMap(); 
 paramValuesExtract.put("nextAction",BNOnlineConstants.NEXT_ACTION_EXTRACT_PDF);   
 
 request.setAttribute("paramValuesExtract",paramValuesExtract);  
%> 
 
Click to retrieve extract 

However, I have dynamic values within a bean that I want to send through to the link.
I have a collection retrieveExtractDetails from which I am reading attributes.  I want 
to attach extractId and organisationId to the link as name/value pairs.



Click to retrieve 
extract 



Any advice would be apprciated.

Thanks,

Jackie. 

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



Re: html:link passing multiple parameters

2004-02-16 Thread phortonpeg
Thank you both for your suggestions!  I haven't tried using EL or 
JSTL before.  I guess it's time to learn it!  Thanks again for your 
help.


--- In [EMAIL PROTECTED], Nick Faiz <[EMAIL PROTECTED]> wrote:
> Thanks Adam - that's good to know.
> 
> -Original Message-
> From: Adam L [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 16 February 2004 2:10 PM
> To: Struts Users Mailing List
> Subject: Re: html:link passing multiple parameters
> 
> There's also the use of c:url.  The catch there is that if you 
incude the
> resulting url in a html:link, it will be double contexted, which 
means you
> should use a standard href tag and use a c:out to spit out the 
final url.
> 
> 
> - Original Message -
> From: "Nick Faiz" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Sunday, February 15, 2004 4:39 PM
> Subject: RE: html:link passing multiple parameters
> 
> 
> > I did something along those lines using Struts-EL.
> >
> >  > scope="request"/>
> >
> > 
> >
> >  > value="${project.projectIdentifier}" />
> >
> >  > value="${concernType}" />
> >
> >
> >
> >  > name="paramMap" >
> > >>
> > 
> >
> >
> > Why bother with bean:write when you can use c:set ?
> >
> > Nick Faiz
> >
> > -Original Message-
> > From: phortonpeg [mailto:[EMAIL PROTECTED]
> > Sent: Monday, 16 February 2004 9:34 AM
> > To: [EMAIL PROTECTED]
> > Subject: html:link passing multiple parameters
> >
> > Hi,
> > I have a situation where I need to pass several parameters in an
> > html:link tag.  From what I've read, I know that I must use a 
HashMap
> > to send as a param which would contain the values I want to send 
to
> > the URL.  I first display the values in a table using 
logic:iterate
> > and an arrayList onto the screen.  The user should then be able to
> > select a row and send that row's parameters to an action class 
that
> > produces a pdf.
> >
> > My problem is how to extract the values from bean:write properties
> > and load them into a hashMap.  What would be the correct syntax 
to do
> > this something like this? I've tried several ways to do something
> > like the following without any luck :
> >
> > <% String docNumber =  > property="documentNumber"/> ; %>
> >
> > Here is a portion of the jsp that I am working with:
> >
> >> property="documents" >
> >  > property="docGid"/> 
> >  > property="revision"/> 
> >  > property="pgCount"/> 
> >  > property="statDate"/> 
> >  > property="itemVkey"/> 
> >  > property="title"/> 
> >  > property="autoReject"/> 
> > 
> > 
> > 
> > 
> > 
> > 
> >  <%
> >  java.util.HashMap myMap = new java.util.HashMap();
> >
> >  myMap.put("docGid", "How do I get the value of the 
property "docGid
> > from the list above???");
> >  myMap.put ("docNumber", documentNumber);
> >  myMap.put ("order", order);
> >  myMap.put ("society", "society");
> >  myMap.put ("statDate", "statDate");
> >  myMap.put ("vKey", "itemVkey");
> >  myMap.put ("supp", "supplemenat");
> >  myMap.put ("chgType", "chgType");
> >  myMap.put ("revision", "revision");
> >  pageContext.setAttribute("map", myMap);
> >
> > %>
> > 
> >
> > > altKey="action.properties"
> >   width="20" height="20" border="0"/>
> >
> >
> >
> >
> > Any ideas or suggestions would be very appreciated!
> > Thanks for you help!
> >
> > Peggy
> >
> >
> >
> >
> > --
---
> > 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]
> 
> 
-
> 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: html:link passing multiple parameters

2004-02-15 Thread Nick Faiz
Thanks Adam - that's good to know.

-Original Message-
From: Adam L [mailto:[EMAIL PROTECTED] 
Sent: Monday, 16 February 2004 2:10 PM
To: Struts Users Mailing List
Subject: Re: html:link passing multiple parameters

There's also the use of c:url.  The catch there is that if you incude the
resulting url in a html:link, it will be double contexted, which means you
should use a standard href tag and use a c:out to spit out the final url.


- Original Message -
From: "Nick Faiz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Sunday, February 15, 2004 4:39 PM
Subject: RE: html:link passing multiple parameters


> I did something along those lines using Struts-EL.
>
>  scope="request"/>
>
> 
>
>  value="${project.projectIdentifier}" />
>
>  value="${concernType}" />
>
>
>
>  name="paramMap" >
> >>
> 
>
>
> Why bother with bean:write when you can use c:set ?
>
> Nick Faiz
>
> -Original Message-
> From: phortonpeg [mailto:[EMAIL PROTECTED]
> Sent: Monday, 16 February 2004 9:34 AM
> To: [EMAIL PROTECTED]
> Subject: html:link passing multiple parameters
>
> Hi,
> I have a situation where I need to pass several parameters in an
> html:link tag.  From what I've read, I know that I must use a HashMap
> to send as a param which would contain the values I want to send to
> the URL.  I first display the values in a table using logic:iterate
> and an arrayList onto the screen.  The user should then be able to
> select a row and send that row's parameters to an action class that
> produces a pdf.
>
> My problem is how to extract the values from bean:write properties
> and load them into a hashMap.  What would be the correct syntax to do
> this something like this? I've tried several ways to do something
> like the following without any luck :
>
> <% String docNumber =  property="documentNumber"/> ; %>
>
> Here is a portion of the jsp that I am working with:
>
>property="documents" >
>  property="docGid"/> 
>  property="revision"/> 
>  property="pgCount"/> 
>  property="statDate"/> 
>  property="itemVkey"/> 
>  property="title"/> 
>  property="autoReject"/> 
> 
> 
> 
> 
> 
> 
>  <%
>  java.util.HashMap myMap = new java.util.HashMap();
>
>  myMap.put("docGid", "How do I get the value of the property "docGid
> from the list above???");
>  myMap.put ("docNumber", documentNumber);
>  myMap.put ("order", order);
>  myMap.put ("society", "society");
>  myMap.put ("statDate", "statDate");
>  myMap.put ("vKey", "itemVkey");
>  myMap.put ("supp", "supplemenat");
>  myMap.put ("chgType", "chgType");
>  myMap.put ("revision", "revision");
>  pageContext.setAttribute("map", myMap);
>
> %>
> 
>
> altKey="action.properties"
>   width="20" height="20" border="0"/>
>
>
>
>
> Any ideas or suggestions would be very appreciated!
> Thanks for you help!
>
> Peggy
>
>
>
>
> -
> 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]

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



Re: html:link passing multiple parameters

2004-02-15 Thread Adam L
There's also the use of c:url.  The catch there is that if you incude the
resulting url in a html:link, it will be double contexted, which means you
should use a standard href tag and use a c:out to spit out the final url.


- Original Message -
From: "Nick Faiz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Sunday, February 15, 2004 4:39 PM
Subject: RE: html:link passing multiple parameters


> I did something along those lines using Struts-EL.
>
>  scope="request"/>
>
> 
>
>  value="${project.projectIdentifier}" />
>
>  value="${concernType}" />
>
>
>
>  name="paramMap" >
> >>
> 
>
>
> Why bother with bean:write when you can use c:set ?
>
> Nick Faiz
>
> -----Original Message-
> From: phortonpeg [mailto:[EMAIL PROTECTED]
> Sent: Monday, 16 February 2004 9:34 AM
> To: [EMAIL PROTECTED]
> Subject: html:link passing multiple parameters
>
> Hi,
> I have a situation where I need to pass several parameters in an
> html:link tag.  From what I've read, I know that I must use a HashMap
> to send as a param which would contain the values I want to send to
> the URL.  I first display the values in a table using logic:iterate
> and an arrayList onto the screen.  The user should then be able to
> select a row and send that row's parameters to an action class that
> produces a pdf.
>
> My problem is how to extract the values from bean:write properties
> and load them into a hashMap.  What would be the correct syntax to do
> this something like this? I've tried several ways to do something
> like the following without any luck :
>
> <% String docNumber =  property="documentNumber"/> ; %>
>
> Here is a portion of the jsp that I am working with:
>
>property="documents" >
>  property="docGid"/> 
>  property="revision"/> 
>  property="pgCount"/> 
>  property="statDate"/> 
>  property="itemVkey"/> 
>  property="title"/> 
>  property="autoReject"/> 
> 
> 
> 
> 
> 
> 
>  <%
>  java.util.HashMap myMap = new java.util.HashMap();
>
>  myMap.put("docGid", "How do I get the value of the property "docGid
> from the list above???");
>  myMap.put ("docNumber", documentNumber);
>  myMap.put ("order", order);
>  myMap.put ("society", "society");
>  myMap.put ("statDate", "statDate");
>  myMap.put ("vKey", "itemVkey");
>  myMap.put ("supp", "supplemenat");
>  myMap.put ("chgType", "chgType");
>  myMap.put ("revision", "revision");
>  pageContext.setAttribute("map", myMap);
>
> %>
> 
>
> altKey="action.properties"
>   width="20" height="20" border="0"/>
>
>
>
>
> Any ideas or suggestions would be very appreciated!
> Thanks for you help!
>
> Peggy
>
>
>
>
> -
> 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: html:link passing multiple parameters

2004-02-15 Thread Nick Faiz
I did something along those lines using Struts-EL.












>>



Why bother with bean:write when you can use c:set ?

Nick Faiz

-Original Message-
From: phortonpeg [mailto:[EMAIL PROTECTED] 
Sent: Monday, 16 February 2004 9:34 AM
To: [EMAIL PROTECTED]
Subject: html:link passing multiple parameters

Hi,
I have a situation where I need to pass several parameters in an 
html:link tag.  From what I've read, I know that I must use a HashMap 
to send as a param which would contain the values I want to send to 
the URL.  I first display the values in a table using logic:iterate 
and an arrayList onto the screen.  The user should then be able to 
select a row and send that row's parameters to an action class that 
produces a pdf.  
 
My problem is how to extract the values from bean:write properties 
and load them into a hashMap.  What would be the correct syntax to do 
this something like this? I've tried several ways to do something 
like the following without any luck : 
 
<% String docNumber =  ; %>
 
Here is a portion of the jsp that I am working with:
 
  
 
 
 
 
 
 
 






 <%
 java.util.HashMap myMap = new java.util.HashMap();
 
 myMap.put("docGid", "How do I get the value of the property "docGid 
from the list above???");
 myMap.put ("docNumber", documentNumber);
 myMap.put ("order", order);
 myMap.put ("society", "society");
 myMap.put ("statDate", "statDate");
 myMap.put ("vKey", "itemVkey");
 myMap.put ("supp", "supplemenat");
 myMap.put ("chgType", "chgType");
 myMap.put ("revision", "revision");
 pageContext.setAttribute("map", myMap);
 
%>

   
   
   
   

 
Any ideas or suggestions would be very appreciated!
Thanks for you help!
 
Peggy
 
 


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



html:link passing multiple parameters

2004-02-15 Thread phortonpeg
Hi,
I have a situation where I need to pass several parameters in an 
html:link tag.  From what I've read, I know that I must use a HashMap 
to send as a param which would contain the values I want to send to 
the URL.  I first display the values in a table using logic:iterate 
and an arrayList onto the screen.  The user should then be able to 
select a row and send that row's parameters to an action class that 
produces a pdf.  
 
My problem is how to extract the values from bean:write properties 
and load them into a hashMap.  What would be the correct syntax to do 
this something like this? I've tried several ways to do something 
like the following without any luck : 
 
<% String docNumber =  ; %>
 
Here is a portion of the jsp that I am working with:
 
  
 
 
 
 
 
 
 






 <%
 java.util.HashMap myMap = new java.util.HashMap();
 
 myMap.put("docGid", "How do I get the value of the property "docGid 
from the list above???");
 myMap.put ("docNumber", documentNumber);
 myMap.put ("order", order);
 myMap.put ("society", "society");
 myMap.put ("statDate", "statDate");
 myMap.put ("vKey", "itemVkey");
 myMap.put ("supp", "supplemenat");
 myMap.put ("chgType", "chgType");
 myMap.put ("revision", "revision");
 pageContext.setAttribute("map", myMap);
 
%>

   
   
   
   

 
Any ideas or suggestions would be very appreciated!
Thanks for you help!
 
Peggy
 
 


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



Re: html:link multiple parameters

2004-01-22 Thread James Mitchell
Sorry if this was already posted, but you can always do this:







 
   Add XYZ Cart
 


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM:jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message - 
From: "Richard Hightower" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 22, 2004 8:16 PM
Subject: RE: html:link multiple parameters


> use JSTL
> 
> 
> 
> it allows you to pass parameter tags
> 
> -Original Message-
> From: Nathan Maves [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 22, 2004 9:47 AM
> To: Struts Users Mailing List
> Subject: html:link multiple parameters
> 
> 
> Is there any reason why this has not been implemented in the struts 
> html tags?
> 
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg02207.html
> 
> Say I have a List of People objects that I place into the request from 
> an action.
> 
> Now I want to iterate through them and create links with two or more 
> parameters.  I now have to add a List of HashMaps that contain these 
> two attributes of a person.  Tell me there is a better way to do this.
> 
> Nathan
> 
> 
> -
> 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: html:link multiple parameters

2004-01-22 Thread Richard Hightower
use JSTL



it allows you to pass parameter tags

-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 9:47 AM
To: Struts Users Mailing List
Subject: html:link multiple parameters


Is there any reason why this has not been implemented in the struts 
html tags?

http://www.mail-archive.com/[EMAIL PROTECTED]/msg02207.html

Say I have a List of People objects that I place into the request from 
an action.

Now I want to iterate through them and create links with two or more 
parameters.  I now have to add a List of HashMaps that contain these 
two attributes of a person.  Tell me there is a better way to do this.

Nathan


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



html:link multiple parameters

2004-01-22 Thread Nathan Maves
Is there any reason why this has not been implemented in the struts 
html tags?

http://www.mail-archive.com/[EMAIL PROTECTED]/msg02207.html

Say I have a List of People objects that I place into the request from 
an action.

Now I want to iterate through them and create links with two or more 
parameters.  I now have to add a List of HashMaps that contain these 
two attributes of a person.  Tell me there is a better way to do this.

Nathan

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


RE: html:link with multiple parameters

2004-01-21 Thread Richard Hightower
html:link has a name attribute.

Set the name to a Map (e.g. HashMap)

demo as follows: (syntax may be off)



<%
params.put("action","edit");
params.put("id","12345");
%>




Rick Hightower
Developer

Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm

Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring
-Original Message-
From: Steven Nakhla [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 10:18 AM
To: Struts
Subject: html:link with multiple parameters


I have a web app that performs a search and returns the results in a Java
Collection.  I then use logic:iterate to display the returned results.  What
I would like to add, though, is the ability to edit the returned results.

I have an ActionServlet that does security checking and such, and a
parameter is passed in to specify the action to take.  For example, the url
would look like:  http://mypage/mycontroller?action=new or
http://mypage/mycontroller?action=edit.  My question is, how can I iterate
through my returned results and create html:links that result in urls that
look like this:  http://mypage/mycontroller?action=edit&id=12345?

I know html:link has parameter properties, but those seem to specify only
one parameter.  In my case, I need to specify 2 (the value for action and
the value for id), one of which is dynamic depending on the search results.
Any advice?

Thanks in advance!
Steve Nakhla


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


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



Re: html:link with multiple parameters

2004-01-21 Thread Brad Balmer
Look at

http://struts.sourceforge.net/community/taglibs.html

LinkParam Tag

Steven Nakhla wrote:

I have a web app that performs a search and returns the results in a Java Collection.  I then use logic:iterate to display the returned results.  What I would like to add, though, is the ability to edit the returned results.

I have an ActionServlet that does security checking and such, and a parameter is passed in to specify the action to take.  For example, the url would look like:  http://mypage/mycontroller?action=new or http://mypage/mycontroller?action=edit.  My question is, how can I iterate through my returned results and create html:links that result in urls that look like this:  http://mypage/mycontroller?action=edit&id=12345?

I know html:link has parameter properties, but those seem to specify only one parameter.  In my case, I need to specify 2 (the value for action and the value for id), one of which is dynamic depending on the search results.  Any advice?

Thanks in advance!
Steve Nakhla
-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
 



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


html:link with multiple parameters

2004-01-21 Thread Steven Nakhla
I have a web app that performs a search and returns the results in a Java Collection.  
I then use logic:iterate to display the returned results.  What I would like to add, 
though, is the ability to edit the returned results.
 
I have an ActionServlet that does security checking and such, and a parameter is 
passed in to specify the action to take.  For example, the url would look like:  
http://mypage/mycontroller?action=new or http://mypage/mycontroller?action=edit.  My 
question is, how can I iterate through my returned results and create html:links that 
result in urls that look like this:  http://mypage/mycontroller?action=edit&id=12345?
 
I know html:link has parameter properties, but those seem to specify only one 
parameter.  In my case, I need to specify 2 (the value for action and the value for 
id), one of which is dynamic depending on the search results.  Any advice?
 
Thanks in advance!
Steve Nakhla


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Re: best way to use multiple parameters with html:link tags

2004-01-14 Thread Kris Schneider
Because the "std" tags are, well, standard? ;-) Seriously, all things being
equal (and it's not always obvious when they are), I opt for JSTL because it's
now a standard and its expression language has been incorporated into the JSP
2.0 spec. A tag like  can't be replaced by JSTL because it can make
direct use of the framework ("action" and "forward" attributes), it's not just a
"utility" tag.

Quoting Nathan Maves <[EMAIL PROTECTED]>:

> Looks like this will work!  Is there any reason to use the std tags vs 
> the struts tags? (i.e. forEach vs iterate)
> 
> ~N
> On Jan 14, 2004, at 10:03 AM, Kris Schneider wrote:
> 
> > It's not too big a deal, just reuse a single map with JSTL:
> >
> > 
> > 
> >   
> >   
> >   
> >   ...
> > 
> >
> > Quoting Nathan Maves <[EMAIL PROTECTED]>:
> >
> >> I have a collection of objects that I am interating over in my jsp.  I
> >> would like to create links to another action with a few of the
> >> properties of the beans in the collection.  From the docs I see that
> >> you have to use a java.util.Map if you want to have multiple params on
> >> a html:link tag.  Is there no other way then creating a map for each
> >> iteration of my collection?
> >>
> >> Nathan
> >
> > -- 
> > Kris Schneider 
> > D.O.Tech   

-- 
Kris Schneider 
D.O.Tech   

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



Re: best way to use multiple parameters with html:link tags

2004-01-14 Thread Nathan Maves
Looks like this will work!  Is there any reason to use the std tags vs 
the struts tags? (i.e. forEach vs iterate)

~N
On Jan 14, 2004, at 10:03 AM, Kris Schneider wrote:
It's not too big a deal, just reuse a single map with JSTL:



  
  
  
  ...

Quoting Nathan Maves <[EMAIL PROTECTED]>:

I have a collection of objects that I am interating over in my jsp.  I
would like to create links to another action with a few of the
properties of the beans in the collection.  From the docs I see that
you have to use a java.util.Map if you want to have multiple params on
a html:link tag.  Is there no other way then creating a map for each
iteration of my collection?
Nathan
--
Kris Schneider 
D.O.Tech   
-
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: best way to use multiple parameters with html:link tags

2004-01-14 Thread Kris Schneider
It's not too big a deal, just reuse a single map with JSTL:



  
  
  
  ...


Quoting Nathan Maves <[EMAIL PROTECTED]>:

> I have a collection of objects that I am interating over in my jsp.  I 
> would like to create links to another action with a few of the 
> properties of the beans in the collection.  From the docs I see that 
> you have to use a java.util.Map if you want to have multiple params on 
> a html:link tag.  Is there no other way then creating a map for each 
> iteration of my collection?
> 
> Nathan

-- 
Kris Schneider 
D.O.Tech   

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



best way to use multiple parameters with html:link tags

2004-01-14 Thread Nathan Maves
I have a collection of objects that I am interating over in my jsp.  I 
would like to create links to another action with a few of the 
properties of the beans in the collection.  From the docs I see that 
you have to use a java.util.Map if you want to have multiple params on 
a html:link tag.  Is there no other way then creating a map for each 
iteration of my collection?

Nathan

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


Re: Multiple parameters

2003-10-26 Thread Richard Yee
Rajat,
Perhaps I'm missing something here, but by definition, one of your radio 
buttons should be checked. If you display your form without having any of 
your radio buttons checked, then it amounts to a checkbox. If you 
initialize your form bean correctly, one will be checked and then, you 
shouldn't need to validate the radio button at all.

Regards,

Richard

At 10:30 PM 10/25/2003 -0700, you wrote:
Hello,
 I am still stuck with the multiple parameter problem. I shall try to
explain the problem again. Maybe someone could help.
I have a form, which has a number of records to be displayed.
A checkbox, a textbox, two radio buttons with the same name. I have the
following objective.
A. perform validation for the checkbox that is selected. I need to
ensure that textbox contains value greater that zero and either of the
radio buttons where selected
B. I need to iterate though the list of data. Ie for the checkbox that
was selected and then save the information in the database.
I have tried using 
Pls gimme some pointers or help :(((

Really really stuck!





Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]
-
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: Multiple parameters

2003-10-26 Thread Rajat Pandit
I seriously have other issues right now! But I guess it does work. Tht's
how you get the validate function to check if you entered a float value
or not.

-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 26, 2003 7:02 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters


Are you sure you can use float arrays in an ActionForm.
I think ActionForm beans accept only String values. It's up to you to do
conversion from/to Float.

Rajat Pandit wrote:
> Hello mark,
> This is my situtation
> 
> This is an extract from my action form
> 
> private float[] bidAmount;
> 
> public float[] getBidAmount() {
> return bidAmount;
> }
> 
> public void setBidAmount(float[] bidAmount) {
> this.bidAmount = bidAmount;
> }
> 
> 
> In my jsp I want this to store bidAmounts for different products and 
> hence an array implementation. This is what I wrote in my jsp.
> 
>  indexed="true"/>
> 
> I want it to print something like this for the multiple bidAmount 
>   name="bidAmount[1]" > 
> 
> 
> But instead thisis what iam getting.
>  name="org.apache.struts.taglib.html.BEAN[0].bidAmount" size="3" 
> value="" class="flat" />
> 
> I don't know if this is right or wrong(nor do I care right now!!!) but

> whichever way I need to know how to iterate the data and also in case 
> of an error, it should re populate the html:text with the data from 
> the array.
> 
> Somebody help!! :(((99
> 
> 
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 26, 2003 4:47 AM
> To: Struts Users Mailing List
> Subject: Re: Multiple parameters
> 
> 
> Need to know what your validator.xml looks like and form-bean stuff in
> your struts-config.
> 
> Just sticking  and
> just because its displayed doesn't mean its working..
> 
> So give more detail have read the documents. Forget about databases 
> for
> now and just think about getting your form properties into your
action.
> 
> is the form property an indexed property? How are they defined
> (actionForm or dynaactionform?)
> 
> 
> 
> On Sunday, October 26, 2003, at 05:30 AM, Rajat Pandit wrote:
> 
> 
>>Hello,
>> I am still stuck with the multiple parameter problem. I shall try to
>>explain the problem again. Maybe someone could help. I have a form, 
>>which has a number of records to be displayed. A checkbox, a textbox, 
>>two radio buttons with the same name. I have the following objective.
>>
>>A. perform validation for the checkbox that is selected. I need to
>>ensure that textbox contains value greater that zero and either of the
> 
> 
>>radio buttons where selected B. I need to iterate though the list of
>>data. Ie for the checkbox that was selected and then save the 
>>information in the database.
>>
>>I have tried using >I still cant figure out how to iterate though it as I will need to do
>>that
>>in the validate() and execute() method.
>>
>>Pls gimme some pointers or help :(((
>>
>>Really really stuck!
>>
>>
>>
>>
>>
>>Rajat Pandit | [EMAIL PROTECTED]
>>+91 612 3117606
>>[ Developer and Part Time Human Being]
>>
>>
>>-
>>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]
> 
> 
> .
> 


-
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: Multiple parameters

2003-10-26 Thread Mark Lowe
Its certainly the case with dynaforms, that life is easier just to have 
everything as strings including any nested beans..




I'd stick to strings, and perhaps organise things so you have a bid 
object that you nest in your form.

this would result you being less confused.




By your question I guess that your bid object class is part of you 
object model (stuff from db in this case)

If you using 1.1 here's how i'd be thinking about the problem..



[if you know how big you array is going to be define here, else just 
scope the form to session.



..
a bid bean
..
public class BidBean {
private String amount;

public String getAmount() {
return amount;
}
public void setAmount(String str) {
this.amount = str;
}
}
..
ArrayList bidList = new ArrayList();
bidList.add(new BidBean());
theForm.set("bid",bidList);

request.setAttribute("bid",bidList.toArray());

..




..
Assuming you've an existing om and thats why you seem a little concrete 
in your thinking, here's where to think about bringing stuff together.
..

DynaActionForm theForm = (DynaActionForm) form;

ArrayList bidList = (ArrayList) theForm.get("bid");

for(int i = 0;i < bidList.szie();i++) {
BidBean bid = (BidBean) bidList.get(i);

.. now copy the properties to your model classes. You'll need to change 
strings to floats etc. and set the values accordingly

}

..

when your action servlets get kinda long, you start moving this sort of 
thing out to your model layer.

Cheers Mark

On Sunday, October 26, 2003, at 03:01 PM, Todor Sergueev Petkov wrote:

Are you sure you can use float arrays in an ActionForm.
I think ActionForm beans accept only String values. It's up to you
to do conversion from/to Float.
Rajat Pandit wrote:
Hello mark,
This is my situtation This is an extract from my action form
private float[] bidAmount;
public float[] getBidAmount() {
return bidAmount;
}
public void setBidAmount(float[] bidAmount) {
this.bidAmount = bidAmount;
}
In my jsp I want this to store bidAmounts for different products and
hence an array implementation.
This is what I wrote in my jsp.

indexed="true"/>
I want it to print something like this for the multiple bidAmount



But instead thisis what iam getting.

name="org.apache.struts.taglib.html.BEAN[0].bidAmount" size="3" 
value=""
class="flat" />
I don't know if this is right or wrong(nor do I care right now!!!) but
whichever way I need to know how to iterate the data and also in case 
of
an error, it should re populate the html:text with the data from the
array.
Somebody help!! :(((99
-Original Message-----
From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Sunday, October 
26, 2003 4:47 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters
Need to know what your validator.xml looks like and form-bean stuff 
in your struts-config.
Just sticking 
So give more detail have read the documents. Forget about databases 
for now and just think about getting your form properties into your 
action.
is the form property an indexed property? How are they defined 
(actionForm or dynaactionform?)
On Sunday, October 26, 2003, at 05:30 AM, Rajat Pandit wrote:
Hello,
I am still stuck with the multiple parameter problem. I shall try to 
explain the problem again. Maybe someone could help. I have a form, 
which has a number of records to be displayed. A checkbox, a 
textbox, two radio buttons with the same name. I have the following 
objective.

A. perform validation for the checkbox that is selected. I need to 
ensure that textbox contains value greater that zero and either of 
the
radio buttons where selected B. I need to iterate though the list of 
data. Ie for the checkbox that was selected and then save the 
information in the database.

I have tried using 
I
still cant figure out how to iterate though it as I will need to do 
that
in the validate() and execute() method.

Pls gimme some pointers or help :(((

Really really stuck!





Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]
-
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]
.


-
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: Multiple parameters

2003-10-26 Thread Mark Lowe
my response was about indexed properties. and the next man was just 
suggesting you use strings rather than float.

fred's answer looks like it will work, in principle its along the same 
lines as mine, just he's not nesting a bean in the form bean. So its 
more along what you've got already.

there's been a few responses that put you on the right track.. even if 
they're not the exactly what you're looking for, they'll give you some 
insight..

i wouldn't worry about upsetting or hurting anyone, its just 
frustrating when you see a whole list of answers and you obviously 
haven't taken the time to read them. the docs are good as well.

Cheers Mark

On Sunday, October 26, 2003, at 05:04 PM, Rajat Pandit wrote:

Sorry mark, that wasn't addressed to you. I was more concenred about 
the
indexed properties, and not about the data type.  I am really sorry if 
I
conveyed the wrong message. Hope you will forgive me, I didn't mean to
hurt or upset anyone.

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 8:19 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters
Look man I know what its like being up against the wire, but you're
demanding that someone else bails you out the chaos. don't try and
build apps around validator you'll run into trouble.
If you took a proper look at the responses instead of wetting your
pants you might make some progress.
http://jakarta.apache.org/struts/

I agree, you have issues.. Bye..

On Sunday, October 26, 2003, at 03:56 PM, Rajat Pandit wrote:

I seriously have other issues right now! But I guess it does work.
Tht's
how you get the validate function to check if you entered a float
value
or not.

-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 7:02 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters
Are you sure you can use float arrays in an ActionForm.
I think ActionForm beans accept only String values. It's up to you to
do
conversion from/to Float.
Rajat Pandit wrote:
Hello mark,
This is my situtation
This is an extract from my action form

private float[] bidAmount;

public float[] getBidAmount() {
return bidAmount;
}
public void setBidAmount(float[] bidAmount) {
this.bidAmount = bidAmount;
}
In my jsp I want this to store bidAmounts for different products and
hence an array implementation. This is what I wrote in my jsp.

I want it to print something like this for the multiple bidAmount
  
But instead thisis what iam getting.

I don't know if this is right or wrong(nor do I care right now!!!)
but

whichever way I need to know how to iterate the data and also in case

of an error, it should re populate the html:text with the data from
the array.
Somebody help!! :(((99

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 4:47 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters
Need to know what your validator.xml looks like and form-bean stuff
in your struts-config.
Just sticking 
So give more detail have read the documents. Forget about databases
for now and just think about getting your form properties into your
action.
is the form property an indexed property? How are they defined
(actionForm or dynaactionform?)


On Sunday, October 26, 2003, at 05:30 AM, Rajat Pandit wrote:


Hello,
I am still stuck with the multiple parameter problem. I shall try to

explain the problem again. Maybe someone could help. I have a form,
which has a number of records to be displayed. A checkbox, a
textbox, two radio buttons with the same name. I have the following
objective.
A. perform validation for the checkbox that is selected. I need to
ensure that textbox contains value greater that zero and either of
the


radio buttons where selected B. I need to iterate though the list of

data. Ie for the checkbox that was selected and then save the
information in the database.
I have tried using 
I still cant figure out how to iterate though it as I will need to
do that in the validate() and execute() method.
Pls gimme some pointers or help :(((

Really really stuck!





Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]

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



-
To uns

RE: Multiple parameters

2003-10-26 Thread Rajat Pandit
Sorry mark, that wasn't addressed to you. I was more concenred about the
indexed properties, and not about the data type.  I am really sorry if I
conveyed the wrong message. Hope you will forgive me, I didn't mean to
hurt or upset anyone. 


-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 26, 2003 8:19 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters


Look man I know what its like being up against the wire, but you're 
demanding that someone else bails you out the chaos. don't try and 
build apps around validator you'll run into trouble.

If you took a proper look at the responses instead of wetting your 
pants you might make some progress.

http://jakarta.apache.org/struts/

I agree, you have issues.. Bye..

On Sunday, October 26, 2003, at 03:56 PM, Rajat Pandit wrote:

> I seriously have other issues right now! But I guess it does work.
> Tht's
> how you get the validate function to check if you entered a float
value
> or not.
>
> -Original Message-
> From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 26, 2003 7:02 AM
> To: Struts Users Mailing List
> Subject: Re: Multiple parameters
>
>
> Are you sure you can use float arrays in an ActionForm.
> I think ActionForm beans accept only String values. It's up to you to
> do
> conversion from/to Float.
>
> Rajat Pandit wrote:
>> Hello mark,
>> This is my situtation
>>
>> This is an extract from my action form
>>
>> private float[] bidAmount;
>>
>> public float[] getBidAmount() {
>> return bidAmount;
>> }
>>
>> public void setBidAmount(float[] bidAmount) {
>> this.bidAmount = bidAmount;
>> }
>>
>>
>> In my jsp I want this to store bidAmounts for different products and 
>> hence an array implementation. This is what I wrote in my jsp.
>>
>> > indexed="true"/>
>>
>> I want it to print something like this for the multiple bidAmount 
>>  > name="bidAmount[1]" > 
>>
>>
>> But instead thisis what iam getting.
>> > name="org.apache.struts.taglib.html.BEAN[0].bidAmount" size="3" 
>> value="" class="flat" />
>>
>> I don't know if this is right or wrong(nor do I care right now!!!) 
>> but
>
>> whichever way I need to know how to iterate the data and also in case

>> of an error, it should re populate the html:text with the data from 
>> the array.
>>
>> Somebody help!! :(((99
>>
>>
>> -Original Message-
>> From: Mark Lowe [mailto:[EMAIL PROTECTED]
>> Sent: Sunday, October 26, 2003 4:47 AM
>> To: Struts Users Mailing List
>> Subject: Re: Multiple parameters
>>
>>
>> Need to know what your validator.xml looks like and form-bean stuff 
>> in your struts-config.
>>
>> Just sticking > and just because its displayed doesn't mean its working..
>>
>> So give more detail have read the documents. Forget about databases 
>> for now and just think about getting your form properties into your
> action.
>>
>> is the form property an indexed property? How are they defined 
>> (actionForm or dynaactionform?)
>>
>>
>>
>> On Sunday, October 26, 2003, at 05:30 AM, Rajat Pandit wrote:
>>
>>
>>> Hello,
>>> I am still stuck with the multiple parameter problem. I shall try to

>>> explain the problem again. Maybe someone could help. I have a form, 
>>> which has a number of records to be displayed. A checkbox, a 
>>> textbox, two radio buttons with the same name. I have the following 
>>> objective.
>>>
>>> A. perform validation for the checkbox that is selected. I need to 
>>> ensure that textbox contains value greater that zero and either of 
>>> the
>>
>>
>>> radio buttons where selected B. I need to iterate though the list of

>>> data. Ie for the checkbox that was selected and then save the 
>>> information in the database.
>>>
>>> I have tried using >> but
>
>>> I still cant figure out how to iterate though it as I will need to 
>>> do that in the validate() and execute() method.
>>>
>>> Pls gimme some pointers or help :(((
>>>
>>> Really really stuck!
>>>
>>>
>>>
>>>
>>>
>>> Rajat Pandit | [EMAIL PROTECTED]
>>> +91 612 3117606
>>> [ Developer and Part Time Human Being]
>>>
>>>
>>> -

Re: Multiple parameters

2003-10-26 Thread Todor Sergueev Petkov
Are you sure you can use float arrays in an ActionForm.
I think ActionForm beans accept only String values. It's up to you
to do conversion from/to Float.
Rajat Pandit wrote:
Hello mark,
This is my situtation 

This is an extract from my action form

private float[] bidAmount;

public float[] getBidAmount() {
return bidAmount;
}
public void setBidAmount(float[] bidAmount) {
this.bidAmount = bidAmount;
}
In my jsp I want this to store bidAmounts for different products and
hence an array implementation.
This is what I wrote in my jsp.

I want it to print something like this for the multiple bidAmount



But instead thisis what iam getting.

I don't know if this is right or wrong(nor do I care right now!!!) but
whichever way I need to know how to iterate the data and also in case of
an error, it should re populate the html:text with the data from the
array.
Somebody help!! :(((99

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 26, 2003 4:47 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters

Need to know what your validator.xml looks like and form-bean stuff in 
your struts-config.

Just sticking 

So give more detail have read the documents. Forget about databases for 
now and just think about getting your form properties into your action.

is the form property an indexed property? How are they defined 
(actionForm or dynaactionform?)



On Sunday, October 26, 2003, at 05:30 AM, Rajat Pandit wrote:


Hello,
I am still stuck with the multiple parameter problem. I shall try to 
explain the problem again. Maybe someone could help. I have a form, 
which has a number of records to be displayed. A checkbox, a textbox, 
two radio buttons with the same name. I have the following objective.

A. perform validation for the checkbox that is selected. I need to 
ensure that textbox contains value greater that zero and either of the


radio buttons where selected B. I need to iterate though the list of 
data. Ie for the checkbox that was selected and then save the 
information in the database.

I have tried using 
I
still cant figure out how to iterate though it as I will need to do 
that
in the validate() and execute() method.

Pls gimme some pointers or help :(((

Really really stuck!





Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]
-
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]
.



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


Re: Multiple parameters

2003-10-26 Thread Mark Lowe
Look man I know what its like being up against the wire, but you're 
demanding that someone else bails you out the chaos. don't try and 
build apps around validator you'll run into trouble.

If you took a proper look at the responses instead of wetting your 
pants you might make some progress.

http://jakarta.apache.org/struts/

I agree, you have issues.. Bye..

On Sunday, October 26, 2003, at 03:56 PM, Rajat Pandit wrote:

I seriously have other issues right now! But I guess it does work. 
Tht's
how you get the validate function to check if you entered a float value
or not.

-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 7:02 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters
Are you sure you can use float arrays in an ActionForm.
I think ActionForm beans accept only String values. It's up to you to 
do
conversion from/to Float.

Rajat Pandit wrote:
Hello mark,
This is my situtation
This is an extract from my action form

private float[] bidAmount;

public float[] getBidAmount() {
return bidAmount;
}
public void setBidAmount(float[] bidAmount) {
this.bidAmount = bidAmount;
}
In my jsp I want this to store bidAmounts for different products and
hence an array implementation. This is what I wrote in my jsp.

I want it to print something like this for the multiple bidAmount
  
But instead thisis what iam getting.

I don't know if this is right or wrong(nor do I care right now!!!) but

whichever way I need to know how to iterate the data and also in case
of an error, it should re populate the html:text with the data from
the array.
Somebody help!! :(((99

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 4:47 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters
Need to know what your validator.xml looks like and form-bean stuff in
your struts-config.
Just sticking 
So give more detail have read the documents. Forget about databases
for
now and just think about getting your form properties into your
action.
is the form property an indexed property? How are they defined
(actionForm or dynaactionform?)


On Sunday, October 26, 2003, at 05:30 AM, Rajat Pandit wrote:


Hello,
I am still stuck with the multiple parameter problem. I shall try to
explain the problem again. Maybe someone could help. I have a form,
which has a number of records to be displayed. A checkbox, a textbox,
two radio buttons with the same name. I have the following objective.
A. perform validation for the checkbox that is selected. I need to
ensure that textbox contains value greater that zero and either of 
the


radio buttons where selected B. I need to iterate though the list of
data. Ie for the checkbox that was selected and then save the
information in the database.
I have tried using 
I still cant figure out how to iterate though it as I will need to do
that
in the validate() and execute() method.
Pls gimme some pointers or help :(((

Really really stuck!





Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]
-
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]
.



-
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: Multiple parameters

2003-10-26 Thread Rajat Pandit
Hello mark,
This is my situtation 

This is an extract from my action form

private float[] bidAmount;

public float[] getBidAmount() {
return bidAmount;
}

public void setBidAmount(float[] bidAmount) {
this.bidAmount = bidAmount;
}


In my jsp I want this to store bidAmounts for different products and
hence an array implementation.
This is what I wrote in my jsp.



I want it to print something like this for the multiple bidAmount





But instead thisis what iam getting.


I don't know if this is right or wrong(nor do I care right now!!!) but
whichever way I need to know how to iterate the data and also in case of
an error, it should re populate the html:text with the data from the
array.

Somebody help!! :(((99


-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 26, 2003 4:47 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters


Need to know what your validator.xml looks like and form-bean stuff in 
your struts-config.

Just sticking  Hello,
>  I am still stuck with the multiple parameter problem. I shall try to 
> explain the problem again. Maybe someone could help. I have a form, 
> which has a number of records to be displayed. A checkbox, a textbox, 
> two radio buttons with the same name. I have the following objective.
>
> A. perform validation for the checkbox that is selected. I need to 
> ensure that textbox contains value greater that zero and either of the

> radio buttons where selected B. I need to iterate though the list of 
> data. Ie for the checkbox that was selected and then save the 
> information in the database.
>
> I have tried using  I
> still cant figure out how to iterate though it as I will need to do 
> that
> in the validate() and execute() method.
>
> Pls gimme some pointers or help :(((
>
> Really really stuck!
>
>
>
>
>
> Rajat Pandit | [EMAIL PROTECTED]
> +91 612 3117606
> [ Developer and Part Time Human Being]
>
>
> -
> 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: Multiple parameters

2003-10-26 Thread Mark Lowe
Need to know what your validator.xml looks like and form-bean stuff in 
your struts-config.

Just sticking 

So give more detail have read the documents. Forget about databases for 
now and just think about getting your form properties into your action.

is the form property an indexed property? How are they defined 
(actionForm or dynaactionform?)



On Sunday, October 26, 2003, at 05:30 AM, Rajat Pandit wrote:

Hello,
 I am still stuck with the multiple parameter problem. I shall try to
explain the problem again. Maybe someone could help.
I have a form, which has a number of records to be displayed.
A checkbox, a textbox, two radio buttons with the same name. I have the
following objective.
A. perform validation for the checkbox that is selected. I need to
ensure that textbox contains value greater that zero and either of the
radio buttons where selected
B. I need to iterate though the list of data. Ie for the checkbox that
was selected and then save the information in the database.
I have tried using 
still cant figure out how to iterate though it as I will need to do 
that
in the validate() and execute() method.

Pls gimme some pointers or help :(((

Really really stuck!





Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]
-
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]


Multiple parameters

2003-10-25 Thread Rajat Pandit
Hello,
 I am still stuck with the multiple parameter problem. I shall try to
explain the problem again. Maybe someone could help.
I have a form, which has a number of records to be displayed. 
A checkbox, a textbox, two radio buttons with the same name. I have the
following objective.

A. perform validation for the checkbox that is selected. I need to
ensure that textbox contains value greater that zero and either of the
radio buttons where selected
B. I need to iterate though the list of data. Ie for the checkbox that
was selected and then save the information in the database.

I have tried using 

Re: Passing multiple parameters from a jsp page to action class - using JSTL - How?

2003-10-15 Thread Kris Schneider

  
  


Quoting Joanne L Corless <[EMAIL PROTECTED]>:

> Hi,
> 
> Spurred on with my recent success regarding passing parameters on html:link
> I now want to pass 2 parameters into the action class from the jsp. I
> realise I have to create a java.util.map to do this but how can I combine
> this with using the JSTL?
> 
> i.e. Currently I am passing in one parameter
> 
>paramId="pageName"
>   paramName="topMenuItem"
>   paramProperty="menuItemName"/>
> 
> which equates on rendering to an  ="/changePage?pageName=menuItemNameValue">
> 
> Now I need to end up with a 
="/changePage?pageName=menuItemNameValue&menuBlock=menuBlockValue">.
>  Which I am assuming needs the html:link to be
> 
>name="paramMap"/>
> 
> Therefore how using the JSTL can I instantiate a java.util.map and populate
> it? It is simple enough to do in a java scriptlet
> 
> <% java.util.Map paramMap = new HashMap();
> paramMap.put("pageName", "menuItemNameValue");
> paramMap.put("menuBlock","menuBlockValue");
> %>
> 
> but I am trying to follow best practices and use the tag libraries
> 
> Regards
> 
> Joanne Corless
> 
> CSC Computer Sciences Limited
> (   Office +44 (0)1772 318025
> ( Mobile +44 (0)7767 656588
> * email [EMAIL PROTECTED]
> 
> 
> Based at: CSC, Alliance House, Library Road, Chorley, Lancs, PR6 7EN
> CSC Computer Sciences Limited: Registered in England, No. 963578.
> Registered office: Royal Pavilion, Wellesley Road, Aldershot, Hampshire,
> GU11 1PZ.

-- 
Kris Schneider 
D.O.Tech   

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



Passing multiple parameters from a jsp page to action class - using JSTL - How?

2003-10-15 Thread Joanne L Corless
Hi,

Spurred on with my recent success regarding passing parameters on html:link
I now want to pass 2 parameters into the action class from the jsp. I
realise I have to create a java.util.map to do this but how can I combine
this with using the JSTL?

i.e. Currently I am passing in one parameter



which equates on rendering to an 

Now I need to end up with a .
 Which I am assuming needs the html:link to be



Therefore how using the JSTL can I instantiate a java.util.map and populate
it? It is simple enough to do in a java scriptlet

<% java.util.Map paramMap = new HashMap();
paramMap.put("pageName", "menuItemNameValue");
paramMap.put("menuBlock","menuBlockValue");
%>

but I am trying to follow best practices and use the tag libraries

Regards

Joanne Corless

CSC Computer Sciences Limited
(   Office +44 (0)1772 318025
( Mobile +44 (0)7767 656588
* email [EMAIL PROTECTED]


Based at: CSC, Alliance House, Library Road, Chorley, Lancs, PR6 7EN
CSC Computer Sciences Limited: Registered in England, No. 963578.
Registered office: Royal Pavilion, Wellesley Road, Aldershot, Hampshire,
GU11 1PZ.




This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.






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



RE: multiple parameters for message resources

2003-06-18 Thread salgado . pc

The problem is with javascript that the validator generates.
The html:javascript doesnt have a bundle parameter (html:error, for example has
bundle parameter) so i am obliged to use the default
resource has the error message resource (which i really do not want).
I am using a default resource for module specific messages (text+images) i also
have a
module form resource (field labels and other form related messages) and i wanted
a error application resource
(for the standard error.required and custom error messages).

Since i dont have any other way of passing the bundle to the javascript
messages, i was
checking if it was possible, on the resource declaration, for a bundle to
inherit some properties (
parameter="moduleA.properties, error.properties").

Pedro Salgado




 Internet Mail Message  
 Received from host:  daedalus.apache.org   
 [208.185.179.12]   



From: "Mike Jasnowski" <[EMAIL PROTECTED]> on 17-06-2003 18:23
   
 "Mike Jasnowski"   To:   "Struts Users Mailing List"  
   <[EMAIL PROTECTED]><[EMAIL PROTECTED]>  
Cc:(bcc: Pedroemanuel Salgado-PC/PGI)  
    Subject:  RE: multiple parameters for message  
 17-06-2003 19:23resources 
  Please respond to "Struts Users  
Mailing List"  
 <[EMAIL PROTECTED]>  
   





Unless I misunderstood your question, why don't you just define two message
resources? One as the base/default w/o a "parameter" att, and one
app-specific with your "parameter" attr?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 1:02 PM
To: [EMAIL PROTECTED]
Subject: multiple parameters for message resources



I want to be able to pass multiple parameters for a message resource
so that i can define common message resources in one properties file and the
module specific message resources on another.

I think Struts doesnt support this (tried and it didnt work)... so do i need
to
extend the org.apache.struts.config.MessageResourcesConfig
and make my own implementation, or is there another way?

Example:
base.error.resources
module.error.resources



Pedro Salgado


-
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: embedding multiple parameters and associated values in a

2003-06-17 Thread Kris Schneider
Oh, I *do* consider links to be part of the view layer. I was really 
referring to the mechanics of creating and populating the maps that hold 
the parameters for the links. For instance, you could create a 
collection of maps (or "link beans" that encapsulate whatever data you 
need to render a link) in an action that operates on the request prior 
to the JSP instead of creating the maps on-the-fly in the JSP.

David Graham wrote:
Personally, I think a custom tag would be overkill for something JSTL 
can handle pretty easily (assuming you're running in a JSP 1.2 
container):





  

From a pure MVC perspective, I suppose you could argue that even 
that's an abuse of the view layer...


Not if you consider links to be part of the view ;-).

David

Sandeep Takhar wrote:

Not a bad idea to create a custom tag to do this for
you either.
sandeep
--- Carl Walker <[EMAIL PROTECTED]> wrote:
Here's an example where I make a URL with two
parameters, 'action' and
'accountId'.
'account' is a pageContext-scoped variable put on
the page by the
logic:iterate tag.
  <%
 HashMap editParams = new HashMap();
 editParams.put("action",
"prepareEditForm");
 editParams.put("accountId",
String.valueOf(((Account)account).getAccountId()));
 pageContext.setAttribute("editParams",
editParams);
   %>
   
 
   
Giampiero De Ciantis wrote:


I am trying to use an  item to submit


some data, but I need to

send the value of 2 parameters. How do I assign


multiple parameters within

an  tag?



Thanks



-Gp


--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>


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


Re: embedding multiple parameters and associated values in a

2003-06-17 Thread David Graham
Personally, I think a custom tag would be overkill for something JSTL can 
handle pretty easily (assuming you're running in a JSP 1.2 container):





  

From a pure MVC perspective, I suppose you could argue that even that's an 
abuse of the view layer...
Not if you consider links to be part of the view ;-).

David

Sandeep Takhar wrote:
Not a bad idea to create a custom tag to do this for
you either.
sandeep
--- Carl Walker <[EMAIL PROTECTED]> wrote:
Here's an example where I make a URL with two
parameters, 'action' and
'accountId'.
'account' is a pageContext-scoped variable put on
the page by the
logic:iterate tag.
  <%
 HashMap editParams = new HashMap();
 editParams.put("action",
"prepareEditForm");
 editParams.put("accountId",
String.valueOf(((Account)account).getAccountId()));
 pageContext.setAttribute("editParams",
editParams);
   %>
   
 
   
Giampiero De Ciantis wrote:


I am trying to use an  item to submit
some data, but I need to

send the value of 2 parameters. How do I assign
multiple parameters within

an  tag?



Thanks



-Gp
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>


-
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: embedding multiple parameters and associated values in a

2003-06-17 Thread Kris Schneider
Personally, I think a custom tag would be overkill for something JSTL 
can handle pretty easily (assuming you're running in a JSP 1.2 container):





  

From a pure MVC perspective, I suppose you could argue that even that's 
an abuse of the view layer...

Sandeep Takhar wrote:
Not a bad idea to create a custom tag to do this for
you either.
sandeep
--- Carl Walker <[EMAIL PROTECTED]> wrote:
Here's an example where I make a URL with two
parameters, 'action' and
'accountId'.
'account' is a pageContext-scoped variable put on
the page by the
logic:iterate tag.
  <%
 HashMap editParams = new HashMap();
 editParams.put("action",
"prepareEditForm");
 editParams.put("accountId",
String.valueOf(((Account)account).getAccountId()));
 pageContext.setAttribute("editParams",
editParams);
   %>
   
 
   
Giampiero De Ciantis wrote:


I am trying to use an  item to submit
some data, but I need to

send the value of 2 parameters. How do I assign
multiple parameters within

an  tag?



Thanks



-Gp
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>


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


Re: embedding multiple parameters and associated values in a

2003-06-17 Thread Sandeep Takhar
Not a bad idea to create a custom tag to do this for
you either.

sandeep
--- Carl Walker <[EMAIL PROTECTED]> wrote:
> Here's an example where I make a URL with two
> parameters, 'action' and
> 'accountId'.
> 
> 'account' is a pageContext-scoped variable put on
> the page by the
> logic:iterate tag.
> 
><%
>   HashMap editParams = new HashMap();
>   editParams.put("action",
> "prepareEditForm");
>   editParams.put("accountId",
> String.valueOf(((Account)account).getAccountId()));
>   pageContext.setAttribute("editParams",
> editParams);
> %>
> 
>  name="editParams">
>property="systemName" />
> 
> 
> 
> Giampiero De Ciantis wrote:
> 
> > I am trying to use an  item to submit
> some data, but I need to
> > send the value of 2 parameters. How do I assign
> multiple parameters within
> > an  tag?
> >
> >
> >
> > Thanks
> >
> >
> >
> > -Gp
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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

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



Re: embedding multiple parameters and associated values in a

2003-06-17 Thread Carl Walker
Here's an example where I make a URL with two parameters, 'action' and
'accountId'.

'account' is a pageContext-scoped variable put on the page by the
logic:iterate tag.

   <%
  HashMap editParams = new HashMap();
  editParams.put("action", "prepareEditForm");
  editParams.put("accountId",
String.valueOf(((Account)account).getAccountId()));
  pageContext.setAttribute("editParams", editParams);
%>


  



Giampiero De Ciantis wrote:

> I am trying to use an  item to submit some data, but I need to
> send the value of 2 parameters. How do I assign multiple parameters within
> an  tag?
>
>
>
> Thanks
>
>
>
> -Gp


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



RE: embedding multiple parameters and associated values in a

2003-06-17 Thread David Bolsover
take a look at the jstl  tag - it can accept multiple  tags.

db

-Original Message-
From: Giampiero De Ciantis [mailto:[EMAIL PROTECTED]
Sent: 17 June 2003 18:44
To: Struts User Mailing List
Subject: embedding multiple parameters and associated values in a



I am trying to use an  item to submit some data, but I need to
send the value of 2 parameters. How do I assign multiple parameters within
an  tag?

 

Thanks

 

-Gp



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



embedding multiple parameters and associated values in a

2003-06-17 Thread Giampiero De Ciantis
I am trying to use an  item to submit some data, but I need to
send the value of 2 parameters. How do I assign multiple parameters within
an  tag?

 

Thanks

 

-Gp



Re: embedding multiple parameters and associated values in a

2003-06-17 Thread David Graham
I am trying to use an  item to submit some data, but I need to
send the value of 2 parameters. How do I assign multiple parameters within
an  tag?
http://jakarta.apache.org/struts/userGuide/struts-html.html#link

But I prefer to use the JSTL's  tag for this functionality.

David




Thanks



-Gp

_
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: embedding multiple parameters and associated values in a

2003-06-17 Thread Mike Jasnowski
You can also of course just code them using a JSP expression that represents
a string built from many parameters.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 2:45 PM
To: Struts Users Mailing List
Subject: RE: embedding multiple parameters and associated values in a



I think you can specify a map of parameters from a JavaBean that contains
them (look at the property att).  Incidentally the JSTL  tag also has a
mechanism for passing multiple params via child tags.

-Original Message-
From: Giampiero De Ciantis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 1:44 PM
To: Struts User Mailing List
Subject: embedding multiple parameters and associated values in a



I am trying to use an  item to submit some data, but I need to
send the value of 2 parameters. How do I assign multiple parameters within
an  tag?



Thanks



-Gp



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



RE: embedding multiple parameters and associated values in a

2003-06-17 Thread Mike Jasnowski
I think you can specify a map of parameters from a JavaBean that contains
them (look at the property att).  Incidentally the JSTL  tag also has a
mechanism for passing multiple params via child tags.

-Original Message-
From: Giampiero De Ciantis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 1:44 PM
To: Struts User Mailing List
Subject: embedding multiple parameters and associated values in a



I am trying to use an  item to submit some data, but I need to
send the value of 2 parameters. How do I assign multiple parameters within
an  tag?



Thanks



-Gp



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



RE: multiple parameters for message resources

2003-06-17 Thread Mike Jasnowski
Unless I misunderstood your question, why don't you just define two message
resources? One as the base/default w/o a "parameter" att, and one
app-specific with your "parameter" attr?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 1:02 PM
To: [EMAIL PROTECTED]
Subject: multiple parameters for message resources



I want to be able to pass multiple parameters for a message resource
so that i can define common message resources in one properties file and the
module specific message resources on another.

I think Struts doesnt support this (tried and it didnt work)... so do i need
to
extend the org.apache.struts.config.MessageResourcesConfig
and make my own implementation, or is there another way?

Example:
base.error.resources
module.error.resources



Pedro Salgado


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



multiple parameters for message resources

2003-06-17 Thread salgado . pc

I want to be able to pass multiple parameters for a message resource
so that i can define common message resources in one properties file and the
module specific message resources on another.

I think Struts doesnt support this (tried and it didnt work)... so do i need to
extend the org.apache.struts.config.MessageResourcesConfig
and make my own implementation, or is there another way?

Example:
base.error.resources
module.error.resources



Pedro Salgado


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



Re: nested:link with multiple parameters

2003-06-11 Thread Arron Bates
Usually, I have a Map property in my bean which makes the links for that given
object. For example, my links tend to go something like...


  


...bean code for the "getLinkParams" getter for the property looking like...


  public Map getLinkParams() {
Map m = new HashMap();

m.put("key", key);
m.put("name", name);

return m;
  }


...that way my bean objects typically know what it takes to link them to
another page, and they can hack the mapping of name & values as much as
required when called. Works a treat for me.

All the best.


Arron.



> Could someone please provide a simple example showing the use of
>  with multiple parameters?
> 
> According to the documentation:  "This tag is an extension of the
>  tag. Please consult its documentation for information on
> tag attributes and usage details." 
> 
> According to one book on Struts: "To pass multiple values to ... [an
>  tag] ... you must use a map.".
> 
> Basically, I just want to created a link to an action and pass the
> action two name/value pairs.
> 
> Thanks.
> 
> Mike

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



Re: Final word on amp problem in html:link with multiple parameters?

2003-06-11 Thread David Graham
Encoding to & is the correct behavior as documented by the W3C.  What 
browser are you using?

David


I've seen this mentioned in the mailing list archives, but couldn't find a
definitive answer.
I'm actually using the IBM Websphere Portal Struts Portlet Framework. I
believe they're using Struts 1.1 RC1 as their foundation.
I'm trying to pass multiple parameters via a map in html:link. I get the
first parameter fine, but subsequent parameters are screwed up. As has been
mentioned before, it seems that the "&" is being encoded to the html 
"&"
and instead of a parameter called "orderNum", I get a parameter called
"amp%3BorderNum". Is this a bug? Should I be doing something that I'm not?
Perhaps it's just not fixed in the Portal implementation?

Thanks for any assistance.

Tim
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Final word on amp problem in html:link with multiple parameters?

2003-06-11 Thread Tim Trentham
I've seen this mentioned in the mailing list archives, but couldn't find a
definitive answer. 

I'm actually using the IBM Websphere Portal Struts Portlet Framework. I
believe they're using Struts 1.1 RC1 as their foundation.

I'm trying to pass multiple parameters via a map in html:link. I get the
first parameter fine, but subsequent parameters are screwed up. As has been
mentioned before, it seems that the "&" is being encoded to the html "&"
and instead of a parameter called "orderNum", I get a parameter called
"amp%3BorderNum". Is this a bug? Should I be doing something that I'm not?
Perhaps it's just not fixed in the Portal implementation?

Thanks for any assistance.

Tim


nested:link with multiple parameters

2003-06-11 Thread Mike Duffy
Could someone please provide a simple example showing the use of
 with multiple parameters?

According to the documentation:  "This tag is an extension of the
 tag. Please consult its documentation for information on
tag attributes and usage details." 

According to one book on Struts: "To pass multiple values to ... [an
 tag] ... you must use a map.".

Basically, I just want to created a link to an action and pass the
action two name/value pairs.

Thanks.

Mike

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Multiple parameters

2003-01-07 Thread Mark Minnie
How do you create a link such as

Edit Bob

I am talking about having multiple HTTP get parameters  

user=BOB
AND
account=ABC123


TIA

Mark


Re: multiple parameters for dispatchaction

2003-01-03 Thread Affan Qureshi
Of course. Set up a link like:
Link Text

In the action class you can get the value of the primary key by
request.getParameter("pkey")

Was that the problem or am I missing something?

Affan
- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 1:54 PM
Subject: Re: multiple parameters for dispatchaction


> Hi Dan Tran
>
> my problem is when i click a link on the first page it will be sent to a
> particular method on the dispatchaction class, in that particular method
> i need to know the my primary key that i selected on the first page.so
> that's why i am thinking to sent it as a parameter in the url so that i
> can get it in the method in the request object, but this is an
> dispatchaction class i need to pass the parameter for the method to be
> excuted. can i pass another parameter along with this dispatchaction
> parameter in the link?
>
> Thanks
> usha
>
> Dan Tran wrote:
>
> >After reading your message more carefully,  where is your problem?  in
the
> >first page
> >or second page?
> >
> >-D
> >- Original Message -
> >From: "usha" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, January 03, 2003 12:00 AM
> >Subject: Re: multiple parameters for dispatchaction
> >
> >
> >
> >
> >>Hi Dan Tran
> >>
> >>Correct on the first page i don't have any form its just a list upon
> >>cliking the primary key field i need to fill out my ActionForm for that
> >>primary key to show it on the next page.
> >>
> >>Thanks
> >>usha
> >>
> >>Dan Tran wrote:
> >>
> >>
> >>
> >>>So you start out with a list of items and upon clicking on
> >>>the item (your primary key), it will invoke a dispatch action?  In
> >>>
> >>>
> >another
> >
> >
> >>>word, the initial screen does not have a form.?
> >>>
> >>>-D
> >>>
> >>>- Original Message -
> >>>From: "usha" <[EMAIL PROTECTED]>
> >>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>>Sent: Thursday, January 02, 2003 11:35 PM
> >>>Subject: Re: multiple parameters for dispatchaction
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>Hi Dan Tran
> >>>>
> >>>>i cannot set as hidden field because in that page all the primary keys
> >>>>list will be there upon clicking on the on of the primary key the key
> >>>>has to passed to the dispatchaction class
> >>>>
> >>>>Thanks
> >>>>usha
> >>>>
> >>>>Dan Tran wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>set your primary key as a hidden field.  This way you dont have to
pass
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>it
> >>>
> >>>
> >>>
> >>>
> >>>>>in the query string
> >>>>>
> >>>>>-D
> >>>>>
> >>>>>
> >>>>>- Original Message -
> >>>>>From: "usha" <[EMAIL PROTECTED]>
> >>>>>To: <[EMAIL PROTECTED]>
> >>>>>Sent: Thursday, January 02, 2003 10:41 PM
> >>>>>Subject: multiple parameters for dispatchaction
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Hi
> >>>>>>
> >>>>>>can we pass multiple parameters for dispatchaction.
> >>>>>>
> >>>>>>for example
> >>>>>>i wanted to go to the details page on click of link i wanted to pass
> >>>>>>the primary key value along with the dispatch action parameter
value.
> >>>>>>
> >>>>>>how can i pass the both the dispatchaction parameter and the primary
> >>>>>>
> >>>>>>
> >key
> >
> >
> >>>>>>value.
> >>>>>>
> >>>>>>Thanks
> >>>>>>usha
> >>>>>>
> >>>>>>
> >>>>>>--
> >>>>>>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]>
> >
> >
> >>>
> >>>
> >>
> >>
> >>--
> >>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: multiple parameters for dispatchaction

2003-01-03 Thread usha
Hi Dan Tran

my problem is when i click a link on the first page it will be sent to a 
particular method on the dispatchaction class, in that particular method 
i need to know the my primary key that i selected on the first page.so 
that's why i am thinking to sent it as a parameter in the url so that i 
can get it in the method in the request object, but this is an 
dispatchaction class i need to pass the parameter for the method to be 
excuted. can i pass another parameter along with this dispatchaction 
parameter in the link?

Thanks
usha

Dan Tran wrote:

After reading your message more carefully,  where is your problem?  in the
first page
or second page?

-D
- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 12:00 AM
Subject: Re: multiple parameters for dispatchaction


 

Hi Dan Tran

Correct on the first page i don't have any form its just a list upon
cliking the primary key field i need to fill out my ActionForm for that
primary key to show it on the next page.

Thanks
usha

Dan Tran wrote:

   

So you start out with a list of items and upon clicking on
the item (your primary key), it will invoke a dispatch action?  In
 

another
 

word, the initial screen does not have a form.?

-D

- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 11:35 PM
Subject: Re: multiple parameters for dispatchaction




 

Hi Dan Tran

i cannot set as hidden field because in that page all the primary keys
list will be there upon clicking on the on of the primary key the key
has to passed to the dispatchaction class

Thanks
usha

Dan Tran wrote:



   

set your primary key as a hidden field.  This way you dont have to pass


 

it


 

in the query string

-D


- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 10:41 PM
Subject: multiple parameters for dispatchaction






 

Hi

can we pass multiple parameters for dispatchaction.

for example
i wanted to go to the details page on click of link i wanted to pass
the primary key value along with the dispatch action parameter value.

how can i pass the both the dispatchaction parameter and the primary
   

key
 

value.

Thanks
usha


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

 



--
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: multiple parameters for dispatchaction

2003-01-03 Thread Dan Tran
After reading your message more carefully,  where is your problem?  in the
first page
or second page?

-D
- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 12:00 AM
Subject: Re: multiple parameters for dispatchaction


> Hi Dan Tran
>
> Correct on the first page i don't have any form its just a list upon
> cliking the primary key field i need to fill out my ActionForm for that
> primary key to show it on the next page.
>
> Thanks
> usha
>
> Dan Tran wrote:
>
> >So you start out with a list of items and upon clicking on
> >the item (your primary key), it will invoke a dispatch action?  In
another
> >word, the initial screen does not have a form.?
> >
> >-D
> >
> >- Original Message -
> >From: "usha" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Thursday, January 02, 2003 11:35 PM
> >Subject: Re: multiple parameters for dispatchaction
> >
> >
> >
> >
> >>Hi Dan Tran
> >>
> >>i cannot set as hidden field because in that page all the primary keys
> >>list will be there upon clicking on the on of the primary key the key
> >>has to passed to the dispatchaction class
> >>
> >>Thanks
> >>usha
> >>
> >>Dan Tran wrote:
> >>
> >>
> >>
> >>>set your primary key as a hidden field.  This way you dont have to pass
> >>>
> >>>
> >it
> >
> >
> >>>in the query string
> >>>
> >>>-D
> >>>
> >>>
> >>>- Original Message -
> >>>From: "usha" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Sent: Thursday, January 02, 2003 10:41 PM
> >>>Subject: multiple parameters for dispatchaction
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>Hi
> >>>>
> >>>>can we pass multiple parameters for dispatchaction.
> >>>>
> >>>>for example
> >>>>i wanted to go to the details page on click of link i wanted to pass
> >>>>the primary key value along with the dispatch action parameter value.
> >>>>
> >>>>how can i pass the both the dispatchaction parameter and the primary
key
> >>>>value.
> >>>>
> >>>>Thanks
> >>>>usha
> >>>>
> >>>>
> >>>>--
> >>>>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]>
> >
> >
>
>
>
>
> --
> 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: multiple parameters for dispatchaction

2003-01-03 Thread Dan Tran
Now I understand, you are trying to use a single dispatch action object for
all actions.

Sorry I could not figure out how to pass another param to the dispatch,
however I
have another suggestion:

Break your action object into 2 action classes

- LoadAction to process and HREF to load the object

- The dispatchAction itself.

This way you can activate the validation framework in the dispatchAction
object
If you combine all actions into dispatchAction, your initial loading action
may fail due some
of your validation rule again an empty object

-D

- If later you want to take advantage to struts validation you can
activate
- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 12:00 AM
Subject: Re: multiple parameters for dispatchaction


> Hi Dan Tran
>
> Correct on the first page i don't have any form its just a list upon
> cliking the primary key field i need to fill out my ActionForm for that
> primary key to show it on the next page.
>
> Thanks
> usha
>
> Dan Tran wrote:
>
> >So you start out with a list of items and upon clicking on
> >the item (your primary key), it will invoke a dispatch action?  In
another
> >word, the initial screen does not have a form.?
> >
> >-D
> >
> >- Original Message -
> >From: "usha" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Thursday, January 02, 2003 11:35 PM
> >Subject: Re: multiple parameters for dispatchaction
> >
> >
> >
> >
> >>Hi Dan Tran
> >>
> >>i cannot set as hidden field because in that page all the primary keys
> >>list will be there upon clicking on the on of the primary key the key
> >>has to passed to the dispatchaction class
> >>
> >>Thanks
> >>usha
> >>
> >>Dan Tran wrote:
> >>
> >>
> >>
> >>>set your primary key as a hidden field.  This way you dont have to pass
> >>>
> >>>
> >it
> >
> >
> >>>in the query string
> >>>
> >>>-D
> >>>
> >>>
> >>>- Original Message -
> >>>From: "usha" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Sent: Thursday, January 02, 2003 10:41 PM
> >>>Subject: multiple parameters for dispatchaction
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>Hi
> >>>>
> >>>>can we pass multiple parameters for dispatchaction.
> >>>>
> >>>>for example
> >>>>i wanted to go to the details page on click of link i wanted to pass
> >>>>the primary key value along with the dispatch action parameter value.
> >>>>
> >>>>how can i pass the both the dispatchaction parameter and the primary
key
> >>>>value.
> >>>>
> >>>>Thanks
> >>>>usha
> >>>>
> >>>>
> >>>>--
> >>>>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]>
> >
> >
>
>
>
>
> --
> 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: multiple parameters for dispatchaction

2003-01-03 Thread usha
Hi Dan Tran

Correct on the first page i don't have any form its just a list upon 
cliking the primary key field i need to fill out my ActionForm for that 
primary key to show it on the next page.

Thanks
usha

Dan Tran wrote:

So you start out with a list of items and upon clicking on
the item (your primary key), it will invoke a dispatch action?  In another
word, the initial screen does not have a form.?

-D

- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 11:35 PM
Subject: Re: multiple parameters for dispatchaction


 

Hi Dan Tran

i cannot set as hidden field because in that page all the primary keys
list will be there upon clicking on the on of the primary key the key
has to passed to the dispatchaction class

Thanks
usha

Dan Tran wrote:

   

set your primary key as a hidden field.  This way you dont have to pass
 

it
 

in the query string

-D


- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 10:41 PM
Subject: multiple parameters for dispatchaction




 

Hi

can we pass multiple parameters for dispatchaction.

for example
i wanted to go to the details page on click of link i wanted to pass
the primary key value along with the dispatch action parameter value.

how can i pass the both the dispatchaction parameter and the primary key
value.

Thanks
usha


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





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




Re: multiple parameters for dispatchaction

2003-01-02 Thread Dan Tran
So you start out with a list of items and upon clicking on
the item (your primary key), it will invoke a dispatch action?  In another
word, the initial screen does not have a form.?

-D

- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 11:35 PM
Subject: Re: multiple parameters for dispatchaction


> Hi Dan Tran
>
> i cannot set as hidden field because in that page all the primary keys
> list will be there upon clicking on the on of the primary key the key
> has to passed to the dispatchaction class
>
> Thanks
> usha
>
> Dan Tran wrote:
>
> >set your primary key as a hidden field.  This way you dont have to pass
it
> >in the query string
> >
> >-D
> >
> >
> >- Original Message -
> >From: "usha" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, January 02, 2003 10:41 PM
> >Subject: multiple parameters for dispatchaction
> >
> >
> >
> >
> >>Hi
> >>
> >>can we pass multiple parameters for dispatchaction.
> >>
> >>for example
> >> i wanted to go to the details page on click of link i wanted to pass
> >>the primary key value along with the dispatch action parameter value.
> >>
> >>how can i pass the both the dispatchaction parameter and the primary key
> >>value.
> >>
> >>Thanks
> >>usha
> >>
> >>
> >>--
> >>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: multiple parameters for dispatchaction

2003-01-02 Thread usha
Hi Dan Tran

i cannot set as hidden field because in that page all the primary keys 
list will be there upon clicking on the on of the primary key the key 
has to passed to the dispatchaction class

Thanks
usha

Dan Tran wrote:

set your primary key as a hidden field.  This way you dont have to pass it
in the query string

-D


- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 10:41 PM
Subject: multiple parameters for dispatchaction


 

Hi

can we pass multiple parameters for dispatchaction.

for example
i wanted to go to the details page on click of link i wanted to pass
the primary key value along with the dispatch action parameter value.

how can i pass the both the dispatchaction parameter and the primary key
value.

Thanks
usha


--
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: multiple parameters for dispatchaction

2003-01-02 Thread Dan Tran
set your primary key as a hidden field.  This way you dont have to pass it
in the query string

-D


- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 10:41 PM
Subject: multiple parameters for dispatchaction


> Hi
>
> can we pass multiple parameters for dispatchaction.
>
> for example
>  i wanted to go to the details page on click of link i wanted to pass
> the primary key value along with the dispatch action parameter value.
>
> how can i pass the both the dispatchaction parameter and the primary key
> value.
>
> Thanks
> usha
>
>
> --
> 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]>




multiple parameters for dispatchaction

2003-01-02 Thread usha
Hi

can we pass multiple parameters for dispatchaction.

for example
i wanted to go to the details page on click of link i wanted to pass 
the primary key value along with the dispatch action parameter value.

how can i pass the both the dispatchaction parameter and the primary key 
value.

Thanks
usha


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



[Tags]Sending multiple parameters to a window

2002-12-03 Thread Sri Sankaran
Using Struts 1.0.2

The gist of the problem is being able to send a variable number of parameters to a URL 
while using Javascript.

Background:
I have a list of hyperlinks on a page.  When the user selects any link I would like to 
present the URL in another window.  I can get this to work as follows

(if you aren't familiar with Nested tags, for the purposes of this discussion, they 
are identical to their  equivalent)


  


However, I have an additional requirement that the new window be "just so" (centered, 
non-resizable, etc).  So -- enter Javascript.  The above got changed to 


  


So far so good.  The called URL, however, needs several parameters to be specified by 
the caller.  Were it not for the JavaScript, I could simply set the property attribute 
of the  to the bean property that returns a Map.  How can this be 
accomplished in the present scenario where the call to the URL is mediated by script?

Sri



RE: html:link with multiple parameters

2002-11-04 Thread Karr, David


> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com]
> Sent: Monday, November 04, 2002 3:10 PM
> 
> Maybe a better way to solve my issue is to have different 
> actions... I'm
> trying to use one action for all navigation requests.  Either 
> way, I would
> still like to know if jstl would understand
> 
> 
>  value="${container.shipmentNumber}"/>
>  value="${container.equipmentNumber}"/>
> 
> 
> inside this iterator:
> 
>  type="com.matson.shipment.ejb.ShipmentContainerValue"> 

With what's provided here, I don't see any obvious problems, but I'm not a human 
compiler.  The only unknown (from our POV) is whether "ShipmentContainerValue" has 
proper accessors for "equipmentNumber" and "shipmentNumber".  Otherwise, I think this 
will work.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:link with multiple parameters

2002-11-04 Thread Cindy Horn at SF x4874
Maybe a better way to solve my issue is to have different actions... I'm
trying to use one action for all navigation requests.  Either way, I would
still like to know if jstl would understand






inside this iterator:

 

Thanks,

Cindy


-Original Message-
From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com]
Sent: Monday, November 04, 2002 3:02 PM
To: 'Struts Users Mailing List'
Subject: RE: html:link with multiple parameters


The information I've found in these threads does not provide adequate
information on how to do this dynamically.  If I use the form to create a
map, it doesn't know which item I'm iterating through in the list.  The link
I'm using now is this:



inside this iterator:

 

I would like to add another parameter to my link to say
"action=containerDetail".

Should I use jstl c tag as follows:






Is it going to know what ${container.equipmentNumber} is?  I'm asking now
before I configure my app server for JSTL.  

Thanks,

Cindy

-Original Message-
From: Kris Schneider [mailto:kris@;dotech.com]
Sent: Monday, November 04, 2002 12:37 PM
To: Struts Users Mailing List
Subject: RE: html:link with multiple parameters


Uh, battled? I hope that's not how it came off, especially if I got my butt 
kicked ;-).

Quoting Sri Sankaran <[EMAIL PROTECTED]>:

> This was just battled at quite some length earlier today.  Please see
> http://marc.theaimsgroup.com/?l=struts-user&m=103639896111848&w=2.
> 
> Sri
> 
> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com] 
> Sent: Monday, November 04, 2002 3:09 PM
> To: Struts (E-mail)
> Subject: html:link with multiple parameters
> 
> 
> Using  and java.util.Map, how do I specify more than one
> parameter?  I looked at the user's guide and I'm still unclear on how to
do
> this.
> 
> Thanks in advance,
> 
> Cindy Horn
> [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>

-- 
Kris Schneider <mailto:kris@;dotech.com>
D.O.Tech   <http://www.dotech.com/>

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: html:link with multiple parameters

2002-11-04 Thread Cindy Horn at SF x4874
The information I've found in these threads does not provide adequate
information on how to do this dynamically.  If I use the form to create a
map, it doesn't know which item I'm iterating through in the list.  The link
I'm using now is this:



inside this iterator:

 

I would like to add another parameter to my link to say
"action=containerDetail".

Should I use jstl c tag as follows:






Is it going to know what ${container.equipmentNumber} is?  I'm asking now
before I configure my app server for JSTL.  

Thanks,

Cindy

-Original Message-
From: Kris Schneider [mailto:kris@;dotech.com]
Sent: Monday, November 04, 2002 12:37 PM
To: Struts Users Mailing List
Subject: RE: html:link with multiple parameters


Uh, battled? I hope that's not how it came off, especially if I got my butt 
kicked ;-).

Quoting Sri Sankaran <[EMAIL PROTECTED]>:

> This was just battled at quite some length earlier today.  Please see
> http://marc.theaimsgroup.com/?l=struts-user&m=103639896111848&w=2.
> 
> Sri
> 
> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com] 
> Sent: Monday, November 04, 2002 3:09 PM
> To: Struts (E-mail)
> Subject: html:link with multiple parameters
> 
> 
> Using  and java.util.Map, how do I specify more than one
> parameter?  I looked at the user's guide and I'm still unclear on how to
do
> this.
> 
> Thanks in advance,
> 
> Cindy Horn
> [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>

-- 
Kris Schneider <mailto:kris@;dotech.com>
D.O.Tech   <http://www.dotech.com/>

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: html:link with multiple parameters

2002-11-04 Thread Kris Schneider
Uh, battled? I hope that's not how it came off, especially if I got my butt 
kicked ;-).

Quoting Sri Sankaran <[EMAIL PROTECTED]>:

> This was just battled at quite some length earlier today.  Please see
> http://marc.theaimsgroup.com/?l=struts-user&m=103639896111848&w=2.
> 
> Sri
> 
> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com] 
> Sent: Monday, November 04, 2002 3:09 PM
> To: Struts (E-mail)
> Subject: html:link with multiple parameters
> 
> 
> Using  and java.util.Map, how do I specify more than one
> parameter?  I looked at the user's guide and I'm still unclear on how to do
> this.
> 
> Thanks in advance,
> 
> Cindy Horn
> [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>

-- 
Kris Schneider <mailto:kris@;dotech.com>
D.O.Tech   <http://www.dotech.com/>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: html:link with multiple parameters

2002-11-04 Thread Sri Sankaran
This was just battled at quite some length earlier today.  Please see 
http://marc.theaimsgroup.com/?l=struts-user&m=103639896111848&w=2.

Sri

-Original Message-
From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com] 
Sent: Monday, November 04, 2002 3:09 PM
To: Struts (E-mail)
Subject: html:link with multiple parameters


Using  and java.util.Map, how do I specify more than one parameter?  I 
looked at the user's guide and I'm still unclear on how to do this.

Thanks in advance,

Cindy Horn
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: html:link with multiple parameters

2002-11-04 Thread Madel,Kurt
per an earlier post today:

You *should* be able to use the Map approach.  Simply build a map whose keys
are the expected parameter names and the corresponding values are the data
you wish to send.  For example:

Click Me!

In your form bean, the getter getParams() returns a Map such as:

public Map getParams() {
  Map map = new Map();
  map.put("a", "apple");
  map.put("b", "boy");
  map.put("c", "cat");
  return map;
}



-Original Message-
From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com] 
Sent: Monday, November 04, 2002 3:09 PM
To: Struts (E-mail)
Subject: html:link with multiple parameters

Using  and java.util.Map, how do I specify more than one
parameter?  I looked at the user's guide and I'm still unclear on how to do
this.

Thanks in advance,

Cindy Horn
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




html:link with multiple parameters

2002-11-04 Thread Cindy Horn at SF x4874
Using  and java.util.Map, how do I specify more than one
parameter?  I looked at the user's guide and I'm still unclear on how to do
this.

Thanks in advance,

Cindy Horn
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem populating form bean with multiple parameters of same name

2002-07-06 Thread James Mitchell

Yes, indexed properties.

here's a link to get you started...
http://husted.com/struts/resources/indexed-tags.htm



James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Dave Hodson [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 07, 2002 1:05 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Problem populating form bean with multiple parameters of
> same name
>
>
> I found the post below in the mail archives, but could not find
> any followups.
> Anyone have an idea how to get around the issue of "how Struts
> can read multiple text input
> fields, all with the same name (akin to
> ServletRequest.getParameterValues(String s) ), and
> properly populate those same fields when the JSP is displayed again"?
> Dave
>
>
>   _
>
>
>
> * From: Steven Valin
>
> * Subject: Re: Problem populating form bean with multiple
> parameters of same name
>
> * Date: Sun, 21 Oct 2001 06:03:15 -0700
>
>   _
>
> Renaud,
>
>
>
> I appreciate your response, but unfortunately when the JSP is
> regenerated and
>
> displayed, Struts places the toString() value of the String array into the
>
>  tags, such as:
>
>
>
> [Ljava.lang.String;@262bf4
>
>
>
> I have also tried a twist on this strategy, with:
>
>
>
> private String propertyName[];
>
> private int propertyNameIndex;
>
>
>
> public void setPropertyName(String[] propertyName) {
>
> this.propertyName = propertyName;
>
> propertyNameIndex = 0;
>
>}
>
>
>
> public String getPropertyName() {  // send default value if
> index out of
>
> range
>
> return ((propertyNameIndex < propertyName.length) ?
>
> propertyName[propertyNameIndex++] : "");
>
> }
>
>
>
> I was hoping that this strategy would allow the JSP to populate
> each 
> .../> field with successive calls to getPropertyName() but this
> then results in:
>
>
>
> javax.servlet.jsp.JspException: Exception thrown by getter for
> property fileName
>
> of bean org.apache.struts.taglib.html.BEAN
>
>  at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)
>
>
>
>
>
> If anybody has any other ideas on how Struts can read multiple text input
>
> fields, all with the same name (akin to
> ServletRequest.getParameterValues(String
>
> s) ), and properly populate those same fields when the JSP is
> displayed again, I
>
> would greatly appreciate your thoughts!
>
>
>
> TIA, Steve
>
>
>
>
>
> Renaud Waldura wrote:
>
>
>
> > Have you tried declaring your property as an array of strings?
>
> >
>
> > private String propertyName[];
>
> > public String[] getPropertyName() { ... }
>
> > public void setPropertyName(String[] propertyName) { ... }
>
> >
>
> > It may just work. In general I've found Struts to be amazingly
> flexible with
>
> > properties and their types. Kudos to the Struts developers!
>
> >
>
> > --Renaud
>
> >
>
>
>
> --
>
> Steven Valin
>
> [EMAIL PROTECTED]
> ---
> Dave Hodson
> MessageCast, inc.
> Email: [EMAIL PROTECTED]
> www.messagecast.net
>
>


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




Re: Problem populating form bean with multiple parameters of same name

2002-07-06 Thread Dave Hodson

I found the post below in the mail archives, but could not find any followups.
Anyone have an idea how to get around the issue of "how Struts can read multiple text 
input
fields, all with the same name (akin to ServletRequest.getParameterValues(String s) ), 
and 
properly populate those same fields when the JSP is displayed again"?
Dave


  _  



*   From: Steven Valin 

*   Subject: Re: Problem populating form bean with multiple parameters of same 
name 

*   Date: Sun, 21 Oct 2001 06:03:15 -0700 

  _  

Renaud,



I appreciate your response, but unfortunately when the JSP is regenerated and

displayed, Struts places the toString() value of the String array into the

 tags, such as:



[Ljava.lang.String;@262bf4



I have also tried a twist on this strategy, with:



private String propertyName[];

private int propertyNameIndex;



public void setPropertyName(String[] propertyName) {

this.propertyName = propertyName;

propertyNameIndex = 0;

   }



public String getPropertyName() {  // send default value if index out of

range

return ((propertyNameIndex < propertyName.length) ?

propertyName[propertyNameIndex++] : "");

}



I was hoping that this strategy would allow the JSP to populate each  field with successive calls to getPropertyName() but this then results in:



javax.servlet.jsp.JspException: Exception thrown by getter for property fileName

of bean org.apache.struts.taglib.html.BEAN

 at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)





If anybody has any other ideas on how Struts can read multiple text input

fields, all with the same name (akin to ServletRequest.getParameterValues(String

s) ), and properly populate those same fields when the JSP is displayed again, I

would greatly appreciate your thoughts!



TIA, Steve





Renaud Waldura wrote:



> Have you tried declaring your property as an array of strings?

>

> private String propertyName[];

> public String[] getPropertyName() { ... }

> public void setPropertyName(String[] propertyName) { ... }

>

> It may just work. In general I've found Struts to be amazingly flexible with

> properties and their types. Kudos to the Struts developers!

>

> --Renaud

>



--

Steven Valin

[EMAIL PROTECTED]
---
Dave Hodson 
MessageCast, inc.
Email: [EMAIL PROTECTED]
www.messagecast.net
 



Re: multiple parameters

2002-06-24 Thread Mark Nichols

In the form-bean:

[...snip...]

private HashMap parameters   = null;

[...snip...]
 /**
  * Gets the parameters
  * @return Returns a HashMap
  */
 public HashMap getParameters() {
  HashMap parameterMap = new HashMap() ;
  parameterMap.put((String)"id",this.getId()) ;
  parameterMap.put((String)"lastName",this.getLastName()) ;
  parameterMap.put((String)"firstName",this.getFirstName()) ;
  return parameterMap ;
 }
 /**
  * Sets the parameters
  * @param parameters The parameters to set
  */
 public void setParameters(HashMap parameters) {
  this.parameters = parameters;
 }

And in your JSP:


[...snip...]
  
   
  
[..snip...]


hth,


- Original Message -
From: "hans albers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 24, 2002 8:43 AM
Subject: multiple parameters


> Hi, there
>
> the question has been asked often, but I didn't find a full example.
>
> I have a List with names,ids and description,
> they are shown in a table.
> They must alle be passed in an html:link
> Passing only 1 Parameter works, all the three?
> I know that this works with java.util.map but how???
>
> type="StatusValueBean" scope="request" >
>
>   
>   
>   
>  paramProperty="id">
>
> 
>
> Would you be so kind and write me the code i need in the
> Action which is executed before the jsp which shows the list?
>
> Tanks in advance
>
> Hans
>
> _
> Downloaden Sie MSN Explorer kostenlos unter
http://explorer.msn.de/intl.asp.
>
>
> --
> 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]>




multiple parameters

2002-06-24 Thread hans albers

Hi, there

the question has been asked often, but I didn't find a full example.

I have a List with names,ids and description,
they are shown in a table.
They must alle be passed in an html:link
Passing only 1 Parameter works, all the three?
I know that this works with java.util.map but how???



  
  
  




Would you be so kind and write me the code i need in the
Action which is executed before the jsp which shows the list?

Tanks in advance

Hans

_
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




multiple parameters

2002-06-24 Thread hans albers

Hi, there

the question has been asked often, but I didn't find a full example.

I have a List with names,ids and description,
they are shown in a table.
They must alle be passed in an html:link
I know that this works with java.util.map but how???






_
Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden: 
http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Sending Multiple Parameters

2002-06-11 Thread Trieu, Danny

What I have is a complicated Struts/Tiles application.  You can download the
Struts1.1 and in there Cedric did an excellent job of putting togethers all
the examples.

> -Original Message-
> From: Harbinson, Chris (DST-CLT) [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 8:37 AM
> To:   'Struts Users Mailing List'
> Subject:  RE: Sending Multiple Parameters
> 
> Thanks Danny.
> Could you give me an example of this?
> 
> 
> -Original Message-
> From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 11:35 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Sending Multiple Parameters
> 
> 
> ahaaa  I guess you are better off using the Struts' template tag or as
> I
> would do is to use the advance templating feature contributed by Cedric,
> it
> calls Tiles  Tiles is bundle with struts 1.1 under contributor.
> 
> > -Original Message-
> > From:   Harbinson, Chris (DST-CLT)
> [SMTP:[EMAIL PROTECTED]]
> > Sent:   Tuesday, June 11, 2002 8:29 AM
> > To: '[EMAIL PROTECTED]'
> > Subject:Sending Multiple Parameters
> > 
> > Hi.
> > 
> > I have a frameset that looks to struts-config to be filled.  The code
> > looks
> > like this:
> > 
> >  >
> path="/page.jsp?workspace=workspace.jsp&navigation=nav.jsp&banner=
> > ba
> > nner.jsp"/>
> > 
> > I need to send parameters to the banner so that it will display the
> proper
> > title and buttons.  I have tried to hadnle it like this:
> > 
> >  >
> path="/page.jsp?workspace=workspace.jsp&navigation=nav.jsp&banner=
> > ba
> > nner.jsp?button1_enabled=true&button2_enabled=true"/>
> > 
> > When I do this, only the first parameter after "banner=banner.jsp?" is
> > recognized and the "button2_enabled=true" is seen as a parameter to be
> > sent
> > to the frameset, not the banner.
> > 
> > Can anyone help me figure out how to group the banner parameters
> together
> > or
> > send multiple parameters to the banner.jsp?
> > 
> > Thanks.
> > Chris
> > 
> > 
> > 
> 
> --
> 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: Sending Multiple Parameters

2002-06-11 Thread Harbinson, Chris (DST-CLT)

Thanks Danny.
Could you give me an example of this?



-Original Message-
From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 11:35 AM
To: 'Struts Users Mailing List'
Subject: RE: Sending Multiple Parameters


ahaaa  I guess you are better off using the Struts' template tag or as I
would do is to use the advance templating feature contributed by Cedric, it
calls Tiles  Tiles is bundle with struts 1.1 under contributor.

> -Original Message-
> From: Harbinson, Chris (DST-CLT) [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 8:29 AM
> To:   '[EMAIL PROTECTED]'
> Subject:  Sending Multiple Parameters
> 
> Hi.
> 
> I have a frameset that looks to struts-config to be filled.  The code
> looks
> like this:
> 
>  path="/page.jsp?workspace=workspace.jsp&navigation=nav.jsp&banner=
> ba
> nner.jsp"/>
> 
> I need to send parameters to the banner so that it will display the proper
> title and buttons.  I have tried to hadnle it like this:
> 
>  path="/page.jsp?workspace=workspace.jsp&navigation=nav.jsp&banner=
> ba
> nner.jsp?button1_enabled=true&button2_enabled=true"/>
> 
> When I do this, only the first parameter after "banner=banner.jsp?" is
> recognized and the "button2_enabled=true" is seen as a parameter to be
> sent
> to the frameset, not the banner.
> 
> Can anyone help me figure out how to group the banner parameters together
> or
> send multiple parameters to the banner.jsp?
> 
> Thanks.
> Chris
> 
> 
> 

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



RE: Sending Multiple Parameters

2002-06-11 Thread Trieu, Danny

ahaaa  I guess you are better off using the Struts' template tag or as I
would do is to use the advance templating feature contributed by Cedric, it
calls Tiles  Tiles is bundle with struts 1.1 under contributor.

> -Original Message-
> From: Harbinson, Chris (DST-CLT) [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 8:29 AM
> To:   '[EMAIL PROTECTED]'
> Subject:      Sending Multiple Parameters
> 
> Hi.
> 
> I have a frameset that looks to struts-config to be filled.  The code
> looks
> like this:
> 
>  path="/page.jsp?workspace=workspace.jsp&navigation=nav.jsp&banner=
> ba
> nner.jsp"/>
> 
> I need to send parameters to the banner so that it will display the proper
> title and buttons.  I have tried to hadnle it like this:
> 
>  path="/page.jsp?workspace=workspace.jsp&navigation=nav.jsp&banner=
> ba
> nner.jsp?button1_enabled=true&button2_enabled=true"/>
> 
> When I do this, only the first parameter after "banner=banner.jsp?" is
> recognized and the "button2_enabled=true" is seen as a parameter to be
> sent
> to the frameset, not the banner.
> 
> Can anyone help me figure out how to group the banner parameters together
> or
> send multiple parameters to the banner.jsp?
> 
> Thanks.
> Chris
> 
> 
> 

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




Sending Multiple Parameters

2002-06-11 Thread Harbinson, Chris (DST-CLT)

Hi.

I have a frameset that looks to struts-config to be filled.  The code looks
like this:



I need to send parameters to the banner so that it will display the proper
title and buttons.  I have tried to hadnle it like this:



When I do this, only the first parameter after "banner=banner.jsp?" is
recognized and the "button2_enabled=true" is seen as a parameter to be sent
to the frameset, not the banner.

Can anyone help me figure out how to group the banner parameters together or
send multiple parameters to the banner.jsp?

Thanks.
Chris






Re: d't work: how do i pass multiple parameters

2002-05-22 Thread siraj

guys any way i solved the problem of passing multiple paramters but still
wonder how come the getParameter didnt work with me

so used this technique



  
test


this works fine and the out put is

http://192.168.10.63:8080/pdmDemo/jsp/tree/pdm_treeview.do?value=level1~0~15
3~Dewina Food

- Original Message -
From: Arron Bates <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 11:03 AM
Subject: Re: d't work: how do i pass multiple parameters


> Victor Hadianto wrote:
>
> >On Mon, 22 May 2000 15:17, you wrote:
> >
> >>
> >>
> >>
> >>
> >> <%
> >>info.put("val1", request.getParameter("strCatalogname"));
> >>info.put("val2","test");
> >>%>
> >>
> >> 
> >>
> >>
> >>
> >
> >You got it wrong. Create the Map as your FormBean property and access
that map from the  tag, *not* by using the  tag.
> >
>
> Actually, the markup is fine. Specifying name only means that it will
> look for a separate reference too the map outside the bean, which is
> what Siraj is doing here. The  is simply the content which
> the hyperlink is working off.
>
> Something's either URLEncoding the parameter where it shouldn't or the
> request handler is stuffing up the processing of the query string.
>
> Arron.
>
>
> --
> 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: d't work: how do i pass multiple parameters

2002-05-21 Thread Arron Bates

Victor Hadianto wrote:

>On Mon, 22 May 2000 15:17, you wrote:
>
>>
>>
>>
>>
>> <%
>>info.put("val1", request.getParameter("strCatalogname"));
>>info.put("val2","test");
>>%>
>>
>> 
>>
>>
>>
>
>You got it wrong. Create the Map as your FormBean property and access that map from 
>the  tag, *not* by using the  tag.
>

Actually, the markup is fine. Specifying name only means that it will 
look for a separate reference too the map outside the bean, which is 
what Siraj is doing here. The  is simply the content which 
the hyperlink is working off.

Something's either URLEncoding the parameter where it shouldn't or the 
request handler is stuffing up the processing of the query string.

Arron.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: d't work: how do i pass multiple parameters

2002-05-21 Thread siraj

same probs no value

- Original Message -
From: Victor Hadianto <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 10:46 AM
Subject: Re: d't work: how do i pass multiple parameters


> > actully its like this
> >
> > siraj
> >
> > > > 
> > > >
> > > >  >
> > />
> >
> > > >  <%
> > > > info.put("val1", request.getParameter("strCatalogname"));
> > > > info.put("val2","test");
> > > > %>
> > > >
> > > >  
> >
> > test
> >
> > > > 
>
> Sorry I misread your code :D
>
> hmm haven't touched that tag for a while couldn't see anything wrong, try
to
> put scope attribute in your html:link tag.
>
> 
>
> See how it goes ...
>
> --
> Victor Hadianto
>
> --
> 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: d't work: how do i pass multiple parameters

2002-05-21 Thread Victor Hadianto

> actully its like this
>
> siraj
>
> > > 
> > >
> > > 
> />
>
> > >  <%
> > > info.put("val1", request.getParameter("strCatalogname"));
> > > info.put("val2","test");
> > > %>
> > >
> > >  
>
> test
>
> > > 

Sorry I misread your code :D

hmm haven't touched that tag for a while couldn't see anything wrong, try to 
put scope attribute in your html:link tag.



See how it goes ...

-- 
Victor Hadianto

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: d't work: how do i pass multiple parameters

2002-05-21 Thread siraj

actully its like this

siraj
> > 
> >
> > 
> >
> >  <%
> > info.put("val1", request.getParameter("strCatalogname"));
> > info.put("val2","test");
> > %>
> >
> >  
test
> > 
> >
>
> You got it wrong. Create the Map as your FormBean property and access that
> map from the  tag, *not* by using the  tag.
>
>
> --
> Victor Hadianto
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: d't work: how do i pass multiple parameters

2002-05-21 Thread Victor Hadianto

On Mon, 22 May 2000 15:17, you wrote:
> 
>
> 
>
>  <%
> info.put("val1", request.getParameter("strCatalogname"));
> info.put("val2","test");
> %>
>
>  
> 
> 
>

You got it wrong. Create the Map as your FormBean property and access that 
map from the  tag, *not* by using the  tag.


-- 
Victor Hadianto

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: d't work: how do i pass multiple parameters

2002-05-21 Thread siraj

as u guys said i have used hash map to store the value and pass as a query
string now here i am not getting request.getParameter. i used following code





 <%
info.put("val1", request.getParameter("strCatalogname"));
info.put("val2","test");
%>

 



i got the following result
http://192.10.10.63:8080/pdmDemo/jsp/tree/pdm_treeview.do?val1=&val2=tes
t"

where value1 value is blank

- Original Message -
From: Victor Hadianto <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 4:51 AM
Subject: Re: again: how do i pass multiple parameters


> On Sun, 21 May 2000 21:29, you wrote:
> > hi guys,
> >
> > got one problem while passing multiple parameters . i have a jsp
page
> > in which many hyper links are present.
> > with each hyper link i have to pass 10 diffrent parameters, the
parameter
> > values are dynamic however i can pass the
>
> Siraj,
>
> Haven't you read my previous reply? Use a Map to store your name value
pairs
> parameter and use
>  ...
>
> --
> Victor Hadianto
>
> --
> 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: again: how do i pass multiple parameters

2002-05-21 Thread Victor Hadianto

On Sun, 21 May 2000 21:29, you wrote:
> hi guys,
>
> got one problem while passing multiple parameters . i have a jsp page
> in which many hyper links are present.
> with each hyper link i have to pass 10 diffrent parameters, the parameter
> values are dynamic however i can pass the

Siraj,

Haven't you read my previous reply? Use a Map to store your name value pairs 
parameter and use 
 ...

-- 
Victor Hadianto

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




RE: how do i pass multiple parameters

2002-05-21 Thread Galbreath, Mark

So...post the code (before you're asked).

-Original Message-
From: JM [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 12:36 AM

You will need to extend the html:link functionality by writing your own
custom taglib that accepts a collection or map of some sort.  Allowing it to
iterate and append your name=value pairs to the end of the link.

This is actually quite easy to do.

JM

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Urgent ; can some one help : how do i pass multiple parameters

2002-05-21 Thread Homer, Christopher

As was mentioned in an earlier reply, you could use the name and property
attributes of the html:link tag.

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

-Original Message-
From: siraj [mailto:[EMAIL PROTECTED]]
Sent: 21 May 2000 13:47
To: Struts Users Mailing List
Subject: Urgent ; can some one help : how do i pass multiple parameters


> hi guys,
>
> got one problem while passing multiple parameters . i have a jsp page
in
> which many hyper links are present.
> with each hyper link i have to pass 10 diffrent parameters, the parameter
> values are dynamic however i can pass the
> parameter in this form, if the value is hard coded but how do i send
dynamic
> values
> > presently i used
>
>  
>
> also  i used
>
> 
> 
>
> but gives  already closed
> > can some one help in providing some solution.
>> thanx and regards
>
>Siraj
>
>
> --
> 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]>
For optimum solutions that save you time, visit www.ds-s.com.

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




Urgent ; can some one help : how do i pass multiple parameters

2002-05-21 Thread siraj

> hi guys,
>
> got one problem while passing multiple parameters . i have a jsp page
in
> which many hyper links are present.
> with each hyper link i have to pass 10 diffrent parameters, the parameter
> values are dynamic however i can pass the
> parameter in this form, if the value is hard coded but how do i send
dynamic
> values
> > presently i used
>
>  
>
> also  i used
>
> 
> 
>
> but gives  already closed
> > can some one help in providing some solution.
>> thanx and regards
>
>Siraj
>
>
> --
> 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]>




again: how do i pass multiple parameters

2002-05-21 Thread siraj

hi guys,

got one problem while passing multiple parameters . i have a jsp page in
which many hyper links are present.
with each hyper link i have to pass 10 diffrent parameters, the parameter
values are dynamic however i can pass the
parameter in this form, if the value is hard coded but how do i send dynamic
values

presently i used




where the values are hard coded , suppose if i am taking the value from bean
how can i assign i used




but gives  already closed

can some one help in providing some solution.

thanx and regards

   Siraj


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




Re: how do i pass multiple parameters

2002-05-20 Thread siraj

when i use this anchor tag i am getting ann error saying  already
closed


- Original Message -
From: Leonardo Maciel <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 7:53 PM
Subject: RE: how do i pass multiple parameters



whenever I want to pass multiple parameters I use anchor






-Original Message-
From: siraj [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 20, 2000 6:34 AM
To: Struts Users Mailing List
Subject: how do i pass multiple parameters


hello team ,

 can some one help in passing multiple parameters with a html link

i have a link

   index.do where i need to pass around 10 parameters which have dynamic
values
sy

  index.do?value=leve1?value1=xyz?value2=4

any how i used

 which allows me to pass only one parameter

i would highly appreciate for the help thanks in advance

Siraj




--
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: how do i pass multiple parameters

2002-05-20 Thread Victor Hadianto

On Tue, 21 May 2002 14:35, you wrote:
> You will need to extend the html:link functionality by writing your own
> custom taglib that accepts a collection or map of some sort.  Allowing it
> to iterate and append your name=value pairs to the end of the link.

This is actually already supported with Struts.

For example:


In in your form bean declare linkParams as a Map. ie:

public Map getLinkParams() {
Map map = new HashMap();
map.put("id", "5");
map.put("name", "world");
return map;
}

HTH,

-- 
Victor Hadianto

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: how do i pass multiple parameters

2002-05-20 Thread JM

You will need to extend the html:link functionality by writing your own
custom taglib that accepts a collection or map of some sort.  Allowing it to
iterate and append your name=value pairs to the end of the link.

This is actually quite easy to do.

JM

> -Original Message-
> From: siraj [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 21, 2000 12:35 AM
> To: Struts Users Mailing List
> Subject: Re: how do i pass multiple parameters
>
>
> thanx mark . but i have to use a hyperlink there , infact i am using
> multiple hyperlink where in for each hyperlink the parameter i am
> passing is
> diffrent its a dynamic value.
>
> Siraj
>
> - Original Message -
> From: Galbreath, Mark <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Sent: Monday, May 20, 2002 7:24 PM
> Subject: RE: how do i pass multiple parameters
>
>
> > Don't use .  Use .
> > Submit will pass all the values as a hashmap and you can
> retrieve them by
> > simply calling the getParameter() method of the request object.
> > Alternatively, if you are using an ActionForm (and you should be), the
> form
> > object passed to your Action class will contain all the values
> and can be
> > retrieved by instantiating the form like
> >
> > MyActionForm myBean = (MyActionForm) form;
> > String value = myBean.getValue();
> > String value1 = myBean.getValue1();
> >
> > etc.
> >
> > Mark
> >
> > -Original Message-
> > From: siraj [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, May 20, 2000 6:34 AM
> >
> > hello team ,
> >
> >  can some one help in passing multiple parameters with a html link
> >
> > i have a link
> >
> >index.do where i need to pass around 10 parameters which have dynamic
> > values
> > sy
> >
> >   index.do?value=leve1?value1=xyz?value2=4
> >
> > any how i used
> >
> >  > parampropery="value"> which allows me to pass only one parameter
> >
> > i would highly appreciate for the help thanks in advance
> >
> > Siraj
> >
> > --
> > 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: how do i pass multiple parameters

2002-05-20 Thread siraj

thanx mark . but i have to use a hyperlink there , infact i am using
multiple hyperlink where in for each hyperlink the parameter i am passing is
diffrent its a dynamic value.

Siraj

- Original Message -
From: Galbreath, Mark <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 7:24 PM
Subject: RE: how do i pass multiple parameters


> Don't use .  Use .
> Submit will pass all the values as a hashmap and you can retrieve them by
> simply calling the getParameter() method of the request object.
> Alternatively, if you are using an ActionForm (and you should be), the
form
> object passed to your Action class will contain all the values and can be
> retrieved by instantiating the form like
>
> MyActionForm myBean = (MyActionForm) form;
> String value = myBean.getValue();
> String value1 = myBean.getValue1();
>
> etc.
>
> Mark
>
> -Original Message-
> From: siraj [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 20, 2000 6:34 AM
>
> hello team ,
>
>  can some one help in passing multiple parameters with a html link
>
> i have a link
>
>index.do where i need to pass around 10 parameters which have dynamic
> values
> sy
>
>   index.do?value=leve1?value1=xyz?value2=4
>
> any how i used
>
>  parampropery="value"> which allows me to pass only one parameter
>
> i would highly appreciate for the help thanks in advance
>
> Siraj
>
> --
> 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: how do i pass multiple parameters

2002-05-20 Thread Leonardo Maciel


whenever I want to pass multiple parameters I use anchor






-Original Message-
From: siraj [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 20, 2000 6:34 AM
To: Struts Users Mailing List
Subject: how do i pass multiple parameters


hello team ,

 can some one help in passing multiple parameters with a html link

i have a link

   index.do where i need to pass around 10 parameters which have dynamic
values
sy

  index.do?value=leve1?value1=xyz?value2=4

any how i used

 which allows me to pass only one parameter

i would highly appreciate for the help thanks in advance

Siraj




--
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: how do i pass multiple parameters

2002-05-20 Thread Galbreath, Mark

Don't use .  Use .
Submit will pass all the values as a hashmap and you can retrieve them by
simply calling the getParameter() method of the request object.
Alternatively, if you are using an ActionForm (and you should be), the form
object passed to your Action class will contain all the values and can be
retrieved by instantiating the form like

MyActionForm myBean = (MyActionForm) form;
String value = myBean.getValue();
String value1 = myBean.getValue1();

etc.

Mark

-Original Message-
From: siraj [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 20, 2000 6:34 AM

hello team ,

 can some one help in passing multiple parameters with a html link

i have a link

   index.do where i need to pass around 10 parameters which have dynamic
values
sy

  index.do?value=leve1?value1=xyz?value2=4

any how i used

 which allows me to pass only one parameter

i would highly appreciate for the help thanks in advance

Siraj

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




Re: how do i pass multiple parameters

2002-05-20 Thread siraj

but i am getting the values dynamically , its not hardcoded value
siraj
- Original Message -
From: Pavlin Zahariev <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Tuesday, May 21, 2002 1:04 AM
Subject: Re: how do i pass multiple parameters


> Hi,
>
> U pass multiple prameters in the form:
> http://server.name.com/action.do?param1=val1¶m2=val2&paramN=ValN
>
> Regards,
>
> Pavlin
>
> 20.5.2000 3:33:30, "siraj" <[EMAIL PROTECTED]> wrote:
>
> >hello team ,
> >
> > can some one help in passing multiple parameters with a html link
> >
> >i have a link
> >
> >   index.do where i need to pass around 10 parameters which have dynamic
> >values
> >sy
> >
> >  index.do?value=leve1?value1=xyz?value2=4
> >
> >any how i used
> >
> > >parampropery="value"> which allows me to pass only one parameter
> >
> >i would highly appreciate for the help thanks in advance
> >
> >Siraj
> >
> >
> >
> >
> >--
> >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: how do i pass multiple parameters

2002-05-20 Thread Pavlin Zahariev

Hi, 

U pass multiple prameters in the form:
http://server.name.com/action.do?param1=val1¶m2=val2&paramN=ValN

Regards,

Pavlin

20.5.2000 3:33:30, "siraj" <[EMAIL PROTECTED]> wrote:

>hello team ,
>
> can some one help in passing multiple parameters with a html link
>
>i have a link
>
>   index.do where i need to pass around 10 parameters which have dynamic
>values
>sy
>
>  index.do?value=leve1?value1=xyz?value2=4
>
>any how i used
>
>parampropery="value"> which allows me to pass only one parameter
>
>i would highly appreciate for the help thanks in advance
>
>Siraj
>
>
>
>
>--
>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: how do i pass multiple parameters

2002-05-20 Thread Robert Taylor

>From the struts-documentation.war web app that comes with the Struts
distribution:


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.


Another way would be to use the href attribute instead of the page attribute
and use either custom tags or scriptlets to populate the url query string.
Don't forget to url encode your values and separate name/value pairs with
ampersand.

index.do?value=leve1&value1=xyz&value2=4


HTH,

robert

> -Original Message-
> From: siraj [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 20, 2000 6:34 AM
> To: Struts Users Mailing List
> Subject: how do i pass multiple parameters
>
>
> hello team ,
>
>  can some one help in passing multiple parameters with a html link
>
> i have a link
>
>index.do where i need to pass around 10 parameters which have dynamic
> values
> sy
>
>   index.do?value=leve1?value1=xyz?value2=4
>
> any how i used
>
>  parampropery="value"> which allows me to pass only one parameter
>
> i would highly appreciate for the help thanks in advance
>
> Siraj
>
>
>
>
> --
> 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]>




how do i pass multiple parameters

2002-05-20 Thread siraj

hello team ,

 can some one help in passing multiple parameters with a html link

i have a link

   index.do where i need to pass around 10 parameters which have dynamic
values
sy

  index.do?value=leve1?value1=xyz?value2=4

any how i used

 which allows me to pass only one parameter

i would highly appreciate for the help thanks in advance

Siraj




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




Re: How to create the map for multiple parameters withhtml:link?

2002-04-04 Thread Markus Neifer

Alex,
thanks for your answer. I was hoping there's a standard tag for
this. Maybe in Jakarta Taglibs. Looks like that is not the case.
I'll take your suggestion and create a custom tag.

Have a nice day.

Regards,
Markus

- Original Message -
From: Alex Paransky <[EMAIL PROTECTED]>
Date: Wednesday, April 3, 2002 5:53 pm
Subject: RE: How to create the map for multiple parameters with 
html:link?

> Markus,
> 
> To implement a suitable map, we created a new tag called URI.  By 
> using this
> tag and specifying the id= attribute, a new scriplet object is 
> created in
> the appropriate scope.  Then, we are
> able to pass this object into the html:link tag.
> 
> This is one way of doing it.
> 
> The "Struts" way would probably be to execute an action which puts 
> such a
> map into the request scope, and then forward to the page you want 
> to go to.
[...]


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




RE: How to create the map for multiple parameters with html:link?

2002-04-03 Thread Alex Paransky

Markus,

To implement a suitable map, we created a new tag called URI.  By using this
tag and specifying the id= attribute, a new scriplet object is created in
the appropriate scope.  Then, we are
able to pass this object into the html:link tag.

This is one way of doing it.

The "Struts" way would probably be to execute an action which puts such a
map into the request scope, and then forward to the page you want to go to.

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127

-Original Message-
From: Markus Neifer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 7:04 AM
To: [EMAIL PROTECTED]
Subject: How to create the map for multiple parameters with html:link?


Hi, is there any way to create the java.util.Map required for the
html:link tag when using more than one parameter without using
scriptlets?

Thanks in advance.

Markus



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




How to create the map for multiple parameters with html:link?

2002-04-03 Thread Markus Neifer

Hi, is there any way to create the java.util.Map required for the 
html:link tag when using more than one parameter without using 
scriptlets?

Thanks in advance.

Markus



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Passing Multiple Parameters do a .do

2002-03-19 Thread Ted Husted

I haven't tried it myself, but people have reported serializing a number
of properties and then passing the serialized object. 

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

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Tim Sawyer wrote:
> 
> Hello.
> 
> I'm using Quick Address to return a list of addresses that match some search
> criteria.  I want to select one of the returned addresses and pass it
> through somewhere else.  Problem is, there is no unique identifier for the
> address other than the data that makes it up.  I can't think of a nice way
> of passing this data into another page, other than passing it all on the
> URL.  But that's hard using Struts, unless I have a Map object with the
> address in.  Anyone got any ideas?
> 
> >From this code:
> 
> 
>   
> 
>property="propertyName"/>
>   ,  name="element" property="streetName"/>,  property="district"/>
> 
>   
> 
> 
> I need pass in all the attributes of a particular "element" as parameters to
> SelectAddressQA.do.
> 
> In other places where I've had to select one from a list, I've had an ID
> that I can tag onto the html:link, and then inflate the full object based on
> this ID to get at the other attributes.  I can't do that here.
> 
> TIA,
> 
> Tim.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Passing Multiple Parameters do a .do

2002-03-19 Thread Tim Sawyer

Hello.

I'm using Quick Address to return a list of addresses that match some search
criteria.  I want to select one of the returned addresses and pass it
through somewhere else.  Problem is, there is no unique identifier for the
address other than the data that makes it up.  I can't think of a nice way
of passing this data into another page, other than passing it all on the
URL.  But that's hard using Struts, unless I have a Map object with the
address in.  Anyone got any ideas?

>From this code:


  

  
  , , 

  


I need pass in all the attributes of a particular "element" as parameters to
SelectAddressQA.do.

In other places where I've had to select one from a list, I've had an ID
that I can tag onto the html:link, and then inflate the full object based on
this ID to get at the other attributes.  I can't do that here.

TIA,

Tim.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >