html:link vs. html:submit vs. input

2004-03-16 Thread Stuart McGrigor
The JSP code below prints out a nice list of company names, with links
called Edit and Delete
which call a suitable form with a pair of parameters, one being the action,
the other being an identifying property of the company to played with.

logic:iterate name=CompanyProfile property=candidateSystems
id=aSystem
  bean:write name=aSystem property=fullName/
  %
// Assemble a hashmap of args for the html:link
java.util.HashMap editMap = new java.util.HashMap();
java.util.HashMap delMap = new java.util.HashMap();
editMap.put(action, Edit);
editMap.put(system, ((CandidateSystem) aSystem).getFullName());
delMap.put(action, Delete);
delMap.put(system, ((CandidateSystem) aSystem).getFullName());
pageContext.setAttribute(editMap, editMap);
pageContext.setAttribute(delMap, delMap);
  %
  html:link page=/editCompanySystem.do name=editMapbean:message
key=button.edit//html:link
  html:link page=/editCompanySystem.do name=delMapbean:message
key=button.delete//html:link
/logic:iterate

It all works fine, but I'd much rather have two proper buttons, rather than
links. Is this even possible?

Regards,
Stuart McGrigor


-
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

html:link instead of html:submit

2004-02-12 Thread Dieter Mummenschanz
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]



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]



html:submit

2003-12-17 Thread Clark Kent
I am trying to use bean:message for internationalization within the html:submit 
button like this :

html:submit property=physicianSubmit value=bean:message 
key='csc.button.submit'//

There is a key-value pair in the resource bundle.

But it seems to display the following error : Attribute csc.button.submit has no value 

How do I fix this error?

Thanks,

CK

 



-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

RE: html:submit

2003-12-17 Thread Ben Anderson
you can't specifiy a tag as the value of an attribute in another tag.  There 
are a few different ways you could solve this problem.  Here's one using 
jstl and struts-el:
c:set var=messy
   bean:message key='csc.button.submit'/
/c:set
html-el:submit property=physicianSubmit value=${messy}/

From: Clark Kent [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: usergroup [EMAIL PROTECTED]
Subject: html:submit
Date: Wed, 17 Dec 2003 11:53:25 -0800 (PST)
I am trying to use bean:message for internationalization within the 
html:submit button like this :

html:submit property=physicianSubmit value=bean:message 
key='csc.button.submit'//

There is a key-value pair in the resource bundle.

But it seems to display the following error : Attribute csc.button.submit 
has no value

How do I fix this error?

Thanks,

CK





-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing
_
Check your PC for viruses with the FREE McAfee online computer scan.  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Iterate and onClick problem for html:submit

2003-12-12 Thread simon . j . faughnan
Hi,
 
I have a problem at the moment where I wish to set a hidden field on a form depending 
on which button a users selects.  So my JSP loads with N number of possible rows in a 
table.  Each row has a button (Edit) associated with it.  When the user hits the 
Submit button I want a hidden field to be set so my Action class can read it from the 
form and act appropriately.  The problem is that after defining my bean I cannot 
evaluate the property - the parameter I retrieve in my Action class is set to %= 
(String) theCode % and not the value I require!
 
Here is an extract of the code:
 
logic:iterate id=item scope=session indexId=index 
collection='%=session.getAttribute(theList)%'
tr 
TD class=body_textbean:write name=item property=section/
bean:define id=theCode name=item property=title/bean:define
html:submit onclick=this.form.hiddenId.value='%=(String) theCode %';  
value=Edit /
/TD
/TR
/logic:iterate

The problem is compounded by the fact that the page works using standard html as 
follows:
 
input type=button onclick=this.form.hiddenId.value='%= (String) theCode %'; 
value=Edit /

but I need to use Struts Html if my DynaValidatorActionForm is to work (I think!).
 
I have looked through the archives and although I have found people having similar 
problems I cannot get a solution.  I have also tried all combinations of quotes and 
escaping quotes etc with no success.
 
I'd appreciate any help people could give.
 
Regards,
Simon.


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of the 
email by you is prohibited.

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



RE: Iterate and onClick problem for html:submit

2003-12-12 Thread Ben Anderson
This is because you can't mix the value of an attribute of a custom tag with 
both string literal and run time expressions.
Instead of this:
html:submit onclick=this.form.hiddenId.value='%=(String) theCode %';  
value=Edit /
something like this should work:
c_rt:set var=theCode value=%=(String) theCode %/
c:set var=theCode value=this.form.hiddenId.value=${theCode}/
htm-ell:submit onclick=${theCode} value=Edit /
however, based on your use case I would suggest making use of the property 
attribute of html:submit.  This way, a value will automically be submitted 
with the form based on which button you select.

hth,
Ben
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Iterate and onClick problem for html:submit
Date: Fri, 12 Dec 2003 16:45:53 +0100
Hi,

I have a problem at the moment where I wish to set a hidden field on a form 
depending on which button a users selects.  So my JSP loads with N number 
of possible rows in a table.  Each row has a button (Edit) associated with 
it.  When the user hits the Submit button I want a hidden field to be set 
so my Action class can read it from the form and act appropriately.  The 
problem is that after defining my bean I cannot evaluate the property - the 
parameter I retrieve in my Action class is set to %= (String) theCode % 
and not the value I require!

Here is an extract of the code:

logic:iterate id=item scope=session indexId=index 
collection='%=session.getAttribute(theList)%'
tr
TD class=body_textbean:write name=item property=section/
bean:define id=theCode name=item property=title/bean:define
html:submit onclick=this.form.hiddenId.value='%=(String) theCode %';  
value=Edit /
/TD
/TR
/logic:iterate

The problem is compounded by the fact that the page works using standard 
html as follows:

input type=button onclick=this.form.hiddenId.value='%= (String) theCode 
%'; value=Edit /

but I need to use Struts Html if my DynaValidatorActionForm is to work (I 
think!).

I have looked through the archives and although I have found people having 
similar problems I cannot get a solution.  I have also tried all 
combinations of quotes and escaping quotes etc with no success.

I'd appreciate any help people could give.

Regards,
Simon.
This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information.  If you have 
received it in error, please notify the sender immediately and delete the 
original.  Any other use of the email by you is prohibited.

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

_
Wonder if the latest virus has gotten to your computer? Find out. Run the 
FREE McAfee online computer scan! 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: Iterate and onClick problem for html:submit

2003-12-12 Thread Wendy Smoak
 From: [EMAIL PROTECTED] 
 html:submit onclick=this.form.hiddenId.value='%=(String) 
 theCode %';  value=Edit /

If Struts-EL is an option, I think it would look like this:

html-el:submit property=someProp 
onclick=document.forms[0].hiddenId.value=${theCode};
/

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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



html:submit and html:button componant : value and text label

2003-11-24 Thread Eric BELLARD
hi,

i'm dispatch action addicted developper and I go a
recurent problem with html:button and html:submit
componant.

With these componants it's impossible to separate
their label and their submitted value.

I managed with some javascript like this to invoke the
dispatch method i want :

// submit form
function submitForm(form, parameter) {

form.action = form.action + ? + parameter;
form.submit();

}

// valid and submit a form
function validAndSubmitForm(form, parameter) {

if (window.confirm('Are tou sure you want to delete
the selected samples?')) {  
submitForm(form, parameter);
}
}

So my question is why can't we separate the label and
sumitted value of buttons in struts?

Sorry if it's a déjà vu.



=
Eric BELLARD
[EMAIL PROTECTED]
mobile: 0614952791

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



RE: html:submit and html:button componant : value and text label

2003-11-24 Thread Paul McCulloch
This is an html issue, rather than a struts one. 

Read up on how input type=submit/ works for an in depth explanation.

Struts provides the LookupDispatchAction which is designed to deal with this
issue.

Paul

 -Original Message-
 From: Eric BELLARD [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2003 11:21
 To: [EMAIL PROTECTED]
 Subject: html:submit and html:button componant : value and text label
 
 
 hi,
 
 i'm dispatch action addicted developper and I go a
 recurent problem with html:button and html:submit
 componant.
 
 With these componants it's impossible to separate
 their label and their submitted value.
 
 I managed with some javascript like this to invoke the
 dispatch method i want :
 
 // submit form
 function submitForm(form, parameter) {
   
   form.action = form.action + ? + parameter;
   form.submit();
 
 }
 
 // valid and submit a form
 function validAndSubmitForm(form, parameter) {
 
   if (window.confirm('Are tou sure you want to delete
 the selected samples?')) {
   submitForm(form, parameter);
   }
 }
 
 So my question is why can't we separate the label and
 sumitted value of buttons in struts?
 
 Sorry if it's a déjà vu.
 
 
 
 =
 Eric BELLARD
 [EMAIL PROTECTED]
 mobile: 0614952791
 
 __
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now
 http://companion.yahoo.com/
 
 -
 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]



html:submit and 2 buttons

2003-11-06 Thread Frers Michael
Hello

just a little question about the taglib

i want to have one form with 2 buttons in it


one button should do new
the other update

how can i make my action class know which button was hit?

additionally i want that the buttons get there labels from a property file
that works as shown below but how can i now make my action class know which button is 
hit?
html-el:submit bean-el:message key=search.new//html-el:submit


RE: html:submit and 2 buttons

2003-11-06 Thread Arik Levin ( Tikal )

You can just use JavaScript passing some parameters

You can also try this approach:
http://husted.com/struts/tips/003.html


-Original Message-
From: Frers Michael [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 05, 2003 6:54 PM
To: Struts Users Mailing List
Subject: html:submit and 2 buttons

Hello

just a little question about the taglib

i want to have one form with 2 buttons in it


one button should do new
the other update

how can i make my action class know which button was hit?

additionally i want that the buttons get there labels from a property file
that works as shown below but how can i now make my action class know which
button is hit?
html-el:submit bean-el:message key=search.new//html-el:submit

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



RE: html:submit and 2 buttons

2003-11-06 Thread Philip Mark Donaghy
Your action can read the value attribute of your
submit tag. This is the label in your case.

bean-el:message key=search.new/

Use the request.getParameter to find out which button
was clicked. Give each of your submit buttons a
different NAME. request.getParameter(NAME) will return
the label of the submit button clicked or null.

Phil

--- Arik  Levin ( Tikal )
[EMAIL PROTECTED] wrote:
 
 You can just use JavaScript passing some parameters
 
 You can also try this approach:
 http://husted.com/struts/tips/003.html
 
 
 -Original Message-
 From: Frers Michael [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, November 05, 2003 6:54 PM
 To: Struts Users Mailing List
 Subject: html:submit and 2 buttons
 
 Hello
 
 just a little question about the taglib
 
 i want to have one form with 2 buttons in it
 
 
 one button should do new
 the other update
 
 how can i make my action class know which button was
 hit?
 
 additionally i want that the buttons get there
 labels from a property file
 that works as shown below but how can i now make my
 action class know which
 button is hit?
 html-el:submit bean-el:message
 key=search.new//html-el:submit
 

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


=
Java Web Application Architect
mapimage.com - Java and GIS
struts1.1:tomcat4.1.27:linuxRH8

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



RE: html:submit and 2 buttons

2003-11-06 Thread Greg Hess
I have often added form properties to represent flags for the different
button actions to process. My ActionForm would have two properties
update and new:

setUpdate(boolean flag){}

boolean isUpdate()

For the submit buttons:

html:submit property=update value=true /

If I have to use an image for the submit button I generally will have a
hidden flag form field that I populate in the JavaScript onclick event
handler.

HTH,

Greg

 -Original Message-
 From: Philip Mark Donaghy [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 06, 2003 6:23 AM
 To: Struts Users Mailing List
 Subject: RE: html:submit and 2 buttons
 
 Your action can read the value attribute of your
 submit tag. This is the label in your case.
 
 bean-el:message key=search.new/
 
 Use the request.getParameter to find out which button
 was clicked. Give each of your submit buttons a
 different NAME. request.getParameter(NAME) will return
 the label of the submit button clicked or null.
 
 Phil
 
 --- Arik  Levin ( Tikal )
 [EMAIL PROTECTED] wrote:
 
  You can just use JavaScript passing some parameters
 
  You can also try this approach:
  http://husted.com/struts/tips/003.html
 
 
  -Original Message-
  From: Frers Michael [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, November 05, 2003 6:54 PM
  To: Struts Users Mailing List
  Subject: html:submit and 2 buttons
 
  Hello
 
  just a little question about the taglib
 
  i want to have one form with 2 buttons in it
 
 
  one button should do new
  the other update
 
  how can i make my action class know which button was
  hit?
 
  additionally i want that the buttons get there
  labels from a property file
  that works as shown below but how can i now make my
  action class know which
  button is hit?
  html-el:submit bean-el:message
  key=search.new//html-el:submit
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 =
 Java Web Application Architect
 mapimage.com - Java and GIS
 struts1.1:tomcat4.1.27:linuxRH8
 
 __
 Do you Yahoo!?
 Protect your identity with Yahoo! Mail AddressGuard
 http://antispam.yahoo.com/whatsnewfree
 
 -
 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]



[Q] HTML:Submit and getter setter methods - can you help?

2003-10-16 Thread Rajesh M Vasudevan
Hi,

How do I invoke the getter or setter method of a form bean directly using the 
html:submit tag?  I managed to do this successfully using the html:img tag, but not 
with html:submit.

Thanks
Raj


html:submit

2003-10-07 Thread harm
Hi all,

How can I name a submit button. I need a name for it, because I want to 
access it from Javascript. I render the submit button as follows:

html:submit styleClass=button value=send! onclick=closing=false; 
document.correctionForm.action='/advertentieoverzicht/store_correction.do';
/

This renders:

input type=submit value=send! onclick=closing=false; 
document.correctionForm.action='/advertentieoverzicht/store_correction.do'; 
class=button

But i need:

input name=sendButton type=submit value=send! 
onclick=closing=false; 
document.correctionForm.action='/advertentieoverzicht/store_correction.do'; 
class=button

How can I achieve this?

Thank you very much,

Harm de Laat
Informatiefabriek
The Netherlands


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



html:submit - value

2003-09-29 Thread Amit Rana
Hi,

How can I tell html:submit (or html:text etc) to pick the
value= from the resources file? Am I missing something obvious in the
docs?

Regards,
Amit.


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



RE: Simple html:submit question

2003-08-14 Thread Alex Shneyderman

Use html:image tag.

 -Original Message-
 From: Norr, Peter [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 11, 2003 6:26 PM
 To: 'Struts Users Mailing List'
 Subject: Simple html:submit question
 
 How do I use my own image in a html:submit/ or html:cancel/ tag?
 


--
 
 This message is intended only for the personal and confidential use of
the
 designated recipient(s) named above.  If you are not the intended
 recipient of
 this message you are hereby notified that any review, dissemination,
 distribution or copying of this message is strictly prohibited.  This
 communication is for information purposes only and should not be
regarded
 as
 an offer to sell or as a solicitation of an offer to buy any financial
 product, an official confirmation of any transaction, or as an
official
 statement of Lehman Brothers.  Email transmission cannot be guaranteed
to
 be
 secure or error-free.  Therefore, we do not represent that this
 information is
 complete or accurate and it should not be relied upon as such.  All
 information is subject to change without notice.
 
 
 -
 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: Simple html:submit question

2003-08-14 Thread Mark Lowe
http://jakarta.apache.org/struts/userGuide/struts-html.html#image

On Tuesday, August 12, 2003, at 04:04 PM, Norr, Peter wrote:

Any reason why the struts html:submit/ tag does not support the src
attribute?
html:submit src=myimage.gif/
-Original Message-
From: Ravi Kora [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:43 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question
Ya, u can do that or u can use a html:link tag(generates a href in
html) like below. You ultimately submit the form in the javascript fn  
of
href.

html:link href=javascript:submitfn();
html:img src=img.gif /
/html:link
HTH,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M)
301-519-0727(H)

-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:22 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: Simple html:submit question
Should I use an onclick method handler to the image tag so I
can submit the form??


-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 7:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question


Use html:image tag.

-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 6:26 PM
To: 'Struts Users Mailing List'
Subject: Simple html:submit question
How do I use my own image in a html:submit/ or html:cancel/ tag?


--
--
--

This message is intended only for the personal and
confidential use of
the
designated recipient(s) named above.  If you are not the intended
recipient of this message you are hereby notified that any review,
dissemination, distribution or copying of this message is strictly
prohibited.  This communication is for information purposes
only and
should not be
regarded
as
an offer to sell or as a solicitation of an offer to buy
any financial
product, an official confirmation of any transaction, or as an
official
statement of Lehman Brothers.  Email transmission cannot be
guaranteed
to
be
secure or error-free.  Therefore, we do not represent that this
information is complete or accurate and it should not be
relied upon
as such.  All information is subject to change without notice.



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

This message is intended only for the personal and
confidential use of the designated recipient(s) named above.
If you are not the intended recipient of this message you are
hereby notified that any review, dissemination, distribution
or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not
be regarded as an offer to sell or as a solicitation of an
offer to buy any financial product, an official confirmation
of any transaction, or as an official statement of Lehman
Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that
this information is complete or accurate and it should not be
relied upon as such.  All information is subject to change
without notice.
-
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]
--- 
---
This message is intended only for the personal and confidential use of  
the
designated recipient(s) named above.  If you are not the intended  
recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be  
regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed  
to be
secure or error-free.  Therefore, we do not represent that this  
information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.

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


-
To unsubscribe, e-mail: [EMAIL

RE: Simple html:submit question

2003-08-14 Thread Mark Galbreath
Probably because HTML doesn't.

-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 11:05 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question


Any reason why the struts html:submit/ tag does not support the src
attribute?

html:submit src=myimage.gif/
-Original Message-
From: Ravi Kora [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 10:43 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question


Ya, u can do that or u can use a html:link tag(generates a href in
html) like below. You ultimately submit the form in the javascript fn of
href.

html:link href=javascript:submitfn();
html:img src=img.gif /
/html:link 

HTH,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M)
301-519-0727(H)


 -Original Message-
 From: Norr, Peter [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 12, 2003 10:22 AM
 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
 Subject: RE: Simple html:submit question
 
 
 Should I use an onclick method handler to the image tag so I can 
 submit the form??
 
 
 
 -Original Message-
 From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 12, 2003 7:29 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Simple html:submit question
 
 
 
 Use html:image tag.
 
  -Original Message-
  From: Norr, Peter [mailto:[EMAIL PROTECTED]
  Sent: Monday, August 11, 2003 6:26 PM
  To: 'Struts Users Mailing List'
  Subject: Simple html:submit question
  
  How do I use my own image in a html:submit/ or html:cancel/ tag?
  
 
 --
 --
 --
  
  This message is intended only for the personal and
 confidential use of
 the
  designated recipient(s) named above.  If you are not the intended
  recipient of this message you are hereby notified that any review, 
  dissemination, distribution or copying of this message is strictly 
  prohibited.  This communication is for information purposes
 only and
  should not be
 regarded
  as
  an offer to sell or as a solicitation of an offer to buy
 any financial
  product, an official confirmation of any transaction, or as an
 official
  statement of Lehman Brothers.  Email transmission cannot be
 guaranteed
 to
  be
  secure or error-free.  Therefore, we do not represent that this
  information is complete or accurate and it should not be
 relied upon
  as such.  All information is subject to change without notice.
  
  
  
 -
  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]
 
 
 --
 
 This message is intended only for the personal and confidential use of 
 the designated recipient(s) named above.
 If you are not the intended recipient of this message you are 
 hereby notified that any review, dissemination, distribution 
 or copying of this message is strictly prohibited.  This 
 communication is for information purposes only and should not 
 be regarded as an offer to sell or as a solicitation of an 
 offer to buy any financial product, an official confirmation 
 of any transaction, or as an official statement of Lehman 
 Brothers.  Email transmission cannot be guaranteed to be 
 secure or error-free.  Therefore, we do not represent that 
 this information is complete or accurate and it should not be 
 relied upon as such.  All information is subject to change 
 without notice.
 
 
 -
 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]



--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice

RE: Simple html:submit question

2003-08-14 Thread Norr, Peter
Should I use an onclick method handler to the image tag so I can submit the
form??



-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 7:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question



Use html:image tag.

 -Original Message-
 From: Norr, Peter [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 11, 2003 6:26 PM
 To: 'Struts Users Mailing List'
 Subject: Simple html:submit question
 
 How do I use my own image in a html:submit/ or html:cancel/ tag?
 


--
 
 This message is intended only for the personal and confidential use of
the
 designated recipient(s) named above.  If you are not the intended 
 recipient of this message you are hereby notified that any review, 
 dissemination, distribution or copying of this message is strictly 
 prohibited.  This communication is for information purposes only and 
 should not be
regarded
 as
 an offer to sell or as a solicitation of an offer to buy any financial 
 product, an official confirmation of any transaction, or as an
official
 statement of Lehman Brothers.  Email transmission cannot be guaranteed
to
 be
 secure or error-free.  Therefore, we do not represent that this 
 information is complete or accurate and it should not be relied upon 
 as such.  All information is subject to change without notice.
 
 
 -
 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]


--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



RE: Simple html:submit question

2003-08-14 Thread Alex Shneyderman
There is one disadvantage the browser has to know of JavaScript, which
might or might not be acceptable. 

You do not need to use onclick. When you have that element on your html
page and user clicks the image the form will be submitted. It acts
exactly as submit button (or almost exactly; there is more parameters
that are submitted with this type of image button)

Alex.

 -Original Message-
 From: Ravi Kora [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 12, 2003 10:43 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Simple html:submit question
 
 Ya, u can do that or u can use a html:link tag(generates a href in
 html) like below. You ultimately submit the form in the javascript fn
of
 href.
 
 html:link href=javascript:submitfn();
   html:img src=img.gif /
 /html:link
 
 HTH,
 Ravi Kora
 [EMAIL PROTECTED]
 337-739-3434(M)
 301-519-0727(H)
 
 
  -Original Message-
  From: Norr, Peter [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, August 12, 2003 10:22 AM
  To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
  Subject: RE: Simple html:submit question
 
 
  Should I use an onclick method handler to the image tag so I
  can submit the form??
 
 
 
  -Original Message-
  From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, August 12, 2003 7:29 AM
  To: 'Struts Users Mailing List'
  Subject: RE: Simple html:submit question
 
 
 
  Use html:image tag.
 
   -Original Message-
   From: Norr, Peter [mailto:[EMAIL PROTECTED]
   Sent: Monday, August 11, 2003 6:26 PM
   To: 'Struts Users Mailing List'
   Subject: Simple html:submit question
  
   How do I use my own image in a html:submit/ or html:cancel/
tag?
  
  
  --
  --
  --
   
   This message is intended only for the personal and
  confidential use of
  the
   designated recipient(s) named above.  If you are not the intended
   recipient of this message you are hereby notified that any review,
   dissemination, distribution or copying of this message is strictly
   prohibited.  This communication is for information purposes
  only and
   should not be
  regarded
   as
   an offer to sell or as a solicitation of an offer to buy
  any financial
   product, an official confirmation of any transaction, or as an
  official
   statement of Lehman Brothers.  Email transmission cannot be
  guaranteed
  to
   be
   secure or error-free.  Therefore, we do not represent that this
   information is complete or accurate and it should not be
  relied upon
   as such.  All information is subject to change without notice.
  
  
  
 
-
   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]
 
 
  --
  
  This message is intended only for the personal and
  confidential use of the designated recipient(s) named above.
  If you are not the intended recipient of this message you are
  hereby notified that any review, dissemination, distribution
  or copying of this message is strictly prohibited.  This
  communication is for information purposes only and should not
  be regarded as an offer to sell or as a solicitation of an
  offer to buy any financial product, an official confirmation
  of any transaction, or as an official statement of Lehman
  Brothers.  Email transmission cannot be guaranteed to be
  secure or error-free.  Therefore, we do not represent that
  this information is complete or accurate and it should not be
  relied upon as such.  All information is subject to change
  without notice.
 
 
 
-
  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: Simple html:submit question

2003-08-14 Thread Mark Lowe
http://jakarta.apache.org/struts/userGuide/struts-html.html#submit

On Tuesday, August 12, 2003, at 04:04 PM, Norr, Peter wrote:

Any reason why the struts html:submit/ tag does not support the src
attribute?
html:submit src=myimage.gif/
-Original Message-
From: Ravi Kora [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:43 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question
Ya, u can do that or u can use a html:link tag(generates a href in
html) like below. You ultimately submit the form in the javascript fn  
of
href.

html:link href=javascript:submitfn();
html:img src=img.gif /
/html:link
HTH,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M)
301-519-0727(H)

-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:22 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: Simple html:submit question
Should I use an onclick method handler to the image tag so I
can submit the form??


-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 7:29 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question


Use html:image tag.

-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 6:26 PM
To: 'Struts Users Mailing List'
Subject: Simple html:submit question
How do I use my own image in a html:submit/ or html:cancel/ tag?


--
--
--

This message is intended only for the personal and
confidential use of
the
designated recipient(s) named above.  If you are not the intended
recipient of this message you are hereby notified that any review,
dissemination, distribution or copying of this message is strictly
prohibited.  This communication is for information purposes
only and
should not be
regarded
as
an offer to sell or as a solicitation of an offer to buy
any financial
product, an official confirmation of any transaction, or as an
official
statement of Lehman Brothers.  Email transmission cannot be
guaranteed
to
be
secure or error-free.  Therefore, we do not represent that this
information is complete or accurate and it should not be
relied upon
as such.  All information is subject to change without notice.



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

This message is intended only for the personal and
confidential use of the designated recipient(s) named above.
If you are not the intended recipient of this message you are
hereby notified that any review, dissemination, distribution
or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not
be regarded as an offer to sell or as a solicitation of an
offer to buy any financial product, an official confirmation
of any transaction, or as an official statement of Lehman
Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that
this information is complete or accurate and it should not be
relied upon as such.  All information is subject to change
without notice.
-
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]
--- 
---
This message is intended only for the personal and confidential use of  
the
designated recipient(s) named above.  If you are not the intended  
recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be  
regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed  
to be
secure or error-free.  Therefore, we do not represent that this  
information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.

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


-
To unsubscribe, e-mail: [EMAIL

RE: Simple html:submit question

2003-08-14 Thread Ravi Kora
Ya, u can do that or u can use a html:link tag(generates a href in
html) like below. You ultimately submit the form in the javascript fn of
href.

html:link href=javascript:submitfn();
html:img src=img.gif /
/html:link 

HTH,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M)
301-519-0727(H)


 -Original Message-
 From: Norr, Peter [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 12, 2003 10:22 AM
 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
 Subject: RE: Simple html:submit question
 
 
 Should I use an onclick method handler to the image tag so I 
 can submit the form??
 
 
 
 -Original Message-
 From: Alex Shneyderman [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 12, 2003 7:29 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Simple html:submit question
 
 
 
 Use html:image tag.
 
  -Original Message-
  From: Norr, Peter [mailto:[EMAIL PROTECTED]
  Sent: Monday, August 11, 2003 6:26 PM
  To: 'Struts Users Mailing List'
  Subject: Simple html:submit question
  
  How do I use my own image in a html:submit/ or html:cancel/ tag?
  
 
 --
 --
 --
  
  This message is intended only for the personal and 
 confidential use of
 the
  designated recipient(s) named above.  If you are not the intended
  recipient of this message you are hereby notified that any review, 
  dissemination, distribution or copying of this message is strictly 
  prohibited.  This communication is for information purposes 
 only and 
  should not be
 regarded
  as
  an offer to sell or as a solicitation of an offer to buy 
 any financial
  product, an official confirmation of any transaction, or as an
 official
  statement of Lehman Brothers.  Email transmission cannot be 
 guaranteed
 to
  be
  secure or error-free.  Therefore, we do not represent that this
  information is complete or accurate and it should not be 
 relied upon 
  as such.  All information is subject to change without notice.
  
  
  
 -
  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]
 
 
 --
 
 This message is intended only for the personal and 
 confidential use of the designated recipient(s) named above.  
 If you are not the intended recipient of this message you are 
 hereby notified that any review, dissemination, distribution 
 or copying of this message is strictly prohibited.  This 
 communication is for information purposes only and should not 
 be regarded as an offer to sell or as a solicitation of an 
 offer to buy any financial product, an official confirmation 
 of any transaction, or as an official statement of Lehman 
 Brothers.  Email transmission cannot be guaranteed to be 
 secure or error-free.  Therefore, we do not represent that 
 this information is complete or accurate and it should not be 
 relied upon as such.  All information is subject to change 
 without notice.
 
 
 -
 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: Simple html:submit question

2003-08-12 Thread Norr, Peter
Any reason why the struts html:submit/ tag does not support the src
attribute?

html:submit src=myimage.gif/
-Original Message-
From: Ravi Kora [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 10:43 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple html:submit question


Ya, u can do that or u can use a html:link tag(generates a href in
html) like below. You ultimately submit the form in the javascript fn of
href.

html:link href=javascript:submitfn();
html:img src=img.gif /
/html:link 

HTH,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M)
301-519-0727(H)


 -Original Message-
 From: Norr, Peter [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 12, 2003 10:22 AM
 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
 Subject: RE: Simple html:submit question
 
 
 Should I use an onclick method handler to the image tag so I
 can submit the form??
 
 
 
 -Original Message-
 From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 12, 2003 7:29 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Simple html:submit question
 
 
 
 Use html:image tag.
 
  -Original Message-
  From: Norr, Peter [mailto:[EMAIL PROTECTED]
  Sent: Monday, August 11, 2003 6:26 PM
  To: 'Struts Users Mailing List'
  Subject: Simple html:submit question
  
  How do I use my own image in a html:submit/ or html:cancel/ tag?
  
 
 --
 --
 --
  
  This message is intended only for the personal and
 confidential use of
 the
  designated recipient(s) named above.  If you are not the intended 
  recipient of this message you are hereby notified that any review, 
  dissemination, distribution or copying of this message is strictly 
  prohibited.  This communication is for information purposes
 only and
  should not be
 regarded
  as
  an offer to sell or as a solicitation of an offer to buy
 any financial
  product, an official confirmation of any transaction, or as an
 official
  statement of Lehman Brothers.  Email transmission cannot be
 guaranteed
 to
  be
  secure or error-free.  Therefore, we do not represent that this 
  information is complete or accurate and it should not be
 relied upon
  as such.  All information is subject to change without notice.
  
  
  
 -
  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]
 
 
 --
 
 This message is intended only for the personal and
 confidential use of the designated recipient(s) named above.  
 If you are not the intended recipient of this message you are 
 hereby notified that any review, dissemination, distribution 
 or copying of this message is strictly prohibited.  This 
 communication is for information purposes only and should not 
 be regarded as an offer to sell or as a solicitation of an 
 offer to buy any financial product, an official confirmation 
 of any transaction, or as an official statement of Lehman 
 Brothers.  Email transmission cannot be guaranteed to be 
 secure or error-free.  Therefore, we do not represent that 
 this information is complete or accurate and it should not be 
 relied upon as such.  All information is subject to change 
 without notice.
 
 
 -
 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]


--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



Simple html:submit question

2003-08-11 Thread Norr, Peter
How do I use my own image in a html:submit/ or html:cancel/ tag?

--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



Validator using A href instead of html:submit

2003-07-07 Thread Poon, Johnny
Hi,

I'm using trying to use ValidatorActionForm and tile, but the submit button
is outside of the  form on a different JSP, therefore, I need to submit my
form indirectly using a link and javascript (see code below).  Neither the
client-side javascript nor the server-side validation get called.  But if I
hardcode a submit button WITHIN the form, the javascript will get called.

So, does this mean that validator will not work with
document.forms[0].submit(); ?  Is there a workaround this?  I'm sure there
are someone out there doing similar thing.

Thanks!

JP



My action form:

 html:form action=/enterAppInfo1
onsubmit=validateEnterAppInfo1(this);
  html:errors /nbsp;
  html:select property=primAddrState
onchange='runSelectOnChange();'
 html:optionsCollection label=label value=value name=...
property=... /
  /html:select
 /html:form

 html:javascript formName=enterAppInfo1 /


 !-- Assuming one form per page, in the end of
doSomethingBeforeSubmit(...), I'm calling: --
 !-- document.forms[0].submit(); --
 A href=javascript:doSomethingBeforeSubmit(...);/
  IMG name=... src=...
   onmouseover=javascript:submitChoiceOnMouseOver(...);return
true;
   onmouseout=javascript:submitChoiceOnMouseOut(...);return true;
   alt=. border=0/A

My validation.xml:

formset
form name=enterAppInfo1
field property=primAddrState depends=required
msg name=required
key=errors.state.required /
/field
/form
/formset


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


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



Re: Validator using A href instead of html:submit

2003-07-07 Thread Sandeep Takhar
should it be a validatorForm?

sandeep
--- Poon, Johnny [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm using trying to use ValidatorActionForm and
 tile, but the submit button
 is outside of the  form on a different JSP,
 therefore, I need to submit my
 form indirectly using a link and javascript (see
 code below).  Neither the
 client-side javascript nor the server-side
 validation get called.  But if I
 hardcode a submit button WITHIN the form, the
 javascript will get called.
 
 So, does this mean that validator will not work with
 document.forms[0].submit(); ?  Is there a workaround
 this?  I'm sure there
 are someone out there doing similar thing.
 
 Thanks!
 
 JP
 
 
 
 My action form:
 
  html:form action=/enterAppInfo1
 onsubmit=validateEnterAppInfo1(this);
   html:errors /nbsp;
   html:select property=primAddrState
 onchange='runSelectOnChange();'
  html:optionsCollection label=label
 value=value name=...
 property=... /
   /html:select
  /html:form
 
  html:javascript formName=enterAppInfo1 /
 
 
  !-- Assuming one form per page, in the end of
 doSomethingBeforeSubmit(...), I'm calling: --
  !-- document.forms[0].submit(); --
  A
 href=javascript:doSomethingBeforeSubmit(...);/
   IMG name=... src=...
   

onmouseover=javascript:submitChoiceOnMouseOver(...);return
 true;
   

onmouseout=javascript:submitChoiceOnMouseOut(...);return
 true;
alt=. border=0/A
 
 My validation.xml:
 
   formset
   form name=enterAppInfo1
   field property=primAddrState
 depends=required
   msg name=required
 key=errors.state.required /
   /field
   /form
   /formset
 
 

**
 This email and any files transmitted with it are
 confidential and
 intended solely for the use of the individual or
 entity to whom they
 are addressed. If you have received this email in
 error please notify
 the system manager.

**
 
 

-
 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: Validator using A href instead of html:submit

2003-07-07 Thread Sandeep Takhar
What is the javascript created by the custom tag when
looking at the source?

I think you shouldn't need to call:
validateEnterAppInfo1(this)

but what happens if you do?

maybe there is more than one form?  Is the form being
submitted and the data is in the form?

sorry I can't help any more than that.

sandeep


--- Poon, Johnny [EMAIL PROTECTED] wrote:
 Sandeep,
 
 No, because I'm using the same bean across different
 screen, so
 ValidatorActionForm suits me better, as it validates
 based on the action
 instead of the form.
 
 JP
 
 -Original Message-
 From: Sandeep Takhar
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 07, 2003 10:48 AM
 To: Struts Users Mailing List
 Subject: Re: Validator using A href instead of
 html:submit
 
 
 should it be a validatorForm?
 
 sandeep
 --- Poon, Johnny [EMAIL PROTECTED] wrote:
  Hi,
  
  I'm using trying to use ValidatorActionForm and
  tile, but the submit button
  is outside of the  form on a different JSP,
  therefore, I need to submit my
  form indirectly using a link and javascript (see
  code below).  Neither the
  client-side javascript nor the server-side
  validation get called.  But if I
  hardcode a submit button WITHIN the form, the
  javascript will get called.
  
  So, does this mean that validator will not work
 with
  document.forms[0].submit(); ?  Is there a
 workaround
  this?  I'm sure there
  are someone out there doing similar thing.
  
  Thanks!
  
  JP
  
  
  
  My action form:
  
   html:form action=/enterAppInfo1
  onsubmit=validateEnterAppInfo1(this);
html:errors /nbsp;
html:select property=primAddrState
  onchange='runSelectOnChange();'
   html:optionsCollection label=label
  value=value name=...
  property=... /
/html:select
   /html:form
  
   html:javascript formName=enterAppInfo1 /
  
  
   !-- Assuming one form per page, in the end
 of
  doSomethingBeforeSubmit(...), I'm calling: --
   !-- document.forms[0].submit(); --
   A
  href=javascript:doSomethingBeforeSubmit(...);/
IMG name=... src=...

 

onmouseover=javascript:submitChoiceOnMouseOver(...);return
  true;

 

onmouseout=javascript:submitChoiceOnMouseOut(...);return
  true;
 alt=. border=0/A
  
  My validation.xml:
  
  formset
  form name=enterAppInfo1
  field property=primAddrState
  depends=required
  msg name=required
  key=errors.state.required /
  /field
  /form
  /formset
  
  
 

**
  This email and any files transmitted with it are
  confidential and
  intended solely for the use of the individual or
  entity to whom they
  are addressed. If you have received this email in
  error please notify
  the system manager.
 

**
  
  
 

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

**
 This email and any files transmitted with it are
 confidential and
 intended solely for the use of the individual or
 entity to whom they
 are addressed. If you have received this email in
 error please notify
 the system manager.

**
 
 

-
 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: Validator using A href instead of html:submit

2003-07-07 Thread Poon, Johnny
Sandeep,

The validateEnterAppInfo1(form) method gets called with the submit button
hardcode w/i the html:form.  

If I remove the validateEnterAppInfo1(this) call, no javascript validation
will take place, while the server-side validation still works.

There is always going to be only one form per page, so using
document.forms[0].submit() should be ok.

When this form pass validation the data is submitted.


This is part of the generated javascripts:

script type=text/javascript language=Javascript1.1 

!-- Begin 

 var bCancel = false; 

function validateEnterAppInfo1(form) {

if (bCancel) 
  return true; 
else 
   return validateRequired(form); 
   } 

function required () { 
 this.aa = new Array(primAddrState, Please select your state of
residence to continue., new Function (varName,  return
this[varName];));
} 

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
oRequired = new required();
for (x in oRequired) {
var field = form[oRequired[x][0]];

if (field.type == 'text' ||
field.type == 'textarea' ||
field.type == 'file' ||
field.type == 'select-one' ||
field.type == 'radio' ||
field.type == 'password') {

var value = '';
// get field's value
if (field.type ==
select-one) {
var si =
field.selectedIndex;
if (si = 0) {
value =
field.options[si].value;
}
} else {
value = field.value;
}

if (value == '') {

if (i == 0) {
focusField = field;
}
fields[i++] = oRequired[x][1];
isValid = false;
}
}
}
if (fields.length  0) {
   focusField.focus();
   alert(fields.join('\n'));
}
return isValid;
}

function required () { 
   this.aa = new Array(primAddrState, Please select your state of
residence to continue., new Function (varName,  return
this[varName];));
} 

-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 11:29 AM
To: Struts Users Mailing List
Subject: RE: Validator using A href instead of html:submit


What is the javascript created by the custom tag when
looking at the source?

I think you shouldn't need to call:
validateEnterAppInfo1(this)

but what happens if you do?

maybe there is more than one form?  Is the form being
submitted and the data is in the form?

sorry I can't help any more than that.

sandeep


--- Poon, Johnny [EMAIL PROTECTED] wrote:
 Sandeep,
 
 No, because I'm using the same bean across different
 screen, so
 ValidatorActionForm suits me better, as it validates
 based on the action
 instead of the form.
 
 JP
 
 -Original Message-
 From: Sandeep Takhar
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 07, 2003 10:48 AM
 To: Struts Users Mailing List
 Subject: Re: Validator using A href instead of
 html:submit
 
 
 should it be a validatorForm?
 
 sandeep
 --- Poon, Johnny [EMAIL PROTECTED] wrote:
  Hi,
  
  I'm using trying to use ValidatorActionForm and
  tile, but the submit button
  is outside of the  form on a different JSP,
  therefore, I need to submit my
  form indirectly using a link and javascript (see
  code below).  Neither the
  client-side javascript nor the server-side
  validation get called.  But if I
  hardcode a submit button WITHIN the form, the
  javascript will get called.
  
  So, does this mean that validator will not work
 with
  document.forms[0].submit(); ?  Is there a
 workaround
  this?  I'm sure there
  are someone out there doing similar thing.
  
  Thanks!
  
  JP
  
  
  
  My action form:
  
   html:form action=/enterAppInfo1
  onsubmit=validateEnterAppInfo1(this);
html:errors /nbsp;
html:select property=primAddrState
  onchange='runSelectOnChange();'
   html:optionsCollection label=label
  value=value name=...
  property=... /
/html:select

RE: Validator using A href instead of html:submit

2003-07-07 Thread Sandeep Takhar
It seems to me like it should work.

I have used submit() on forms and it will go to the
action element of the form tag.  So this is just html
specs here.

Don't know why the validation is not being called. 
There should be some onSubmit= somewhere in the form
tag probably...

sandeep
--- Poon, Johnny [EMAIL PROTECTED] wrote:
 Sandeep,
 
 The validateEnterAppInfo1(form) method gets called
 with the submit button
 hardcode w/i the html:form.  
 
 If I remove the validateEnterAppInfo1(this) call, no
 javascript validation
 will take place, while the server-side validation
 still works.
 
 There is always going to be only one form per page,
 so using
 document.forms[0].submit() should be ok.
 
 When this form pass validation the data is
 submitted.
 
 
 This is part of the generated javascripts:
 
 script type=text/javascript
 language=Javascript1.1 
 
 !-- Begin 
 
  var bCancel = false; 
 
 function validateEnterAppInfo1(form) {
 
 if (bCancel) 
   return true; 
 else 
return validateRequired(form); 
} 
 
 function required () { 
  this.aa = new Array(primAddrState, Please
 select your state of
 residence to continue., new Function (varName, 
 return
 this[varName];));
 } 
 
 function validateRequired(form) {
 var isValid = true;
 var focusField = null;
 var i = 0;
 var fields = new Array();
 oRequired = new required();
 for (x in oRequired) {
   var field = form[oRequired[x][0]];
   
 if (field.type == 'text' ||
 field.type == 'textarea' ||
 field.type == 'file' ||
 field.type == 'select-one'
 ||
 field.type == 'radio' ||
 field.type == 'password') {
 
 var value = '';
   // get field's value
   if (field.type ==
 select-one) {
   var si =
 field.selectedIndex;
   if (si = 0) {
   value =
 field.options[si].value;
   }
   } else {
   value = field.value;
   }
 
 if (value == '') {
 
   if (i == 0) {
   focusField = field;
   }
   fields[i++] =
 oRequired[x][1];
   isValid = false;
 }
 }
 }
 if (fields.length  0) {
focusField.focus();
alert(fields.join('\n'));
 }
 return isValid;
 }
 
 function required () { 
this.aa = new Array(primAddrState, Please
 select your state of
 residence to continue., new Function (varName, 
 return
 this[varName];));
 } 
 
 -Original Message-
 From: Sandeep Takhar
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 07, 2003 11:29 AM
 To: Struts Users Mailing List
 Subject: RE: Validator using A href instead of
 html:submit
 
 
 What is the javascript created by the custom tag
 when
 looking at the source?
 
 I think you shouldn't need to call:
 validateEnterAppInfo1(this)
 
 but what happens if you do?
 
 maybe there is more than one form?  Is the form
 being
 submitted and the data is in the form?
 
 sorry I can't help any more than that.
 
 sandeep
 
 
 --- Poon, Johnny [EMAIL PROTECTED] wrote:
  Sandeep,
  
  No, because I'm using the same bean across
 different
  screen, so
  ValidatorActionForm suits me better, as it
 validates
  based on the action
  instead of the form.
  
  JP
  
  -Original Message-
  From: Sandeep Takhar
  [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 07, 2003 10:48 AM
  To: Struts Users Mailing List
  Subject: Re: Validator using A href instead of
  html:submit
  
  
  should it be a validatorForm?
  
  sandeep
  --- Poon, Johnny [EMAIL PROTECTED] wrote:
   Hi,
   
   I'm using trying to use ValidatorActionForm and
   tile, but the submit button
   is outside of the  form on a different JSP,
   therefore, I need to submit my
   form indirectly using a link and javascript (see
   code below).  Neither the
   client-side javascript nor the server-side
   validation get called.  But if I
   hardcode a submit button WITHIN the form, the
   javascript will get called.
   
   So, does this mean that validator will not work
  with
   document.forms[0

Re: logic:iterate and html:submit

2003-06-09 Thread Marco Tedone
Try my code  and add the following in the bean definition:

bean:define id=buttonName name=address property=hash
type=java.lang.String /

Marco

- Original Message - 
From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 09, 2003 2:09 AM
Subject: Re: logic:iterate and html:submit


Sorry friend, but it doesnt work too.

ServletException in:/common/partyCollection.jsp] Unable to compile class for
JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at
line: 19 in the jsp file: /common/partyCollection.jsp Generated servlet
error:
C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
tyCollection$jsp.java:128: Incompatible type for method. Explicit cast
needed to convert java.lang.Object to java.lang.String.
_jspx_th_html_submit_0.setValue(buttonName); ^1 error, 1 warning
'org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated. An error occurred at line: 19 in
the jsp file: /common/partyCollection.jsp Generated servlet error:
C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
tyCollection$jsp.java:128: Incompatible type for method. Explicit cast
needed to convert java.lang.Object to java.lang.String.
_jspx_th_html_submit_0.setValue(buttonName); ^1 error, 1 warning at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:289) at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at

I already tried cast, use bean:write but nothing works...
: (



Marco Tedone writes:
 Try:

 logic:iterate name=valueObjectproperty=addressesid=address
   bean:define id=buttonName name=address property=hash /
   tr
td
/td
td
  html:submit property=editAddress value='%= buttonName %'
 title=Alterar/Alterar/html:submit
/td
  /tr
 /logic:iterate


 - Original Message - 
 From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Sunday, June 08, 2003 11:51 PM
 Subject: Re: logic:iterate and html:submit


  Thanx for your attention...
 
 
 
  Still not compiling:
  Actually, the last message error is:
 
 
  [ServletException in:/common/partyCollection.jsp] Unable to compile
class
 for JSPNote: sun.tools.javac.Main has been deprecated.
 
 
  An error occurred at line: 18 in the jsp file:
/common/partyCollection.jsp
 
  Generated servlet error:
 

C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
 tyCollection$jsp.java:104: Method getHash() not found in class
 java.lang.Object.
  _jspx_th_html_submit_0.setValue(address.getHash());
 ^
  1 error, 1 warning
  '
  org.apache.jasper.JasperException: Unable to compile class for JSPNote:
 sun.tools.javac.Main has been deprecated.
 
 
  An error occurred at line: 18 in the jsp file:
/common/partyCollection.jsp
 
  Generated servlet error:
 

C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
 tyCollection$jsp.java:104: Method getHash() not found in class
 java.lang.Object.
  _jspx_th_html_submit_0.setValue(address.getHash());
 ^
  1 error, 1 warning
 
 
 
  The jsp is ...
  %@ taglib uri=/WEB-INF/struts-bean.tldprefix=bean%
  %@ taglib uri=/WEB-INF/struts-logic.tldprefix=logic%
  %@ taglib uri=/WEB-INF/struts-html.tldprefix=html%
  %@ taglib uri=/WEB-INF/sslext.tldprefix=ßslext%
  %@ taglib uri=/WEB-INF/struts-tiles.tldprefix=tiles%
 
  tr
  td
  Lista de Enderegos:
/td
/tr
   logic:iterate name=valueObjectproperty=addressesid=address
tr
  td
  /td
  td
  html:submit property=editAddress value='%=address.getHash()%'
 title=Alterar/Alterar/html:submit
  /td
 /tr
/logic:iterate
 
 
  My real problem is... call an action with two parameters: Action and
 hash
  where, hash must be value equal to property hash from bean address.
 
  ok ?
 
  Marco Tedone writes:
   So if this is java code, you should use:
  
   html:submit property='%= buttonAddress(address.hash).name%' Edit
   /html:submit
  
   Am I wrong? In any case, if it's a name that you need, have you tried
   bean:message key=foo?
  
   Hope it will help,
  
   Marco
   - Original Message - 
   From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Sunday, June 08, 2003 10:56 PM
   Subject: Re: logic:iterate and html:submit
  
  
Marco Tedone writes:

 - Original Message - 
 From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Sunday, June 08, 2003 10:34 PM
 Subject: logic:iterate and html:submit


  Friendly developers,
 
  I am substituting html:link to html:submit, to populate the
 actionForm
 before to change the action

Re: logic:iterate and html:submit

2003-06-09 Thread Rodrigo di Lorenzo Lopes
Thanx very much...
I am using another solution now. Actually, to use bean in value,
I should use  bean:write within html:submit /html:submit
Anyway the button would have rendered the hashCode as label when I would like to have 
passed this value as argument.



Marco Tedone writes:
 Try my code  and add the following in the bean definition:
 
 bean:define id=buttonName name=address property=hash
 type=java.lang.String /
 
 Marco
 
 - Original Message - 
 From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, June 09, 2003 2:09 AM
 Subject: Re: logic:iterate and html:submit
 
 
 Sorry friend, but it doesnt work too.
 
 ServletException in:/common/partyCollection.jsp] Unable to compile class for
 JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at
 line: 19 in the jsp file: /common/partyCollection.jsp Generated servlet
 error:
 C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
 tyCollection$jsp.java:128: Incompatible type for method. Explicit cast
 needed to convert java.lang.Object to java.lang.String.
 _jspx_th_html_submit_0.setValue(buttonName); ^1 error, 1 warning
 'org.apache.jasper.JasperException: Unable to compile class for JSPNote:
 sun.tools.javac.Main has been deprecated. An error occurred at line: 19 in
 the jsp file: /common/partyCollection.jsp Generated servlet error:
 C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
 tyCollection$jsp.java:128: Incompatible type for method. Explicit cast
 needed to convert java.lang.Object to java.lang.String.
 _jspx_th_html_submit_0.setValue(buttonName); ^1 error, 1 warning at
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:289) at
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at
 
 I already tried cast, use bean:write but nothing works...
 : (
 
 
 
 Marco Tedone writes:
  Try:
 
  logic:iterate name=valueObjectproperty=addressesid=address
bean:define id=buttonName name=address property=hash /
tr
 td
 /td
 td
   html:submit property=editAddress value='%= buttonName %'
  title=Alterar/Alterar/html:submit
 /td
   /tr
  /logic:iterate
 
 
  - Original Message - 
  From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Sunday, June 08, 2003 11:51 PM
  Subject: Re: logic:iterate and html:submit
 
 
   Thanx for your attention...
  
  
  
   Still not compiling:
   Actually, the last message error is:
  
  
   [ServletException in:/common/partyCollection.jsp] Unable to compile
 class
  for JSPNote: sun.tools.javac.Main has been deprecated.
  
  
   An error occurred at line: 18 in the jsp file:
 /common/partyCollection.jsp
  
   Generated servlet error:
  
 
 C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
  tyCollection$jsp.java:104: Method getHash() not found in class
  java.lang.Object.
   _jspx_th_html_submit_0.setValue(address.getHash());
  ^
   1 error, 1 warning
   '
   org.apache.jasper.JasperException: Unable to compile class for JSPNote:
  sun.tools.javac.Main has been deprecated.
  
  
   An error occurred at line: 18 in the jsp file:
 /common/partyCollection.jsp
  
   Generated servlet error:
  
 
 C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
  tyCollection$jsp.java:104: Method getHash() not found in class
  java.lang.Object.
   _jspx_th_html_submit_0.setValue(address.getHash());
  ^
   1 error, 1 warning
  
  
  
   The jsp is ...
   %@ taglib uri=/WEB-INF/struts-bean.tldprefix=bean%
   %@ taglib uri=/WEB-INF/struts-logic.tldprefix=logic%
   %@ taglib uri=/WEB-INF/struts-html.tldprefix=html%
   %@ taglib uri=/WEB-INF/sslext.tldprefix=ßslext%
   %@ taglib uri=/WEB-INF/struts-tiles.tldprefix=tiles%
  
   tr
   td
   Lista de Enderegos:
 /td
 /tr
logic:iterate name=valueObjectproperty=addressesid=address
 tr
   td
   /td
   td
   html:submit property=editAddress value='%=address.getHash()%'
  title=Alterar/Alterar/html:submit
   /td
  /tr
 /logic:iterate
  
  
   My real problem is... call an action with two parameters: Action and
  hash
   where, hash must be value equal to property hash from bean address.
  
   ok ?
  
   Marco Tedone writes:
So if this is java code, you should use:
   
html:submit property='%= buttonAddress(address.hash).name%' Edit
/html:submit
   
Am I wrong? In any case, if it's a name that you need, have you tried
bean:message key=foo?
   
Hope it will help,
   
Marco
- Original Message - 
From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 10:56 PM
Subject: Re: logic:iterate

logic:iterate and html:submit

2003-06-08 Thread Rodrigo di Lorenzo Lopes
Friendly developers,

I am substituting html:link to html:submit, to populate the actionForm before to 
change the action.
I would like use html:submit button to edit items of a collection.
When I ws using html:link I had specified a property of this item to find its.
So... how could I substitute html:link to html:submit ???


I was using ...
  sslext:link
   page=/addresses/main.do
   paramId=hash
   paramName=address
   paramProperty=hash
  bean:write name=addressproperty=streetAddress/
 /sslext:link

And I am trying using ...
  html:submit property=buttonAddress(address.hash).nameEdit
  /html:submit
but it doesnt work

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



Re: logic:iterate and html:submit

2003-06-08 Thread Marco Tedone

- Original Message - 
From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 10:34 PM
Subject: logic:iterate and html:submit


 Friendly developers,

 I am substituting html:link to html:submit, to populate the actionForm
before to change the action.
 I would like use html:submit button to edit items of a collection.
 When I ws using html:link I had specified a property of this item to find
its.
 So... how could I substitute html:link to html:submit ???


 I was using ...
   sslext:link
page=/addresses/main.do
paramId=hash
paramName=address
paramProperty=hash
   bean:write name=addressproperty=streetAddress/
 /sslext:link

 And I am trying using ...
   html:submit property=buttonAddress(address.hash).nameEdit
   /html:submit
 but it doesnt work

What does 'buttonAddress(address.hash).name ' represent? It seems to me
that this kind of code couldn't be used neither for a javascript nor for a
java code.

Marco

 -
 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: logic:iterate and html:submit

2003-06-08 Thread Rodrigo di Lorenzo Lopes
Marco Tedone writes:
 
 - Original Message - 
 From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Sunday, June 08, 2003 10:34 PM
 Subject: logic:iterate and html:submit
 
 
  Friendly developers,
 
  I am substituting html:link to html:submit, to populate the actionForm
 before to change the action.
  I would like use html:submit button to edit items of a collection.
  When I ws using html:link I had specified a property of this item to find
 its.
  So... how could I substitute html:link to html:submit ???
 
 
  I was using ...
sslext:link
 page=/addresses/main.do
 paramId=hash
 paramName=address
 paramProperty=hash
bean:write name=addressproperty=streetAddress/
  /sslext:link
 
  And I am trying using ...
html:submit property=buttonAddress(address.hash).nameEdit
/html:submit
  but it doesnt work
 
 What does 'buttonAddress(address.hash).name ' represent? It seems to me
 that this kind of code couldn't be used neither for a javascript nor for a
 java code.
 
 Marco
 

ok .. I specified getButtonAddress(String hash) that returns an ButtonBean
ButtonBean has a method getName... But, if you have other suggestion, I will be very 
happy.


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



Re: logic:iterate and html:submit

2003-06-08 Thread Marco Tedone
So if this is java code, you should use:

html:submit property='%= buttonAddress(address.hash).name%' Edit
/html:submit

Am I wrong? In any case, if it's a name that you need, have you tried
bean:message key=foo?

Hope it will help,

Marco
- Original Message - 
From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 10:56 PM
Subject: Re: logic:iterate and html:submit


 Marco Tedone writes:
 
  - Original Message - 
  From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Sunday, June 08, 2003 10:34 PM
  Subject: logic:iterate and html:submit
 
 
   Friendly developers,
  
   I am substituting html:link to html:submit, to populate the actionForm
  before to change the action.
   I would like use html:submit button to edit items of a collection.
   When I ws using html:link I had specified a property of this item to
find
  its.
   So... how could I substitute html:link to html:submit ???
  
  
   I was using ...
 sslext:link
  page=/addresses/main.do
  paramId=hash
  paramName=address
  paramProperty=hash
 bean:write name=addressproperty=streetAddress/
   /sslext:link
  
   And I am trying using ...
 html:submit property=buttonAddress(address.hash).nameEdit
 /html:submit
   but it doesnt work
 
  What does 'buttonAddress(address.hash).name ' represent? It seems to
me
  that this kind of code couldn't be used neither for a javascript nor for
a
  java code.
 
  Marco
  

 ok .. I specified getButtonAddress(String hash) that returns an ButtonBean
 ButtonBean has a method getName... But, if you have other suggestion, I
will be very happy.


 -
 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: logic:iterate and html:submit

2003-06-08 Thread Rodrigo di Lorenzo Lopes
Thanx for your attention...



Still not compiling:
Actually, the last message error is:
  
 
[ServletException in:/common/partyCollection.jsp] Unable to compile class for JSPNote: 
sun.tools.javac.Main has been deprecated.


An error occurred at line: 18 in the jsp file: /common/partyCollection.jsp

Generated servlet error:
C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\partyCollection$jsp.java:104:
 Method getHash() not found in class java.lang.Object.
_jspx_th_html_submit_0.setValue(address.getHash());
   ^
1 error, 1 warning
'
org.apache.jasper.JasperException: Unable to compile class for JSPNote: 
sun.tools.javac.Main has been deprecated.


An error occurred at line: 18 in the jsp file: /common/partyCollection.jsp

Generated servlet error:
C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\partyCollection$jsp.java:104:
 Method getHash() not found in class java.lang.Object.
_jspx_th_html_submit_0.setValue(address.getHash());
   ^
1 error, 1 warning



The jsp is ...
%@ taglib uri=/WEB-INF/struts-bean.tldprefix=bean%
%@ taglib uri=/WEB-INF/struts-logic.tldprefix=logic%
%@ taglib uri=/WEB-INF/struts-html.tldprefix=html%
%@ taglib uri=/WEB-INF/sslext.tldprefix=ßslext%
%@ taglib uri=/WEB-INF/struts-tiles.tldprefix=tiles%

tr
td
Lista de Enderegos:
  /td
  /tr
 logic:iterate name=valueObjectproperty=addressesid=address
  tr
td
/td
td
html:submit property=editAddress value='%=address.getHash()%' 
title=Alterar/Alterar/html:submit
/td
   /tr
  /logic:iterate


My real problem is... call an action with two parameters: Action and hash
where, hash must be value equal to property hash from bean address.

ok ?

Marco Tedone writes:
 So if this is java code, you should use:
 
 html:submit property='%= buttonAddress(address.hash).name%' Edit
 /html:submit
 
 Am I wrong? In any case, if it's a name that you need, have you tried
 bean:message key=foo?
 
 Hope it will help,
 
 Marco
 - Original Message - 
 From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Sunday, June 08, 2003 10:56 PM
 Subject: Re: logic:iterate and html:submit
 
 
  Marco Tedone writes:
  
   - Original Message - 
   From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Sunday, June 08, 2003 10:34 PM
   Subject: logic:iterate and html:submit
  
  
Friendly developers,
   
I am substituting html:link to html:submit, to populate the actionForm
   before to change the action.
I would like use html:submit button to edit items of a collection.
When I ws using html:link I had specified a property of this item to
 find
   its.
So... how could I substitute html:link to html:submit ???
   
   
I was using ...
  sslext:link
   page=/addresses/main.do
   paramId=hash
   paramName=address
   paramProperty=hash
  bean:write name=addressproperty=streetAddress/
/sslext:link
   
And I am trying using ...
  html:submit property=buttonAddress(address.hash).nameEdit
  /html:submit
but it doesnt work
  
   What does 'buttonAddress(address.hash).name ' represent? It seems to
 me
   that this kind of code couldn't be used neither for a javascript nor for
 a
   java code.
  
   Marco
   
 
  ok .. I specified getButtonAddress(String hash) that returns an ButtonBean
  ButtonBean has a method getName... But, if you have other suggestion, I
 will be very happy.
 
 
  -
  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]
 

-- 
Rodrigo di Lorenzo Lopes (Mineirinho) - ICQ 52982003

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



Re: logic:iterate and html:submit

2003-06-08 Thread Marco Tedone
Try:

logic:iterate name=valueObjectproperty=addressesid=address
  bean:define id=buttonName name=address property=hash /
  tr
   td
   /td
   td
 html:submit property=editAddress value='%= buttonName %'
title=Alterar/Alterar/html:submit
   /td
 /tr
/logic:iterate


- Original Message - 
From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 11:51 PM
Subject: Re: logic:iterate and html:submit


 Thanx for your attention...



 Still not compiling:
 Actually, the last message error is:


 [ServletException in:/common/partyCollection.jsp] Unable to compile class
for JSPNote: sun.tools.javac.Main has been deprecated.


 An error occurred at line: 18 in the jsp file: /common/partyCollection.jsp

 Generated servlet error:

C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
tyCollection$jsp.java:104: Method getHash() not found in class
java.lang.Object.
 _jspx_th_html_submit_0.setValue(address.getHash());
^
 1 error, 1 warning
 '
 org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.


 An error occurred at line: 18 in the jsp file: /common/partyCollection.jsp

 Generated servlet error:

C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
tyCollection$jsp.java:104: Method getHash() not found in class
java.lang.Object.
 _jspx_th_html_submit_0.setValue(address.getHash());
^
 1 error, 1 warning



 The jsp is ...
 %@ taglib uri=/WEB-INF/struts-bean.tldprefix=bean%
 %@ taglib uri=/WEB-INF/struts-logic.tldprefix=logic%
 %@ taglib uri=/WEB-INF/struts-html.tldprefix=html%
 %@ taglib uri=/WEB-INF/sslext.tldprefix=ßslext%
 %@ taglib uri=/WEB-INF/struts-tiles.tldprefix=tiles%

 tr
 td
 Lista de Enderegos:
   /td
   /tr
  logic:iterate name=valueObjectproperty=addressesid=address
   tr
 td
 /td
 td
 html:submit property=editAddress value='%=address.getHash()%'
title=Alterar/Alterar/html:submit
 /td
/tr
   /logic:iterate


 My real problem is... call an action with two parameters: Action and
hash
 where, hash must be value equal to property hash from bean address.

 ok ?

 Marco Tedone writes:
  So if this is java code, you should use:
 
  html:submit property='%= buttonAddress(address.hash).name%' Edit
  /html:submit
 
  Am I wrong? In any case, if it's a name that you need, have you tried
  bean:message key=foo?
 
  Hope it will help,
 
  Marco
  - Original Message - 
  From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Sunday, June 08, 2003 10:56 PM
  Subject: Re: logic:iterate and html:submit
 
 
   Marco Tedone writes:
   
- Original Message - 
From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 10:34 PM
Subject: logic:iterate and html:submit
   
   
 Friendly developers,

 I am substituting html:link to html:submit, to populate the
actionForm
before to change the action.
 I would like use html:submit button to edit items of a collection.
 When I ws using html:link I had specified a property of this item
to
  find
its.
 So... how could I substitute html:link to html:submit ???


 I was using ...
   sslext:link
page=/addresses/main.do
paramId=hash
paramName=address
paramProperty=hash
   bean:write name=addressproperty=streetAddress/
 /sslext:link

 And I am trying using ...
   html:submit
property=buttonAddress(address.hash).nameEdit
   /html:submit
 but it doesnt work
   
What does 'buttonAddress(address.hash).name ' represent? It
seems to
  me
that this kind of code couldn't be used neither for a javascript nor
for
  a
java code.
   
Marco

  
   ok .. I specified getButtonAddress(String hash) that returns an
ButtonBean
   ButtonBean has a method getName... But, if you have other suggestion,
I
  will be very happy.
  
  
   -
   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]
 

 -- 
 Rodrigo di Lorenzo Lopes (Mineirinho) - ICQ 52982003

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





-
To unsubscribe, e-mail: [EMAIL

Re: logic:iterate and html:submit

2003-06-08 Thread Rodrigo di Lorenzo Lopes
Sorry friend, but it doesnt work too.

ServletException in:/common/partyCollection.jsp] Unable to compile class for JSPNote: 
sun.tools.javac.Main has been deprecated. An error occurred at line: 19 in the jsp 
file: /common/partyCollection.jsp Generated servlet error: 
C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\partyCollection$jsp.java:128:
 Incompatible type for method. Explicit cast needed to convert java.lang.Object to 
java.lang.String. _jspx_th_html_submit_0.setValue(buttonName); ^1 error, 1 warning 
'org.apache.jasper.JasperException: Unable to compile class for JSPNote: 
sun.tools.javac.Main has been deprecated. An error occurred at line: 19 in the jsp 
file: /common/partyCollection.jsp Generated servlet error: 
C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\partyCollection$jsp.java:128:
 Incompatible type for method. Explicit cast needed to convert java.lang.Object to 
java.lang.String. _jspx_th_html_submit_0.setValue(buttonName); ^1 error, 1 warning at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:289) at 
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at

I already tried cast, use bean:write but nothing works...
: (



Marco Tedone writes:
 Try:
 
 logic:iterate name=valueObjectproperty=addressesid=address
   bean:define id=buttonName name=address property=hash /
   tr
td
/td
td
  html:submit property=editAddress value='%= buttonName %'
 title=Alterar/Alterar/html:submit
/td
  /tr
 /logic:iterate
 
 
 - Original Message - 
 From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Sunday, June 08, 2003 11:51 PM
 Subject: Re: logic:iterate and html:submit
 
 
  Thanx for your attention...
 
 
 
  Still not compiling:
  Actually, the last message error is:
 
 
  [ServletException in:/common/partyCollection.jsp] Unable to compile class
 for JSPNote: sun.tools.javac.Main has been deprecated.
 
 
  An error occurred at line: 18 in the jsp file: /common/partyCollection.jsp
 
  Generated servlet error:
 
 C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
 tyCollection$jsp.java:104: Method getHash() not found in class
 java.lang.Object.
  _jspx_th_html_submit_0.setValue(address.getHash());
 ^
  1 error, 1 warning
  '
  org.apache.jasper.JasperException: Unable to compile class for JSPNote:
 sun.tools.javac.Main has been deprecated.
 
 
  An error occurred at line: 18 in the jsp file: /common/partyCollection.jsp
 
  Generated servlet error:
 
 C:\DOCUME~1\RODRIG~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__web-client\common\par
 tyCollection$jsp.java:104: Method getHash() not found in class
 java.lang.Object.
  _jspx_th_html_submit_0.setValue(address.getHash());
 ^
  1 error, 1 warning
 
 
 
  The jsp is ...
  %@ taglib uri=/WEB-INF/struts-bean.tldprefix=bean%
  %@ taglib uri=/WEB-INF/struts-logic.tldprefix=logic%
  %@ taglib uri=/WEB-INF/struts-html.tldprefix=html%
  %@ taglib uri=/WEB-INF/sslext.tldprefix=ßslext%
  %@ taglib uri=/WEB-INF/struts-tiles.tldprefix=tiles%
 
  tr
  td
  Lista de Enderegos:
/td
/tr
   logic:iterate name=valueObjectproperty=addressesid=address
tr
  td
  /td
  td
  html:submit property=editAddress value='%=address.getHash()%'
 title=Alterar/Alterar/html:submit
  /td
 /tr
/logic:iterate
 
 
  My real problem is... call an action with two parameters: Action and
 hash
  where, hash must be value equal to property hash from bean address.
 
  ok ?
 
  Marco Tedone writes:
   So if this is java code, you should use:
  
   html:submit property='%= buttonAddress(address.hash).name%' Edit
   /html:submit
  
   Am I wrong? In any case, if it's a name that you need, have you tried
   bean:message key=foo?
  
   Hope it will help,
  
   Marco
   - Original Message - 
   From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Sunday, June 08, 2003 10:56 PM
   Subject: Re: logic:iterate and html:submit
  
  
Marco Tedone writes:

 - Original Message - 
 From: Rodrigo di Lorenzo Lopes [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Sunday, June 08, 2003 10:34 PM
 Subject: logic:iterate and html:submit


  Friendly developers,
 
  I am substituting html:link to html:submit, to populate the
 actionForm
 before to change the action.
  I would like use html:submit button to edit items of a collection.
  When I ws using html:link I had specified a property of this item
 to
   find
 its.
  So... how could I substitute html:link to html:submit ???
 
 
  I was using ...
sslext:link
 page=/addresses/main.do

Re: logic:iterate and html:submit

2003-06-08 Thread Rick Reumann
On Sun, Jun 08,'03 (10:09 PM GMT-0300), Rodrigo wrote: 

 Sorry friend, but it doesnt work too.
 
snip

 
 Marco Tedone writes:
  Try:
  
  logic:iterate name=valueObjectproperty=addressesid=address
bean:define id=buttonName name=address property=hash /
tr
 td
 /td
 td
   html:submit property=editAddress value='%= buttonName %'
  title=Alterar/Alterar/html:submit

Try % out.print( buttonName.toString() ); %

You'd think %= would call the toString() method and everything should
be fine, but I've run into this before and forget the reason why just
using the scriplet %=  % doesn't work when you nest that inside of
tags. Try the above and let me know how it turns out.

-- 
Rick


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



RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-25 Thread Shabbir Khadir Mohammed
HI Bernhard,

Thanks for your valuable response. It worked fine.

Regards
Shabbir

-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 24, 2003 1:56 PM
To: 'Struts Users Mailing List'
Subject: AW: How to Show gif image instead of html button in the forms for 
html:submit tag ?


Good morning Shabbir!

try this:
html:image page=/images/enter.gif property=submit value=Enter/

Regards,
Bernhard


-Ursprüngliche Nachricht-
Von: Shabbir Khadir Mohammed [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. Februar 2003 09:15
An: Struts Users Mailing List
Betreff: How to Show gif image instead of html button in the forms for
html:submit tag ?



Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image. 

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Shabbir Khadir Mohammed

Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image. 

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***


AW: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Hirschmann, Bernhard

Good morning Shabbir!

try this:
html:image page=/images/enter.gif property=submit value=Enter/

Regards,
Bernhard


-Ursprüngliche Nachricht-
Von: Shabbir Khadir Mohammed [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. Februar 2003 09:15
An: Struts Users Mailing List
Betreff: How to Show gif image instead of html button in the forms for
html:submit tag ?



Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image. 

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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



Re: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
use html:image
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#image

Nico.

- Original Message -
From: Shabbir Khadir Mohammed [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 9:15 AM
Subject: How to Show gif image instead of html button in the forms for
html:submit tag ?



Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image.

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying
or dissemination of the information contained in the E-MAIL in any manner
whatsoever is strictly prohibited.

***


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



RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Mouratidis, Georg
if you want to use localizable buttons this is not a good approach.
because you are not able to nested tags in tags.

you are not able to do this:

html:image page=../bean:message key=images.buttons.url//Apply.gif/ 
property=submit value=Enter/

so i use this:

 html:link href=javascript:reportfilterForm.submit();
   img src='../bean:message key=images.buttons.url//Apply.gif' border='0'/
 /html:link

and this is browser-indepentend. as far as i know input type=image... is 
IE-specific.


-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 09:28
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


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

Nico.

- Original Message -
From: Shabbir Khadir Mohammed [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 9:15 AM
Subject: How to Show gif image instead of html button in the forms for
html:submit tag ?



Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image.

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying
or dissemination of the information contained in the E-MAIL in any manner
whatsoever is strictly prohibited.

***


-
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: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
This should work too :

bean:define id=localImage type=String
  bean:message key=images.buttons.url/
/bean:define
html:image page=%= localImage % property=submit/

 and this is browser-indepentend. as far as i know input type=image...
is
 IE-specific.

input type=image is HTML 3.2, not browser dependent (notice Struts doesn't
use any browser specific tags).

Nico.


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



RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Mouratidis, Georg
html:image page=%= localImage % property=submit/

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 10:07
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


This should work too :

bean:define id=localImage type=String
  bean:message key=images.buttons.url/
/bean:define
html:image page=%= localImage % property=submit/

1. Might be. dont know. 
   but you should avoid using scriptlets in your code.
   and this is scriptlet.


 and this is browser-indepentend. as far as i know input type=image...
is
 IE-specific.

input type=image is HTML 3.2, not browser dependent (notice Struts doesn't
use any browser specific tags).

Nico.


-
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: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
 bean:define id=localImage type=String
   bean:message key=images.buttons.url/
 /bean:define
 html:image page=%= localImage % property=submit/

 1. Might be. dont know.
but you should avoid using scriptlets in your code.
and this is scriptlet.


Not scriplet !

JSP scriptlet is :
%
String localImage = request.getAttribute( ..
%

JSP runtime expression (RTEXP) is :
xxx:tag attribute=%= variable % /

Notice the = in %= %. This is right that you can (but should not) do
java computation inside a RTEXP, as in scriptlet.

RTEXP is the only way to set JSP tags attribute ro a runtime value.

Nico.


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



RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Mouratidis, Georg
hi guido,

you can do whatever you want.
but i will avaoid using scriptlets in my code.
i think thats the reason why struts came into life.

and now i wnat to stop further discussions about this theme.

-Original Message-
From: Guido [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 11:38
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


you should, you should...
don't forget... philosophical purity should always yield to pragmatism

Nicolas De Loof wrote:

1. Might be. dont know.
   but you should avoid using scriptlets in your code.
   and this is scriptlet.




-
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: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
Don't feel it as an agression Georg,

I agree with you it's a good practice to avoid scriplet in JSP, and myself I
never use it and suggest never using it. They're is alway a way to do
without scriptlet, (if not, perhaps your beans are not well designed for you
webapp, or think about building a custom JSP tag for it).

My response was only to show scriptlet is not uses the same way as RTExp,
that is the only way to put runtime values as attribute of a custom tag.

Nico.


hi guido,

you can do whatever you want.
but i will avaoid using scriptlets in my code.
i think thats the reason why struts came into life.

and now i wnat to stop further discussions about this theme.

-Original Message-
From: Guido [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 11:38
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


you should, you should...
don't forget... philosophical purity should always yield to pragmatism

Nicolas De Loof wrote:

1. Might be. dont know.
   but you should avoid using scriptlets in your code.
   and this is scriptlet.




-
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: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Mouratidis, Georg
hi nico,

i didnt feel it as an agression.
but my english is not that best so i wanted do prevent any discussion
that would request a better english.

so sorry if i hurt you.

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 11:58
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


Don't feel it as an agression Georg,

I agree with you it's a good practice to avoid scriplet in JSP, and myself I
never use it and suggest never using it. They're is alway a way to do
without scriptlet, (if not, perhaps your beans are not well designed for you
webapp, or think about building a custom JSP tag for it).

My response was only to show scriptlet is not uses the same way as RTExp,
that is the only way to put runtime values as attribute of a custom tag.

Nico.


hi guido,

you can do whatever you want.
but i will avaoid using scriptlets in my code.
i think thats the reason why struts came into life.

and now i wnat to stop further discussions about this theme.

-Original Message-
From: Guido [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 11:38
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


you should, you should...
don't forget... philosophical purity should always yield to pragmatism

Nicolas De Loof wrote:

1. Might be. dont know.
   but you should avoid using scriptlets in your code.
   and this is scriptlet.




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



html:submit question

2002-12-03 Thread Kevin HaleBoyes
I have a couple of html:submit elements on one html:form.
How do I distinguish between the different buttons?

Specifically, I have

 html:submit property=operationEdit Loan/html:submit
 html:submit property=operationReject Loan/html:submit

The form bean has a setOpereration(String) setter method which
is called with the text of the button (ie, Edit Loan)
when the form is submitted.

When I look at the HTML that is rendered in the browser, I see that
the property attribute becomes the name attribute of the input
element.

The way it works now, I have to compare the value of the operation
property of the form bean against the string that is displayed to
the user.  That seems a bit fragile - suppose the customer wants the
Reject Loan to be Cancel Loan instead.  I'd have to change code
in my action to effect the change.

I'm looking for an attribute to html:submit that is the value that
gets set to the property (operation).  Is there such a thing.

I want to avoid having a different form-bean-attribute for each
submit tag (like operation1, operation2, etc.).

Thanks,
Kevin.


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: html:submit question

2002-12-03 Thread Gemes Tibor
2002. december 3. 16:30 dátummal Kevin HaleBoyes ezt írtad:

 The way it works now, I have to compare the value of the operation
 property of the form bean against the string that is displayed to
 the user.  That seems a bit fragile - suppose the customer wants the
 Reject Loan to be Cancel Loan instead.  I'd have to change code
 in my action to effect the change.

Use LookupDispatchAction then. 

Tib

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




Re: html:submit question

2002-12-03 Thread Kevin HaleBoyes

--- Gemes Tibor [EMAIL PROTECTED] wrote:
 2002. december 3. 16:30 dátummal Kevin HaleBoyes ezt írtad:
 
  The way it works now, I have to compare the value of the
 operation
  property of the form bean against the string that is displayed to
  the user.  That seems a bit fragile - suppose the customer wants
 the
  Reject Loan to be Cancel Loan instead.  I'd have to change
 code
  in my action to effect the change.
 
 Use LookupDispatchAction then. 

Wonderful!  That is it exactly!
Thanks

 Tib

Kevin.


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




html:submit value not found in request, version 1.02 beta

2002-11-20 Thread Linnea Ahlbeck
Hi!

On my jsp pages I have the following code:

td align=left valign=bottom width=90%
   html:submit styleClass=button
  bean:message key=button.view/
/html:submit
/td

(On my jsp page I only have one html:form tag)

In my SaveAction class I collect the submit value from the request, like
this:

String submit = request.getParameter(submit);

The submit value is null.

I'm using the Struts 1.02 beta version. Have anybody experienced the same
problem??

So thankful for som help :)

/Linnéa Ahlbeck

Linnéa Ahlbeck - Software Engineer



RE: html:submit value not found in request, version 1.02 beta

2002-11-20 Thread Karr, David
I would guess it can't find the button.view property in your properties file.  If 
that was nonexistent, the value would be null.

(Note that there is no 1.02 beta version.  There's versions 1.02 and 1.1b2 (and the 
nightly).)

 -Original Message-
 From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]]
 
 Hi!
 
 On my jsp pages I have the following code:
 
 td align=left valign=bottom width=90%
html:submit styleClass=button
   bean:message key=button.view/
 /html:submit
 /td
 
 (On my jsp page I only have one html:form tag)
 
 In my SaveAction class I collect the submit value from the 
 request, like
 this:
 
 String submit = request.getParameter(submit);
 
 The submit value is null.
 
 I'm using the Struts 1.02 beta version. Have anybody 
 experienced the same
 problem??

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




RE: html:submit value not found in request, found a solution

2002-11-20 Thread Linnea Ahlbeck
Hi David!

Thanks for your tip. The button.view property in your properties file has
been found all the time but I'm not used to add the property attribute to
the html:submit tag. When I did that the request parameter was found (and
probably created to begin with) and therby able to reach from my action
class.

My solution:

td align=left valign=bottom width=90%
   html:submit styleClass=button property=submit
  bean:message key=button.view/
   /html:submit
/td

Sorry for the version mix up, I'm using the  1.1b2 version.

Thanks again!

/Linnéa

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 6:41 PM
To: Struts Users Mailing List
Subject: RE: html:submit value not found in request, version 1.02 beta


I would guess it can't find the button.view property in your properties
file.  If that was nonexistent, the value would be null.

(Note that there is no 1.02 beta version.  There's versions 1.02 and 1.1b2
(and the nightly).)

 -Original Message-
 From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]]

 Hi!

 On my jsp pages I have the following code:

 td align=left valign=bottom width=90%
html:submit styleClass=button
   bean:message key=button.view/
 /html:submit
 /td

 (On my jsp page I only have one html:form tag)

 In my SaveAction class I collect the submit value from the
 request, like
 this:

 String submit = request.getParameter(submit);

 The submit value is null.

 I'm using the Struts 1.02 beta version. Have anybody
 experienced the same
 problem??

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




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




RE: html:submit -- DispatchAction

2002-11-18 Thread Míguel Ángel Mulero Martínez
You can use the html:image tag.

Regards,
Miguel

-Mensaje original-
De: Murray, Christopher [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 18 de noviembre de 2002 12:28
Para: 'Struts Users Mailing List'
Asunto: html:submit -- DispatchAction


How do you customize html:submit tags to use your own button image ?

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


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




RE: html:submit -- DispatchAction

2002-11-18 Thread Murray, Christopher
html:image doesn't submit a form to an action ?


-Original Message-
From: Míguel Ángel Mulero Martínez
[mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 11:51
To: Struts Users Mailing List
Subject: RE: html:submit -- DispatchAction


You can use the html:image tag.

Regards,
Miguel

-Mensaje original-
De: Murray, Christopher [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 18 de noviembre de 2002 12:28
Para: 'Struts Users Mailing List'
Asunto: html:submit -- DispatchAction


How do you customize html:submit tags to use your own button image ?

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


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

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




RE: html:submit -- DispatchAction

2002-11-18 Thread Murray, Christopher
Is it possible to use the struts tags to submit forms to different dispatch
action methods (using your own customised button image) without having to
use javascript ?

-Original Message-
From: Murray, Christopher [mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 12:46
To: 'Struts Users Mailing List'
Subject: RE: html:submit -- DispatchAction


html:image doesn't submit a form to an action ?


-Original Message-
From: Míguel Ángel Mulero Martínez
[mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 11:51
To: Struts Users Mailing List
Subject: RE: html:submit -- DispatchAction


You can use the html:image tag.

Regards,
Miguel

-Mensaje original-
De: Murray, Christopher [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 18 de noviembre de 2002 12:28
Para: 'Struts Users Mailing List'
Asunto: html:submit -- DispatchAction


How do you customize html:submit tags to use your own button image ?

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


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

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

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




html:submit with an onclick

2002-10-16 Thread Wendy Smoak


I need to set two form properties when a button is clicked.  The following
works with just the setAction() call, but if I add the setKeyToDelete(), it
doesn't.  I don't know much about Javascript, though, so I may have this all
wrong.

The docs have [RTExpr] with the onclick attribute, so I was hoping it would
evaluate before calling the function.  But it doesn't even compile as is.
(Then again, I'm looking at the nightly build docs, but using 1.1.  Has the
RTExpr functionality been added recently?)

html:submit property=submit 
  onclick=setAction('Delete Staff');
setKeyToDelete('bean:write name=staffMember/');
   styleClass=deleteButton titleKey=button.delete.staff 
   value= /

The problem I'm trying to solve:

12345 [x]
23432 [x]
23433 [x]

User clicks one of the delete buttons.  The [x] buttons cannot have a
'value' attribute because no text can show up on the button-- it's an image.
I don't know how many buttons there will be in advance, and I have to figure
out which button was pressed.

There *is* a List in the ActionForm.  It has the [12345,23423,23433] values
noted above.  I've read about the List-backed form attributes, but I don't
quite see how to use it to solve this problem.

There is a LookupDispatchAction that looks at the 'action' form element, so
I have to get that set, as well as set something that will allow me to
figure out which of the values the person is trying to delete.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



RE: html:submit with an onclick

2002-10-16 Thread Karr, David

Response at end.

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 10:39 AM
 To: 'Struts Users Mailing List'
 Subject: html:submit with an onclick
 
 I need to set two form properties when a button is clicked.  
 The following
 works with just the setAction() call, but if I add the 
 setKeyToDelete(), it
 doesn't.  I don't know much about Javascript, though, so I 
 may have this all
 wrong.
 
 The docs have [RTExpr] with the onclick attribute, so I was 
 hoping it would
 evaluate before calling the function.  But it doesn't even 
 compile as is.
 (Then again, I'm looking at the nightly build docs, but using 
 1.1.  Has the
 RTExpr functionality been added recently?)
 
 html:submit property=submit 
   onclick=setAction('Delete Staff');
 setKeyToDelete('bean:write name=staffMember/');
styleClass=deleteButton titleKey=button.delete.staff 
value= /

You can't nest tags in tag attributes.  You also can't nest quoted strings
with the same quote type.

In my view, you have two alternatives:

Ensure the staffMember is a scripting variable, and make the entire
onclick value be an rtexprvalue, concatenating the values you need (it has
to be the entire attribute value, not just a portion of it).

And the somewhat more radical position: Use the Struts-EL library.  Then,
this would look like this:

html-el:submit property=submit
onclick=setAction('Delete
Staff');setKeyToDelete('${staffMember}');
styleClass=deleteButton titleKey=button.delete.staff
value= /

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




RE: html:submit with an onclick

2002-10-16 Thread Wendy Smoak

David wrote:
 And the somewhat more radical position: Use the Struts-EL library.  Then,
 this would look like this:
 html-el:submit property=submit
 onclick=setAction('Delete
 Staff');setKeyToDelete('${staffMember}');
 styleClass=deleteButton titleKey=button.delete.staff
 value= /

This has to be the first time in my life I've done anything radical. ;)
However, in for a penny, in for a pound... I've got the nightly build from
the 16th.  With some copying of .jar and .tld files, adding a % taglib
for the html-el tags and a copy-paste of what you suggested above... IT
WORKS!

Thanks, David, and everyone who's been holding my hand these past couple of
weeks.  This webapp is SO close to actually working, and that's exciting!  I
don't know if any of you is also the sole Java programmer in a
company/department as I am.  There's no one here to ask questions of, (or
celebrate with!) so I rely heavily on the -users lists for the various
things I'm using.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management




RE: [BUG] html:submit disabled= requires boolean value?

2002-09-06 Thread Jerry Jalenak

Martin,

Thanks for the confirmation.  I have open bugzilla #12360 on this issue

Jerry

 -Original Message-
 From: Martin Cooper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 6:13 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [BUG] html:submit disabled= requires boolean value?
 
 
 Hmm.
 
 First of all, disregard what I said before about 
 BooleanConverter - that
 only applies when the form is being submitted, not when it is being
 rendered. My bad.
 
 However, you're right, there is definitely a problem. I've 
 confirmed it on
 both Tomcat 4.1.10 and Resin 2.1.4.
 
 What seems to happen is that, when a literal value is 
 specified, the JSP
 compiler automatically converts it to the appropriate boolean 
 keyword, so
 the resulting Java code compiles just fine. However, when an rtexpr is
 specified, the JSP compiler is not generating code to convert 
 a string value
 into a boolean value, so the Java compilation fails.
 
 Given that the behaviour is the same on both of the 
 containers I tried, I
 suspect there may be something in the JSP spec about this. It's not
 something I've ever come across, though. Craig may be able to 
 shed some more
 light on this.
 
 In any case, it appears that - unless both Tomcat and Resin 
 suffer from the
 same bug - we'll need to modify the html:submit tag to take a string
 value, and deal with the conversion in Struts.
 
 If you could submit a bug report to Bugzilla, that will 
 ensure that this
 issue doesn't get lost.
 
 --
 Martin Cooper
 
 
  -Original Message-
  From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 05, 2002 3:02 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [BUG] html:submit disabled= requires boolean value?
  
  
  That's what I thought.  I'm passing in a string value of 
  'true' (no quotes).
  I've tried setting a session variable as well as setting an 
  attribute in a
  bean but I get the same results.  In the .JSP I use
  
  (when using a session var)
  
  % String buttonStatus = (String)
  session.getAttribute(buttonStatus); %
  html:submit property=action value=Update
  disabled=%=buttonStatus% /
  
  (when using a bean)
  
  bean:define id=buttonStatus name=myBean 
  property=buttonStatus
  /
  html:submit property=action value=Update
  disabled=%=buttonStatus% /
  
  Either way I get casting problems.  As long as I directly 
  code true as the
  value, it works fine.  I only get this problem when I try to 
  pass in a value
  as a runtime expression.
  
  
  Jerry   
  
   -Original Message-
   From: Martin Cooper [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 05, 2002 4:52 PM
   To: 'Struts Users Mailing List'
   Subject: RE: [BUG] html:submit disabled= requires boolean value?
   
   
   From the docs for the html:submit 'disabled' attribute:
   
   Set to true if this input field should be disabled.
   
   The field in the tag is a boolean, so the value you supply must be
   convertable to a boolean. The conversion of the string you 
  supply to a
   boolean is performed in BeanUtils.BooleanConverter, where:
   
   true, yes, y, on, 1 are all synonyms
   false, no, n, off, 0 are all synonyms
   
   As long as you pass one of these values (or an expression 
   that evaluates to
   one of these values), you'll be fine.
   
   --
   Martin Cooper
   
   
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 2:17 PM
To: 'Struts Users Mailing List'
Subject: RE: [BUG] html:submit disabled= requires boolean value?


OK.  I think I've proven to myself that this is not a bug, as 
I can set
disabled=true and everything works fine.  When I try to 
   use either a
session variable (see below) or create a temporary bean, I 
   get strange
messages, like 'Can't convert java.lang.Object to boolean'.  
I'm at a loss.


What's the right way to do this?

Jerry

 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 2:45 PM
 To: '[EMAIL PROTECTED]'
 Subject: [BUG] html:submit disabled= requires boolean value?
 
 
 I'm setting the value of the disabled= parameter on a 
 html:submit tag, and
 I'm getting the following error:
 
   Incompatible type for method. Can't convert 
  java.lang.String to
 boolean. _jspx_th_html_submit_2.setDisabled(buttonStatus);
 
 The code in the .JSP looks like this.
 
   %
   String buttonStatus = (String)
 session.getAttribute(ButtonStatus);
   %
   html:submit property=action value=Update
 disabled=%=buttonStatus% / 
 
 I've looked at the javadoc for the BaseHandler and the 
 setDisabled method is
 looking for a boolean value to be passed in.  It looks like 
 the tag is not
 converting

[BUG] html:submit disabled= requires boolean value?

2002-09-05 Thread Jerry Jalenak

I'm setting the value of the disabled= parameter on a html:submit tag, and
I'm getting the following error:

Incompatible type for method. Can't convert java.lang.String to
boolean. _jspx_th_html_submit_2.setDisabled(buttonStatus);

The code in the .JSP looks like this.

%
String buttonStatus = (String)
session.getAttribute(ButtonStatus);
%
html:submit property=action value=Update
disabled=%=buttonStatus% / 

I've looked at the javadoc for the BaseHandler and the setDisabled method is
looking for a boolean value to be passed in.  It looks like the tag is not
converting the string to a boolean before trying to call the setDisabled
method.  Has anyone else come across this?  Or am I just flat doing
something wrong?

TIA,


Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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




RE: [BUG] html:submit disabled= requires boolean value?

2002-09-05 Thread Jerry Jalenak

OK.  I think I've proven to myself that this is not a bug, as I can set
disabled=true and everything works fine.  When I try to use either a
session variable (see below) or create a temporary bean, I get strange
messages, like 'Can't convert java.lang.Object to boolean'.  I'm at a loss.


What's the right way to do this?

Jerry

 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 2:45 PM
 To: '[EMAIL PROTECTED]'
 Subject: [BUG] html:submit disabled= requires boolean value?
 
 
 I'm setting the value of the disabled= parameter on a 
 html:submit tag, and
 I'm getting the following error:
 
   Incompatible type for method. Can't convert java.lang.String to
 boolean. _jspx_th_html_submit_2.setDisabled(buttonStatus);
 
 The code in the .JSP looks like this.
 
   %
   String buttonStatus = (String)
 session.getAttribute(ButtonStatus);
   %
   html:submit property=action value=Update
 disabled=%=buttonStatus% / 
 
 I've looked at the javadoc for the BaseHandler and the 
 setDisabled method is
 looking for a boolean value to be passed in.  It looks like 
 the tag is not
 converting the string to a boolean before trying to call the 
 setDisabled
 method.  Has anyone else come across this?  Or am I just flat doing
 something wrong?
 
 TIA,
 
 
 Jerry Jalenak
 Web Publishing
 LabOne, Inc.
 10101 Renner Blvd.
 Lenexa, KS  66219
 (913) 577-1496
 [EMAIL PROTECTED]
 
 
 This transmission (and any information attached to it) may be 
 confidential and is intended solely for the use of the 
 individual or entity to which it is addressed. If you are not 
 the intended recipient or the person responsible for 
 delivering the transmission to the intended recipient, be 
 advised that you have received this transmission in error and 
 that any use, dissemination, forwarding, printing, or copying 
 of this information is strictly prohibited. If you have 
 received this transmission in error, please immediately 
 notify LabOne at (800)388-4675.
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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




RE: [BUG] html:submit disabled= requires boolean value?

2002-09-05 Thread Martin Cooper

From the docs for the html:submit 'disabled' attribute:

Set to true if this input field should be disabled.

The field in the tag is a boolean, so the value you supply must be
convertable to a boolean. The conversion of the string you supply to a
boolean is performed in BeanUtils.BooleanConverter, where:

true, yes, y, on, 1 are all synonyms
false, no, n, off, 0 are all synonyms

As long as you pass one of these values (or an expression that evaluates to
one of these values), you'll be fine.

--
Martin Cooper


 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 2:17 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [BUG] html:submit disabled= requires boolean value?
 
 
 OK.  I think I've proven to myself that this is not a bug, as 
 I can set
 disabled=true and everything works fine.  When I try to use either a
 session variable (see below) or create a temporary bean, I get strange
 messages, like 'Can't convert java.lang.Object to boolean'.  
 I'm at a loss.
 
 
 What's the right way to do this?
 
 Jerry
 
  -Original Message-
  From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 05, 2002 2:45 PM
  To: '[EMAIL PROTECTED]'
  Subject: [BUG] html:submit disabled= requires boolean value?
  
  
  I'm setting the value of the disabled= parameter on a 
  html:submit tag, and
  I'm getting the following error:
  
  Incompatible type for method. Can't convert java.lang.String to
  boolean. _jspx_th_html_submit_2.setDisabled(buttonStatus);
  
  The code in the .JSP looks like this.
  
  %
  String buttonStatus = (String)
  session.getAttribute(ButtonStatus);
  %
  html:submit property=action value=Update
  disabled=%=buttonStatus% / 
  
  I've looked at the javadoc for the BaseHandler and the 
  setDisabled method is
  looking for a boolean value to be passed in.  It looks like 
  the tag is not
  converting the string to a boolean before trying to call the 
  setDisabled
  method.  Has anyone else come across this?  Or am I just flat doing
  something wrong?
  
  TIA,
  
  
  Jerry Jalenak
  Web Publishing
  LabOne, Inc.
  10101 Renner Blvd.
  Lenexa, KS  66219
  (913) 577-1496
  [EMAIL PROTECTED]
  
  
  This transmission (and any information attached to it) may be 
  confidential and is intended solely for the use of the 
  individual or entity to which it is addressed. If you are not 
  the intended recipient or the person responsible for 
  delivering the transmission to the intended recipient, be 
  advised that you have received this transmission in error and 
  that any use, dissemination, forwarding, printing, or copying 
  of this information is strictly prohibited. If you have 
  received this transmission in error, please immediately 
  notify LabOne at (800)388-4675.
  
  
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 This transmission (and any information attached to it) may be 
 confidential and is intended solely for the use of the 
 individual or entity to which it is addressed. If you are not 
 the intended recipient or the person responsible for 
 delivering the transmission to the intended recipient, be 
 advised that you have received this transmission in error and 
 that any use, dissemination, forwarding, printing, or copying 
 of this information is strictly prohibited. If you have 
 received this transmission in error, please immediately 
 notify LabOne at (800)388-4675.
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 


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




RE: [BUG] html:submit disabled= requires boolean value?

2002-09-05 Thread Jerry Jalenak

That's what I thought.  I'm passing in a string value of 'true' (no quotes).
I've tried setting a session variable as well as setting an attribute in a
bean but I get the same results.  In the .JSP I use

(when using a session var)

% String buttonStatus = (String)
session.getAttribute(buttonStatus); %
html:submit property=action value=Update
disabled=%=buttonStatus% /

(when using a bean)

bean:define id=buttonStatus name=myBean property=buttonStatus
/
html:submit property=action value=Update
disabled=%=buttonStatus% /

Either way I get casting problems.  As long as I directly code true as the
value, it works fine.  I only get this problem when I try to pass in a value
as a runtime expression.


Jerry   

 -Original Message-
 From: Martin Cooper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 4:52 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [BUG] html:submit disabled= requires boolean value?
 
 
 From the docs for the html:submit 'disabled' attribute:
 
 Set to true if this input field should be disabled.
 
 The field in the tag is a boolean, so the value you supply must be
 convertable to a boolean. The conversion of the string you supply to a
 boolean is performed in BeanUtils.BooleanConverter, where:
 
 true, yes, y, on, 1 are all synonyms
 false, no, n, off, 0 are all synonyms
 
 As long as you pass one of these values (or an expression 
 that evaluates to
 one of these values), you'll be fine.
 
 --
 Martin Cooper
 
 
  -Original Message-
  From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 05, 2002 2:17 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [BUG] html:submit disabled= requires boolean value?
  
  
  OK.  I think I've proven to myself that this is not a bug, as 
  I can set
  disabled=true and everything works fine.  When I try to 
 use either a
  session variable (see below) or create a temporary bean, I 
 get strange
  messages, like 'Can't convert java.lang.Object to boolean'.  
  I'm at a loss.
  
  
  What's the right way to do this?
  
  Jerry
  
   -Original Message-
   From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 05, 2002 2:45 PM
   To: '[EMAIL PROTECTED]'
   Subject: [BUG] html:submit disabled= requires boolean value?
   
   
   I'm setting the value of the disabled= parameter on a 
   html:submit tag, and
   I'm getting the following error:
   
 Incompatible type for method. Can't convert java.lang.String to
   boolean. _jspx_th_html_submit_2.setDisabled(buttonStatus);
   
   The code in the .JSP looks like this.
   
 %
 String buttonStatus = (String)
   session.getAttribute(ButtonStatus);
 %
 html:submit property=action value=Update
   disabled=%=buttonStatus% / 
   
   I've looked at the javadoc for the BaseHandler and the 
   setDisabled method is
   looking for a boolean value to be passed in.  It looks like 
   the tag is not
   converting the string to a boolean before trying to call the 
   setDisabled
   method.  Has anyone else come across this?  Or am I just 
 flat doing
   something wrong?
   
   TIA,
   
   
   Jerry Jalenak
   Web Publishing
   LabOne, Inc.
   10101 Renner Blvd.
   Lenexa, KS  66219
   (913) 577-1496
   [EMAIL PROTECTED]
   
   
   This transmission (and any information attached to it) may be 
   confidential and is intended solely for the use of the 
   individual or entity to which it is addressed. If you are not 
   the intended recipient or the person responsible for 
   delivering the transmission to the intended recipient, be 
   advised that you have received this transmission in error and 
   that any use, dissemination, forwarding, printing, or copying 
   of this information is strictly prohibited. If you have 
   received this transmission in error, please immediately 
   notify LabOne at (800)388-4675.
   
   
   
   --
   To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  This transmission (and any information attached to it) may be 
  confidential and is intended solely for the use of the 
  individual or entity to which it is addressed. If you are not 
  the intended recipient or the person responsible for 
  delivering the transmission to the intended recipient, be 
  advised that you have received this transmission in error and 
  that any use, dissemination, forwarding, printing, or copying 
  of this information is strictly prohibited. If you have 
  received this transmission in error, please immediately 
  notify LabOne at (800)388-4675.
  
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

This transmission (and any information attached to it) may be confidential

RE: [BUG] html:submit disabled= requires boolean value?

2002-09-05 Thread Martin Cooper

Hmm.

First of all, disregard what I said before about BooleanConverter - that
only applies when the form is being submitted, not when it is being
rendered. My bad.

However, you're right, there is definitely a problem. I've confirmed it on
both Tomcat 4.1.10 and Resin 2.1.4.

What seems to happen is that, when a literal value is specified, the JSP
compiler automatically converts it to the appropriate boolean keyword, so
the resulting Java code compiles just fine. However, when an rtexpr is
specified, the JSP compiler is not generating code to convert a string value
into a boolean value, so the Java compilation fails.

Given that the behaviour is the same on both of the containers I tried, I
suspect there may be something in the JSP spec about this. It's not
something I've ever come across, though. Craig may be able to shed some more
light on this.

In any case, it appears that - unless both Tomcat and Resin suffer from the
same bug - we'll need to modify the html:submit tag to take a string
value, and deal with the conversion in Struts.

If you could submit a bug report to Bugzilla, that will ensure that this
issue doesn't get lost.

--
Martin Cooper


 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 3:02 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [BUG] html:submit disabled= requires boolean value?
 
 
 That's what I thought.  I'm passing in a string value of 
 'true' (no quotes).
 I've tried setting a session variable as well as setting an 
 attribute in a
 bean but I get the same results.  In the .JSP I use
 
   (when using a session var)
 
   % String buttonStatus = (String)
 session.getAttribute(buttonStatus); %
   html:submit property=action value=Update
 disabled=%=buttonStatus% /
 
   (when using a bean)
 
   bean:define id=buttonStatus name=myBean 
 property=buttonStatus
 /
   html:submit property=action value=Update
 disabled=%=buttonStatus% /
 
 Either way I get casting problems.  As long as I directly 
 code true as the
 value, it works fine.  I only get this problem when I try to 
 pass in a value
 as a runtime expression.
 
 
 Jerry 
 
  -Original Message-
  From: Martin Cooper [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 05, 2002 4:52 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [BUG] html:submit disabled= requires boolean value?
  
  
  From the docs for the html:submit 'disabled' attribute:
  
  Set to true if this input field should be disabled.
  
  The field in the tag is a boolean, so the value you supply must be
  convertable to a boolean. The conversion of the string you 
 supply to a
  boolean is performed in BeanUtils.BooleanConverter, where:
  
  true, yes, y, on, 1 are all synonyms
  false, no, n, off, 0 are all synonyms
  
  As long as you pass one of these values (or an expression 
  that evaluates to
  one of these values), you'll be fine.
  
  --
  Martin Cooper
  
  
   -Original Message-
   From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 05, 2002 2:17 PM
   To: 'Struts Users Mailing List'
   Subject: RE: [BUG] html:submit disabled= requires boolean value?
   
   
   OK.  I think I've proven to myself that this is not a bug, as 
   I can set
   disabled=true and everything works fine.  When I try to 
  use either a
   session variable (see below) or create a temporary bean, I 
  get strange
   messages, like 'Can't convert java.lang.Object to boolean'.  
   I'm at a loss.
   
   
   What's the right way to do this?
   
   Jerry
   
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 2:45 PM
To: '[EMAIL PROTECTED]'
Subject: [BUG] html:submit disabled= requires boolean value?


I'm setting the value of the disabled= parameter on a 
html:submit tag, and
I'm getting the following error:

Incompatible type for method. Can't convert 
 java.lang.String to
boolean. _jspx_th_html_submit_2.setDisabled(buttonStatus);

The code in the .JSP looks like this.

%
String buttonStatus = (String)
session.getAttribute(ButtonStatus);
%
html:submit property=action value=Update
disabled=%=buttonStatus% / 

I've looked at the javadoc for the BaseHandler and the 
setDisabled method is
looking for a boolean value to be passed in.  It looks like 
the tag is not
converting the string to a boolean before trying to call the 
setDisabled
method.  Has anyone else come across this?  Or am I just 
  flat doing
something wrong?

TIA,


Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
[EMAIL PROTECTED]


This transmission (and any information attached to it) may be 
confidential and is intended solely for the use

RE: [BUG] html:submit disabled= requires boolean value?

2002-09-05 Thread Martin Cooper

By the way, you can get around this by using the delightfully lucid
expression:

  disabled=%= Boolean.valueOf(buttonStatus).booleanValue() %

Also FYI, I did find a reference in the JSP spec that implies that the value
of an rtexpr must match the type of the tag property, but it was in the
context of the JSP 1.2 'type' element in the taglib descriptor, so I'm still
not entirely clear on what's supposed to happen.

--
Martin Cooper


 -Original Message-
 From: Martin Cooper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 4:13 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [BUG] html:submit disabled= requires boolean value?
 
 
 Hmm.
 
 First of all, disregard what I said before about 
 BooleanConverter - that
 only applies when the form is being submitted, not when it is being
 rendered. My bad.
 
 However, you're right, there is definitely a problem. I've 
 confirmed it on
 both Tomcat 4.1.10 and Resin 2.1.4.
 
 What seems to happen is that, when a literal value is 
 specified, the JSP
 compiler automatically converts it to the appropriate boolean 
 keyword, so
 the resulting Java code compiles just fine. However, when an rtexpr is
 specified, the JSP compiler is not generating code to convert 
 a string value
 into a boolean value, so the Java compilation fails.
 
 Given that the behaviour is the same on both of the 
 containers I tried, I
 suspect there may be something in the JSP spec about this. It's not
 something I've ever come across, though. Craig may be able to 
 shed some more
 light on this.
 
 In any case, it appears that - unless both Tomcat and Resin 
 suffer from the
 same bug - we'll need to modify the html:submit tag to take a string
 value, and deal with the conversion in Struts.
 
 If you could submit a bug report to Bugzilla, that will 
 ensure that this
 issue doesn't get lost.
 
 --
 Martin Cooper
 
 
  -Original Message-
  From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 05, 2002 3:02 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [BUG] html:submit disabled= requires boolean value?
  
  
  That's what I thought.  I'm passing in a string value of 
  'true' (no quotes).
  I've tried setting a session variable as well as setting an 
  attribute in a
  bean but I get the same results.  In the .JSP I use
  
  (when using a session var)
  
  % String buttonStatus = (String)
  session.getAttribute(buttonStatus); %
  html:submit property=action value=Update
  disabled=%=buttonStatus% /
  
  (when using a bean)
  
  bean:define id=buttonStatus name=myBean 
  property=buttonStatus
  /
  html:submit property=action value=Update
  disabled=%=buttonStatus% /
  
  Either way I get casting problems.  As long as I directly 
  code true as the
  value, it works fine.  I only get this problem when I try to 
  pass in a value
  as a runtime expression.
  
  
  Jerry   
  
   -Original Message-
   From: Martin Cooper [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 05, 2002 4:52 PM
   To: 'Struts Users Mailing List'
   Subject: RE: [BUG] html:submit disabled= requires boolean value?
   
   
   From the docs for the html:submit 'disabled' attribute:
   
   Set to true if this input field should be disabled.
   
   The field in the tag is a boolean, so the value you supply must be
   convertable to a boolean. The conversion of the string you 
  supply to a
   boolean is performed in BeanUtils.BooleanConverter, where:
   
   true, yes, y, on, 1 are all synonyms
   false, no, n, off, 0 are all synonyms
   
   As long as you pass one of these values (or an expression 
   that evaluates to
   one of these values), you'll be fine.
   
   --
   Martin Cooper
   
   
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 2:17 PM
To: 'Struts Users Mailing List'
Subject: RE: [BUG] html:submit disabled= requires boolean value?


OK.  I think I've proven to myself that this is not a bug, as 
I can set
disabled=true and everything works fine.  When I try to 
   use either a
session variable (see below) or create a temporary bean, I 
   get strange
messages, like 'Can't convert java.lang.Object to boolean'.  
I'm at a loss.


What's the right way to do this?

Jerry

 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 2:45 PM
 To: '[EMAIL PROTECTED]'
 Subject: [BUG] html:submit disabled= requires boolean value?
 
 
 I'm setting the value of the disabled= parameter on a 
 html:submit tag, and
 I'm getting the following error:
 
   Incompatible type for method. Can't convert 
  java.lang.String to
 boolean. _jspx_th_html_submit_2.setDisabled(buttonStatus);
 
 The code in the .JSP looks like this.
 
   %
   String buttonStatus

Re: html:submit problem need help

2002-09-04 Thread Aamir Majeed

I think ur code will work if u just write different value of ur sumit button
means

html:submit  value =login/
 html:submit  value =signout/

and take value of parameter from request within ur Action class
means
if (login.equalsIgnoreCase(request.getParameter(submit))){
// login code
}
else if (signout.equalsIgnoreCase(request.getParameter(submit))){
//submit code
}
 Regards
Aamir
- Original Message -
From: Dan Walker [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 03, 2002 10:01 PM
Subject: Re: html:submit problem need help


 I think this link:

 http://husted.com/struts/tips/002.htm

 addresses that issue.
 -Dan

 On Tuesday 03 September 2002 11:53, you wrote:
  Hi,
 
  I have 2 buttons on my jsp and i want to find out which button is
pressed
  in my Action class, but i m not getting the submit parameter in request,
my
  code is as below
 
  I am 2 buttons on my jsp as below
 
  html:form action=/pages/test
 
  html:submitLogin/html:submit
 
  html:submitsignout/html:submit
 
  /html:form
 
  my struts-config.xml is as below
 
  form-bean name=test dynamic=true
  type=org.apache.struts.validator.DynaValidatorForm
 
  form-property name=envDrop type=java.lang.String/
 
  /form-bean
 
  action path=/pages/test type=com.pfizer.maps.Test
  input=/pages/test.jsp name=test 
 
  forward name=login path=/pages/mapslogin.jsp/forward
 
  forward name=signout path=/pages/signout.jsp/forward
 
  /action
 
  and my Action class is
 
  Enumeration enm = request.getParameterNames();
  while(enm.hasMoreElements())
  {
System.out.println(paramters are  + enm.nextElement());
  }
  String submitVal = request.getParameter(submit);
  System.out.println(value of submit  + submitVal);
 
  if(Login.equals(submitVal))
  {
  return mapping.findForward(login);
  }
  else if(Signout.equals(submitVal))
  {
  return mapping.findForward(signout);
  }
  else
  {
  return mapping.findForward(login);
  }
 
  when i print the value of submitVal , it is null
 
  Ashish
 
 
 
 
  A$HI$H
 
 
  -
  Do You Yahoo!?
  Yahoo! Finance - Get real-time stock quotes

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





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




html:submit and Image instead of button

2002-09-03 Thread Ashish Kulkarni


Hi,

I have 4 buttons on an jsp page, but what if i have to use image instead of buttons,

like html:submitAdd/html:submit

will have a button with Add Text, and then in my Action class i can find out which 
button has been pressed, 

but what if i have to use Image instead of a button, like how can i find out which 
image was clicked if i have 4 images on a jsp with value=sumbit

input type=image value=submit name=login border=0 
src=images/en/buttons/login_off.gif width=75 height=24 
onMouseOut=MM_swapImgRestore() 
onMouseOver=MM_swapImage('login','','images/buttons/login_on.gif',1) 

input type=image value=submit name=signoff border=0 
src=images/en/buttons/signoff_off.gif width=75 height=24 
onMouseOut=MM_swapImgRestore() 
onMouseOver=MM_swapImage('signoff','','images/buttons/signoff_on.gif',1) 

the above  are 2 tags with same one html:form action=/pages/selectenv

so how will i come to know which image was clicked, what is the best way to do it

Ashish


A$HI$H


-
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


RE: html:submit and Image instead of button

2002-09-03 Thread Ravi Kora

Have a javascript function in the href tag like below.

html:link href=javascript:submitAct(1) 
html:img src=your image.gif /
/html:link 

The javascript function submitAct will have sth like below
function submitAct(index){
  if (index==0)  {...}
  document.forms[0].submit();
}   

Hope this helps. Bye
-Ravi







Thanks  Regards,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M) 

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 03, 2002 11:50 AM
To: Struts Users Mailing List
Subject: html:submit and Image instead of button



Hi,

I have 4 buttons on an jsp page, but what if i have to use image instead
of buttons,

like html:submitAdd/html:submit

will have a button with Add Text, and then in my Action class i can find
out which button has been pressed, 

but what if i have to use Image instead of a button, like how can i find
out which image was clicked if i have 4 images on a jsp with
value=sumbit

input type=image value=submit name=login border=0
src=images/en/buttons/login_off.gif width=75 height=24
onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('login','','images/buttons/login_on.gif',1) 

input type=image value=submit name=signoff border=0
src=images/en/buttons/signoff_off.gif width=75 height=24
onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('signoff','','images/buttons/signoff_on.gif',1
) 

the above  are 2 tags with same one html:form
action=/pages/selectenv

so how will i come to know which image was clicked, what is the best way
to do it

Ashish


A$HI$H


-
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


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




html:submit problem need help

2002-09-03 Thread Ashish Kulkarni


Hi,

I have 2 buttons on my jsp and i want to find out which button is pressed in my Action 
class, but i m not getting the submit parameter in request, my code is as below

I am 2 buttons on my jsp as below 

html:form action=/pages/test

html:submitLogin/html:submit

html:submitsignout/html:submit

/html:form

my struts-config.xml is as below

form-bean name=test dynamic=true 
type=org.apache.struts.validator.DynaValidatorForm

form-property name=envDrop type=java.lang.String/

/form-bean

action path=/pages/test type=com.pfizer.maps.Test input=/pages/test.jsp 
name=test 

forward name=login path=/pages/mapslogin.jsp/forward

forward name=signout path=/pages/signout.jsp/forward

/action

and my Action class is 

Enumeration enm = request.getParameterNames();
while(enm.hasMoreElements())
{
  System.out.println(paramters are  + enm.nextElement());
}
String submitVal = request.getParameter(submit);
System.out.println(value of submit  + submitVal);

if(Login.equals(submitVal))
{
return mapping.findForward(login);
}
else if(Signout.equals(submitVal))
{
return mapping.findForward(signout);
}
else
{
return mapping.findForward(login);
}

when i print the value of submitVal , it is null

Ashish

 


A$HI$H


-
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


Re: html:submit problem need help

2002-09-03 Thread Dan Walker

I think this link:

http://husted.com/struts/tips/002.htm

addresses that issue.
-Dan

On Tuesday 03 September 2002 11:53, you wrote:
 Hi,

 I have 2 buttons on my jsp and i want to find out which button is pressed
 in my Action class, but i m not getting the submit parameter in request, my
 code is as below

 I am 2 buttons on my jsp as below

 html:form action=/pages/test

 html:submitLogin/html:submit

 html:submitsignout/html:submit

 /html:form

 my struts-config.xml is as below

 form-bean name=test dynamic=true
 type=org.apache.struts.validator.DynaValidatorForm

 form-property name=envDrop type=java.lang.String/

 /form-bean

 action path=/pages/test type=com.pfizer.maps.Test
 input=/pages/test.jsp name=test 

 forward name=login path=/pages/mapslogin.jsp/forward

 forward name=signout path=/pages/signout.jsp/forward

 /action

 and my Action class is

 Enumeration enm = request.getParameterNames();
 while(enm.hasMoreElements())
 {
   System.out.println(paramters are  + enm.nextElement());
 }
 String submitVal = request.getParameter(submit);
 System.out.println(value of submit  + submitVal);

 if(Login.equals(submitVal))
 {
 return mapping.findForward(login);
 }
 else if(Signout.equals(submitVal))
 {
 return mapping.findForward(signout);
 }
 else
 {
 return mapping.findForward(login);
 }

 when i print the value of submitVal , it is null

 Ashish




 A$HI$H


 -
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes

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




RE: html:submit and Image instead of button

2002-09-03 Thread Ravi Kora

Have a property for that bean say
Private Sting act;
and in the jsp have a corresponding hidden tag like
html:hidden property=act/

In the javascript function set the act to whatever you want depending on
the index like
function submitAct(index){ 
if (index==0) { document.form.act.value=act1; 
} 
document.forms[0].submit(); 
} 

Finally, in the Action class get the value of the property act for the
form. Hope this helps!
-R


Thanks  Regards,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M) 

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 03, 2002 12:21 PM
To: Struts Users Mailing List
Subject: RE: html:submit and Image instead of button



hi 
But cant i do it in my action class instead in javascript,??
 
 Ravi Kora wrote:Have a javascript function in the href tag like below.





The javascript function submitAct will have sth like below function
submitAct(index){ if (index==0) {...} document.forms[0].submit(); } 

Hope this helps. Bye
-Ravi







Thanks  Regards,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M) 

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 03, 2002 11:50 AM
To: Struts Users Mailing List
Subject: html:submit and Image instead of button



Hi,

I have 4 buttons on an jsp page, but what if i have to use image instead
of buttons,

like Add

will have a button with Add Text, and then in my Action class i can find
out which button has been pressed, 

but what if i have to use Image instead of a button, like how can i find
out which image was clicked if i have 4 images on a jsp with
value=sumbit

 [input] src=images/en/buttons/login_off.gif width=75 height=24
onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('login','','images/buttons/login_on.gif',1) 

 [input] src=images/en/buttons/signoff_off.gif width=75 height=24
onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('signoff','','images/buttons/signoff_on.gif',1
) 

the above are 2 tags with same one action=/pages/selectenv

so how will i come to know which image was clicked, what is the best way
to do it

Ashish


A$HI$H


-
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


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


A$HI$H


-
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


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




Re: html:submit and Image instead of button

2002-09-03 Thread Ted Husted

One trick is to get the ActionForm to do the work:

http://husted.com/struts/tips/001.html

-Ted.

Ashish Kulkarni wrote:

 hi 
 But cant i do it in my action class instead in javascript,??
  
  Ravi Kora wrote:Have a javascript function in the href tag like below.
 
 
 The javascript function submitAct will have sth like below
 function submitAct(index){
 if (index==0) {...}
 document.forms[0].submit();
 } 
 
 Hope this helps. Bye
 -Ravi
 
 
 
 Thanks  Regards,
 Ravi Kora
 [EMAIL PROTECTED]
 337-739-3434(M) 
 
 -Original Message-
 From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, September 03, 2002 11:50 AM
 To: Struts Users Mailing List
 Subject: html:submit and Image instead of button
 
 
 
 Hi,
 
 I have 4 buttons on an jsp page, but what if i have to use image instead
 of buttons,
 
 like Add
 
 will have a button with Add Text, and then in my Action class i can find
 out which button has been pressed, 
 
 but what if i have to use Image instead of a button, like how can i find
 out which image was clicked if i have 4 images on a jsp with
 value=sumbit
 
  [input] src=images/en/buttons/login_off.gif width=75 height=24
 onMouseOut=MM_swapImgRestore()
 onMouseOver=MM_swapImage('login','','images/buttons/login_on.gif',1) 
 
  [input] src=images/en/buttons/signoff_off.gif width=75 height=24
 onMouseOut=MM_swapImgRestore()
 onMouseOver=MM_swapImage('signoff','','images/buttons/signoff_on.gif',1
 ) 
 
 the above are 2 tags with same one action=/pages/selectenv
 
 so how will i come to know which image was clicked, what is the best way
 to do it
 
 Ashish
 
 
 A$HI$H
 
 
 -
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 A$HI$H
 
 
 -
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html


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




i18n on html:submit tag

2002-07-08 Thread Lisa van Gelder

Hi all

Can anybody tell me how to use i18n with a html:submit tag, so the value of
the input is internationalised?

It should be a simple thing, but I can't find an attribute in the tag
reference that will let me do it. value isn't internationalised, and
titleKey just gives it a title.

The workaround is to do input type=submit value=bean:message
key=my.key/ but this is kind of messy.

Am I missing something?

Lisa



RE: i18n on html:submit tag

2002-07-08 Thread Lisa van Gelder

Don't worry. Worked it out. :)

You can put the i18n key in the middle of the tag.
html:submitbean:message key=my.key//html:submit

That wasn't obvious to me from the user guide!

Lisa



Is there a good way to achive a html:submit?

2002-07-03 Thread Hemanth Setty

Is there a good way to achive a html:submit using a href rather than a
button? I checked out the attributes for html:link..but could not find any?

-h


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




Re: Is there a good way to achive a html:submit?

2002-07-03 Thread Joe Germuska

At 11:17 AM -0500 2002/07/03, Hemanth Setty wrote:
Is there a good way to achive a html:submit using a href rather than a
button? I checked out the attributes for html:link..but could not find any?

You'd have to have an onclick handler which used JavaScript to submit 
the form.  It's not something that Struts helps or hinders, but it's 
certainly possible.

Joe

-- 
--
* Joe Germuska{ [EMAIL PROTECTED] }
It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records.
--Sam Goody, 1956
tune in posse radio: http://www.live365.com/stations/289268

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




html:submit causes errors with javascript form submit

2002-05-22 Thread Gary Bartlett

Just curious - does anybody use the html:submit tag,
or do folks generally just use the standard input
type=submit tag.  

The reason I ask is that html:submit does not allow
you to  specify the name of the button - and as a
result all buttons generated with that tag are named
'submit'.  

This has the effect of returning an error if you try
to use javascript to submit your form (via
this.form.submit() ) - which can be a real PITA to
debug.

Gary Bartlett

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




RE: html:submit causes errors with javascript form submit

2002-05-22 Thread Sri Sankaran

Whatever you set the 'property' attribute of the html:submit is translated to the 
'name' attribute of the resulting input type=submit tag.

Sri

-Original Message-
From: Gary Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 3:17 PM
To: StrutsUser Maillist
Subject: html:submit causes errors with javascript form submit


Just curious - does anybody use the html:submit tag,
or do folks generally just use the standard input
type=submit tag.  

The reason I ask is that html:submit does not allow
you to  specify the name of the button - and as a
result all buttons generated with that tag are named
'submit'.  

This has the effect of returning an error if you try
to use javascript to submit your form (via
this.form.submit() ) - which can be a real PITA to
debug.

Gary Bartlett

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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

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




RE: html:submit causes errors with javascript form submit

2002-05-22 Thread Gary Bartlett

Thanks, I didn't realize that property translated into
the name attribute. 

GB
--- Sri Sankaran [EMAIL PROTECTED] wrote:
 Whatever you set the 'property' attribute of the
 html:submit is translated to the 'name' attribute of
 the resulting input type=submit tag.
 
 Sri
 
 -Original Message-
 From: Gary Bartlett
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 3:17 PM
 To: StrutsUser Maillist
 Subject: html:submit causes errors with javascript
 form submit
 
 
 Just curious - does anybody use the html:submit tag,
 or do folks generally just use the standard input
 type=submit tag.  
 
 The reason I ask is that html:submit does not allow
 you to  specify the name of the button - and as a
 result all buttons generated with that tag are named
 'submit'.  
 
 This has the effect of returning an error if you try
 to use javascript to submit your form (via
 this.form.submit() ) - which can be a real PITA to
 debug.
 
 Gary Bartlett
 
 __
 Do You Yahoo!?
 LAUNCH - Your Yahoo! Music Experience
 http://launch.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




RE: html:submit causes errors with javascript form submit

2002-05-22 Thread Steel, Toby

I think this is a result of browser confusion between an 
element named 'submit' (the element produced by an html:submit 
without a property attribute)
and the function form.submit();
When using html:submit always specify a property.
Then you can have a named request parameter to process.

Interestingly, if you use html:cancel you may not specify a property
or it ceases to be cancel button (overriding validation).
One can specify a value, but then that value appears on the button
which is inconvenient for internationalized sites.

We ended up using custom tags that create button elements
that use onsubmit to add innerHTML to the form.
The innerHTML added is a hidden input named with the Struts
cancel property and given a value picked up in our parent action class
and targeted to a list of common forward names: 'back' 'cancel' 'home'
etc. 

Toby Steel

-Original Message-
From: Gary Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 3:17 PM
To: StrutsUser Maillist
Subject: html:submit causes errors with javascript form submit


Just curious - does anybody use the html:submit tag,
or do folks generally just use the standard input
type=submit tag.  

The reason I ask is that html:submit does not allow
you to  specify the name of the button - and as a
result all buttons generated with that tag are named
'submit'.  

This has the effect of returning an error if you try
to use javascript to submit your form (via
this.form.submit() ) - which can be a real PITA to
debug.

Gary Bartlett

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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

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




Internationalization and html:submit

2002-04-19 Thread Diego Parrilla

Hi,

we are developing an application that uses the i18n capabilities of Struts,
and we have found a problem trying to use this capability with the
html:submit 

For instance, if we use in our JSP pages:

html:submit property=action value=Accept
html:submit property=action value=Cancel

then in our code we will do like this:

if (action.equals(Accept)){
returnPage = accept;
}
else{
  returnPage = cancel;
}

but if we want to translate the value of the buttons the another languages
let's say:

html:submit property=action value=Aceptar
html:submit property=action value=Cancelar

How can we make the presentation of the value, and the value passed to the
property 'action' not coupled. I would like to put into the 'action'
property always the content in English, but the view in the JSP page in
different languages depending on the localization of the user?

Is this possible in Struts?

Regards
Diego

XpertOnline Technical Manager
e-mail: [EMAIL PROTECTED]
Adecco OleCenter
C/Severo Ochoa, 55
Parque Empresarial Casablanca II
28100 Alcobendas
Madrid - Spain
Telf: +34 91 484 77 08



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




RE: Internationalization and html:submit

2002-04-19 Thread James Mitchell

I can think of 4 ways I might approach this:

1. Have you thought about using different actions to determine which button
was pushed?

Example:
html:form action=/terms/accept
  html:submit
bean:message key=terms.accept/
  /html:submit
/html:form
html:form action=/terms/cancel
  html:cancel
bean:message key=terms.decline/
  /html:cancel
/html:form

Then you would execute whatever you needed in the individual action classes.
*the only problem with this is that it draws your button vertical and not
side by side (that's html limit, not struts)

2. What about using the i18n format for submit and then checking within the
action class (similar to your action code but getting the correct i18n
string to test.

(within the jsp)
html:form action=/terms
  html:submit
bean:message key=terms.accept/
  /html:submit
  html:cancel
bean:message key=terms.decline/
  /html:submit
/html:form


3. JavaScript - Use JavaScript to set a hidden html field that you name
action to Accept or Decline, then submit the form.  (don't use
property=action in your html:submit) This way, you can validate with:
(code from your original email)
 if (action.equals(Accept)){
   returnPage = accept;
 }
 else{
   returnPage = cancel;
 }


4. Hack - by default the way the html:cancel is used, if the user chooses to
click the cancel button, then struts will *not* populate the actionform (if
any) associated with an action.  So you could create a dummy form with a
hard-coded value and use html:hidden with that value to test for once you
are in the action class.
sorry:noSamples/

Good Luck!
JM

logic:equal value=finished property=workday
  logic:iterate id=frostyMug name=beer property=Mugs
beer:drink name=frostyMug/
  /logic:iterate
/logic:equal







 -Original Message-
 From: Diego Parrilla [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 19, 2002 10:31 AM
 To: Struts Users Mailing List
 Subject: Internationalization and html:submit


 Hi,

 we are developing an application that uses the i18n capabilities
 of Struts,
 and we have found a problem trying to use this capability with the
 html:submit 

 For instance, if we use in our JSP pages:

 html:submit property=action value=Accept
 html:submit property=action value=Cancel

 then in our code we will do like this:

 if (action.equals(Accept)){
   returnPage = accept;
 }
 else{
   returnPage = cancel;
 }

 but if we want to translate the value of the buttons the another languages
 let's say:

 html:submit property=action value=Aceptar
 html:submit property=action value=Cancelar

 How can we make the presentation of the value, and the value passed to the
 property 'action' not coupled. I would like to put into the 'action'
 property always the content in English, but the view in the JSP page in
 different languages depending on the localization of the user?

 Is this possible in Struts?

 Regards
 Diego

 XpertOnline Technical Manager
 e-mail: [EMAIL PROTECTED]
 Adecco OleCenter
 C/Severo Ochoa, 55
 Parque Empresarial Casablanca II
 28100 Alcobendas
 Madrid - Spain
 Telf: +34 91 484 77 08



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




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




Re: Internationalization and html:submit

2002-04-19 Thread Chuck Cavaness

Although I'm not real found of this action, I would look at the 
org.apache.struts.actons.LookupDispatchAction. This is a pre-built action 
that can be used exactly for what you are trying to do.

Chuck

At 04:30 PM 4/19/2002 +0200, you wrote:
Hi,

we are developing an application that uses the i18n capabilities of Struts,
and we have found a problem trying to use this capability with the
. For instance, if we use in our JSP pages: then in our code we will do 
like this: if (action.equals(Accept)){ returnPage = accept; } else{ 
returnPage = cancel; } but if we want to translate the value of the 
buttons the another languages let's say: How can we make the presentation 
of the value, and the value passed to the property 'action' not coupled. I 
would like to put into the 'action' property always the content in 
English, but the view in the JSP page in different languages depending on 
the localization of the user? Is this possible in Struts? Regards Diego 
XpertOnline Technical Manager e-mail: [EMAIL PROTECTED] Adecco 
OleCenter C/Severo Ochoa, 55 Parque Empresarial Casablanca II 28100 
Alcobendas Madrid - Spain Telf: +34 91 484 77 08 -- To unsubscribe, 
e-mail: For additional commands, e-mail:


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




RE: I'm stuck on the html:submit

2002-04-03 Thread theron . kousek


Hi James:

But what if you have multiple html:submit's in your jsp...
And supposing only 1 of those submit button's need to have this javascript
confirm() popup.   How does the onSubmit() at the form level know which
submit button-property was set?It would need to do an if statement and
only popup the question if a certain submit was set:

For example:
Suppose I have the following in my html form:

html:form onSubmit=checkDeleteConfirmation()
 
 table ...
 tr
 td ID=smallhtml:submit property=add value=Add /td
 td ID=smallhtml:submit property=update value=Update /td
 td ID=smallhtml:submit property=delete value=Delete /td
 ...
 /table
/html:form

Supposing I only want to pop the question when they hit delete:

script language=JavaScript
 function checkDeleteConfirmation() {
  //
  // How can I determine if they clicked on the delete button
since onSubmit()
  // gets called for every single submit type button?
 }
/script

thanks,
Theron



   
 
James  
 
Mitchell To: Struts Users Mailing List 
 
jmitchtx@tel[EMAIL PROTECTED]  
 
ocity.com   cc:   
 
 Subject: RE: I'm stuck on the html:submit 
 
04/02/02   
 
08:52 PM   
 
Please 
 
respond to 
 
Struts Users   
 
Mailing List   
 
   
 
   
 



Ok.  I was going to make another suggestion based on what you posted
earlier.
You don't actually need any javascript in your html:submit tag.
The onSubmit action is handled by the html:form onSubmit=return
callMyFunction()


Anyway, you could have tested your function call by substituting html:form
action=/whatever onSubmit=return true

then change it to false and test again
if that passes, then put return true on the first line of your javascript
function.

Working example:
--
!-- pieces taken from the struts example --
%@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib uri=/WEB-INF/app.tldprefix=app %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

html:form action=/saveRegistration onsubmit=return doMeFirst('what you
need')
table border=0 width=100%
  tr
th align=right
  bean:message key=prompt.fullName/
/th
td align=left
  html:text property=fullName size=50/
/td
  /tr
/table
html:submit value=Submit/
/html:form

SCRIPT LANGUAGE=javascript
!--
function doMeFirst( param ){
 if (param == what I was expecting) {
   return true;
 }else{
   return false;
 }

}
//--
/SCRIPT





JM


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 02, 2002 10:58 PM
 To: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Subject: RE: I'm stuck on the html:submit



 I apologize James, I ended up doing it a totally different way (without
 using html:button) which seems to work nowI did not save the
prior
 way that I was having problems with  :-(

 theron




 James

 Mitchell To: Struts Users
 Mailing List
 jmitchtx@tel
 [EMAIL PROTECTED]
 ocity.com   cc:

  Subject: RE: I'm
 stuck on the html:submit
 04/02/02

 07:26 PM

 Please

 respond to

 Struts Users

 Mailing List








 Could you post your entire jsp code to have a better look?

 JM

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, April 02, 2002 8:51 PM
  To: Struts Users Mailing List
  Subject: I'm stuck

RE: I'm stuck on the html:submit

2002-04-03 Thread Leonardo Maciel

This is how I would do:

html:form action=/whatever.do 
 
 table ...
 tr
 td ID=smallhtml:submit property=add value=Add /td
 td ID=smallhtml:submit property=update value=Update /td
 td ID=smallhtml:submit onclick=return confirm('Confirm
Delete?'); property=delete value=Delete /td
 ...
 /table
/html:form


This way, only delete button will pop the confirm window. 

Leo.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:12 AM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: RE: I'm stuck on the html:submit



Hi James:

But what if you have multiple html:submit's in your jsp...
And supposing only 1 of those submit button's need to have this javascript
confirm() popup.   How does the onSubmit() at the form level know which
submit button-property was set?It would need to do an if statement and
only popup the question if a certain submit was set:

For example:
Suppose I have the following in my html form:

html:form onSubmit=checkDeleteConfirmation()
 
 table ...
 tr
 td ID=smallhtml:submit property=add value=Add /td
 td ID=smallhtml:submit property=update value=Update /td
 td ID=smallhtml:submit property=delete value=Delete /td
 ...
 /table
/html:form

Supposing I only want to pop the question when they hit delete:

script language=JavaScript
 function checkDeleteConfirmation() {
  //
  // How can I determine if they clicked on the delete button
since onSubmit()
  // gets called for every single submit type button?
 }
/script

thanks,
Theron



 

James

Mitchell To: Struts Users Mailing List

jmitchtx@tel[EMAIL PROTECTED]

ocity.com   cc:

 Subject: RE: I'm stuck on the
html:submit  
04/02/02

08:52 PM

Please

respond to

Struts Users

Mailing List

 

 




Ok.  I was going to make another suggestion based on what you posted
earlier.
You don't actually need any javascript in your html:submit tag.
The onSubmit action is handled by the html:form onSubmit=return
callMyFunction()


Anyway, you could have tested your function call by substituting html:form
action=/whatever onSubmit=return true

then change it to false and test again
if that passes, then put return true on the first line of your javascript
function.

Working example:
--
!-- pieces taken from the struts example --
%@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib uri=/WEB-INF/app.tldprefix=app %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

html:form action=/saveRegistration onsubmit=return doMeFirst('what you
need')
table border=0 width=100%
  tr
th align=right
  bean:message key=prompt.fullName/
/th
td align=left
  html:text property=fullName size=50/
/td
  /tr
/table
html:submit value=Submit/
/html:form

SCRIPT LANGUAGE=javascript
!--
function doMeFirst( param ){
 if (param == what I was expecting) {
   return true;
 }else{
   return false;
 }

}
//--
/SCRIPT





JM


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 02, 2002 10:58 PM
 To: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Subject: RE: I'm stuck on the html:submit



 I apologize James, I ended up doing it a totally different way (without
 using html:button) which seems to work nowI did not save the
prior
 way that I was having problems with  :-(

 theron




 James

 Mitchell To: Struts Users
 Mailing List
 jmitchtx@tel
 [EMAIL PROTECTED]
 ocity.com   cc:

  Subject: RE: I'm
 stuck on the html:submit
 04/02/02

 07:26 PM

 Please

 respond to

 Struts Users

 Mailing List








 Could you post your entire jsp code to have a better look?

 JM

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, April 02, 2002 8:51 PM
  To: Struts Users Mailing List
  Subject: I'm stuck on the html:submit
 
 
 
  I know with the html:form you have the onSubmit() javascript
 handler in
  which the following will work:
 
  script language=JavaScript
   function unlinkConfirmation() {
if (confirm(Remove employee link?))
 return true;
else
 return false

  1   2   >