RE: html:link tag

2003-01-10 Thread Damm, Gary
I agree, the Map method isn't very straight forward for simply adding
2-3 params to the link.  The only thing to remember with the traditional
method is to encode the parameters.

Thanks,
Gary

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 10, 2003 12:24 AM
To: [EMAIL PROTECTED]
Subject: RE: html:link tag

Easiest way to pass multiple parameters on a html link.


Use the standard anchor tag.


eg:

"/>&salary
nce="/>">

Here the myForm should have indexed getters for empBean

Clas MyForm(){
List empList = new ArrayList();
getEmp(int index){
while(empList.size< index){
empList.add(new EmpBean());
}
return (EmpBean)empList.get(index);
}
}




Very, very ugly but works just fine!

I think the struts way(using map)is not very easy alwqys...


-Original Message-
From: garyd [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 3:44 AM
To: struts-user
Cc: garyd
Subject: html:link tag


Anyone know if/how to add multiple query parameters using this tag?

ie: www.myserver.com/foo.jsp?id=1&bar=2...

Thanks,
Gary

--
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: html:link tag

2003-01-10 Thread shirishchandra . sakhare
Easiest way to pass multiple parameters on a html link.


Use the standard anchor tag.


eg:

"/>&salary
nce="/>">

Here the myForm should have indexed getters for empBean

Clas MyForm(){
List empList = new ArrayList();
getEmp(int index){
while(empList.size< index){
empList.add(new EmpBean());
}
return (EmpBean)empList.get(index);
}
}




Very, very ugly but works just fine!

I think the struts way(using map)is not very easy alwqys...


-Original Message-
From: garyd [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 3:44 AM
To: struts-user
Cc: garyd
Subject: html:link tag


Anyone know if/how to add multiple query parameters using this tag?

ie: www.myserver.com/foo.jsp?id=1&bar=2...

Thanks,
Gary

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



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




RE: html:link tag

2003-01-09 Thread Sri Sankaran
Please read the docs at 
http://jakarta.apache.org/struts/userGuide/struts-html.html#link.  It explains how to 
set up a Map to provide multiple parameters.

Sri

-Original Message-
From: Damm, Gary [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 09, 2003 9:44 PM
To: Struts Users Mailing List
Subject: html:link tag


Anyone know if/how to add multiple query parameters using this tag?

ie: www.myserver.com/foo.jsp?id=1&bar=2...

Thanks,
Gary

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


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




Re: html:link tag question

2002-04-08 Thread Slava_L

wut abt this:
 
?
(i often use like this way )

- Original Message -
From: "Parmar, Deepak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 8:15 AM
Subject: html:link tag question


> I would like to display href from my object.
>
> 
>  
> 
>
> MyObject has item and Link property and I would like to put Link value at
> ??? in above example.
>
> Deepak
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




RE: html:link tag question

2002-04-08 Thread Joseph Barefoot

Try this:




 



The  tag defines a page scope bean so that it can be accessed
in JSP expressions.  I don't think you need the "type" attribute, but I put
it anyway for clarity.

cheers,

Joe Barefoot



-Original Message-
From: Parmar, Deepak [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 4:15 PM
To: Struts Users Mailing List
Subject: html:link tag question


I would like to display href from my object.


 


MyObject has item and Link property and I would like to put Link value at
??? in above example.

Deepak


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: html:link tag bug???, Really need help!

2001-12-31 Thread Ted Husted

You may have to put the anchor link in by hand

THe linkTHe
link

I agree that it should produce both. You might submit this as an
enhancement request to Bugzilla. 

http://nagoya.apache.org/bugzilla/



"Struts Newsgroup (@Basebeans.com)" wrote:
> 
> Subject: html:link tag bug???, Really need help!
> From: "Nicolas Parisé" <[EMAIL PROTECTED]>
>  ===
> Hi,
> 
> I work in a project now where I need to use the html:link tag
> this way
> 
> THe
> link
> 
> Every time the linkName param is present, the page tag is removed, so in the
> previous
> example, here is the rendered HTML
> 
> THe link
> 
> Where is my href="/listProducts.do" ???
> 
> I really need to use the anchor "name" tag, because I call this anchor from
> a Javascript menu
> 
> please help me
> 
> Thank you!
> 
> Nicolas Parise
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




Re: html:link Tag

2001-12-11 Thread Krishnamoorthy

So what's your problem in this.

Ravi Kharse wrote:

> Hi,
> I need to achieve some thing using struts tag library
>
>  key="Details"/>
>  key="Details"/>
>  key="Details"/>
>  key="Details"/>
>
> where Index=1/2/3/4... etc is derived from the for loop. I:e
> for (int i=0; i < 10 ; i++)
> {
>  key="Details"/>
> }
>
> Your help is appreciated
>
> Thanks
> Ravi
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--H  P--
-  i  n  v  e  n  t  -
https://ecardfile.com/id/kicha



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




RE: HTML:link tag

2001-07-02 Thread DHarty

I think you'd have to use an Action class to get the 
behavior.

The action class would call "isCancelled(request)" to find out if the form
was canceled, and then return a forward mapping to the cancel path ex:

return (mapping.findForward("cancel"));

If you can use  (or submit for that matter) without an action
class, please let me know.

D

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:02 PM
To: [EMAIL PROTECTED]
Subject: Re: HTML:link tag


I have a search page that displays a list of data, it is a jsp that only
talks to itself.  I'd like to add a "done" button at the bottom that takes
them back to the main menu when they are done.

In my JSP, I'd like to put:


And map it in my struts-config.xml using:


 
  

But this does NOT work, so I am looking for a "work around" using the
following:



And I want to get "/NASApp/appName/mainMenu" from html:link, rather than
hardcoding it into my application.

Thanks,

Matt

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 10:06 AM
Subject: RE: HTML:link tag


>
>
> Matt,
>
> Not sure I follow what you are trying to do.  Do you want to post some
more
> info...?
>
> Cheers,
>
> Dave
>
>
>
>
>
> Matt Raible <[EMAIL PROTECTED]> on 06/26/2001
11:06:02
> PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED],
>   [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: HTML:link tag
>
>
>
> Does anyone know how to extract the link url using
> struts, rather than the full  tag?  I would
> like to get a URL from a global-forward for use in a
> javascript function.
>
> Thanks,
>
> Matt
>
> --- Michael Skariah <[EMAIL PROTECTED]> wrote:
> > Thanks a million Spencer.
> > -Michael.
> >
> >
> > -Original Message-
> > From: Spencer Smith [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 26, 2001 3:37 PM
> > To: [EMAIL PROTECTED];
> > [EMAIL PROTECTED]
> > Subject: Re: HTML:link tag
> >
> >
> > <%@ taglib uri="/WEB-INF/struts-html.tld"
> > prefix="html" %>
> >
> > *make sure above line is in your jsp page
> >
> > Click
> > Here
> >
> > *in order for above line to work you need to set up
> > an action in
> > struts-config.xml
> >
> > ie:
> >
> >  
> >  > type="com.pfizer.ecms.ws.TestAction">
> > 
> >
> >
> > - Original Message -
> > From: "Michael Skariah" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 26, 2001 3:23 PM
> > Subject: HTML:link tag
> >
> >
> > > Hello all,
> > > I am trying to replace the following with the
> > Struts HTML link tag.
> > > Test
> > >
> > > Could anyone help me out here\.
> > >
> > > Thanks,
> > > Michael.
> > >
> > >
> >
> >
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
>
>
>
>


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: HTML:link tag

2001-07-02 Thread Matt Raible

When I change my code from  to  I get the
following error:


   


I would leave this as , but the onClick doesn't work.

Any ideas?

Matt

- Original Message -
From: "Matt Raible" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 1:01 PM
Subject: Re: HTML:link tag


> I have a search page that displays a list of data, it is a jsp that only
> talks to itself.  I'd like to add a "done" button at the bottom that takes
> them back to the main menu when they are done.
>
> In my JSP, I'd like to put:
> 
>
> And map it in my struts-config.xml using:
>
> path="/searchResource"
>forward="/resourceList"
>name="resourceForm"
>scope="request"
>validate="false"
>input="/mainMenu">
>  
>   
>
> But this does NOT work, so I am looking for a "work around" using the
> following:
>
> 
>
> And I want to get "/NASApp/appName/mainMenu" from html:link, rather than
> hardcoding it into my application.
>
> Thanks,
>
> Matt
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 27, 2001 10:06 AM
> Subject: RE: HTML:link tag
>
>
> >
> >
> > Matt,
> >
> > Not sure I follow what you are trying to do.  Do you want to post some
> more
> > info...?
> >
> > Cheers,
> >
> > Dave
> >
> >
> >
> >
> >
> > Matt Raible <[EMAIL PROTECTED]> on 06/26/2001
> 11:06:02
> > PM
> >
> > Please respond to [EMAIL PROTECTED]
> >
> > To:   [EMAIL PROTECTED],
> >   [EMAIL PROTECTED]
> > cc:(bcc: David Hay/Lex/Lexmark)
> > Subject:  RE: HTML:link tag
> >
> >
> >
> > Does anyone know how to extract the link url using
> > struts, rather than the full  tag?  I would
> > like to get a URL from a global-forward for use in a
> > javascript function.
> >
> > Thanks,
> >
> > Matt
> >
> > --- Michael Skariah <[EMAIL PROTECTED]> wrote:
> > > Thanks a million Spencer.
> > > -Michael.
> > >
> > >
> > > -Original Message-
> > > From: Spencer Smith [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 26, 2001 3:37 PM
> > > To: [EMAIL PROTECTED];
> > > [EMAIL PROTECTED]
> > > Subject: Re: HTML:link tag
> > >
> > >
> > > <%@ taglib uri="/WEB-INF/struts-html.tld"
> > > prefix="html" %>
> > >
> > > *make sure above line is in your jsp page
> > >
> > > Click
> > > Here
> > >
> > > *in order for above line to work you need to set up
> > > an action in
> > > struts-config.xml
> > >
> > > ie:
> > >
> > >  
> > >  > > type="com.pfizer.ecms.ws.TestAction">
> > > 
> > >
> > >
> > > - Original Message -
> > > From: "Michael Skariah" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, June 26, 2001 3:23 PM
> > > Subject: HTML:link tag
> > >
> > >
> > > > Hello all,
> > > > I am trying to replace the following with the
> > > Struts HTML link tag.
> > > > Test
> > > >
> > > > Could anyone help me out here\.
> > > >
> > > > Thanks,
> > > > Michael.
> > > >
> > > >
> > >
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> >
> >
> >
> >
> >
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: HTML:link tag

2001-07-02 Thread Matt Raible

I have a search page that displays a list of data, it is a jsp that only
talks to itself.  I'd like to add a "done" button at the bottom that takes
them back to the main menu when they are done.

In my JSP, I'd like to put:


And map it in my struts-config.xml using:


 
  

But this does NOT work, so I am looking for a "work around" using the
following:



And I want to get "/NASApp/appName/mainMenu" from html:link, rather than
hardcoding it into my application.

Thanks,

Matt

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 10:06 AM
Subject: RE: HTML:link tag


>
>
> Matt,
>
> Not sure I follow what you are trying to do.  Do you want to post some
more
> info...?
>
> Cheers,
>
> Dave
>
>
>
>
>
> Matt Raible <[EMAIL PROTECTED]> on 06/26/2001
11:06:02
> PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED],
>   [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: HTML:link tag
>
>
>
> Does anyone know how to extract the link url using
> struts, rather than the full  tag?  I would
> like to get a URL from a global-forward for use in a
> javascript function.
>
> Thanks,
>
> Matt
>
> --- Michael Skariah <[EMAIL PROTECTED]> wrote:
> > Thanks a million Spencer.
> > -Michael.
> >
> >
> > -Original Message-
> > From: Spencer Smith [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 26, 2001 3:37 PM
> > To: [EMAIL PROTECTED];
> > [EMAIL PROTECTED]
> > Subject: Re: HTML:link tag
> >
> >
> > <%@ taglib uri="/WEB-INF/struts-html.tld"
> > prefix="html" %>
> >
> > *make sure above line is in your jsp page
> >
> > Click
> > Here
> >
> > *in order for above line to work you need to set up
> > an action in
> > struts-config.xml
> >
> > ie:
> >
> >  
> >  > type="com.pfizer.ecms.ws.TestAction">
> > 
> >
> >
> > - Original Message -
> > From: "Michael Skariah" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 26, 2001 3:23 PM
> > Subject: HTML:link tag
> >
> >
> > > Hello all,
> > > I am trying to replace the following with the
> > Struts HTML link tag.
> > > Test
> > >
> > > Could anyone help me out here\.
> > >
> > > Thanks,
> > > Michael.
> > >
> > >
> >
> >
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
>
>
>
>


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: HTML:link tag

2001-06-27 Thread dhay



Matt,

Not sure I follow what you are trying to do.  Do you want to post some more
info...?

Cheers,

Dave





Matt Raible <[EMAIL PROTECTED]> on 06/26/2001 11:06:02
PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED],
  [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: HTML:link tag



Does anyone know how to extract the link url using
struts, rather than the full  tag?  I would
like to get a URL from a global-forward for use in a
javascript function.

Thanks,

Matt

--- Michael Skariah <[EMAIL PROTECTED]> wrote:
> Thanks a million Spencer.
> -Michael.
>
>
> -Original Message-
> From: Spencer Smith [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 3:37 PM
> To: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: HTML:link tag
>
>
> <%@ taglib uri="/WEB-INF/struts-html.tld"
> prefix="html" %>
>
> *make sure above line is in your jsp page
>
> Click
> Here
>
> *in order for above line to work you need to set up
> an action in
> struts-config.xml
>
> ie:
>
>  
>  type="com.pfizer.ecms.ws.TestAction">
> 
>
>
> - Original Message -
> From: "Michael Skariah" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 3:23 PM
> Subject: HTML:link tag
>
>
> > Hello all,
> > I am trying to replace the following with the
> Struts HTML link tag.
> > Test
> >
> > Could anyone help me out here\.
> >
> > Thanks,
> > Michael.
> >
> >
>
>


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/









RE: HTML:link tag

2001-06-26 Thread Matt Raible

Does anyone know how to extract the link url using
struts, rather than the full  tag?  I would
like to get a URL from a global-forward for use in a
javascript function.

Thanks,

Matt

--- Michael Skariah <[EMAIL PROTECTED]> wrote:
> Thanks a million Spencer.
> -Michael.
> 
> 
> -Original Message-
> From: Spencer Smith [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 3:37 PM
> To: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: HTML:link tag
> 
> 
> <%@ taglib uri="/WEB-INF/struts-html.tld"
> prefix="html" %>
> 
> *make sure above line is in your jsp page
> 
> Click
> Here
> 
> *in order for above line to work you need to set up
> an action in
> struts-config.xml
> 
> ie:
> 
>  
>  type="com.pfizer.ecms.ws.TestAction">
> 
> 
> 
> - Original Message -
> From: "Michael Skariah" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 3:23 PM
> Subject: HTML:link tag
> 
> 
> > Hello all,
> > I am trying to replace the following with the
> Struts HTML link tag.
> > Test
> >
> > Could anyone help me out here\.
> >
> > Thanks,
> > Michael.
> >
> >
> 
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: HTML:link tag

2001-06-26 Thread Michael Skariah

Thanks a million Spencer.
-Michael.


-Original Message-
From: Spencer Smith [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:37 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: HTML:link tag


<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

*make sure above line is in your jsp page

Click Here

*in order for above line to work you need to set up an action in
struts-config.xml

ie:

 




- Original Message -
From: "Michael Skariah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 3:23 PM
Subject: HTML:link tag


> Hello all,
> I am trying to replace the following with the Struts HTML link tag.
> Test
>
> Could anyone help me out here\.
>
> Thanks,
> Michael.
>
>





RE: HTML:link tag

2001-06-26 Thread Steve Taylor

I found this message to be quite helpful for integrating struts with
Tomcat/Apache 

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

-Original Message-
From: Mustapha Essalihe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:47 PM
To: [EMAIL PROTECTED]
Subject: RE: HTML:link tag


this day I installed tomcat with apache using mod_jk. To use struts, the
"*.do" URIs that go to the controller servlet will not be recognized until I
add the appropriate handler. To fix this, I must add the following line to
the httpd.conf (in my own configuration) file:
AddHandler jserv-servlet .do
Is this will work with mod_jk or there is another syntax for mod_jk to add a
handler ?
Thanks
Mustapha



RE: HTML:link tag

2001-06-26 Thread Mustapha Essalihe

this day I installed tomcat with apache using mod_jk. To use struts, the
"*.do" URIs that go to the controller servlet will not be recognized until I
add the appropriate handler. To fix this, I must add the following line to
the httpd.conf (in my own configuration) file:
AddHandler jserv-servlet .do
Is this will work with mod_jk or there is another syntax for mod_jk to add a
handler ?
Thanks
Mustapha




Re: HTML:link tag

2001-06-26 Thread Spencer Smith

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

*make sure above line is in your jsp page

Click Here

*in order for above line to work you need to set up an action in
struts-config.xml

ie:

 




- Original Message -
From: "Michael Skariah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 3:23 PM
Subject: HTML:link tag


> Hello all,
> I am trying to replace the following with the Struts HTML link tag.
> Test
>
> Could anyone help me out here\.
>
> Thanks,
> Michael.
>
>