Re: html:link /action does not contain handler parameter ...

2004-03-18 Thread Chris Huisman
Oh ya if you didn't realize it already, I am using LookupDispatchAction 
for my Action. 

Another question: could the request be getting lost on the way to the 
server b/c of the frames?  I don't think this is the case since the 
request of the frame the link is in should get sent to the server and 
this holds the action parameter, so action should be found and the 
value of it used to determine which method to call.

This is the action mapping I am using:
   action
   attribute=viewForm
   input=pages/products/type.jsp
   name=viewForm
   parameter=action
   path=/view
   scope=request
   type=xxx.xxx.xxx.struts.action.ViewAction
   validate=false
   forward name=productList 
path=pages/products/productListing.jsp /
   forward name=type path=pages/products/idx_product.htm 
/ !-- this is a frameset --
   /action

where the type forward is where:

html:link page=%=/view.do?action=View%20Types% target=_top
 Machines
/html:link
will eventually take the user and the productList forward is where:

html:link page=%=/view.do?action=View%20Products%
target=body_content
 Products
/html:link
will take the user.
[EMAIL PROTECTED] wrote:

Hello,

I am using frames in my web app not b/c I want to, but b/c I have to.  I
am using the html:link tag to with a page attribute to go to my action
class.  I am able to do this successfully from one frameset to another one
using the following link in the menu frame of frameset1:
html:link page=%=/view.do?action=View%20Types% target=_top
 Machines
/html:link
This passes the user onto a new frameset: frameset2.  I have another link
that  is almost identical to the previous one in the menu frame of
frameset2 
html:link page=%=/view.do?action=View%20Products%
target=body_content
 Products
/html:link

This link does not work, it gives me the Request[/view] does not contain
handler parameter named action error.  This is very frustrating.  I know
that the ViewAction has the hanler for the parameter named action b/c I am
able to type the link into the browser address bar and everything behaves
correctly.
Any ideas as to why this is happening?

thanks,
c.


-
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 with javascript variable

2004-03-11 Thread stu
On Thu, 11 Mar 2004 12:10:21 -
Niall Pemberton [EMAIL PROTECTED] wrote:

 Try
 
 I think you mean jsp scriptlet (rather than javascript) - I'm not good
 on it,

I'm a java-in-general newbie, so half the time I don't know what I mean
:)

 but how about doing this (you can do without the bean:define)
 instead:
 
 html:link action=/BranchDetailPage.do paramId=enquiryBranch
 paramName=APSB paramProperty=mendstatbrCde
   bean:write name=APSB property=mendstatbrCde/
 /html:link

Aah, perfect (tho I substituted 'action=' with 'page=' ). That's exactly
what I needed.

Thanks a lot!!
-- 
Stuart Logie
Programmer

UNIVERSAL COMPUTER SERVICES (PTY) LTD
A member of South Africa's largest retail software vendor, the UCS Group

Tel : (011) 712 1371   Cell : 082 902 5632
Fax : (011) 339 3421
Internet : http://ucs.co.za

I am the Unconquerable Spirit.
   -- Poet Unknown
   
Powered by Debian GNU/Linux - testing/unstable


pgp0.pgp
Description: PGP signature


Re: html:link problem

2004-03-02 Thread Mark Lowe
When i have the misfortune of porting the mother of all abominations 
known as dreamweaver generated code I tend to use c:url instead

a href=c:url value=/findtitle.do /

this will do what i think you want.

On 2 Mar 2004, at 23:19, mucus snot wrote:

Hi list,

Just wondering if anyone has any bright ideas. Things that you can do 
easily with an a ... tag, are not (easily) acheivable with a 
html:link. For instance in the following code:

nested:iterate id=title name=%= Constants.TITLES_COLLECTION % 
scope=request indexId=counter
html:link page=/findtitles.do 
onmouseover=MM_swapImage('details%= counter %,...)...
/nested:iterate

counter will not resolve, although it will if the tag is an ordinary 
anchor.

Does anyone know a way around this? I have been resorting to using 
ordinary a... tags but have just realised that there is no session 
control if cookies are disabled. I have to use html:link...

thanks, al 


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


Re: html:link problem

2004-03-02 Thread Nick Wesselman
Make your entire onmouseover attribute an expression.

onmouseover=%=MM_swapImage('details+counter+, ... %

You can have plain text or a run-time expression as an attribute, but 
not both. Hope this helps.

Nick

mucus snot wrote:

Hi list,

Just wondering if anyone has any bright ideas. Things that you can do 
easily with an a ... tag, are not (easily) acheivable with a 
html:link. For instance in the following code:

nested:iterate id=title name=%= Constants.TITLES_COLLECTION % 
scope=request indexId=counter
html:link page=/findtitles.do 
onmouseover=MM_swapImage('details%= counter %,...)...
/nested:iterate

counter will not resolve, although it will if the tag is an ordinary 
anchor.

Does anyone know a way around this? I have been resorting to using 
ordinary a... tags but have just realised that there is no session 
control if cookies are disabled. I have to use html:link...

thanks, al 




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


RE: html:link action - how to append query string

2004-02-27 Thread Tomeu Vizoso
I would recommend using the html-el tag library, in which case the code
should look like that:

html:link action='/scopeAction?row={$value}'

See here for an explanation on how to utilize the EL (expression
language):

http://javaboutique.internet.com/tutorials/Struts_EL/


Regards,

Tomeu

-Mensagem original-
De: Leticia Golubov [mailto:[EMAIL PROTECTED] 
Enviada: sexta-feira, 27 de Fevereiro de 2004 15:50
Para: Struts User Mailing List
Assunto: html:link action - how to append query string


I have a simple question, for a change... :)

Given

% String value=some Value %

and

html:link action='/scopeAction?row=???'

how do I append the java var 'value' to the end of the action?

If I hardcode it, it works and the behaviour is as expected, i.e.:

html:link action='/scopeAction?row=3'

Note I have tried the following and failed:
html:link action='/scopeAction?row==value'
html:link action='/scopeAction?row==value'
html:link action=/scopeAction?row='=value'

Also searched on internet but didn't find anything as yet...

regards

NOTE: I don't want to use html:hidden property=row
value=%=value/ in this instance...


-
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 action - how to append query string

2004-02-27 Thread Paul, R. Chip
You have I think three choices, in preferred order:

1.  Use the paramName, paramScope, and paramProperty attributes of
html:link
(see
http://jakarta.apache.org/struts/userGuide/struts-html.html#link)
This may not work with the page scoped variable defined the way you've
done it, I don't know.

2.  Use Struts-EL and add ${value} into your link string

3.   html:link page='/scopeAction.do?row=% =value %'

I think your core problem is to pass an variable without the param
attributes you need to contstuct and send a URL, not the name of an action?



-Original Message-
From: Leticia Golubov [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 27, 2004 9:50 AM
To: Struts User Mailing List
Subject: html:link action - how to append query string


I have a simple question, for a change... :)

Given

% String value=some Value %

and

html:link action='/scopeAction?row=???'

how do I append the java var 'value' to the end of the action?

If I hardcode it, it works and the behaviour is as expected, i.e.:

html:link action='/scopeAction?row=3'

Note I have tried the following and failed:
html:link action='/scopeAction?row==value'
html:link action='/scopeAction?row==value'
html:link action=/scopeAction?row='=value'

Also searched on internet but didn't find anything as yet...

regards

NOTE: I don't want to use html:hidden property=row value=%=value/ in
this instance...


-
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 action - how to append query string

2004-02-27 Thread Leticia Golubov
Yes, I've been trying solution number 3, but that doesn't work at all. The
browser doesn't like and renders the link incorrectly.

I'm now trying solution 1, as suggested, as below:

html:link action='/scopeAction'
  paramId='%=value%'
  paramName='scopeForm'
paramProperty='row' 
...
/html:link

I've tried different permutations to set the value for the row property, but
had no success...  I read the link but that wasn't helpful at all.  What I
mean is, it's not clear to me how to set the value...  In the case above,
the row is not being set.

-Original Message-
From: Paul, R. Chip [mailto:[EMAIL PROTECTED]
Sent: 27 February 2004 15:59
To: 'Struts Users Mailing List'
Subject: RE: html:link action - how to append query string


You have I think three choices, in preferred order:

1.  Use the paramName, paramScope, and paramProperty attributes of
html:link
(see
http://jakarta.apache.org/struts/userGuide/struts-html.html#link)
This may not work with the page scoped variable defined the way you've
done it, I don't know.

2.  Use Struts-EL and add ${value} into your link string

3.   html:link page='/scopeAction.do?row=% =value %'

I think your core problem is to pass an variable without the param
attributes you need to contstuct and send a URL, not the name of an action?



-Original Message-
From: Leticia Golubov [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 9:50 AM
To: Struts User Mailing List
Subject: html:link action - how to append query string


I have a simple question, for a change... :)

Given

% String value=some Value %

and

html:link action='/scopeAction?row=???'

how do I append the java var 'value' to the end of the action?

If I hardcode it, it works and the behaviour is as expected, i.e.:

html:link action='/scopeAction?row=3'

Note I have tried the following and failed:
html:link action='/scopeAction?row==value'
html:link action='/scopeAction?row==value'
html:link action=/scopeAction?row='=value'

Also searched on internet but didn't find anything as yet...

regards

NOTE: I don't want to use html:hidden property=row value=%=value/ in
this instance...


-
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 action - how to append query string

2004-02-27 Thread Leticia Golubov
I just don't understand why the 3rd option doesn't work for me...

I've tried all possible variations of it but I just can't seem to be able to
parse
%value% to the query string... does anybody know why?

so html:link page=/scopeAction.do?row=%= value % doesn't work nor does
html:link page=/scopeAction.do?row='%= value %' and so on...

regards

-Original Message-
From: Paul, R. Chip [mailto:[EMAIL PROTECTED]
Sent: 27 February 2004 15:59
To: 'Struts Users Mailing List'
Subject: RE: html:link action - how to append query string


You have I think three choices, in preferred order:

1.  Use the paramName, paramScope, and paramProperty attributes of
html:link
(see
http://jakarta.apache.org/struts/userGuide/struts-html.html#link)
This may not work with the page scoped variable defined the way you've
done it, I don't know.

2.  Use Struts-EL and add ${value} into your link string

3.   html:link page='/scopeAction.do?row=% =value %'

I think your core problem is to pass an variable without the param
attributes you need to contstuct and send a URL, not the name of an action?



-Original Message-
From: Leticia Golubov [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 9:50 AM
To: Struts User Mailing List
Subject: html:link action - how to append query string


I have a simple question, for a change... :)

Given

% String value=some Value %

and

html:link action='/scopeAction?row=???'

how do I append the java var 'value' to the end of the action?

If I hardcode it, it works and the behaviour is as expected, i.e.:

html:link action='/scopeAction?row=3'

Note I have tried the following and failed:
html:link action='/scopeAction?row==value'
html:link action='/scopeAction?row==value'
html:link action=/scopeAction?row='=value'

Also searched on internet but didn't find anything as yet...

regards

NOTE: I don't want to use html:hidden property=row value=%=value/ in
this instance...


-
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 action - how to append query string

2004-02-27 Thread Hubert Rabago
Have you tried
html:link page=%= /scopeAction.do?row= + value % 
?

--- Leticia Golubov [EMAIL PROTECTED] wrote:
 I just don't understand why the 3rd option doesn't work for me...
 
 I've tried all possible variations of it but I just can't seem to be able
 to
 parse
 %value% to the query string... does anybody know why?
 
 so html:link page=/scopeAction.do?row=%= value % doesn't work nor
 does
 html:link page=/scopeAction.do?row='%= value %' and so on...
 
 regards
 
 -Original Message-
 From: Paul, R. Chip [mailto:[EMAIL PROTECTED]
 Sent: 27 February 2004 15:59
 To: 'Struts Users Mailing List'
 Subject: RE: html:link action - how to append query string
 
 
 You have I think three choices, in preferred order:
 
 1.  Use the paramName, paramScope, and paramProperty attributes of
 html:link
   (see
 http://jakarta.apache.org/struts/userGuide/struts-html.html#link)
 This may not work with the page scoped variable defined the way you've
 done it, I don't know.
 
 2.  Use Struts-EL and add ${value} into your link string
 
 3.   html:link page='/scopeAction.do?row=% =value %'
 
 I think your core problem is to pass an variable without the param
 attributes you need to contstuct and send a URL, not the name of an action?
 
 
 
 -Original Message-
 From: Leticia Golubov [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 27, 2004 9:50 AM
 To: Struts User Mailing List
 Subject: html:link action - how to append query string
 
 
 I have a simple question, for a change... :)
 
 Given
 
 % String value=some Value %
 
 and
 
 html:link action='/scopeAction?row=???'
 
 how do I append the java var 'value' to the end of the action?
 
 If I hardcode it, it works and the behaviour is as expected, i.e.:
 
 html:link action='/scopeAction?row=3'
 
 Note I have tried the following and failed:
 html:link action='/scopeAction?row==value'
 html:link action='/scopeAction?row==value'
 html:link action=/scopeAction?row='=value'
 
 Also searched on internet but didn't find anything as yet...
 
 regards
 
 NOTE: I don't want to use html:hidden property=row value=%=value/
 in
 this instance...
 
 
 -
 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]
 


__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

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



RE: html:link action - how to append query string

2004-02-27 Thread Leticia Golubov
No!! But it worked! You're a star!  I owe you a beer or a tea (if you're
not a drinker) :)

thanks :)

-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: 27 February 2004 16:52
To: Struts Users Mailing List
Subject: RE: html:link action - how to append query string


Have you tried
html:link page=%= /scopeAction.do?row= + value %
?

--- Leticia Golubov [EMAIL PROTECTED] wrote:
 I just don't understand why the 3rd option doesn't work for me...

 I've tried all possible variations of it but I just can't seem to be able
 to
 parse
 %value% to the query string... does anybody know why?

 so html:link page=/scopeAction.do?row=%= value % doesn't work nor
 does
 html:link page=/scopeAction.do?row='%= value %' and so on...

 regards

 -Original Message-
 From: Paul, R. Chip [mailto:[EMAIL PROTECTED]
 Sent: 27 February 2004 15:59
 To: 'Struts Users Mailing List'
 Subject: RE: html:link action - how to append query string


 You have I think three choices, in preferred order:

 1.  Use the paramName, paramScope, and paramProperty attributes of
 html:link
   (see
 http://jakarta.apache.org/struts/userGuide/struts-html.html#link)
 This may not work with the page scoped variable defined the way you've
 done it, I don't know.

 2.  Use Struts-EL and add ${value} into your link string

 3.   html:link page='/scopeAction.do?row=% =value %'

 I think your core problem is to pass an variable without the param
 attributes you need to contstuct and send a URL, not the name of an
action?



 -Original Message-
 From: Leticia Golubov [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 27, 2004 9:50 AM
 To: Struts User Mailing List
 Subject: html:link action - how to append query string


 I have a simple question, for a change... :)

 Given

 % String value=some Value %

 and

 html:link action='/scopeAction?row=???'

 how do I append the java var 'value' to the end of the action?

 If I hardcode it, it works and the behaviour is as expected, i.e.:

 html:link action='/scopeAction?row=3'

 Note I have tried the following and failed:
 html:link action='/scopeAction?row==value'
 html:link action='/scopeAction?row==value'
 html:link action=/scopeAction?row='=value'

 Also searched on internet but didn't find anything as yet...

 regards

 NOTE: I don't want to use html:hidden property=row value=%=value/
 in
 this instance...


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



__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

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

2004-02-25 Thread Niall Pemberton
Someone else was struggling with this problem this week - they ended up
using the logic:equal/notEqual tags, but they only required two options.

If you want the conditional logic in your jsp then put it in either ...
1) Scriptlet
2) Struts logic tags
3) JSTL
4) Your own custom tag (maybe extending the html:link tag)

Niall
- Original Message - 
From: Jakarta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 1:32 PM
Subject: html:link  dynamic URI


 Greetings,

 What I'd like to do is to dynamically write the URI of the Forward
 attribute of the HTML:Link tag from a bean as follows:

 logic:iterate id=refVO name=listRef type=abc.ref.RefVO
tr
   td class=darkGreyDescription
  brhtml:link forward=bean:write name=refVO
 property=link/ paramId=id
  paramName=refVO paramProperty= tableID styleClass=anchor
  bean:write name=refVO
 property=businessName//html:link:nbsp;
  bean:write name=refVO property=description/
   /td
   td/td
/tr
 /logic:iterate

 I get an Attribute refVO has no value error.

 The idea is to have a JSP page with more than one possible link
 depending on the data.
 I have searched the mail archives without any success. :-(
 Any help would be appreciated!

 TIA,
 Glenn




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



Re: html:link dynamic URI

2004-02-25 Thread Mark Lowe
html-el will do you. If you're running tc5 then you can use the 
expression syntax in standard tag libs (i think).

if not then .
html-el:link page=${refVO.link}
or

html:link page =%= refVO.getLink() %

or

a href=c:url value=${refVO.link} /

If you get the jstl route then use c:forEach rather than iterate, 
although it will work with either.

On 25 Feb 2004, at 14:32, Jakarta wrote:

Greetings,

What I'd like to do is to dynamically write the URI of the Forward
attribute of the HTML:Link tag from a bean as follows:
logic:iterate id=refVO name=listRef type=abc.ref.RefVO
   tr
  td class=darkGreyDescription
 brhtml:link forward=bean:write name=refVO
property=link/ paramId=id
 paramName=refVO paramProperty= tableID 
styleClass=anchor
 bean:write name=refVO
property=businessName//html:link:nbsp;
 bean:write name=refVO property=description/
  /td
  td/td
   /tr
/logic:iterate

I get an Attribute refVO has no value error.

The idea is to have a JSP page with more than one possible link
depending on the data.
I have searched the mail archives without any success. :-(
Any help would be appreciated!
TIA,
Glenn


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


Re: html:link with linkName attribute becomes anchor?

2004-02-19 Thread Kris Schneider
HTML 4.01 Specification

12.1.3 Specifying anchors and links

Authors may set the name and href attributes simultaneously in the same A instance.

Quoting Brice Ruth [EMAIL PROTECTED]:

 Is it in violation of the HTML 4 (or XHTML 1) spec that an a .../a 
 tag have *both* an href and a name attribute? I ask, because in Struts 
 1.1, apparently, if I specify a linkName attribute to an otherwise 
 normal html:link tag (with either page, action, or href specified) - 
 it ignores everything else that I've specified and outputs only an a 
 name=.../a tag.
 
 We're in the process of integrating statistical link tracking into our 
 site and certain javascript requires that a 'name' and an 'id' be set 
 for certain links ... and I can't figure out how to get Struts to do 
 this, without the behaviour above.
 
 Of course, I could create a custom tag that extends the existing Struts 
 tag, but I'd rather get an understanding of what's going on, before I go 
 that route.
 
 Thanks!
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.

-- 
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: html:link with linkName attribute becomes anchor?

2004-02-19 Thread Brice Ruth
OK, then it seems that the Struts behaviour is incorrect?

Kris Schneider wrote:

HTML 4.01 Specification

12.1.3 Specifying anchors and links

Authors may set the name and href attributes simultaneously in the same A instance.

Quoting Brice Ruth [EMAIL PROTECTED]:

 

Is it in violation of the HTML 4 (or XHTML 1) spec that an a .../a 
tag have *both* an href and a name attribute? I ask, because in Struts 
1.1, apparently, if I specify a linkName attribute to an otherwise 
normal html:link tag (with either page, action, or href specified) - 
it ignores everything else that I've specified and outputs only an a 
name=.../a tag.

We're in the process of integrating statistical link tracking into our 
site and certain javascript requires that a 'name' and an 'id' be set 
for certain links ... and I can't figure out how to get Struts to do 
this, without the behaviour above.

Of course, I could create a custom tag that extends the existing Struts 
tag, but I'd rather get an understanding of what's going on, before I go 
that route.

Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: html:link with linkName attribute becomes anchor?

2004-02-19 Thread Kris Schneider
Seems like it...

Quoting Brice Ruth [EMAIL PROTECTED]:

 OK, then it seems that the Struts behaviour is incorrect?
 
 Kris Schneider wrote:
 
 HTML 4.01 Specification
 
 12.1.3 Specifying anchors and links
 
 Authors may set the name and href attributes simultaneously in the same A
 instance.
 
 Quoting Brice Ruth [EMAIL PROTECTED]:
 
   
 
 Is it in violation of the HTML 4 (or XHTML 1) spec that an a .../a 
 tag have *both* an href and a name attribute? I ask, because in Struts 
 1.1, apparently, if I specify a linkName attribute to an otherwise 
 normal html:link tag (with either page, action, or href specified) - 
 it ignores everything else that I've specified and outputs only an a 
 name=.../a tag.
 
 We're in the process of integrating statistical link tracking into our 
 site and certain javascript requires that a 'name' and an 'id' be set 
 for certain links ... and I can't figure out how to get Struts to do 
 this, without the behaviour above.
 
 Of course, I could create a custom tag that extends the existing Struts 
 tag, but I'd rather get an understanding of what's going on, before I go 
 that route.
 
 Thanks!
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
   
 
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.

-- 
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: html:link with linkName attribute becomes anchor?

2004-02-19 Thread Brice Ruth
Is anyone out there using a Struts build later than the 1.1 release that 
could test for me if this is fixed in a later release?

Thanks!

Kris Schneider wrote:

Seems like it...

Quoting Brice Ruth [EMAIL PROTECTED]:

 

OK, then it seems that the Struts behaviour is incorrect?

Kris Schneider wrote:

   

HTML 4.01 Specification

12.1.3 Specifying anchors and links

Authors may set the name and href attributes simultaneously in the same A
 

instance.
   

Quoting Brice Ruth [EMAIL PROTECTED]:



 

Is it in violation of the HTML 4 (or XHTML 1) spec that an a .../a 
tag have *both* an href and a name attribute? I ask, because in Struts 
1.1, apparently, if I specify a linkName attribute to an otherwise 
normal html:link tag (with either page, action, or href specified) - 
it ignores everything else that I've specified and outputs only an a 
name=.../a tag.

We're in the process of integrating statistical link tracking into our 
site and certain javascript requires that a 'name' and an 'id' be set 
for certain links ... and I can't figure out how to get Struts to do 
this, without the behaviour above.

Of course, I could create a custom tag that extends the existing Struts 
tag, but I'd rather get an understanding of what's going on, before I go 
that route.

Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
  

   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
-
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.
 
  c:set var=concernType value=${project.progressConcernType}
  scope=request/
 
  jsp:useBean id=paramMap class=java.util.HashMap /
 
  c:set target=${paramMap} property=projectIdentifier
  value=${project.projectIdentifier} /
 
  c:set target=${paramMap} property=concern
  value=${concernType} /
 
 
 
  html-el:link action=advanceProjectConcern.do
  name=paramMap 
  
  /html-el:link
 
 
  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 = bean:write name=task
  property=documentNumber/ ; %
 
  Here is a portion of the jsp that I am working with:
 
logic:iterate id=task  name=productionQcForm
  property=documents 
  td class=databean:write name=task
  property=docGid/nbsp;/td
  td class=databean:write name=task
  property=revision/nbsp;/td
  td class=databean:write name=task
  property=pgCount/nbsp;/td
  td class=databean:write name=task
  property=statDate/nbsp;/td
  td class=databean:write name=task
  property=itemVkey/nbsp;/td
  td class=databean:write name=task
  property=title/nbsp;/td
  td class=databean:write name=task
  property=autoReject/nbsp;/td
  html:hidden name=task property=altGid /
  html:hidden name=task property=supplement /
  html:hidden name=task property=chgType /
  html:hidden name=task property=society /
  html:hidden name=task property=documentNumber 
  html:hidden name=task property=order /
   %
   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);
 
  %
  td class=data align=center
 html:link page=/showScannerPdf.do name=map 
 html:img src=images/EditBCard.gif
  altKey=action.properties
width=20 height=20 border=0/
 /html:link
 /td
 
 
  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
I did something along those lines using Struts-EL.

c:set var=concernType value=${project.progressConcernType}
scope=request/

jsp:useBean id=paramMap class=java.util.HashMap /

c:set target=${paramMap} property=projectIdentifier 
value=${project.projectIdentifier} /

c:set target=${paramMap} property=concern 
value=${concernType} /



html-el:link action=advanceProjectConcern.do
name=paramMap 

/html-el:link


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 = bean:write name=task 
property=documentNumber/ ; %
 
Here is a portion of the jsp that I am working with:
 
  logic:iterate id=task  name=productionQcForm 
property=documents 
td class=databean:write name=task 
property=docGid/nbsp;/td
td class=databean:write name=task 
property=revision/nbsp;/td
td class=databean:write name=task 
property=pgCount/nbsp;/td
td class=databean:write name=task 
property=statDate/nbsp;/td
td class=databean:write name=task 
property=itemVkey/nbsp;/td
td class=databean:write name=task 
property=title/nbsp;/td
td class=databean:write name=task 
property=autoReject/nbsp;/td
html:hidden name=task property=altGid /
html:hidden name=task property=supplement /
html:hidden name=task property=chgType /
html:hidden name=task property=society /
html:hidden name=task property=documentNumber 
html:hidden name=task property=order /
 %
 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);
 
%
td class=data align=center
   html:link page=/showScannerPdf.do name=map 
   html:img src=images/EditBCard.gif 
altKey=action.properties
  width=20 height=20 border=0/
   /html:link
   /td

 
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]



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.

 c:set var=concernType value=${project.progressConcernType}
 scope=request/

 jsp:useBean id=paramMap class=java.util.HashMap /

 c:set target=${paramMap} property=projectIdentifier
 value=${project.projectIdentifier} /

 c:set target=${paramMap} property=concern
 value=${concernType} /



 html-el:link action=advanceProjectConcern.do
 name=paramMap 
 
 /html-el:link


 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 = bean:write name=task
 property=documentNumber/ ; %

 Here is a portion of the jsp that I am working with:

   logic:iterate id=task  name=productionQcForm
 property=documents 
 td class=databean:write name=task
 property=docGid/nbsp;/td
 td class=databean:write name=task
 property=revision/nbsp;/td
 td class=databean:write name=task
 property=pgCount/nbsp;/td
 td class=databean:write name=task
 property=statDate/nbsp;/td
 td class=databean:write name=task
 property=itemVkey/nbsp;/td
 td class=databean:write name=task
 property=title/nbsp;/td
 td class=databean:write name=task
 property=autoReject/nbsp;/td
 html:hidden name=task property=altGid /
 html:hidden name=task property=supplement /
 html:hidden name=task property=chgType /
 html:hidden name=task property=society /
 html:hidden name=task property=documentNumber 
 html:hidden name=task property=order /
  %
  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);

 %
 td class=data align=center
html:link page=/showScannerPdf.do name=map 
html:img src=images/EditBCard.gif
 altKey=action.properties
   width=20 height=20 border=0/
/html:link
/td


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

 c:set var=concernType value=${project.progressConcernType}
 scope=request/

 jsp:useBean id=paramMap class=java.util.HashMap /

 c:set target=${paramMap} property=projectIdentifier
 value=${project.projectIdentifier} /

 c:set target=${paramMap} property=concern
 value=${concernType} /



 html-el:link action=advanceProjectConcern.do
 name=paramMap 
 
 /html-el:link


 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 = bean:write name=task
 property=documentNumber/ ; %

 Here is a portion of the jsp that I am working with:

   logic:iterate id=task  name=productionQcForm
 property=documents 
 td class=databean:write name=task
 property=docGid/nbsp;/td
 td class=databean:write name=task
 property=revision/nbsp;/td
 td class=databean:write name=task
 property=pgCount/nbsp;/td
 td class=databean:write name=task
 property=statDate/nbsp;/td
 td class=databean:write name=task
 property=itemVkey/nbsp;/td
 td class=databean:write name=task
 property=title/nbsp;/td
 td class=databean:write name=task
 property=autoReject/nbsp;/td
 html:hidden name=task property=altGid /
 html:hidden name=task property=supplement /
 html:hidden name=task property=chgType /
 html:hidden name=task property=society /
 html:hidden name=task property=documentNumber 
 html:hidden name=task property=order /
  %
  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);

 %
 td class=data align=center
html:link page=/showScannerPdf.do name=map 
html:img src=images/EditBCard.gif
 altKey=action.properties
   width=20 height=20 border=0/
/html:link
/td


 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 instead of html:submit

2004-02-13 Thread Paul McCulloch
I don't beleve this will submit the values in the form's input fields. I've
achieved this functionality by having links which use javascript to set the
dispatch form value  call submit.

Paul

 -Original Message-
 From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED]
 Sent: 12 February 2004 19:45
 To: Struts Users Mailing List
 Subject: RE: html:link instead of html:submit
 
 
 Wouldn't query parameters work here?
 
 How abt using html:link page=/youraction?buttonName=testButton /
 
 
 HTH..
 
 -jayash
 
 
 
 -Original Message-
 From: Dieter Mummenschanz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 12, 2004 12:46 PM
 To: [EMAIL PROTECTED]
 Subject: html:link instead of html:submit
 
 
 Hello,
 
 I have a jsp page with some html:submit buttons. The 
 servlet identifies
 the klicked button by invoking httpservletrequest.getParameter(...).
 Is there a way to use links in my .jsp page using html:link 
 instead of
 html:submit?
 
 Thx for any help,
 Dieter
 
 -- 
 GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 
 EUR/Monat...)
 jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ 
http://www.gmx.net/derspiegel +++


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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



RE: [SPAM] - RE: html:link instead of html:submit - Bayesian Filter detected spam

2004-02-13 Thread Gagné Jean-Christian
Works well with this javascript. Sorry for the french content...

/* Déclancher un submit depuis un lien */
function submitForm(aFormName, aSubmitValue) {
  var vForm = document.forms[aFormName];
  if (vForm == null) {
  alert(La page ne contient pas de formulaire nommé ' + aFormName +
');
  }

  var vElement = vForm.elements[submitValue];
  if (vElement == null) {
  alert(Le formulaire ' + aFormName + ' ne contient pas le champs
'submitValue');
  }
  else {
vElement.value = aSubmitValue;
  return vForm.submit();
  }
}


In your jsp, this link will set the dispatch value in the form and submit
it...

a href=javascript:submitForm('MyForm', 'MyDispatch')Click here to
submit/a

NOTE: Your form MUST have a hidden field named submitValue (or dispatch
or whatever...just be in sync with the script)


JCG


 -Message d'origine-
 De : Paul McCulloch [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 13 février 2004 11:36
 À : 'Struts Users Mailing List'
 Objet : [SPAM] - RE: html:link instead of html:submit - Bayesian
 Filter detected spam
 
 
 I don't beleve this will submit the values in the form's 
 input fields. I've
 achieved this functionality by having links which use 
 javascript to set the
 dispatch form value  call submit.
 
 Paul
 
  -Original Message-
  From: Gopalakrishnan, Jayesh 
 [mailto:[EMAIL PROTECTED]
  Sent: 12 February 2004 19:45
  To: Struts Users Mailing List
  Subject: RE: html:link instead of html:submit
  
  
  Wouldn't query parameters work here?
  
  How abt using html:link page=/youraction?buttonName=testButton /
  
  
  HTH..
  
  -jayash
  
  
  
  -Original Message-
  From: Dieter Mummenschanz [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 12, 2004 12:46 PM
  To: [EMAIL PROTECTED]
  Subject: html:link instead of html:submit
  
  
  Hello,
  
  I have a jsp page with some html:submit buttons. The 
  servlet identifies
  the klicked button by invoking 
 httpservletrequest.getParameter(...).
  Is there a way to use links in my .jsp page using html:link 
  instead of
  html:submit?
  
  Thx for any help,
  Dieter
  
  -- 
  GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 
  EUR/Monat...)
  jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ 
 http://www.gmx.net/derspiegel +++
 
 
 -
 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]
 
 
 **
 Axios Email Confidentiality Footer
 Privileged/Confidential Information may be contained in this 
 message. If you are not the addressee indicated in this 
 message (or responsible for delivery of the message to such 
 person), you may not copy or deliver this message to anyone. 
 In such case, you should destroy this message, and notify us 
 immediately. If you or your employer does not consent to 
 Internet email messages of this kind, please advise us 
 immediately. Opinions, conclusions and other information 
 expressed in this message are not given or endorsed by my 
 Company or employer unless otherwise indicated by an 
 authorised representative independent of this message.
 WARNING:
 While Axios Systems Ltd takes steps to prevent computer 
 viruses from being transmitted via electronic mail 
 attachments we cannot guarantee that attachments do not 
 contain computer virus code.  You are therefore strongly 
 advised to undertake anti virus checks prior to accessing the 
 attachment to this electronic mail.  Axios Systems Ltd grants 
 no warranties regarding performance use or quality of any 
 attachment and undertakes no liability for loss or damage 
 howsoever caused.
 
 
 -
 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 instead of html:submit

2004-02-13 Thread Samyukta Akunuru
Hi,

Could you enclose the snippet please.

I modified the struts-config_xml.xdt of my xdoclet-apache-module-1.2b4.jar
I made my class extend struts's Dispatch action
But xdoclet is not generating the requisite action mappings in my resultant 
struts-config.xml.
also myForm.getDispatch() method returning null as its not setting he dispatch 
variable in my form/jsp
(folowed ted husted's tip#2 at:
http://www.jguru.com/faq/view.jsp?EID=897290

Any clue..

Thanks!

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 4:36 AM
To: 'Struts Users Mailing List'
Subject: RE: html:link instead of html:submit


I don't beleve this will submit the values in the form's input fields. I've
achieved this functionality by having links which use javascript to set the
dispatch form value  call submit.

Paul

 -Original Message-
 From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED]
 Sent: 12 February 2004 19:45
 To: Struts Users Mailing List
 Subject: RE: html:link instead of html:submit
 
 
 Wouldn't query parameters work here?
 
 How abt using html:link page=/youraction?buttonName=testButton /
 
 
 HTH..
 
 -jayash
 
 
 
 -Original Message-
 From: Dieter Mummenschanz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 12, 2004 12:46 PM
 To: [EMAIL PROTECTED]
 Subject: html:link instead of html:submit
 
 
 Hello,
 
 I have a jsp page with some html:submit buttons. The 
 servlet identifies
 the klicked button by invoking httpservletrequest.getParameter(...).
 Is there a way to use links in my .jsp page using html:link 
 instead of
 html:submit?
 
 Thx for any help,
 Dieter
 
 -- 
 GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 
 EUR/Monat...)
 jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ 
http://www.gmx.net/derspiegel +++


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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


-
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 instead of html:submit

2004-02-13 Thread Timothy Stone
Paul McCulloch wrote:
I don't beleve this will submit the values in the form's input fields. I've
achieved this functionality by having links which use javascript to set the
dispatch form value  call submit.
Paul

I was going to say the same thing.

Try something like
	a href=/page?queryString onclick=document.formName.submit();return 
false; onkeypress=return this.onclick()Submit Query/a

The HREF provides a non-Javascript browser a backup (section 508, WAI, 
etc). The return false; of onclick ensures that the event replaces the 
default behavior of the link, and the onkeypress further meets section 
508, where mouse use is limited or not possible (think non-sighted 
users). I suppose one can do this in a Struts specific manner if desired 
of course. But I'm a Struts newbie.

If anyone wishes to provide the Struts-way, please do so.

HTH,
Tim


-Original Message-
From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED]
Sent: 12 February 2004 19:45
To: Struts Users Mailing List
Subject: RE: html:link instead of html:submit
Wouldn't query parameters work here?

How abt using html:link page=/youraction?buttonName=testButton /

HTH..

-jayash



-Original Message-
From: Dieter Mummenschanz [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject: html:link instead of html:submit
Hello,

I have a jsp page with some html:submit buttons. The 
servlet identifies
the klicked button by invoking httpservletrequest.getParameter(...).
Is there a way to use links in my .jsp page using html:link 
instead of
html:submit?

Thx for any help,
Dieter


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


RE: RE: html:link instead of html:submit

2004-02-13 Thread Gagné Jean-Christian
It looks like my previous answer to this did't make its way to the list.
Posting again...



Works well with this javascript. Sorry for the french content...

/* Déclancher un submit depuis un lien */
function submitForm(aFormName, aSubmitValue) {
  var vForm = document.forms[aFormName];
  if (vForm == null) {
  alert(La page ne contient pas de formulaire nommé ' + aFormName +
');
  }

  var vElement = vForm.elements[submitValue];
  if (vElement == null) {
  alert(Le formulaire ' + aFormName + ' ne contient pas le champs
'submitValue');
  }
  else {
vElement.value = aSubmitValue;
  return vForm.submit();
  }
}


In your jsp, this link will set the dispatch value in the form and submit
it...

a href=javascript:submitForm('MyForm', 'MyDispatch');Click here to
submit/a

NOTE: Your form MUST have a hidden field named submitValue (or dispatch
or whatever...just be in sync with the script)


JCG


 -Message d'origine-
 De : Voinea, Marina [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 13 février 2004 15:57
 À : 'Struts Users Mailing List'
 Objet : [SPAM] - RE: html:link instead of html:submit - Bayesian
 Filter detected spam
 
 
 Paul, I have also been trying to use a submit within a 
 html-el:link (using
 Struts). I've been trying in different ways, none of which 
 worked, and I am
 exhausted after several days of continously surfing the net 
 and trying.
 I am not a Struts specialist, we are on our first project here.
 
   Could you  please include an example of your code?
Does it work with Struts html:link tag ?
(Even if it is not using Struts tag, I may try to go that way)
   Do we have to have a dispatch Action, can't we have  
 anormal action there:
 
  
   Here is my code (which does not work...):  (Struts 1.1, 
 Weblogic 8.1)
 
 ===Extas from my jsp code: 
  html-el:form action=prep_address_book
 
 logic-el:iterate id=crtParticipant indexId=idx name=genForm
 property=list(PARTICIPANTS) 
 
   html-el:link  styleClass=ListDetails
 page=/action/edit_address_book_participant indexed=true 
   indexId=current_index name=genForm 
   property=indexedValue(PARTICIPANTS:${idx}).map
 scope=request 
   onClick=document.genForm.submit();
   bean:write name=crtParticipant
 property=value(LAST_NAME)/
   /html-el:link
 /logic-el:iterate  
   
 /html-el:form
 
 === Struts config: =
 
 //the current form whic contains the link
action path=/prep_address_book scope=request name=genForm
 redirect=false
  
 type=com.genesys.confmgr.controller.action.PrepAddressBook
 forward name=success path=/AddressBook.jsp /
 forward name=edit_address_book_participant 
 path=/AddParticipant.jsp
 redirect=false/
 forward name=error path=/LeftNav.jsp redirect=false /
/action
 
   action path=/edit_address_book_participant scope=request
 name=genForm redirect=false
  
 type=com.genesys.confmgr.controller.action.EditAddressBookPar
 ticipant
 forward name=success path=/AddParticipant.jsp /
 forward name=back_to_address_book 
 path=/action/prep_address_book /
 forward name=error path=/LeftNav.jsp redirect=false /
/action
 
 
 =
   in submit(), the genForm is the name of the form 
 associated with the
 current page (that contains the html-el:link).
   The current behavior (of the above code)is :
 - I have a page which displays participants (in a logic:iterate);
 -For every participant it displays a a row with some info 
 (FirstName,
 LastNAme etc)
 -The LAST NAME is displayed as a link, and when clicking 
 on the link:
   -it goes to the action specified in the page property
 (which works OK), 
   - it forwards the map with the values of the participant
 associated with the current row (whose link was clicked). 
 which works OK.
   - However, with the previous code, when I get to my new
 ACtion (associated with 
 page=/action/edit_address_book_participant, the
 form I receive is empty (previous page is not submited) . I 
 only get the map
 of vales from the link).   
 
  Is it possible to have a submit type of behaviour 
 such that:
   - when I get to my new page, I not only have the map
 forwarded by the property of the html:link, 
   - but I also get the entire previous form 
 
 (I would need to have all the participant rows, not 
 just the one
 clicked - because I do not want to loose the info (the other rows) and
 either go to the back end to fetch them again, or store them in the
 session). A submit type behavior would give me the entire 
 form, plus the
 map provided by the link functionality.(current row data) 
   Is this possible in Struts ? How does  html-el:link  tag 
 interact with
 onclick property?
   
   MAybe the syntax for the onclick is wrong ? Any

RE: RE: html:link instead of html:submit

2004-02-13 Thread Voinea, Marina

Thanks a lot Jean-Christian, this is a complete example, I will try it, but
I was wondering if anybody has done same thing  with Struts's html:link tag.

 I'll try to see if it works there, probably I'll have something like:

  onClick=submitForm('MyForm', 'MyDispatch');


The other problem is that we have only one generic form : genForm defined
in our struts config file.
(all actions use one generic, map backed form). 
 Probably the system will take the last genform (the one associated with the
current page).
 Is it correct to say that I have to use the form name from the action
mapping (from struts config)?

-Original Message-
From: Gagné Jean-Christian [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 11:24 AM
To: 'Struts Users Mailing List'
Subject: RE: RE: html:link instead of html:submit 


It looks like my previous answer to this did't make its way to the list.
Posting again...



Works well with this javascript. Sorry for the french content...

/* Déclancher un submit depuis un lien */
function submitForm(aFormName, aSubmitValue) {
  var vForm = document.forms[aFormName];
  if (vForm == null) {
  alert(La page ne contient pas de formulaire nommé ' + aFormName +
');
  }

  var vElement = vForm.elements[submitValue];
  if (vElement == null) {
  alert(Le formulaire ' + aFormName + ' ne contient pas le champs
'submitValue');
  }
  else {
vElement.value = aSubmitValue;
  return vForm.submit();
  }
}


In your jsp, this link will set the dispatch value in the form and submit
it...

a href=javascript:submitForm('MyForm', 'MyDispatch');Click here to
submit/a

NOTE: Your form MUST have a hidden field named submitValue (or dispatch
or whatever...just be in sync with the script)


JCG


 -Message d'origine-
 De : Voinea, Marina [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 13 février 2004 15:57
 À : 'Struts Users Mailing List'
 Objet : [SPAM] - RE: html:link instead of html:submit - Bayesian
 Filter detected spam
 
 
 Paul, I have also been trying to use a submit within a 
 html-el:link (using
 Struts). I've been trying in different ways, none of which 
 worked, and I am
 exhausted after several days of continously surfing the net 
 and trying.
 I am not a Struts specialist, we are on our first project here.
 
   Could you  please include an example of your code?
Does it work with Struts html:link tag ?
(Even if it is not using Struts tag, I may try to go that way)
   Do we have to have a dispatch Action, can't we have  
 anormal action there:
 
  
   Here is my code (which does not work...):  (Struts 1.1, 
 Weblogic 8.1)
 
 ===Extas from my jsp code: 
  html-el:form action=prep_address_book
 
 logic-el:iterate id=crtParticipant indexId=idx name=genForm
 property=list(PARTICIPANTS) 
 
   html-el:link  styleClass=ListDetails
 page=/action/edit_address_book_participant indexed=true 
   indexId=current_index name=genForm 
   property=indexedValue(PARTICIPANTS:${idx}).map
 scope=request 
   onClick=document.genForm.submit();
   bean:write name=crtParticipant
 property=value(LAST_NAME)/
   /html-el:link
 /logic-el:iterate  
   
 /html-el:form
 
 === Struts config: =
 
 //the current form whic contains the link
action path=/prep_address_book scope=request name=genForm
 redirect=false
  
 type=com.genesys.confmgr.controller.action.PrepAddressBook
 forward name=success path=/AddressBook.jsp /
 forward name=edit_address_book_participant 
 path=/AddParticipant.jsp
 redirect=false/
 forward name=error path=/LeftNav.jsp redirect=false /
/action
 
   action path=/edit_address_book_participant scope=request
 name=genForm redirect=false
  
 type=com.genesys.confmgr.controller.action.EditAddressBookPar
 ticipant
 forward name=success path=/AddParticipant.jsp /
 forward name=back_to_address_book 
 path=/action/prep_address_book /
 forward name=error path=/LeftNav.jsp redirect=false /
/action
 
 
 =
   in submit(), the genForm is the name of the form 
 associated with the
 current page (that contains the html-el:link).
   The current behavior (of the above code)is :
 - I have a page which displays participants (in a logic:iterate);
 -For every participant it displays a a row with some info 
 (FirstName,
 LastNAme etc)
 -The LAST NAME is displayed as a link, and when clicking 
 on the link:
   -it goes to the action specified in the page property
 (which works OK), 
   - it forwards the map with the values of the participant
 associated with the current row (whose link was clicked). 
 which works OK.
   - However, with the previous code, when I get to my new
 ACtion (associated with 
 page=/action/edit_address_book_participant, the
 form I receive is empty (previous

Re: html:link instead of html:submit

2004-02-13 Thread Mark Lowe
if you're saying what i think you are

function submit(form,dispatch) {
// jsut to test
alert(form.name);
}
 onclick=submit(this.form,'MyDispatch')

perhaps i haven't understood however.

On 13 Feb 2004, at 18:43, Voinea, Marina wrote:

Thanks a lot Jean-Christian, this is a complete example, I will try 
it, but
I was wondering if anybody has done same thing  with Struts's 
html:link tag.

 I'll try to see if it works there, probably I'll have something like:

  onClick=submitForm('MyForm', 'MyDispatch');

The other problem is that we have only one generic form : genForm 
defined
in our struts config file.
(all actions use one generic, map backed form).
 Probably the system will take the last genform (the one associated 
with the
current page).
 Is it correct to say that I have to use the form name from the action
mapping (from struts config)?

-Original Message-
From: Gagné Jean-Christian [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 11:24 AM
To: 'Struts Users Mailing List'
Subject: RE: RE: html:link instead of html:submit
It looks like my previous answer to this did't make its way to the 
list.
Posting again...



Works well with this javascript. Sorry for the french content...

/* Déclancher un submit depuis un lien */
function submitForm(aFormName, aSubmitValue) {
  var vForm = document.forms[aFormName];
  if (vForm == null) {
  alert(La page ne contient pas de formulaire nommé ' + 
aFormName +
');
  }

  var vElement = vForm.elements[submitValue];
  if (vElement == null) {
  alert(Le formulaire ' + aFormName + ' ne contient pas le 
champs
'submitValue');
  }
  else {
	vElement.value = aSubmitValue;
  return vForm.submit();
  }
}

In your jsp, this link will set the dispatch value in the form and 
submit
it...

a href=javascript:submitForm('MyForm', 'MyDispatch');Click here to
submit/a
NOTE: Your form MUST have a hidden field named submitValue (or 
dispatch
or whatever...just be in sync with the script)

JCG


-Message d'origine-
De : Voinea, Marina [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 13 février 2004 15:57
À : 'Struts Users Mailing List'
Objet : [SPAM] - RE: html:link instead of html:submit - Bayesian
Filter detected spam
Paul, I have also been trying to use a submit within a
html-el:link (using
Struts). I've been trying in different ways, none of which
worked, and I am
exhausted after several days of continously surfing the net
and trying.
I am not a Struts specialist, we are on our first project here.
  Could you  please include an example of your code?
   Does it work with Struts html:link tag ?
   (Even if it is not using Struts tag, I may try to go that way)
  Do we have to have a dispatch Action, can't we have
anormal action there:
  Here is my code (which does not work...):  (Struts 1.1,
Weblogic 8.1)
===Extas from my jsp code: 
 html-el:form action=prep_address_book
logic-el:iterate id=crtParticipant indexId=idx name=genForm
property=list(PARTICIPANTS)
html-el:link  styleClass=ListDetails
page=/action/edit_address_book_participant indexed=true
indexId=current_index name=genForm
property=indexedValue(PARTICIPANTS:${idx}).map
scope=request
onClick=document.genForm.submit(); 
  bean:write name=crtParticipant
property=value(LAST_NAME)/
  /html-el:link
/logic-el:iterate
/html-el:form

=== Struts config: =

//the current form whic contains the link
   action path=/prep_address_book scope=request name=genForm
redirect=false
type=com.genesys.confmgr.controller.action.PrepAddressBook
forward name=success path=/AddressBook.jsp /
forward name=edit_address_book_participant
path=/AddParticipant.jsp
redirect=false/
forward name=error path=/LeftNav.jsp redirect=false /
   /action
  action path=/edit_address_book_participant scope=request
name=genForm redirect=false
type=com.genesys.confmgr.controller.action.EditAddressBookPar
ticipant
forward name=success path=/AddParticipant.jsp /
forward name=back_to_address_book
path=/action/prep_address_book /
forward name=error path=/LeftNav.jsp redirect=false /
   /action
=
  in submit(), the genForm is the name of the form
associated with the
current page (that contains the html-el:link).
  The current behavior (of the above code)is :
- I have a page which displays participants (in a logic:iterate);
-For every participant it displays a a row with some info
(FirstName,
LastNAme etc)
-The LAST NAME is displayed as a link, and when clicking
on the link:
-it goes to the action specified in the page property
(which works OK),
- it forwards the map with the values of the participant
associated with the current row (whose link was clicked).
which works OK.
- However, with the previous code, when I

RE: html:link instead of html:submit

2004-02-13 Thread Samyukta Akunuru
Mark,

Seems like you want to use same one form to achive multiple functionalities.probably 
DispatchAction would be helpful.
I am working on a similar app to delete and display users with the same one form.
Still trying to see if all this can get done just with javascript instead of 
re-modelling my action class as to extend Dispatch action.

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 1:07 PM
To: Struts Users Mailing List
Subject: Re: html:link instead of html:submit 


if you're saying what i think you are

function submit(form,dispatch) {
// jsut to test
alert(form.name);
}


  onclick=submit(this.form,'MyDispatch')

perhaps i haven't understood however.


On 13 Feb 2004, at 18:43, Voinea, Marina wrote:


 Thanks a lot Jean-Christian, this is a complete example, I will try 
 it, but
 I was wondering if anybody has done same thing  with Struts's 
 html:link tag.

  I'll try to see if it works there, probably I'll have something like:

   onClick=submitForm('MyForm', 'MyDispatch');


 The other problem is that we have only one generic form : genForm 
 defined
 in our struts config file.
 (all actions use one generic, map backed form).
  Probably the system will take the last genform (the one associated 
 with the
 current page).
  Is it correct to say that I have to use the form name from the action
 mapping (from struts config)?

 -Original Message-
 From: Gagné Jean-Christian [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 13, 2004 11:24 AM
 To: 'Struts Users Mailing List'
 Subject: RE: RE: html:link instead of html:submit


 It looks like my previous answer to this did't make its way to the 
 list.
 Posting again...



 Works well with this javascript. Sorry for the french content...

 /* Déclancher un submit depuis un lien */
 function submitForm(aFormName, aSubmitValue) {
   var vForm = document.forms[aFormName];
   if (vForm == null) {
   alert(La page ne contient pas de formulaire nommé ' + 
 aFormName +
 ');
   }

   var vElement = vForm.elements[submitValue];
   if (vElement == null) {
   alert(Le formulaire ' + aFormName + ' ne contient pas le 
 champs
 'submitValue');
   }
   else {
   vElement.value = aSubmitValue;
   return vForm.submit();
   }
 }


 In your jsp, this link will set the dispatch value in the form and 
 submit
 it...

 a href=javascript:submitForm('MyForm', 'MyDispatch');Click here to
 submit/a

 NOTE: Your form MUST have a hidden field named submitValue (or 
 dispatch
 or whatever...just be in sync with the script)


 JCG


 -Message d'origine-
 De : Voinea, Marina [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 13 février 2004 15:57
 À : 'Struts Users Mailing List'
 Objet : [SPAM] - RE: html:link instead of html:submit - Bayesian
 Filter detected spam


 Paul, I have also been trying to use a submit within a
 html-el:link (using
 Struts). I've been trying in different ways, none of which
 worked, and I am
 exhausted after several days of continously surfing the net
 and trying.
 I am not a Struts specialist, we are on our first project here.

   Could you  please include an example of your code?
Does it work with Struts html:link tag ?
(Even if it is not using Struts tag, I may try to go that way)
   Do we have to have a dispatch Action, can't we have
 anormal action there:


   Here is my code (which does not work...):  (Struts 1.1,
 Weblogic 8.1)

 ===Extas from my jsp code: 
  html-el:form action=prep_address_book

 logic-el:iterate id=crtParticipant indexId=idx name=genForm
 property=list(PARTICIPANTS)

  html-el:link  styleClass=ListDetails
 page=/action/edit_address_book_participant indexed=true
  indexId=current_index name=genForm
  property=indexedValue(PARTICIPANTS:${idx}).map
 scope=request
  onClick=document.genForm.submit(); 
   bean:write name=crtParticipant
 property=value(LAST_NAME)/
   /html-el:link
 /logic-el:iterate

 /html-el:form

 === Struts config: =

 //the current form whic contains the link
action path=/prep_address_book scope=request name=genForm
 redirect=false

 type=com.genesys.confmgr.controller.action.PrepAddressBook
 forward name=success path=/AddressBook.jsp /
 forward name=edit_address_book_participant
 path=/AddParticipant.jsp
 redirect=false/
 forward name=error path=/LeftNav.jsp redirect=false /
/action

   action path=/edit_address_book_participant scope=request
 name=genForm redirect=false

 type=com.genesys.confmgr.controller.action.EditAddressBookPar
 ticipant
 forward name=success path=/AddParticipant.jsp /
 forward name=back_to_address_book
 path=/action/prep_address_book /
 forward name=error path=/LeftNav.jsp redirect=false /
/action


 =
   in submit

RE: html:link instead of html:submit

2004-02-12 Thread Samyukta Akunuru
Could you enclose this smaple please!

Thanks!

-Original Message-
From: Dieter Mummenschanz [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject: html:link instead of html:submit


Hello,

I have a jsp page with some html:submit buttons. The servlet identifies
the klicked button by invoking httpservletrequest.getParameter(...).
Is there a way to use links in my .jsp page using html:link instead of
html:submit?

Thx for any help,
Dieter

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


-
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 instead of html:submit

2004-02-12 Thread Gopalakrishnan, Jayesh
Wouldn't query parameters work here?

How abt using html:link page=/youraction?buttonName=testButton /


HTH..

-jayash



-Original Message-
From: Dieter Mummenschanz [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject: html:link instead of html:submit


Hello,

I have a jsp page with some html:submit buttons. The servlet identifies
the klicked button by invoking httpservletrequest.getParameter(...).
Is there a way to use links in my .jsp page using html:link instead of
html:submit?

Thx for any help,
Dieter

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


-
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

c:url/

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]



Re: html:link multiple parameters

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


jsp:useBean id=linkParams class=java.util.HashMap/
c:set target=${linkParams} property=action value=addAuctionItem/
c:set target=${linkParams} property=id value=${bean.itemId}/


 html:link action=/ManageAuctions name=linkParams
   Add XYZ Cart
 /html:link


--
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
 
 c:url/
 
 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 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=editid=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 Richard Hightower
html:link has a name attribute.

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

demo as follows: (syntax may be off)

jsp:useBean id=params class=java.util.HashMap /

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

html:link action=edit name=params/


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=editid=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 LookupDispatchAction

2003-12-30 Thread Kris Schneider
bean:define id=initCreateForm
  bean:message key=customer.form.button.initcreateform/
/bean:define
html:link action=/maintenance/lookupDispatchCustomerSubmit
   paramId=method
   paramName=initCreateForm
   styleClass=tree
   transaction=true
  bean:write name=initCreateForm/
/html:link

Another suggestion. Unless the map returned by getKeyMethodMap is dynamic,
create it once as a static field:

private static final Map KEY_METHOD_MAP = new HashMap();
static {
  // populate map
}

protected Map getKeyMethodMap() {
  return KEY_METHOD_MAP;
}

Quoting Ronald Rotteveel [EMAIL PROTECTED]:

 Dear struts users,
 
 In every webapplication there are links. As I read in Struts in Action,
 it's better to make links with actions.
 
 I'm now working on some part of the application where we have to do a lot
 of
 CRUD actions, so I want to use the LookupDispatchAction. Inserting/creating
 records in the database works great now, but I also would like to use the
 LookupDispatchAction for initiating the forms I'm using, but then without
 having to use submit buttons.
 
 Therefore I read some postings on this mailinglist that discussed the
 opportunity to use the html:link tag to do this. Unfortunately I can't get
 it working, so if somebody would have a look at the code I would be very
 happy!
 
  LookupDispatchAction (CustomerLookupDispatchAction) ###
 public Map getKeyMethodMap()
 {
  Map map = new HashMap();
  map.put(customer.form.button.initcreateform, initCreateForm);
  map.put(customer.form.button.initupdateform, initUpdateForm);
  map.put(form.button.create, create);
  map.put(form.button.read, read);
  map.put(form.button.update, update);
  map.put(form.button.delete, delete);
 
  return map;
 }
 
 public ActionForward initCreateForm(
  ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws Exception
 {
  resetToken(request);
  removeFormBean(mapping,request);
 
  return mapping.findForward(form);
 }
 
 ### JSP code (part of it) ###
 bean:define id=CustomerCreateForm
 value=customer.form.button.initcreateform/
 html:link action=/maintenance/lookupDispatchCustomerSubmit.do
 paramId=method paramName=CustomerCreateForm styleClass=tree
 transaction=truebean:message key=customer.form.button.initcreateform
 //html:link
 
 ### application.resources ###
 customer.form.button.initcreateform=Add customer
 customer.form.button.initupdateform=Update customer
 
 ### struts-config.xml ###
 action input=.maintenance.CustomerForm name=CustomerForm
parameter=method path=/maintenance/lookupDispatchCustomerSubmit
scope=request
type=com.mit.op.actions.maintenance.CustomerLookupDispatchAction
 validate=true
forward name=form path=/maintenance/CustomerForm.do
 redirect=false/
 /action
 
 
 Any suggestions are welcome!
 
 
 Thanks in advance!
 
 
 Beste regards,
 
 Ronald Rotteveel

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

2003-12-04 Thread Gurpreet Dhanoa
USe

html:link pahe=/processValidator
img src=../../images/execute.gif width=24 height=24 alt=Execute
example class=icon /
/html:link

- Original Message -
From: Zakaria khabot [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Wednesday, December 04, 2002 5:00 PM
Subject: html:link



Hi,
In a JSP file a have done
html:link action=/processValidator
img src=../../images/execute.gif width=24 height=24 alt=Execute
example class=icon /
/html:link

But I received the error :
action is not a property of org.apache.struts.taglib.html.LinkTag
What can I do (I am usinf Jdevelopper 9i)
Thanks.





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



Re: html:link appears not to respect scriptlets inside atribute values

2003-12-01 Thread Kris Schneider
Per the JSP spec about request-time attribute values:

The expression must appear by itself (multiple expressions, and mixing 
of expressions and string constants are not permitted).

Which means you have to use:

html:link page='%= nasty + expression + here %'Edit/html:link

Gus Heck wrote:
The following doesn't seem to be working as I would expect... I sort of 
suspect that this may not be a struts issue, but I really thought you 
were supposed to be able to drop in jsp expressions anywhere.

html:link page=/prototypes/PopulateLocation.do?row=%= 
this.should.fail %Edit/html:link

is giving me this html output:

a href=/friendDB/prototypes/PopulateLocation.do?row=%= 
this.should.fail %Edit/a

should fail as this.should.fail cannot exist, but it is getting 
reproduced textually instead. I have this really bad feeling I am 
forgetting something, or have missed something basic, but cant figure 
out what searches would bring up the answer.

-Gus
--
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: html:link, display problems

2003-11-28 Thread Mathieu Grimault
With this tag i can fix the display when i come back to my second screen but
the initial display is wrong I found that the url prefix is wrong when i
come back. Is there a way to specify the absolute path ???


- Original Message - 
From: Ed Robbins [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 27, 2003 6:22 PM
Subject: Re: html:link, display problems


 Do you have a base element in the html?  Try adding a html:base
 http://jakarta.apache.org/struts/userGuide/struts-html.html#base

 Ed

 Mathieu Grimault wrote:

 Hi everyone !
 
 My application is very simple and has 3 screens. The display on all
screens is right. I would like to use a html:link to return from my 3rd
screen to the second. The link is correct but the display is wrong : all my
pics are not displayed. I've seen the source generated and the paths are
right. Is this an IE problem ? Have you a solution ?
 
 My environment :
 Windows XP - IE 6.0
 Struts 1.1 - JDK 1.4 - Tomcat 4
 
 Snipets from my sources :
 An image that must be displayed : img src=pics/loupe.gif
 
 The link : html:link href=jsp/menu.jsp Retour/html:link
 


 -
 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, display problems [solved]

2003-11-28 Thread Mathieu Grimault
I can fix the problem by hardcode the src attribute..
img src=/APPLICATION/pics/XXX.GIF instead of a html:img  


- Original Message - 
From: Mathieu Grimault [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 28, 2003 9:55 AM
Subject: Re: html:link, display problems


 With this tag i can fix the display when i come back to my second screen
but
 the initial display is wrong I found that the url prefix is wrong when
i
 come back. Is there a way to specify the absolute path ???


 - Original Message - 
 From: Ed Robbins [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, November 27, 2003 6:22 PM
 Subject: Re: html:link, display problems


  Do you have a base element in the html?  Try adding a html:base
  http://jakarta.apache.org/struts/userGuide/struts-html.html#base
 
  Ed
 
  Mathieu Grimault wrote:
 
  Hi everyone !
  
  My application is very simple and has 3 screens. The display on all
 screens is right. I would like to use a html:link to return from my 3rd
 screen to the second. The link is correct but the display is wrong : all
my
 pics are not displayed. I've seen the source generated and the paths are
 right. Is this an IE problem ? Have you a solution ?
  
  My environment :
  Windows XP - IE 6.0
  Struts 1.1 - JDK 1.4 - Tomcat 4
  
  Snipets from my sources :
  An image that must be displayed : img src=pics/loupe.gif
  
  The link : html:link href=jsp/menu.jsp Retour/html:link
  
 
 
  -
  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, display problems

2003-11-27 Thread Ed Robbins
Do you have a base element in the html?  Try adding a html:base 
http://jakarta.apache.org/struts/userGuide/struts-html.html#base

Ed

Mathieu Grimault wrote:

Hi everyone !

   My application is very simple and has 3 screens. The display on all screens is right. I would like to use a html:link to return from my 3rd screen to the second. The link is correct but the display is wrong : all my pics are not displayed. I've seen the source generated and the paths are right. Is this an IE problem ? Have you a solution ?

My environment : 
Windows XP - IE 6.0
Struts 1.1 - JDK 1.4 - Tomcat 4

Snipets from my sources :
An image that must be displayed : img src=pics/loupe.gif
The link : html:link href=jsp/menu.jsp Retour/html:link



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


Re: html:link pass more then one paramater (no JSTL)

2003-11-18 Thread Kris Schneider
This would be a fine place to look:

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

Hint: If you prefer to specify a java.util.Map that contains all of the request
parameters to be added to the hyperlink, ...

Quoting Mauricio T. Ferraz [EMAIL PROTECTED]:

 how can use this tag to pass more the one parameter, for example 4
 parameter?
 With out use JSTL .
 Only Struts tag!
 
 How can I do?

-- 
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: html:link pass more then one paramater (no JSTL)

2003-11-18 Thread Mauricio T. Ferraz
Kris, do you have any example to show me?
How can I use this?

I´d like to pass 3 parameter fixes and other parameter in a
(java.util.Property)
Is there a way to do it???


- Original Message -
From: Kris Schneider [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 2:00 PM
Subject: Re: html:link pass more then one paramater (no JSTL)


 This would be a fine place to look:

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

 Hint: If you prefer to specify a java.util.Map that contains all of the
request
 parameters to be added to the hyperlink, ...

 Quoting Mauricio T. Ferraz [EMAIL PROTECTED]:

  how can use this tag to pass more the one parameter, for example 4
  parameter?
  With out use JSTL .
  Only Struts tag!
 
  How can I do?

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


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



Re: html:link adn Struts usage - question from a newbee

2003-11-05 Thread Deepak
Ur link should call .do that populates the form for 'ShowMe.jsp' and sets it
in the session

- Original Message -
From: Frederic Dernbach [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:51 PM
Subject: html:link adn Struts usage - question from a newbee


 Inside a JSP, I would like to implement a link to a Struts action that
 forwards back to the initial JSP WITHOUT LOOSING THE FORM'S DATA.

 Let's have a simple (and stupid) example so I can make myself understand
 better.

 Using struts, we have a JSP (/ShowMe.jsp) with a form stored in
 request or session scope (I tried both scopes without success). Inside
 the JSP, there a simple link such as :
 html:link page=/ShowItAgain.doGohtml:link/
 The Struts action associated to the link does not do anything. It   just
 forwards back to /ShowMe.jsp (thanks to the appropriate return
 statement and struts-config.xml entry).

 What should I do so that the form's data is not lost once the link is
 clicked on ? I do not want use a submit button for this purpose ,(I need
 a link).

 Thanks in advance for any help.

 Fred


 -
 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 adn Struts usage - question from a newbee

2003-11-05 Thread Ashish Sinha
Hi Fred,

Try this and let me know.

html:link action=\ShowItAgain.do Refresh/html:link

Rgds,
Ashe.


- Original Message - 
From: Frederic Dernbach [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 11:21 AM
Subject: html:link adn Struts usage - question from a newbee


 Inside a JSP, I would like to implement a link to a Struts action that
 forwards back to the initial JSP WITHOUT LOOSING THE FORM'S DATA.
 
 Let's have a simple (and stupid) example so I can make myself understand
 better.
 
 Using struts, we have a JSP (/ShowMe.jsp) with a form stored in
 request or session scope (I tried both scopes without success). Inside
 the JSP, there a simple link such as :
 html:link page=/ShowItAgain.doGohtml:link/
 The Struts action associated to the link does not do anything. It   just
 forwards back to /ShowMe.jsp (thanks to the appropriate return
 statement and struts-config.xml entry).
 
 What should I do so that the form's data is not lost once the link is
 clicked on ? I do not want use a submit button for this purpose ,(I need
 a link).
  
 Thanks in advance for any help.
 
 Fred
 
 
 -
 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 adn Struts usage - question from a newbee

2003-11-05 Thread Frederic Dernbach
Thanks for answering.Your inputs do not solve the problem.

However, I found the solution in the mail archive (have javascript
submit the form):

html:link href=# onclick=document.forms[0].submit();return false; 
Go
/html:link

Returning false makes sure there is one request only.

Cheers.

Fred

Le mer 05/11/2003  18:08, Ashish Sinha a crit :
 Hi Fred,
 
 Try this and let me know.
 
 html:link action=\ShowItAgain.do Refresh/html:link
 
 Rgds,
 Ashe.
 
 
 - Original Message - 
 From: Frederic Dernbach [EMAIL PROTECTED]
 To: struts-user [EMAIL PROTECTED]
 Sent: Wednesday, November 05, 2003 11:21 AM
 Subject: html:link adn Struts usage - question from a newbee
 
 
  Inside a JSP, I would like to implement a link to a Struts action that
  forwards back to the initial JSP WITHOUT LOOSING THE FORM'S DATA.
  
  Let's have a simple (and stupid) example so I can make myself understand
  better.
  
  Using struts, we have a JSP (/ShowMe.jsp) with a form stored in
  request or session scope (I tried both scopes without success). Inside
  the JSP, there a simple link such as :
  html:link page=/ShowItAgain.doGohtml:link/
  The Struts action associated to the link does not do anything. It   just
  forwards back to /ShowMe.jsp (thanks to the appropriate return
  statement and struts-config.xml entry).
  
  What should I do so that the form's data is not lost once the link is
  clicked on ? I do not want use a submit button for this purpose ,(I need
  a link).
   
  Thanks in advance for any help.
  
  Fred
  
  
  -
  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 ???

2003-11-04 Thread Ruth, Brice
the action attribute has to reflect an action-mapping that is defined 
in your struts config file. the page attribute should start with a '/' 
and will output in HTML the correct URL to the resource, based on the 
web-app that you're running - its purpose is to allow module-relative 
naming of your resources.

Check out the Struts-HTML taglib reference here:

http://jakarta.apache.org/struts/userGuide/dev_html.html

Mauricio T. Ferraz wrote:

Whats the diference between:

html:link action=mypage.jspMy Page/html:link

and

html:link page=mypage.jspMy Page/html:link

Thanks!!!
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: html:link ???

2003-11-04 Thread Mauricio T. Ferraz
Thanks for help, Ruth, Brice

[]´s
Mauricio

- Original Message -
From: Ruth, Brice [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 2:07 PM
Subject: Re: html:link ???


 the action attribute has to reflect an action-mapping that is defined
 in your struts config file. the page attribute should start with a '/'
 and will output in HTML the correct URL to the resource, based on the
 web-app that you're running - its purpose is to allow module-relative
 naming of your resources.

 Check out the Struts-HTML taglib reference here:

 http://jakarta.apache.org/struts/userGuide/dev_html.html

 Mauricio T. Ferraz wrote:

 Whats the diference between:
 
 html:link action=mypage.jspMy Page/html:link
 
 and
 
 html:link page=mypage.jspMy Page/html:link
 
 Thanks!!!
 
 

 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.



 -
 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 question (for a relative newbie)

2003-09-18 Thread Joe Germuska
At 13:45 -0700 9/18/03, Zimmerman, Steven R. wrote:
I cannot seem to get this to work
html:link
page=/collaborator.do?mode=editcode=%=code%Edit/html:link
You can only use a runtime expression as the complete content of a 
JSP tag attribute, if at all.  So, you could do something like this:

bean:define name=temp 
type=java.lang.String/collaborator.do?mode=editcode=%=code%/bean:define
html:link page=%=temp%Edit/html:link

or better yet this instead
html:link
action=collaborator.do?mode=editcode=%=code%Edit/html:link
To pass parameters to URLs built from the action attribute, you can 
use paramId, paramName, paramProperty, and paramScope to pass a 
single parameter, or name (and optionally property) to identify a Map 
whose keys are parameter names and whose values are corresponding 
parameter values.  See 
http://jakarta.apache.org/struts/userGuide/struts-html.html#link for 
details.

Actually, you can use these to pass parameters to any url, but if you 
use the action attribute, this is the only way to do it.

For what you define above, you may prefer to establish the 
mode=edit state by using a different ActionMapping.  Something like:

action path=/CollaboratorEdit parameter=edit 
type=com.example.CollaboratorAction ... /
action path=/CollaboratorView parameter=view 
type=com.example.CollaboratorAction ... /

Your action class can use mapping.getParameter() to find out 
whether it's in edit or view mode just as easily as it could consult 
the mode property of an ActionForm (or the mode request 
parameter).

In my opinion, this is more elegant, and it saves the hassle of 
appending multiple parameters in html:link using a Map.

The c:url tag in the JSTL supports a c:param subtag for adding an 
arbitrary number of parameters to a URL.  Of course, it doesn't know 
how to dereference an action path.  There's been some talk about 
adding a similar tag in Struts, but no one has been motivated to 
write it yet.

Joe

--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
If nature worked that way, the universe would crash all the time. 
	--Jaron Lanier

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


Re: html:link question (for a relative newbie)

2003-09-18 Thread denis

A quick hack you can do is:
%java.util.HashMap ha = new java.util.HashMap(); ha.put(mode,edit);
ha.put(code, code); pageContext.setAttribute(linkParams,ha);%
html:link href=collaborator.do name=linkParamsEdit/html:link

I usually build my link hashmap in the setup action for the jsp, but you can
do this.



- Original Message - 
From: Zimmerman, Steven R. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 4:45 PM
Subject: html:link question (for a relative newbie)


 I cannot seem to get this to work
 html:link
 page=/collaborator.do?mode=editcode=%=code%Edit/html:link

 or better yet this instead
 html:link
 action=collaborator.do?mode=editcode=%=code%Edit/html:link

 but the %=code% is not picking up the value of code, instead it is
 putting %=code% in its place.  That all makes sense why, but is there
a
 way I can get at a expression using Struts tags like I can using the code
 below with a hard coded HREF ('cuse it works fine there but is not what I
 want).
   A href=logon.jsp?task=deletecode=%=code%Delete/A

 All else works fine, I realize that I could be chaining actions or some
 other do not do but I am under a bit of a time crunch (as always... :).
 TIA, Steve

 -
 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 question (for a relative newbie)

2003-09-18 Thread Ray Madigan
If you are not opposed to using the JSTL standard library

I personally have a difficult time keeping track of the parameters
and values using the other syntax.

c:url value='/collaborator.do' var='collaboratorURL'
  c:param name='mode' value='edit'/
  c:param name='code' value='${code}'/
/c:url
html-el:link href='${collaboratorURL}'
 Edit 
/html-el:link

-Original Message-
From: Zimmerman, Steven R. [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 1:45 PM
To: '[EMAIL PROTECTED]'
Subject: html:link question (for a relative newbie)


I cannot seem to get this to work
html:link
page=/collaborator.do?mode=editcode=%=code%Edit/html:link

or better yet this instead
html:link
action=collaborator.do?mode=editcode=%=code%Edit/html:link

but the %=code% is not picking up the value of code, instead it is
putting %=code% in its place.  That all makes sense why, but is there a
way I can get at a expression using Struts tags like I can using the code
below with a hard coded HREF ('cuse it works fine there but is not what I
want).
  A href=logon.jsp?task=deletecode=%=code%Delete/A

All else works fine, I realize that I could be chaining actions or some
other do not do but I am under a bit of a time crunch (as always... :).
TIA, Steve

-
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/ URL Parameters

2003-09-11 Thread Mehdi EL AKARI
Try this:
bean:define id=key 
c:out value=${order.ponum}/
/bean:define
 html:link action=/viewOrder.do?orderNo=%=key%View
Order/html:link

It should work
Mehdi

- Original Message - 
From: Pat Quinn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 2:20 PM
Subject: html:link/  URL Parameters


 Hi Guys,

 I trying to use the html:link/ tag library with dynamic url parameters
e.g
 (which doesn't work).


 html:link action=/viewOrder.do?orderNo=c:out
 value=${order.ponum}/View Order/html:link



 How should i do this with out using the standard HTML Href tag?

 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail


 -
 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/ URL Parameters

2003-09-11 Thread Robert Taylor
You cannot embed custom tags within a custom tag attribute value.

Try this:
html:link action=/viewOrder paramId=orderNo paramName=order
paramProperty=ponumView Order/html:link

robert

 -Original Message-
 From: Pat Quinn [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 11, 2003 10:20 AM
 To: [EMAIL PROTECTED]
 Subject: html:link/  URL Parameters


 Hi Guys,

 I trying to use the html:link/ tag library with dynamic url
 parameters e.g
 (which doesn't work).


 html:link action=/viewOrder.do?orderNo=c:out
 value=${order.ponum}/View Order/html:link



 How should i do this with out using the standard HTML Href tag?

 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail


 -
 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/ URL Parameters

2003-09-11 Thread Robert Taylor
Nope. That's not going to work either.
Although html:link .../ is a custom tag I believe it follows

JSP1.2 spec 2.13.1 Request Time Attribute Values

snip
The expression must appear by itself (multiple
expressions, and mixing of expressions and string constants are not
permitted).
Multiple operations must be performed within the expression.
/snip

robert

 -Original Message-
 From: Mehdi EL AKARI [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 11, 2003 10:26 AM
 To: Struts Users Mailing List
 Subject: Re: html:link/  URL Parameters


 Try this:
 bean:define id=key 
 c:out value=${order.ponum}/
 /bean:define
  html:link action=/viewOrder.do?orderNo=%=key%View
 Order/html:link

 It should work
 Mehdi

 - Original Message -
 From: Pat Quinn [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, September 11, 2003 2:20 PM
 Subject: html:link/  URL Parameters


  Hi Guys,
 
  I trying to use the html:link/ tag library with dynamic url parameters
 e.g
  (which doesn't work).
 
 
  html:link action=/viewOrder.do?orderNo=c:out
  value=${order.ponum}/View Order/html:link
 
 
 
  How should i do this with out using the standard HTML Href tag?
 
  _
  The new MSN 8: smart spam protection and 2 months FREE*
  http://join.msn.com/?page=features/junkmail
 
 
  -
  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/ URL Parameters

2003-09-11 Thread Vic Cekvenic
Consider using JSTL URL for link, it is much more sophisticated.
hth,
.V
Pat Quinn wrote:
Hi Guys,

I trying to use the html:link/ tag library with dynamic url parameters 
e.g (which doesn't work).

html:link action=/viewOrder.do?orderNo=c:out 
value=${order.ponum}/View Order/html:link



How should i do this with out using the standard HTML Href tag?

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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


Re: html:link/ URL Parameters

2003-09-11 Thread Pat Quinn
Cheers guys i'll have a look into JSTL URL.


From: Vic Cekvenic [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: html:link/  URL Parameters
Date: Thu, 11 Sep 2003 08:39:14 -0400
Consider using JSTL URL for link, it is much more sophisticated.
hth,
.V
Pat Quinn wrote:
Hi Guys,

I trying to use the html:link/ tag library with dynamic url parameters 
e.g (which doesn't work).

html:link action=/viewOrder.do?orderNo=c:out 
value=${order.ponum}/View Order/html:link



How should i do this with out using the standard HTML Href tag?

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Re: html:link/ URL Parameters

2003-09-11 Thread Kris Schneider
I'm as fond of JSTL as the next developer, but it's a case-by-case basis as to
whether it trumps Struts (or any other) tags. The big win with using
html:link, or html-el:link, is the ability to leverage the path of your actions:

html:link action=/path/to/action ...

They also have built-in support for maps as a collection of request parameters.
c:url, on the other hand, requires the use of c:param child elements, one
per parameter. So, especially for a Struts app, I'd say c:url is much *less*
sophisticated.

And then there's transaction control token support...

For your specific case (as Robert replied):

html:link action=/viewOrder
   paramId=orderNo
   paramName=order
   paramProperty=ponum
View Order
/html:link

If you need multiple request parameters, make use of a map:

html:link action=/viewOrder
   name=paramMap
View Order
/html:link

Or:

html:link action=/viewOrder
   name=someBean
   property=paramMap
View Order
/html:link

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

Quoting Pat Quinn [EMAIL PROTECTED]:

 Cheers guys i'll have a look into JSTL URL.
 
 
 From: Vic Cekvenic [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: html:link/  URL Parameters
 Date: Thu, 11 Sep 2003 08:39:14 -0400
 
 Consider using JSTL URL for link, it is much more sophisticated.
 hth,
 .V
 
 Pat Quinn wrote:
 Hi Guys,
 
 I trying to use the html:link/ tag library with dynamic url parameters 
 e.g (which doesn't work).
 
 
 html:link action=/viewOrder.do?orderNo=c:out 
 value=${order.ponum}/View Order/html:link
 
 
 
 How should i do this with out using the standard HTML Href tag?

-- 
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: html:link/ URL Parameters

2003-09-11 Thread Carlos Sanchez
I agree, but when you want to put static parameters in the jsp I use c:url
with html-el:link instead.

c:url var=homeURL value=/toModule.do
c:param name=prefix value=/
c:param name=page value=/MainPage.do/
/c:url
html-el:link href=${homeURL}
fmt:message key=DefaultSidebar.home/
/html-el:link

It's a pity that html:link doesn't allow multiple parameters, or maybe c:url
should allow writing a message.


 -Mensaje original-
 De: Kris Schneider [mailto:[EMAIL PROTECTED] 
 Enviado el: jueves, 11 de septiembre de 2003 20:20
 Para: Struts Users Mailing List
 Asunto: Re: html:link/  URL Parameters
 
 
 I'm as fond of JSTL as the next developer, but it's a 
 case-by-case basis as to whether it trumps Struts (or any 
 other) tags. The big win with using html:link, or 
 html-el:link, is the ability to leverage the path of your actions:
 
 html:link action=/path/to/action ...
 
 They also have built-in support for maps as a collection of 
 request parameters. c:url, on the other hand, requires the 
 use of c:param child elements, one per parameter. So, 
 especially for a Struts app, I'd say c:url is much *less* 
 sophisticated.
 
 And then there's transaction control token support...
 
 For your specific case (as Robert replied):
 
 html:link action=/viewOrder
paramId=orderNo
paramName=order
paramProperty=ponum
 View Order
 /html:link
 
 If you need multiple request parameters, make use of a map:
 
 html:link action=/viewOrder
name=paramMap
 View Order
 /html:link
 
 Or:
 
 html:link action=/viewOrder
name=someBean
property=paramMap
 View Order
 /html:link
 
http://jakarta.apache.org/struts/userGuide/struts-html.html#link

Quoting Pat Quinn [EMAIL PROTECTED]:

 Cheers guys i'll have a look into JSTL URL.
 
 
 From: Vic Cekvenic [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: html:link/  URL Parameters
 Date: Thu, 11 Sep 2003 08:39:14 -0400
 
 Consider using JSTL URL for link, it is much more sophisticated. hth,
 .V
 
 Pat Quinn wrote:
 Hi Guys,
 
 I trying to use the html:link/ tag library with dynamic url 
 parameters
 e.g (which doesn't work).
 
 
 html:link action=/viewOrder.do?orderNo=c:out
 value=${order.ponum}/View Order/html:link
 
 
 
 How should i do this with out using the standard HTML Href tag?

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




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



Re: html:link/ URL Parameters

2003-09-11 Thread Kris Schneider
Whenever I see literals that are tied to the servlet mapping's URL 
pattern (for example, /toModule.do or /do/editSubscription), I get 
the feeling that the abstractions provided by Struts aren't being fully 
utilized.

It's a pity that html:link doesn't allow multiple parameters:
As mentioned in a previous note (and not just in this thread), that's 
exactly what the name attribute is for!

c:url should allow writing a message
No, it's for rendering URL's, not markup. From a Struts perspective, 
think html:rewrite, not html:link.

Carlos Sanchez wrote:
I agree, but when you want to put static parameters in the jsp I use c:url
with html-el:link instead.
c:url var=homeURL value=/toModule.do
c:param name=prefix value=/
c:param name=page value=/MainPage.do/
/c:url
html-el:link href=${homeURL}
fmt:message key=DefaultSidebar.home/
/html-el:link
It's a pity that html:link doesn't allow multiple parameters, or maybe c:url
should allow writing a message.


-Mensaje original-
De: Kris Schneider [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 11 de septiembre de 2003 20:20
Para: Struts Users Mailing List
Asunto: Re: html:link/  URL Parameters

I'm as fond of JSTL as the next developer, but it's a 
case-by-case basis as to whether it trumps Struts (or any 
other) tags. The big win with using html:link, or 
html-el:link, is the ability to leverage the path of your actions:

html:link action=/path/to/action ...

They also have built-in support for maps as a collection of 
request parameters. c:url, on the other hand, requires the 
use of c:param child elements, one per parameter. So, 
especially for a Struts app, I'd say c:url is much *less* 
sophisticated.

And then there's transaction control token support...

For your specific case (as Robert replied):

html:link action=/viewOrder
  paramId=orderNo
  paramName=order
  paramProperty=ponum
View Order
/html:link
If you need multiple request parameters, make use of a map:

html:link action=/viewOrder
  name=paramMap
View Order
/html:link
Or:

html:link action=/viewOrder
  name=someBean
  property=paramMap
View Order
/html:link
http://jakarta.apache.org/struts/userGuide/struts-html.html#link

Quoting Pat Quinn [EMAIL PROTECTED]:


Cheers guys i'll have a look into JSTL URL.



From: Vic Cekvenic [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List 
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: html:link/  URL Parameters
Date: Thu, 11 Sep 2003 08:39:14 -0400

Consider using JSTL URL for link, it is much more sophisticated. hth,
.V
Pat Quinn wrote:

Hi Guys,

I trying to use the html:link/ tag library with dynamic url 
parameters
e.g (which doesn't work).

html:link action=/viewOrder.do?orderNo=c:out
value=${order.ponum}/View Order/html:link


How should i do this with out using the standard HTML Href tag?
--
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: html:link/ URL Parameters

2003-09-11 Thread Kumar M
Out of curioistywhat abstraction does Struts provide to avoid the 
mapping that you are talking about. I thought it is pretty standard to use 
the *.do kinda mappings.

From: Kris Schneider [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: html:link/  URL Parameters
Date: Thu, 11 Sep 2003 22:10:10 -0400
Whenever I see literals that are tied to the servlet mapping's URL pattern 
(for example, /toModule.do or /do/editSubscription), I get the feeling 
that the abstractions provided by Struts aren't being fully utilized.

It's a pity that html:link doesn't allow multiple parameters:
As mentioned in a previous note (and not just in this thread), that's 
exactly what the name attribute is for!

c:url should allow writing a message
No, it's for rendering URL's, not markup. From a Struts perspective, think 
html:rewrite, not html:link.

Carlos Sanchez wrote:
I agree, but when you want to put static parameters in the jsp I use c:url
with html-el:link instead.
c:url var=homeURL value=/toModule.do
c:param name=prefix value=/
c:param name=page value=/MainPage.do/
/c:url
html-el:link href=${homeURL}
fmt:message key=DefaultSidebar.home/
/html-el:link
It's a pity that html:link doesn't allow multiple parameters, or maybe 
c:url
should allow writing a message.



-Mensaje original-
De: Kris Schneider [mailto:[EMAIL PROTECTED] Enviado el: jueves, 11 de 
septiembre de 2003 20:20
Para: Struts Users Mailing List
Asunto: Re: html:link/  URL Parameters

I'm as fond of JSTL as the next developer, but it's a case-by-case basis 
as to whether it trumps Struts (or any other) tags. The big win with 
using html:link, or html-el:link, is the ability to leverage the path 
of your actions:

html:link action=/path/to/action ...

They also have built-in support for maps as a collection of request 
parameters. c:url, on the other hand, requires the use of c:param 
child elements, one per parameter. So, especially for a Struts app, I'd 
say c:url is much *less* sophisticated.

And then there's transaction control token support...

For your specific case (as Robert replied):

html:link action=/viewOrder
  paramId=orderNo
  paramName=order
  paramProperty=ponum
View Order
/html:link
If you need multiple request parameters, make use of a map:

html:link action=/viewOrder
  name=paramMap
View Order
/html:link
Or:

html:link action=/viewOrder
  name=someBean
  property=paramMap
View Order
/html:link
http://jakarta.apache.org/struts/userGuide/struts-html.html#link

Quoting Pat Quinn [EMAIL PROTECTED]:


Cheers guys i'll have a look into JSTL URL.



From: Vic Cekvenic [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: html:link/  URL Parameters
Date: Thu, 11 Sep 2003 08:39:14 -0400
Consider using JSTL URL for link, it is much more sophisticated. hth,
.V
Pat Quinn wrote:

Hi Guys,

I trying to use the html:link/ tag library with dynamic url 
parameters
e.g (which doesn't work).

html:link action=/viewOrder.do?orderNo=c:out
value=${order.ponum}/View Order/html:link


How should i do this with out using the standard HTML Href tag?
--
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]
_
Get a FREE computer virus scan online from McAfee. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: html:link/ URL Parameters

2003-09-11 Thread Kris Schneider
The abstraction is provided by action mappings, specifically the path 
attribute. /do/* and *.do are common servlet mapping URL patterns 
for the Struts servlet, but action mapping paths are independent of how 
the servlet is mapped.

Kumar M wrote:

Out of curioistywhat abstraction does Struts provide to avoid the 
mapping that you are talking about. I thought it is pretty standard to 
use the *.do kinda mappings.

From: Kris Schneider [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: html:link/  URL Parameters
Date: Thu, 11 Sep 2003 22:10:10 -0400
Whenever I see literals that are tied to the servlet mapping's URL 
pattern (for example, /toModule.do or /do/editSubscription), I get 
the feeling that the abstractions provided by Struts aren't being 
fully utilized.

It's a pity that html:link doesn't allow multiple parameters:
As mentioned in a previous note (and not just in this thread), that's 
exactly what the name attribute is for!

c:url should allow writing a message
No, it's for rendering URL's, not markup. From a Struts perspective, 
think html:rewrite, not html:link.

Carlos Sanchez wrote:

I agree, but when you want to put static parameters in the jsp I use 
c:url
with html-el:link instead.

c:url var=homeURL value=/toModule.do
c:param name=prefix value=/
c:param name=page value=/MainPage.do/
/c:url
html-el:link href=${homeURL}
fmt:message key=DefaultSidebar.home/
/html-el:link
It's a pity that html:link doesn't allow multiple parameters, or 
maybe c:url
should allow writing a message.



-Mensaje original-
De: Kris Schneider [mailto:[EMAIL PROTECTED] Enviado el: jueves, 11 
de septiembre de 2003 20:20
Para: Struts Users Mailing List
Asunto: Re: html:link/  URL Parameters

I'm as fond of JSTL as the next developer, but it's a case-by-case 
basis as to whether it trumps Struts (or any other) tags. The big 
win with using html:link, or html-el:link, is the ability to 
leverage the path of your actions:

html:link action=/path/to/action ...

They also have built-in support for maps as a collection of request 
parameters. c:url, on the other hand, requires the use of 
c:param child elements, one per parameter. So, especially for a 
Struts app, I'd say c:url is much *less* sophisticated.

And then there's transaction control token support...

For your specific case (as Robert replied):

html:link action=/viewOrder
  paramId=orderNo
  paramName=order
  paramProperty=ponum
View Order
/html:link
If you need multiple request parameters, make use of a map:

html:link action=/viewOrder
  name=paramMap
View Order
/html:link
Or:

html:link action=/viewOrder
  name=someBean
  property=paramMap
View Order
/html:link
http://jakarta.apache.org/struts/userGuide/struts-html.html#link

Quoting Pat Quinn [EMAIL PROTECTED]:


Cheers guys i'll have a look into JSTL URL.



From: Vic Cekvenic [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: html:link/  URL Parameters
Date: Thu, 11 Sep 2003 08:39:14 -0400
Consider using JSTL URL for link, it is much more sophisticated. hth,
.V
Pat Quinn wrote:

Hi Guys,

I trying to use the html:link/ tag library with dynamic url 
parameters
e.g (which doesn't work).

html:link action=/viewOrder.do?orderNo=c:out
value=${order.ponum}/View Order/html:link


How should i do this with out using the standard HTML Href tag?


--
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: html:link and tiles definitions

2003-08-20 Thread Yann Cébron
Hi,

you need to create separate Actions to use Tiles-Forwards in html:link,
see the JavaDoc

http://jakarta.apache.org/struts/api/org/apache/struts/tiles/actions/DefinitionDispatcherAction.html

HTH,

Yann

 I'm trying to use tiles definitions with struts. On one page I want to
create a html:link so that the user is sent to another page. Does anyone
know how I can do this with tiles definitions.  I'm really stuck, I'm
looking for a few days now without finding the solution.
 I read that you can't link to a tiles definition, but there must be some
solution, I hope.

 Koen





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



RE: html:link and tiles definitions

2003-08-20 Thread Hue Holleran
I posted a (long) reply to this recently with code, see:

http://marc.theaimsgroup.com/?l=struts-userm=106096350227227w=2

(look towards the end - there is a generic action class that forwards to a
tiles def - you only need one generic action)

Let me know if that does not solve your problem.

Hue.

 -Original Message-
 From: koen boutsen [mailto:[EMAIL PROTECTED]
 Sent: 20 August 2003 08:54
 To: Struts Users Mailing List
 Subject: html:link and tiles definitions


 hi

 I'm trying to use tiles definitions with struts. On one page I
 want to create a html:link so that the user is sent to another
 page. Does anyone know how I can do this with tiles definitions.
 I'm really stuck, I'm looking for a few days now without finding
 the solution.
 I read that you can't link to a tiles definition, but there must
 be some solution, I hope.

 Koen




 
 Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
 http://login.mail.lycos.com/r/referral?aid=27005

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


 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003


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



RE: html:link and tiles definitions

2003-08-20 Thread koen boutsen
thanks for your answer, but maybe I did't explain my problem correctly.
I start from a page where different organisation names are shown.  

This is the source for this page : 

logic:iterate id=i name=listAllOrganisations
trtdhtml:link page=/loadOrganisation.do name=i 
property=orgIdmyOrganisationName/html:link
/td/tr
/logic:iterate

When a user clicks on on organisation, I want to pass the organisation Id , go to my 
Action and in the action get all the data from the database.  Then I want to go to a 
page where all the organisation details are shown.  This last page is part of a 
definition.  I tried to use the definition as a forward, but it didn't work.

Maybe my logic is not correct, or maybe my html:link syntax

Could you help me ?

Koen
--

- Original Message -

DATE: Wed, 20 Aug 2003 12:14:19
From: Hue Holleran [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED],[EMAIL PROTECTED]
Cc: 

I posted a (long) reply to this recently with code, see:

http://marc.theaimsgroup.com/?l=struts-userm=106096350227227w=2

(look towards the end - there is a generic action class that forwards to a
tiles def - you only need one generic action)

Let me know if that does not solve your problem.

Hue.

 -Original Message-
 From: koen boutsen [mailto:[EMAIL PROTECTED]
 Sent: 20 August 2003 08:54
 To: Struts Users Mailing List
 Subject: html:link and tiles definitions


 hi

 I'm trying to use tiles definitions with struts. On one page I
 want to create a html:link so that the user is sent to another
 page. Does anyone know how I can do this with tiles definitions.
 I'm really stuck, I'm looking for a few days now without finding
 the solution.
 I read that you can't link to a tiles definition, but there must
 be some solution, I hope.

 Koen




 
 Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
 http://login.mail.lycos.com/r/referral?aid=27005

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


 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003


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






Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



Re: html:link and tiles definitions

2003-08-20 Thread PeterB
Try this,

@ tiles-definition.xml @
  definition name=site.organization.list.page extends=site.mainLayout 
   put name=title  value=Organizations /
   put name=body   value=/organization/list.jsp /
  /definition

  definition name=site.organization.details.page
extends=site.mainLayout 
   put name=title  value=Details of organization /
   put name=body   value=/organization/details.jsp /
  /definition

@ struts-config.xml @@
  action path=/organization/list
  type=mypackage.OrganizationAction
   forward name=success path=site.organization.list.page
redirect=false/
  /action

  action path=/organization/details
  type=mypackage.OrganizationAction
   forward name=success path=site.organization.details.page
redirect=false/
  /action

@ class mypackage.OrganizationAction @

execute(...) {

if (mapping.getPath().equals(/organization/list))
return onList(mapping, form, request, response);
else if (mapping.getPath().equals(/organization/details))
return onDetails(mapping, form, request, response);
}

onDetails(...) {

   Vector allOrganizations = BUSINESS_OBJECT.getAllOrganizations();
   request.setAttribute(organizations, allOrganizations);

  return mapping.findForward(success);
}

onDetails(...) {
id = request.getParameter(orgId);
   OrganizationBean oneOrganization = BUSINESS_OBJECT.getOrganization(id);
   request.setAttribute(organization, oneOrganization);

  return mapping.findForward(success);
}



@@ organization/list.jsp @@

iterate id=org

jsp:useBean id=params class=java.util.HashMap/
bean:parameter id=orgId name=org property=organizationId /
% params.put(orgId, orgId); %

html:link action=/organization/details
  name=params
bean:message key=global.details.info/
/html:link
/iterate



@@ organization/details.jsp @@

ID : bean:write name=organization property=organizationId /
Name : bean:write name=organization property=name /
Address : bean:write name=organization property=address /
...

@@ remark @@
Don't use html:link page= when you reffers to action, use html:link
action= instead (without action suffix/prefix)

- Original Message -
From: koen boutsen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 1:53 PM
Subject: RE: html:link and tiles definitions


 thanks for your answer, but maybe I did't explain my problem correctly.
 I start from a page where different organisation names are shown.

 This is the source for this page :

 logic:iterate id=i name=listAllOrganisations
 trtdhtml:link page=/loadOrganisation.do name=i
property=orgIdmyOrganisationName/html:link
 /td/tr
 /logic:iterate

 When a user clicks on on organisation, I want to pass the organisation Id
, go to my Action and in the action get all the data from the database.
Then I want to go to a page where all the organisation details are shown.
This last page is part of a definition.  I tried to use the definition as a
forward, but it didn't work.

 Maybe my logic is not correct, or maybe my html:link syntax

 Could you help me ?

 Koen
 --

 - Original Message -

 DATE: Wed, 20 Aug 2003 12:14:19
 From: Hue Holleran [EMAIL PROTECTED]
 To: Struts Users Mailing List
[EMAIL PROTECTED],[EMAIL PROTECTED]
 Cc:

 I posted a (long) reply to this recently with code, see:
 
 http://marc.theaimsgroup.com/?l=struts-userm=106096350227227w=2
 
 (look towards the end - there is a generic action class that forwards to
a
 tiles def - you only need one generic action)
 
 Let me know if that does not solve your problem.
 
 Hue.
 
  -Original Message-
  From: koen boutsen [mailto:[EMAIL PROTECTED]
  Sent: 20 August 2003 08:54
  To: Struts Users Mailing List
  Subject: html:link and tiles definitions
 
 
  hi
 
  I'm trying to use tiles definitions with struts. On one page I
  want to create a html:link so that the user is sent to another
  page. Does anyone know how I can do this with tiles definitions.
  I'm really stuck, I'm looking for a few days now without finding
  the solution.
  I read that you can't link to a tiles definition, but there must
  be some solution, I hope.
 
  Koen
 
 
 
 
  
  Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
  http://login.mail.lycos.com/r/referral?aid=27005
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.511 / Virus

RE: html:link ,tiles definitions, DefinitionDispatcherAction

2003-08-20 Thread koen boutsen
I have my previous problem solved.  Thanks you.

The next problem is to use a tiles definition directly in a html:link.

Some of you sent me some source, so I tried that.

This is my jsp page with the link : 
html:link 
action=/goToDef.do?def=isisLayout.organisation.customerInfoContacts/html:link

This is the struts-config file 
action path=/goToDef 
type=org.apache.struts.tiles.actions.DefinitionDispatcherAction 
parameter=def 
forward name=error path=/pages/error-tiles-def-not-passed.jsp /   
/action

It does not work, I don't get an error, but a just get an empty screen.
In my logs I see the message 'requestUtils.createActionForm=null' but I don't know if 
that has anything to do with it.

Koen




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



RE: html:link and tiles definitions

2003-08-20 Thread Hue Holleran
That was part of the solution I posted. At the end of the action:

...
// Forward to tiles def
return ( new ActionForward(tilesDef,false) );

e.g.

return ( new ActionForward(tiles.def,false) );

Does that not work?

 -Original Message-
 From: koen boutsen [mailto:[EMAIL PROTECTED]
 Sent: 20 August 2003 12:54
 To: Struts Users Mailing List
 Subject: RE: html:link and tiles definitions
 
 
 thanks for your answer, but maybe I did't explain my problem correctly.
 I start from a page where different organisation names are shown.  
 
 This is the source for this page : 
 
 logic:iterate id=i name=listAllOrganisations
 trtdhtml:link page=/loadOrganisation.do name=i 
 property=orgIdmyOrganisationName/html:link
 /td/tr
 /logic:iterate
 
 When a user clicks on on organisation, I want to pass the 
 organisation Id , go to my Action and in the action get all the 
 data from the database.  Then I want to go to a page where all 
 the organisation details are shown.  This last page is part of a 
 definition.  I tried to use the definition as a forward, but it 
 didn't work.
 
 Maybe my logic is not correct, or maybe my html:link syntax
 
 Could you help me ?
 
 Koen
 --
 
 - Original Message -
 
 DATE: Wed, 20 Aug 2003 12:14:19
 From: Hue Holleran [EMAIL PROTECTED]
 To: Struts Users Mailing List 
 [EMAIL PROTECTED],[EMAIL PROTECTED]
 Cc: 
 
 I posted a (long) reply to this recently with code, see:
 
 http://marc.theaimsgroup.com/?l=struts-userm=106096350227227w=2
 
 (look towards the end - there is a generic action class that 
 forwards to a
 tiles def - you only need one generic action)
 
 Let me know if that does not solve your problem.
 
 Hue.
 
  -Original Message-
  From: koen boutsen [mailto:[EMAIL PROTECTED]
  Sent: 20 August 2003 08:54
  To: Struts Users Mailing List
  Subject: html:link and tiles definitions
 
 
  hi
 
  I'm trying to use tiles definitions with struts. On one page I
  want to create a html:link so that the user is sent to another
  page. Does anyone know how I can do this with tiles definitions.
  I'm really stuck, I'm looking for a few days now without finding
  the solution.
  I read that you can't link to a tiles definition, but there must
  be some solution, I hope.
 
  Koen
 
 
 
 
  
  Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
  http://login.mail.lycos.com/r/referral?aid=27005
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
 http://login.mail.lycos.com/r/referral?aid=27005
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003
 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003


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



RE: html:link ,tiles definitions, DefinitionDispatcherAction

2003-08-20 Thread Hue Holleran
You need an actionform - look at the original code.

 -Original Message-
 From: koen boutsen [mailto:[EMAIL PROTECTED]
 Sent: 20 August 2003 15:10
 To: Struts Users Mailing List
 Subject: RE: html:link ,tiles definitions, DefinitionDispatcherAction
 
 
 I have my previous problem solved.  Thanks you.
 
 The next problem is to use a tiles definition directly in a html:link.
 
 Some of you sent me some source, so I tried that.
 
 This is my jsp page with the link : 
 html:link 
 action=/goToDef.do?def=isisLayout.organisation.customerInfoCont
 acts/html:link
 
 This is the struts-config file 
 action path=/goToDef   
 type=org.apache.struts.tiles.actions.DefinitionDispatcherAction 
   parameter=def 
   forward name=error 
 path=/pages/error-tiles-def-not-passed.jsp /   /action
 
 It does not work, I don't get an error, but a just get an empty screen.
 In my logs I see the message 'requestUtils.createActionForm=null' 
 but I don't know if that has anything to do with it.
 
 Koen
 
 
 
 
 Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
 http://login.mail.lycos.com/r/referral?aid=27005
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003
 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003


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



RE: html:link ,tiles definitions, DefinitionDispatcherAction

2003-08-20 Thread Hue Holleran
Sorry - ignore my last - this email was sent accidentally before I'd
finished reading your email.

 -Original Message-
 From: Hue Holleran [mailto:[EMAIL PROTECTED]
 Sent: 20 August 2003 17:28
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: RE: html:link ,tiles definitions, DefinitionDispatcherAction


 You need an actionform - look at the original code.

  -Original Message-
  From: koen boutsen [mailto:[EMAIL PROTECTED]
  Sent: 20 August 2003 15:10
  To: Struts Users Mailing List
  Subject: RE: html:link ,tiles definitions, DefinitionDispatcherAction
 
 
  I have my previous problem solved.  Thanks you.
 
  The next problem is to use a tiles definition directly in a html:link.
 
  Some of you sent me some source, so I tried that.
 
  This is my jsp page with the link :
  html:link
  action=/goToDef.do?def=isisLayout.organisation.customerInfoCont
  acts/html:link
 
  This is the struts-config file
  action path=/goToDef
  type=org.apache.struts.tiles.actions.DefinitionDispatcherAction
  parameter=def
  forward name=error
  path=/pages/error-tiles-def-not-passed.jsp / /action
 
  It does not work, I don't get an error, but a just get an empty screen.
  In my logs I see the message 'requestUtils.createActionForm=null'
  but I don't know if that has anything to do with it.
 
  Koen
 
 
 
  
  Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
  http://login.mail.lycos.com/r/referral?aid=27005
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003


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


 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.511 / Virus Database: 308 - Release Date: 18/08/2003


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



Re: html:link can't access DAF getMap()

2003-08-17 Thread Mark Lowe
This might work

html:link name=myform.map

or

html:link name=myform property=map.property

or

html:link name-myform property=map('property')

in which case what's wrong with

html:link name=myForm property=property

You've been doing this with struts tags..

c:out value=${myForm.map} /

Hope this helps

Mark



On Sunday, August 17, 2003, at 02:33 PM, Mike Whittaker wrote:

Okay I've RTFM.

html:link seems it should do the job with its populating from a map
abilities.
html:link page=/blah.do name=myForm property=map 
TEST
/html:link
However, I give it my DynaActionForm (with its getMap() method) and the
property 'map' and I get:
javax.servlet.ServletException: No getter method for property map of 
bean
myForm

which is really wierd, because at the same time I can do:

c:out value=${myForm.map['aParam']} /

I think it is looking for a form-property called 'map'.  How do I 
access
this method through html:link ?

--
Mike W
-
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 can't access DAF getMap()

2003-08-17 Thread Mike Whittaker


This might work

html:link name=myform.map

Cannot find bean myForm.map in any scope


or

html:link name=myform property=map.property

I want the java.util.Map for property attribute of html:link

infact, I'll probably want a different method of subclassed DAF that gives a
modification of the Map.

I just want to render a link similar to the previous request, changing one
params value.


or

html:link name-myform property=map('property')

ditto


in which case what's wrong with

html:link name=myForm property=property

ditto

--
Mike W


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



Re: html:link can't access DAF getMap()

2003-08-17 Thread Mark Lowe
Is myForm scoped to the page?

Cheers Mark

On Sunday, August 17, 2003, at 03:21 PM, Mike Whittaker wrote:



This might work

html:link name=myform.map
Cannot find bean myForm.map in any scope

or

html:link name=myform property=map.property
I want the java.util.Map for property attribute of html:link

infact, I'll probably want a different method of subclassed DAF that 
gives a
modification of the Map.

I just want to render a link similar to the previous request, changing 
one
params value.

or

html:link name-myform property=map('property')
ditto

in which case what's wrong with

html:link name=myForm property=property
ditto

--
Mike W
-
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 can't access DAF getMap()

2003-08-17 Thread Mark Lowe
sorry mike i meant mapped to the action

On Sunday, August 17, 2003, at 03:57 PM, Mark Lowe wrote:

Is myForm scoped to the page?

Cheers Mark

On Sunday, August 17, 2003, at 03:21 PM, Mike Whittaker wrote:



This might work

html:link name=myform.map
Cannot find bean myForm.map in any scope

or

html:link name=myform property=map.property
I want the java.util.Map for property attribute of html:link

infact, I'll probably want a different method of subclassed DAF that 
gives a
modification of the Map.

I just want to render a link similar to the previous request, 
changing one
params value.

or

html:link name-myform property=map('property')
ditto

in which case what's wrong with

html:link name=myForm property=property
ditto

--
Mike W
-
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 can't access DAF getMap()

2003-08-17 Thread Mike Whittaker

sorry mike i meant mapped to the action

On Sunday, August 17, 2003, at 03:57 PM, Mark Lowe wrote:

 Is myForm scoped to the page?


Well myForm is in that action mappings name attribute

and indeed the error:

No getter method for property map of bean myForm

given for:

html:link page=/CragResults.do name=myForm property=map 
TEST
/html:link

indicate the bean is accessible just 'map' is not!

--
Mike W


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



RE: html:link can't access DAF getMap()

2003-08-17 Thread Mike Whittaker

sorry mike i meant mapped to the action

On Sunday, August 17, 2003, at 03:57 PM, Mark Lowe wrote:

 Is myForm scoped to the page?



In fact I'm pretty sure it is impossible to get at getMap()
due to the under the covers cleverness that allows a DynaBean to be used in
a typical JavaBean role - ie get(myParam) of a DynaBean is available to a
stuts accessor eg myForm.myParam is equivalent to myForm.get(myParam).
So when I try and access getMap() with property=map it sees it is a
DynaBean and converts it to get(map).

So the solution?

either a custom method is DAF that delivers what I want and access it with
jstl

or another approach to getting the previous url that allows me to alter a
parameter value.

--
Mike W


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



Re: html:link can't access DAF getMap()

2003-08-17 Thread Mark Lowe
I'm not 100% not what your doing so i could be talking nonsense..

If the formBean is available to the page i cant see why you cant access 
its properties.

A simple way of doing this would be to do it in the referring action.

Map myFormMap = myForm.getMap();

request.setAttribute(myMap,myFormMap);

then

html:link name=myMap

to display all the key=value pairs as parameters or specify the 
property as the key.

Cheers Mark

On Sunday, August 17, 2003, at 05:57 PM, Mike Whittaker wrote:


sorry mike i meant mapped to the action

On Sunday, August 17, 2003, at 03:57 PM, Mark Lowe wrote:

Is myForm scoped to the page?


In fact I'm pretty sure it is impossible to get at getMap()
due to the under the covers cleverness that allows a DynaBean to be 
used in
a typical JavaBean role - ie get(myParam) of a DynaBean is available 
to a
stuts accessor eg myForm.myParam is equivalent to 
myForm.get(myParam).
So when I try and access getMap() with property=map it sees it is a
DynaBean and converts it to get(map).

So the solution?

either a custom method is DAF that delivers what I want and access it 
with
jstl

or another approach to getting the previous url that allows me to 
alter a
parameter value.

--
Mike W
-
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 can't access DAF getMap()

2003-08-17 Thread Mike Whittaker

I'm not 100% not what your doing so i could be talking nonsense..

If the formBean is available to the page i cant see why you cant access
its properties.

A simple way of doing this would be to do it in the referring action.


Map myFormMap = myForm.getMap();

request.setAttribute(myMap,myFormMap);

then

html:link name=myMap

Yes, I can do that, thanks for jogging my gramaphone brain!

Pity you can't access directly, perhaps they should have kept DAF param
access as

myForm.map['myParam']

Then you could still get the Map complete with myForm.map

I'm sure there is a good reason they didn't.

Cheers,
Mike W.


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



RE: html:link / - add parameters

2003-07-07 Thread Kamholz, Keith (corp-staff) USX
Hey everyone,

I'm trying to add 2 dynamic parameters to a link.  Someone posted the
following solution a while back.  I'm using this, slightly modified, within
a logic:iterate tag.  However, the param names are showing up in the
generated link, but the param values aren't.  Should I be able to use
ansm.getNumberType() within the scriptlet?  (ansm refers to the object
storing the current element in the collection I'm iterating through.)  Any
help would be really appreciated.
Thanks in advance!

- Keith

_

titleTest html:link Tag/title
%
  String newValue = New string value;
  pageContext.setAttribute(newValue, newValue);
  java.util.HashMap newValues = new java.util.HashMap();
  newValues.put(floatProperty, new Float(444.0));
  newValues.put(intProperty, new Integer(555));
  newValues.put(stringArray, new String[]
   { Value 1, Value 2, Value 3 });
  pageContext.setAttribute(newValues, newValues);
%

  tr
td colspan=4 align=center
  html:link action=/html-link
 name=newValues
Float, int, and stringArray via name (Map)
  /html:link
/td
  /tr

-- 
Best regards,
 Nikolaymailto:[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 / - add parameters

2003-07-07 Thread Kamholz, Keith (corp-staff) USX
Sorry, ignore my last post.  I figured it out.  The call to
ansm.getNumberType() was just returning an empty string.  Sorry to waste
space in your inbox.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 1:04 PM
To: 'Struts Users Mailing List'
Subject: RE: html:link / - add parameters


Hey everyone,

I'm trying to add 2 dynamic parameters to a link.  Someone posted the
following solution a while back.  I'm using this, slightly modified, within
a logic:iterate tag.  However, the param names are showing up in the
generated link, but the param values aren't.  Should I be able to use
ansm.getNumberType() within the scriptlet?  (ansm refers to the object
storing the current element in the collection I'm iterating through.)  Any
help would be really appreciated.
Thanks in advance!

- Keith

_

titleTest html:link Tag/title
%
  String newValue = New string value;
  pageContext.setAttribute(newValue, newValue);
  java.util.HashMap newValues = new java.util.HashMap();
  newValues.put(floatProperty, new Float(444.0));
  newValues.put(intProperty, new Integer(555));
  newValues.put(stringArray, new String[]
   { Value 1, Value 2, Value 3 });
  pageContext.setAttribute(newValues, newValues);
%

  tr
td colspan=4 align=center
  html:link action=/html-link
 name=newValues
Float, int, and stringArray via name (Map)
  /html:link
/td
  /tr

-- 
Best regards,
 Nikolaymailto:[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 forward to tiles definition?

2003-06-27 Thread news.gmane.org
You can use addition action with type
org.apache.struts.tiles.actions.NoOpAction to glue one page with another
one. This action should contain forward 'success' that points to tile.
Actually, when you add tile to html:link you are trying to link page
directly with another page. This is not recommended practice.


Chip Paul [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Is there a way to make a link (not an action forward) point to a tiles
 definition, or do I have to create a wrapper jsp that inserts the def, and
 use that page as the link?

 Chip




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



Re: html:link / - add parameters

2003-06-26 Thread Alen Ribic
Ok. I forgot a very important peace in the puzzle.
I'm running an iteration tag and my html:link / tags get generated inside
the loop.
So, as my iteration runs, a new html:link / gets generated.
Now as you can see, each link will need specific/unique parameter list.

e.g. /someLink.do?id=10secLevel=3
next loop /someLink.do?id=21secLevel=2
and so on...

So I will need a Map object I presume per Item (In this case per Product) to
hold my product specific request parameters (id's)?

What is the best way of doing this so that right Map gets pulled out
according to right product in iteration process in my view
so I can populate my link paramter list (per iteration)?

--Alen


- Original Message -
From: Nagendra Kumar O V S
To: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:30 AM
Subject: Re: html:link / - add parameters


HI,
u will have to populate the map( with name,value pairs) and set this map to
ur action form, in the jsp give the name  property of the map
html:link href=link.do name=taskForm property=params 
here taskForm is the action form to which params is set .this params is
Map params = new HashMap();
params.put(req1,reqvalue1);
params.put(req2,reqvalue2);
params.put(req3,reqvalue3);
params is set to the corresponding action form

-nagi

---Original Message---

From: Struts Users Mailing List
Date: Wednesday, June 25, 2003 01:45:50 PM
To: Struts Users Mailing List
Subject: - add parameters

Hi all

I see that when using html:link / tag I can add parameters to be passed on
to the destination / action too.
So far I only needed a single parameter id but now I need one more.
I see that one can use java.util.Map to pass a list of parameters via a
link.
The thing is how and where do I populate this Map.
The link I click on just basically goes through a action mapping that
redirects to a desired jsp page.

Could someone show me a snippet regarding this please.

Thanks
--Alen


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


.



  IncrediMail - Email has finally evolved - Click Here


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



Re: html:link / - add parameters

2003-06-26 Thread Kris Schneider
It's pretty easy to use JSTL to handle the Map:

jsp:useBean id=paramMap class=java.util.HashMap/
c:forEach var=product items=${productList}
  c:set target=${paramMap} property=id value=${product.id}/
  c:set target=${paramMap} property=secLevel value=${product.secLevel}/
  html:link action=/someLink name=paramMap
...
  /html:link
/c:forEach

Quoting Alen Ribic [EMAIL PROTECTED]:

 Ok. I forgot a very important peace in the puzzle.
 I'm running an iteration tag and my html:link / tags get generated inside
 the loop.
 So, as my iteration runs, a new html:link / gets generated.
 Now as you can see, each link will need specific/unique parameter list.
 
 e.g. /someLink.do?id=10secLevel=3
 next loop /someLink.do?id=21secLevel=2
 and so on...
 
 So I will need a Map object I presume per Item (In this case per Product)
 to
 hold my product specific request parameters (id's)?
 
 What is the best way of doing this so that right Map gets pulled out
 according to right product in iteration process in my view
 so I can populate my link paramter list (per iteration)?
 
 --Alen
 
 
 - Original Message -
 From: Nagendra Kumar O V S
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 25, 2003 10:30 AM
 Subject: Re: html:link / - add parameters
 
 
 HI,
 u will have to populate the map( with name,value pairs) and set this map to
 ur action form, in the jsp give the name  property of the map
 html:link href=link.do name=taskForm property=params 
 here taskForm is the action form to which params is set .this params is
 Map params = new HashMap();
 params.put(req1,reqvalue1);
 params.put(req2,reqvalue2);
 params.put(req3,reqvalue3);
 params is set to the corresponding action form
 
 -nagi
 
 ---Original Message---
 
 From: Struts Users Mailing List
 Date: Wednesday, June 25, 2003 01:45:50 PM
 To: Struts Users Mailing List
 Subject: - add parameters
 
 Hi all
 
 I see that when using html:link / tag I can add parameters to be passed
 on
 to the destination / action too.
 So far I only needed a single parameter id but now I need one more.
 I see that one can use java.util.Map to pass a list of parameters via a
 link.
 The thing is how and where do I populate this Map.
 The link I click on just basically goes through a action mapping that
 redirects to a desired jsp page.
 
 Could someone show me a snippet regarding this please.
 
 Thanks
 --Alen

-- 
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: html:link / - add parameters

2003-06-26 Thread Alen Ribic
this seems good.
does JSTL comp. come standard with Struts?
do you prefer using JSTL for common tasks and why?

--Alen



- Original Message -
From: Kris Schneider [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 3:18 PM
Subject: Re: html:link / - add parameters


 It's pretty easy to use JSTL to handle the Map:

 jsp:useBean id=paramMap class=java.util.HashMap/
 c:forEach var=product items=${productList}
   c:set target=${paramMap} property=id value=${product.id}/
   c:set target=${paramMap} property=secLevel
value=${product.secLevel}/
   html:link action=/someLink name=paramMap
 ...
   /html:link
 /c:forEach

 Quoting Alen Ribic [EMAIL PROTECTED]:

  Ok. I forgot a very important peace in the puzzle.
  I'm running an iteration tag and my html:link / tags get generated
inside
  the loop.
  So, as my iteration runs, a new html:link / gets generated.
  Now as you can see, each link will need specific/unique parameter list.
 
  e.g. /someLink.do?id=10secLevel=3
  next loop /someLink.do?id=21secLevel=2
  and so on...
 
  So I will need a Map object I presume per Item (In this case per
Product)
  to
  hold my product specific request parameters (id's)?
 
  What is the best way of doing this so that right Map gets pulled out
  according to right product in iteration process in my view
  so I can populate my link paramter list (per iteration)?
 
  --Alen
 
 
  - Original Message -
  From: Nagendra Kumar O V S
  To: [EMAIL PROTECTED]
  Sent: Wednesday, June 25, 2003 10:30 AM
  Subject: Re: html:link / - add parameters
 
 
  HI,
  u will have to populate the map( with name,value pairs) and set this map
to
  ur action form, in the jsp give the name  property of the map
  html:link href=link.do name=taskForm property=params 
  here taskForm is the action form to which params is set .this params is
  Map params = new HashMap();
  params.put(req1,reqvalue1);
  params.put(req2,reqvalue2);
  params.put(req3,reqvalue3);
  params is set to the corresponding action form
 
  -nagi
 
  ---Original Message---
 
  From: Struts Users Mailing List
  Date: Wednesday, June 25, 2003 01:45:50 PM
  To: Struts Users Mailing List
  Subject: - add parameters
 
  Hi all
 
  I see that when using html:link / tag I can add parameters to be
passed
  on
  to the destination / action too.
  So far I only needed a single parameter id but now I need one more.
  I see that one can use java.util.Map to pass a list of parameters via a
  link.
  The thing is how and where do I populate this Map.
  The link I click on just basically goes through a action mapping that
  redirects to a desired jsp page.
 
  Could someone show me a snippet regarding this please.
 
  Thanks
  --Alen

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



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



Re: html:link / - add parameters

2003-06-26 Thread Kris Schneider
JSTL is not part of Struts. It's a Java specification defined by JSR-52 (JSTL 1.0).

http://java.sun.com/products/jsp/jstl/

Apache Jakarta provides an implementation:

http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

You might also be interested in the Struts-EL tag library. It integrates the
JSTL Expression Language (EL) with a *subset* of Struts tags:

http://jakarta.apache.org/struts/userGuide/building_view.html#struts-el

It's included in the contrib/struts-el dir of the Struts distribution.

Quoting Alen Ribic [EMAIL PROTECTED]:

 this seems good.
 does JSTL comp. come standard with Struts?
 do you prefer using JSTL for common tasks and why?
 
 --Alen
 
 
 
 - Original Message -
 From: Kris Schneider [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, June 26, 2003 3:18 PM
 Subject: Re: html:link / - add parameters
 
 
  It's pretty easy to use JSTL to handle the Map:
 
  jsp:useBean id=paramMap class=java.util.HashMap/
  c:forEach var=product items=${productList}
c:set target=${paramMap} property=id value=${product.id}/
c:set target=${paramMap} property=secLevel
 value=${product.secLevel}/
html:link action=/someLink name=paramMap
  ...
/html:link
  /c:forEach
 
  Quoting Alen Ribic [EMAIL PROTECTED]:
 
   Ok. I forgot a very important peace in the puzzle.
   I'm running an iteration tag and my html:link / tags get generated
 inside
   the loop.
   So, as my iteration runs, a new html:link / gets generated.
   Now as you can see, each link will need specific/unique parameter list.
  
   e.g. /someLink.do?id=10secLevel=3
   next loop /someLink.do?id=21secLevel=2
   and so on...
  
   So I will need a Map object I presume per Item (In this case per
 Product)
   to
   hold my product specific request parameters (id's)?
  
   What is the best way of doing this so that right Map gets pulled out
   according to right product in iteration process in my view
   so I can populate my link paramter list (per iteration)?
  
   --Alen
  
  
   - Original Message -
   From: Nagendra Kumar O V S
   To: [EMAIL PROTECTED]
   Sent: Wednesday, June 25, 2003 10:30 AM
   Subject: Re: html:link / - add parameters
  
  
   HI,
   u will have to populate the map( with name,value pairs) and set this
 map
 to
   ur action form, in the jsp give the name  property of the map
   html:link href=link.do name=taskForm property=params 
   here taskForm is the action form to which params is set .this params is
   Map params = new HashMap();
   params.put(req1,reqvalue1);
   params.put(req2,reqvalue2);
   params.put(req3,reqvalue3);
   params is set to the corresponding action form
  
   -nagi
  
   ---Original Message---
  
   From: Struts Users Mailing List
   Date: Wednesday, June 25, 2003 01:45:50 PM
   To: Struts Users Mailing List
   Subject: - add parameters
  
   Hi all
  
   I see that when using html:link / tag I can add parameters to be
 passed
   on
   to the destination / action too.
   So far I only needed a single parameter id but now I need one more.
   I see that one can use java.util.Map to pass a list of parameters via a
   link.
   The thing is how and where do I populate this Map.
   The link I click on just basically goes through a action mapping that
   redirects to a desired jsp page.
  
   Could someone show me a snippet regarding this please.
  
   Thanks
   --Alen
 
  --
  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: html:link / - add parameters

2003-06-26 Thread Chen, Gin
Yes.. come to the light of JSTL..
[EMAIL PROTECTED]
-Tim :)

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:52 AM
To: Struts Users Mailing List
Subject: Re: html:link / - add parameters


JSTL is not part of Struts. It's a Java specification defined by JSR-52
(JSTL 1.0).

http://java.sun.com/products/jsp/jstl/

Apache Jakarta provides an implementation:

http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

You might also be interested in the Struts-EL tag library. It integrates the
JSTL Expression Language (EL) with a *subset* of Struts tags:

http://jakarta.apache.org/struts/userGuide/building_view.html#struts-el

It's included in the contrib/struts-el dir of the Struts distribution.

Quoting Alen Ribic [EMAIL PROTECTED]:

 this seems good.
 does JSTL comp. come standard with Struts?
 do you prefer using JSTL for common tasks and why?
 
 --Alen
 
 
 
 - Original Message -
 From: Kris Schneider [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, June 26, 2003 3:18 PM
 Subject: Re: html:link / - add parameters
 
 
  It's pretty easy to use JSTL to handle the Map:
 
  jsp:useBean id=paramMap class=java.util.HashMap/
  c:forEach var=product items=${productList}
c:set target=${paramMap} property=id value=${product.id}/
c:set target=${paramMap} property=secLevel
 value=${product.secLevel}/
html:link action=/someLink name=paramMap
  ...
/html:link
  /c:forEach
 
  Quoting Alen Ribic [EMAIL PROTECTED]:
 
   Ok. I forgot a very important peace in the puzzle.
   I'm running an iteration tag and my html:link / tags get generated
 inside
   the loop.
   So, as my iteration runs, a new html:link / gets generated.
   Now as you can see, each link will need specific/unique parameter
list.
  
   e.g. /someLink.do?id=10secLevel=3
   next loop /someLink.do?id=21secLevel=2
   and so on...
  
   So I will need a Map object I presume per Item (In this case per
 Product)
   to
   hold my product specific request parameters (id's)?
  
   What is the best way of doing this so that right Map gets pulled out
   according to right product in iteration process in my view
   so I can populate my link paramter list (per iteration)?
  
   --Alen
  
  
   - Original Message -
   From: Nagendra Kumar O V S
   To: [EMAIL PROTECTED]
   Sent: Wednesday, June 25, 2003 10:30 AM
   Subject: Re: html:link / - add parameters
  
  
   HI,
   u will have to populate the map( with name,value pairs) and set this
 map
 to
   ur action form, in the jsp give the name  property of the map
   html:link href=link.do name=taskForm property=params 
   here taskForm is the action form to which params is set .this params
is
   Map params = new HashMap();
   params.put(req1,reqvalue1);
   params.put(req2,reqvalue2);
   params.put(req3,reqvalue3);
   params is set to the corresponding action form
  
   -nagi
  
   ---Original Message---
  
   From: Struts Users Mailing List
   Date: Wednesday, June 25, 2003 01:45:50 PM
   To: Struts Users Mailing List
   Subject: - add parameters
  
   Hi all
  
   I see that when using html:link / tag I can add parameters to be
 passed
   on
   to the destination / action too.
   So far I only needed a single parameter id but now I need one more.
   I see that one can use java.util.Map to pass a list of parameters via
a
   link.
   The thing is how and where do I populate this Map.
   The link I click on just basically goes through a action mapping that
   redirects to a desired jsp page.
  
   Could someone show me a snippet regarding this please.
  
   Thanks
   --Alen
 
  --
  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]

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



RE: html:link forward to tiles definition?

2003-06-26 Thread Kamholz, Keith (corp-staff) USX
Why wouldn't you want to use an ActionForward?
It's the struts way.

- Keith


-Original Message-
From: Chip Paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:28 PM
To: Struts User
Subject: html:link forward to tiles definition?


Is there a way to make a link (not an action forward) point to a tiles
definition, or do I have to create a wrapper jsp that inserts the def, and
use that page as the link?

Chip


-
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 forward to tiles definition?

2003-06-26 Thread Chip Paul
Because it's just a link from a jsp to another page.  I suppose I could make
an action that does nothing but that seems like overkill.  It's part of a
menu that goes to a more detailed menu so no action really takes place.
Maybe I should get rid of all of it and do a client side JS popup menu.

Chip

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 1:52 PM
To: 'Struts Users Mailing List'
Subject: RE: html:link forward to tiles definition?


Why wouldn't you want to use an ActionForward?
It's the struts way.

- Keith


-Original Message-
From: Chip Paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:28 PM
To: Struts User
Subject: html:link forward to tiles definition?


Is there a way to make a link (not an action forward) point to a tiles
definition, or do I have to create a wrapper jsp that inserts the def, and
use that page as the link?

Chip


-
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 forward to tiles definition?

2003-06-26 Thread Raible, Matt
How about the good ol' ForwardAction - you can specify a definition name as
it's parameter:

action
path=/mainMenu
type=org.apache.struts.actions.ForwardAction
parameter=.mainMenu/

HTH,

Matt

-Original Message-
From: Chip Paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:30 PM
To: Struts Users Mailing List
Subject: RE: html:link forward to tiles definition?


Because it's just a link from a jsp to another page.  I suppose I could make
an action that does nothing but that seems like overkill.  It's part of a
menu that goes to a more detailed menu so no action really takes place.
Maybe I should get rid of all of it and do a client side JS popup menu.

Chip

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 1:52 PM
To: 'Struts Users Mailing List'
Subject: RE: html:link forward to tiles definition?


Why wouldn't you want to use an ActionForward?
It's the struts way.

- Keith


-Original Message-
From: Chip Paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:28 PM
To: Struts User
Subject: html:link forward to tiles definition?


Is there a way to make a link (not an action forward) point to a tiles
definition, or do I have to create a wrapper jsp that inserts the def, and
use that page as the link?

Chip


-
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 / - add parameters

2003-06-25 Thread Nagendra Kumar O V S








  HI,
  u will have to populate the map( with name,value pairs) and set this 
  map to ur action form, in the jsp give the name  property of the 
  map
  html:link href="" name="taskForm" property="params" 
  
  here taskForm is the action form to which params is set .this params 
  is 
  Map params = new HashMap();
  params.put("req1","reqvalue1");
  
  params.put("req2","reqvalue2");
  
  params.put("req3","reqvalue3");
  "params" is set to the corresponding action form
  
  -nagi
  
  ---Original Message---
  
  
  From: Struts Users Mailing 
  List
  Date: Wednesday, June 
  25, 2003 01:45:50 PM
  To: Struts Users Mailing 
  List
  Subject: 
  - add parameters
  Hi allI see that when using html:link / 
  tag I can add parameters to be passed onto the destination / action 
  too.So far I only needed a single parameter "id" but now I need one 
  more.I see that one can use java.util.Map to pass a list of parameters 
  via alink.The thing is how and where do I populate this 
  Map.The link I click on just basically goes through a action mapping 
  thatredirects to a desired jsp page.Could someone show me a 
  snippet regarding this 
  please.Thanks--Alen-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




 IncrediMail - 
Email has finally evolved - Click 
Here



Re: html:link / - add parameters

2003-06-25 Thread Nikolay Ganev
Hello Alen,

Wednesday, June 25, 2003, 11:15:11 AM, you wrote:

AR Hi all

AR I see that when using html:link / tag I can add parameters to be passed on
AR to the destination / action too.
AR So far I only needed a single parameter id but now I need one more.
AR I see that one can use java.util.Map to pass a list of parameters via a
AR link.
AR The thing is how and where do I populate this Map.
AR The link I click on just basically goes through a action mapping that
AR redirects to a desired jsp page.

AR Could someone show me a snippet regarding this please.

AR Thanks
AR --Alen


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

hi Alen I hope this could help you

titleTest html:link Tag/title
%
  String newValue = New string value;
  pageContext.setAttribute(newValue, newValue);
  java.util.HashMap newValues = new java.util.HashMap();
  newValues.put(floatProperty, new Float(444.0));
  newValues.put(intProperty, new Integer(555));
  newValues.put(stringArray, new String[]
   { Value 1, Value 2, Value 3 });
  pageContext.setAttribute(newValues, newValues);
%

  tr
td colspan=4 align=center
  html:link action=/html-link
 name=newValues
Float, int, and stringArray via name (Map)
  /html:link
/td
  /tr

-- 
Best regards,
 Nikolaymailto:[EMAIL PROTECTED]



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



Re: html:link / - add parameters

2003-06-25 Thread Alen Ribic
ok. so I can create Map in view too. :)
I think, I'll have an opportunity to create the map in my previous action
method.
thanks for your feedback.


- Original Message -
From: Nikolay Ganev [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:30 AM
Subject: Re: html:link / - add parameters


 Hello Alen,

 Wednesday, June 25, 2003, 11:15:11 AM, you wrote:

 AR Hi all

 AR I see that when using html:link / tag I can add parameters to be
passed on
 AR to the destination / action too.
 AR So far I only needed a single parameter id but now I need one more.
 AR I see that one can use java.util.Map to pass a list of parameters via
a
 AR link.
 AR The thing is how and where do I populate this Map.
 AR The link I click on just basically goes through a action mapping that
 AR redirects to a desired jsp page.

 AR Could someone show me a snippet regarding this please.

 AR Thanks
 AR --Alen


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

 hi Alen I hope this could help you

 titleTest html:link Tag/title
 %
   String newValue = New string value;
   pageContext.setAttribute(newValue, newValue);
   java.util.HashMap newValues = new java.util.HashMap();
   newValues.put(floatProperty, new Float(444.0));
   newValues.put(intProperty, new Integer(555));
   newValues.put(stringArray, new String[]
{ Value 1, Value 2, Value 3 });
   pageContext.setAttribute(newValues, newValues);
 %
 
   tr
 td colspan=4 align=center
   html:link action=/html-link
  name=newValues
 Float, int, and stringArray via name (Map)
   /html:link
 /td
   /tr

 --
 Best regards,
  Nikolaymailto:[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 / - add parameters

2003-06-25 Thread Dirk Markert
Hello Alen,

  

***

AR Hi all

AR I see that when using html:link / tag I can add parameters to be passed on
AR to the destination / action too.
AR So far I only needed a single parameter id but now I need one more.
AR I see that one can use java.util.Map to pass a list of parameters via a
AR link.
AR The thing is how and where do I populate this Map.

You populate your map in the action forwarding to your jsp. If you
call your jsp directly without an action, you should consider using an
action.

AR The link I click on just basically goes through a action mapping that
AR redirects to a desired jsp page.

AR Could someone show me a snippet regarding this please.

AR Thanks
AR --Alen


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



Regards,
Dirk

+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-- to success! -+ 


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



Re: html:link / - add parameters

2003-06-25 Thread Alen Ribic
ok. got it.
thanks
--Alen

  - Original Message - 
  From: Nagendra Kumar O V S 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 25, 2003 10:30 AM
  Subject: Re: html:link / - add parameters


HI,
u will have to populate the map( with name,value pairs) and set this map to ur 
action form, in the jsp give the name  property of the map
html:link href=link.do name=taskForm property=params 
here taskForm is the action form to which params is set .this params is 
Map params = new HashMap();
params.put(req1,reqvalue1);
params.put(req2,reqvalue2);
params.put(req3,reqvalue3);
params is set to the corresponding action form

-nagi

---Original Message---

From: Struts Users Mailing List
Date: Wednesday, June 25, 2003 01:45:50 PM
To: Struts Users Mailing List
Subject: - add parameters

Hi all

I see that when using html:link / tag I can add parameters to be passed on
to the destination / action too.
So far I only needed a single parameter id but now I need one more.
I see that one can use java.util.Map to pass a list of parameters via a
link.
The thing is how and where do I populate this Map.
The link I click on just basically goes through a action mapping that
redirects to a desired jsp page.

Could someone show me a snippet regarding this please.

Thanks
--Alen


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


. 
   
   
  
IncrediMail - Email has finally evolved - Click Here 


Re: html:link / - add parameters

2003-06-25 Thread Alen Ribic

- Original Message -
From: Dirk Markert [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:36 AM
Subject: Re: html:link / - add parameters


 Hello Alen,



 ***

 AR Hi all

 AR I see that when using html:link / tag I can add parameters to be
passed on
 AR to the destination / action too.
 AR So far I only needed a single parameter id but now I need one more.
 AR I see that one can use java.util.Map to pass a list of parameters via
a
 AR link.
 AR The thing is how and where do I populate this Map.

 You populate your map in the action forwarding to your jsp. If you
 call your jsp directly without an action, you should consider using an
 action.

thanks for your feedback.
I thought my action mapping was just redirecting to a view, but it's not
true.
I do take a trip through action method to collect some info.
So populating the map and adding it to the list of attributes in action
method will probably work for me.

--Alen


 AR The link I click on just basically goes through a action mapping that
 AR redirects to a desired jsp page.

 AR Could someone show me a snippet regarding this please.

 AR Thanks
 AR --Alen


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



 Regards,
 Dirk

 +--- Quality leads ---+
 | Dirk Markert [EMAIL PROTECTED] |
 | Dr. Markert Softwaretechnik AG  |
 | Joseph-von-Fraunhofer-Str. 20   |
 | 44227 Dortmund  |
 +-- to success! -+


 -
 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/ w/out a href??

2003-06-18 Thread Gemes Tibor
Ben Anderson rta:

I have a form with 2 buttons.  I know I can handle this ok using the 
dispatch property.  But, what I'd rather do (so I don't have to put 
ugly query strings in my links) is use javascript.  What I'm wondering 
is, if there's a way to get action - link resolution that the 
html:link/ tag gives me without the a href=
html:rewrite?

Tib



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


Re: html:link/ w/out a href??

2003-06-18 Thread Mark Lowe
could this do it...?

script 
function clicked(path) {
window.open(path,My Popup,);
}
/script
a href=javascript:clicked('html:rewrite page=/yourAction.do /')



On Wednesday, Jun 18, 2003, at 14:52 Europe/London, Ben Anderson wrote:

I have a form with 2 buttons.  I know I can handle this ok using the 
dispatch property.  But, what I'd rather do (so I don't have to put 
ugly query strings in my links) is use javascript.  What I'm wondering 
is, if there's a way to get action - link resolution that the 
html:link/ tag gives me without the a href=

code file=linker.jsp
   html
   head
   script type=text/javascript
 function clicked(){
  var link = html:link value=action/to/do/;
   // this won't work since the value in link is 
actually a href=action_to_do.jsp
   window.open( link );

Thanks,
Ben Anderson
_
Help STOP 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]


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


Re: html:link/ w/out a href??

2003-06-18 Thread Sandeep Takhar
Why not give the buttons a name and submit to a
process action.  This action checks the name and
forwards to the appropriate place..

sandeep
--- Ben Anderson [EMAIL PROTECTED]
wrote:
 I have a form with 2 buttons.  I know I can handle
 this ok using the 
 dispatch property.  But, what I'd rather do (so I
 don't have to put ugly 
 query strings in my links) is use javascript.  What
 I'm wondering is, if 
 there's a way to get action - link resolution that
 the html:link/ tag 
 gives me without the a href=
 
 code file=linker.jsp
 html
 head
 script type=text/javascript
   function clicked(){
var link = html:link
 value=action/to/do/;
 // this won't work since the
 value in link is actually 
 a href=action_to_do.jsp
 window.open( link );
 
 Thanks,
 Ben Anderson
 

_
 Help STOP 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]
 


__
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: html:link along with logic:iterate

2003-05-30 Thread Alawadhi, Mona
I've got this far in my code, but how can I specify which letter was
selected after specifying my Action page? (it is Underlined)

logic:iterate name=addressListFormBean id=choice
property=letterOptions
html:link page=/addressListAction.do?letter=  ???
bean:write name=choice property=labelStr/
/html:link
/logic:iterate

Mona



-Original Message-
From: Alawadhi, Mona 
Sent: Thursday, May 29, 2003 10:23 AM
To: 'Struts Users Mailing List'
Subject: html:link along with logic:iterate


Hello,

I am trying to display letters (A to Z) that are stored in a Vector/List in
my FormBean (index kind of thing).
I would like the user to click on a letter, where I can capture the value of
that letter, run my query, and display results accordingly.

When I tried to use bean:write along with logic:iterate, the letters
would only be displays, and are not clickable.
How can I use the html:link in this case? or is there any other tag I
could use?


Thank you,

Mona 


*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 
*


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



Re: html:link along with logic:iterate

2003-05-30 Thread Doug
Alawadhi, Mona wrote:
I've got this far in my code, but how can I specify which letter was
selected after specifying my Action page? (it is Underlined)
logic:iterate name=addressListFormBean id=choice
property=letterOptions
html:link page=/addressListAction.do?letter=  ???
bean:write name=choice property=labelStr/
/html:link
/logic:iterate
Mona
When you only have the one parameter, it's easy with the paramId, 
paramName, paramProperty attributes.  For example:

html:link page=/addressListAction.do paramId=letter paramName=choice

If you have more than one parameter, you have to use scriplets.

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


RE: html:link along with logic:iterate

2003-05-30 Thread Kamholz, Keith (corp-staff) USX
Use something similar to this:

logic:iterate name=addressListFormBean property=letterOptions
id=choice
html:link page=/addressListAction.do paramId=userSelection
paramName=choice paramProperty=labelStr
bean:write name=choice property=labelStr/
/html:link
/logic:iterate

(You may have to change it, because I'm not sure exactly what some of your
variables refer to.)
Then you can just call a request.getParameter(userSelection) in your
action class to find out which was selected.

- Keith

www.buffalo.edu/~kkamholz


-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 10:35 AM
To: 'Struts Users Mailing List'
Subject: RE: html:link along with logic:iterate


I've got this far in my code, but how can I specify which letter was
selected after specifying my Action page? (it is Underlined)

logic:iterate name=addressListFormBean id=choice
property=letterOptions
html:link page=/addressListAction.do?letter=  ???
bean:write name=choice property=labelStr/
/html:link
/logic:iterate

Mona



-Original Message-
From: Alawadhi, Mona 
Sent: Thursday, May 29, 2003 10:23 AM
To: 'Struts Users Mailing List'
Subject: html:link along with logic:iterate


Hello,

I am trying to display letters (A to Z) that are stored in a Vector/List in
my FormBean (index kind of thing).
I would like the user to click on a letter, where I can capture the value of
that letter, run my query, and display results accordingly.

When I tried to use bean:write along with logic:iterate, the letters
would only be displays, and are not clickable.
How can I use the html:link in this case? or is there any other tag I
could use?


Thank you,

Mona 



*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 

*


-
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 along with logic:iterate

2003-05-30 Thread Alawadhi, Mona
Thank you, Doug and Keith.. it works! Whoo Hoo!

Mona

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 11:15 AM
To: 'Struts Users Mailing List'
Subject: RE: html:link along with logic:iterate


Use something similar to this:

logic:iterate name=addressListFormBean property=letterOptions
id=choice
html:link page=/addressListAction.do paramId=userSelection
paramName=choice paramProperty=labelStr
bean:write name=choice property=labelStr/
/html:link
/logic:iterate

(You may have to change it, because I'm not sure exactly what some of your
variables refer to.)
Then you can just call a request.getParameter(userSelection) in your
action class to find out which was selected.

- Keith

www.buffalo.edu/~kkamholz


-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 10:35 AM
To: 'Struts Users Mailing List'
Subject: RE: html:link along with logic:iterate


I've got this far in my code, but how can I specify which letter was
selected after specifying my Action page? (it is Underlined)

logic:iterate name=addressListFormBean id=choice
property=letterOptions
html:link page=/addressListAction.do?letter=  ???
bean:write name=choice property=labelStr/
/html:link
/logic:iterate

Mona



-Original Message-
From: Alawadhi, Mona 
Sent: Thursday, May 29, 2003 10:23 AM
To: 'Struts Users Mailing List'
Subject: html:link along with logic:iterate


Hello,

I am trying to display letters (A to Z) that are stored in a Vector/List in
my FormBean (index kind of thing).
I would like the user to click on a letter, where I can capture the value of
that letter, run my query, and display results accordingly.

When I tried to use bean:write along with logic:iterate, the letters
would only be displays, and are not clickable.
How can I use the html:link in this case? or is there any other tag I
could use?


Thank you,

Mona 



*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 

*


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


*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 
*


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



  1   2   3   >