Thanks, is ok. I work whith quotation marks and apostrophes 'Enviar("<%...
and this not work. 

-----Mensaje original-----
De: Miller, Andy [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 22 de junio de 2006 19:47
Para: Struts Users Mailing List
Asunto: RE: Mistake of syntax in html:button


Well, just looking at this code, you have 2 sets of quotation marks:
onclick="Enviar("<%=property%>")">

you need to do a combination of quotation marks and apostrophes...
something like this:
onclick="Enviar('<%=property%>')">

Andy Miller
IS Designer
Butte College
530.895.2946

-----Original Message-----
From: José María Tristán [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 22, 2006 8:03 AM
To: 'Struts Users Mailing List'
Subject: RE: Mistake of syntax in html:button

Hello: This is the result of view source:
        <input type="button" name="buton" value="Aceptar"
onclick="Enviar("<%=property%>")">

        In the jsp:

                <%
                String property = request.getParameter("property");
                String optionsCollection =
request.getParameter("optionsCollection");

                %>



-----Mensaje original-----
De: Miller, Andy [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 22 de junio de 2006 16:53
Para: Struts Users Mailing List
Asunto: RE: Mistake of syntax in html:button


What is the value of <%=property%> when the form is generated? i.e., do a
"view source" on the generated jsp and look at the values; then work
backwards from there.

Andy Miller
IS Designer
Butte College
530.895.2946

-----Original Message-----
From: José María Tristán [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 22, 2006 7:48 AM
To: user@struts.apache.org
Subject: Mistake of syntax in html:button

Hello:
        This code:
                <html:button property="buton"
onclick='Enviar("<%=property%>")'>Aceptar</html:button>

        it's show in the window:

                Aceptar ")">

        Aceptar is a button but the next text don't must show.

        Thank you very much.


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

Reply via email to