<html:button property="ok" value="Ok" onclick="validateSomething()" />

n


2007/2/26, Michael Jouravlev <[EMAIL PROTECTED]>:

I have no idea, but does it work without Javascript assigned to the
button?

On 2/25/07, Strachan, Paul <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I realise this is probably not a struts problem and I feel a bit silly
posting this question but here goes:
>
> I'm using html:button with EventDispatchAction but my button properties
do not appear in the request - the html source fragment goes something like:
>
> <script type="text/javascript">
>   function doEdit(id) {
>     document.TeachingMethodForm.teachingMethodId.value=id;
>     document.TeachingMethodForm.submit();
>   }
> </script>
> <form name="TeachingMethodForm" method="post"
action="/eat3/admin/teachingMethods.do">
>   <input type="hidden" name="applicationId" value="486">
>   <input type="hidden" name="teachingMethodId" value="">
> ...
>  <td>
>    <input type="button" name="edit" value="Edit"
onclick="javascript:doEdit('100');">
>  </td>
> ...
> </form>
>
> Using Firefox the request header looks like:
>
> http://xxx.xxx.43.6:8988/eat3/admin/teachingMethods.do
> POST /eat3/admin/teachingMethods.do HTTP/1.1
> Host: xxx.xxx.43.6:8988
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2)
Gecko/20070219 Firefox/2.0.0.2
> Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Proxy-Connection: keep-alive
> Referer: http://xxx.xxx.43.6:8988/eat3/admin/teachingMethods.do
> Cookie: JSESSIONID=996b2b06231c8176feb489f64b56816acb4b73a11148
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 144
> applicationId=486&teachingMethodId=100
> HTTP/1.x 200 OK
> Transfer-Encoding: chunked
> Date: Mon, 26 Feb 2007 07:40:07 GMT
> Content-Type: text/html;charset=windows-1252
> Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)
> Content-Location:
http://xxx.xxx.43.6:8988/eat3/WEB-INF/jsps/set_layout/layout.jsp
> Via: 1.1 ugcpx03 (NetCache NetApp/6.0.5)
>
> I am expecting to see "edit=Edit" in the request and I dont understand
why its not there.  This is contrary to the taglib documentation.
>
> Any hints?
>
> Thanks,
> Paul

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


Reply via email to