You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2002/08/26 22:07:36 UTC

How to write in struts Please ASAP

Hi,

I had this tag in html, 

<input type="image" value="Submit" name="login1" border="0" src="images/buttons/login_off.gif" width="75" height="24"  onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('login1','','images/buttons/login_on.gif',1)">

How do i replace it in struts, i have some javascript which changes the image when there is mouse over event.., also this is image is used to submit the form, so can any one plese tell me how to replace it in struts ASAP

Also is there any documentation where they have given the HTML tag and corresponding struts tag, which will really help a lot

Ashish


A$HI$H


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

Re: referring a nexted:iterate element in JavaScript

Posted by Rick Reumann <ma...@reumann.net>.

On Monday, August 26, 2002, 6:20:39 PM, Saptha wrote:

SGG> <nested:iterate property="item" indexId="count">
SGG>         <nested:text property="quantity" size="15" onchange="gettotal(this,
??price??);" />>
SGG>         <nested:text property="price" size="5"/>
SGG>         <nested:text property="total" size="15" value=""/>
SGG> </nested:iterate>

SGG> Can anyone please tell me how I can refer to the value of "price" in the
SGG> JavaScript function "gettotal".

     I haven't tested this but try:

     <nested:iterate id="myHandle" property="item" indexId="count">

        <nested:text property="quantity" size="15"
            onchange="gettotal(this, <%= myHandle.getPrice() %> );" />>

            
-- 

Rick
mailto:maillist@reumann.net


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


referring a nexted:iterate element in JavaScript

Posted by "Saptha \"Girish\" Gadamsetty" <gi...@spry-tech.com>.
Hi all,

I am trying something similar to the following problem:

<nested:iterate property="item" indexId="count">
	<nested:text property="quantity" size="15" onchange="gettotal(this,
??price??);" />
	<nested:text property="price" size="5"/>
	<nested:text property="total" size="15" value=""/>
</nested:iterate>

I need to pass the value of the "price" everytime the value of "quantity" is
changed and update the value of "total".

Can anyone please tell me how I can refer to the value of "price" in the
JavaScript function "gettotal".


help is highly appreciated.

Thanks in advance
Girish


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How to write in struts Please ASAP

Posted by James Mitchell <jm...@telocity.com>.
Look at html:image tag.

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




> -----Original Message-----
> From: Ashish Kulkarni [mailto:kulkarni_ash1312@yahoo.com]
> Sent: Monday, August 26, 2002 4:08 PM
> To: Struts Users Mailing List
> Subject: How to write <input type="image" value="Submit" .../> in struts
> Please ASAP
> 
> 
> 
> Hi,
> 
> I had this tag in html, 
> 
> <input type="image" value="Submit" name="login1" border="0" 
> src="images/buttons/login_off.gif" width="75" height="24"  
> onMouseOut="MM_swapImgRestore()" 
> onMouseOver="MM_swapImage('login1','','images/buttons/login_on.gif',1)">
> 
> How do i replace it in struts, i have some javascript which 
> changes the image when there is mouse over event.., also this is 
> image is used to submit the form, so can any one plese tell me 
> how to replace it in struts ASAP
> 
> Also is there any documentation where they have given the HTML 
> tag and corresponding struts tag, which will really help a lot
> 
> Ashish
> 
> 
> A$HI$H
> 
> 
> ---------------------------------
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>