Thanks Ted!! :)

-----Original Message-----
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 11:17 AM
To: [EMAIL PROTECTED]
Subject: RE: Getting the value of object in the iterate....


Ted,
Is that an html:input or straight html input.
I ask because the end tag is />
I will try this...
Beth.

-----Original Message-----
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting the value of object in the iterate....


How about 

<input type="submit" name="buttonSelected" value="Get" onclick=return
doSubmit('<bean:write ... />')>;" />

instead. 

Or, you might have to expose the bean as a scripting variable before
using it in a scriptlet.

"Strichartz, Beth" wrote:
> 
> Thanks! I got that working..
> Now I am having a problem sending to the JavaScript:
>  <html:submit property="buttonSelected" value="Get" onclick="return
> doSubmit(<%= Patients.getAccount().getSsn()%>);" />
> 
> Any ideas???
> 
> Error is :
> probably occurred due to an error in /ChangeEdit.jsp line 303:
> <html:submit property="buttonSelected" value="Get" onclick="return
> doSubmit('<%=Patients.getAccount().getSsn()%>');" />
> 
>
C:\bea\wlserver6.0\config\mydomain\applications\.wl_temp_do_not_delete\WEB-I
>
NF\_tmp_war_myserver_myserver_middleware\jsp_servlet\_changeaddressedit.java
> :1451: ')' expected
> (No more information available, probably caused by another error)
> 
>
----------------------------------------------------------------------------
> ----
> Full compiler error(s):
>
C:\bea\wlserver6.0\config\mydomain\applications\.wl_temp_do_not_delete\WEB-I
>
NF\_tmp_war_myserver_myserver_middleware\jsp_servlet\_changeaddressedit.java
> :1449: unclosed string literal
> 
> _html_submit0.setOnclick(weblogic.utils.StringUtils.valueOf("return
> doSubmit('<%= =Patients.getAccount().getSsn()) //[ /ChangeAddressEdit.jsp;
> Line: 303]
> 
> 
> -----Original Message-----
> From: Stephen Owens [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 23, 2001 9:53 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Getting the value of object in the iterate....
> 
> You should be able to do this using the <bean:define> tag, like so,
> 
>   <logic:iterate id="Patients" name="MyForm" property="Patients"
> indexId="index">
>          <bean:write name="Patients" property="account.ssn"
> filter="true"/></td>
>             <bean:define id="Patients" name="Patients"
> type="com.domain.Patients"/>
>                 <%= Patients.getAccount().getSsn()%>
>   </logic:iterate>
> -----Original Message-----
> From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 23, 2001 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Getting the value of object in the iterate....
> 
> I have the same question...
> Does anyone out there know???
> 
> -----Original Message-----
> From: michael duggan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 22, 2001 9:19 PM
> To: [EMAIL PROTECTED]
> Subject: Getting the value of onject in the iterate....
> 
> If I am iterating over a collection..
>   <logic:iterate id="Patients" name="MyForm" property="Patients"
> indexId="index">
>          <bean:write name="Patients" property="account.ssn"
> filter="true"/></td>
> 
> </logic:iterate>
> Where Patients has an account Object that has an SSN property.
> is it possible to add the following inside the iterate tag....
> 
> 
> <%=Patients.getAccount().getSsn()%>....The reason I ask, is I want to
> pass the SSN to Javascript in an Onclick event.
> 
> Thanks.
> 
> 
> This message contains information which may be confidential and
> privileged. Unless you are the addressee (or authorized to receive for
> the addressee), you may not use, copy or disclose to anyone the message
> or any information contained in the message. If you have received the
> message in error, please advise the sender by reply e-mail, and delete
> or destroy the message.
> 
> Thank you.
> 
> This message contains information which may be confidential and
privileged.
> Unless you are the addressee  (or authorized to receive for the
addressee),
> you may not use, copy or disclose to anyone the message or any information
> contained in the message.  If you have received the message in error,
please
> advise the sender by reply e-mail, and delete or destroy the message.
> 
> Thank you.

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


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.

Reply via email to