hey Guys, I am trying to write dynamic html bean using java script but I keep geting the "function is not found" JS error when I press the button .. here is a sample code
I don't know about the
<html:form action="loginAction.do" >
where it should be located
I tried to locate it within the
but I got a big exception due to writing
need your help,
I think struts is trying to parse the
<html:form action="loginAction.do" > into the body AND the
<script> within the
<html:form> similar to this fiddle http://www.jsfiddle.net/pL4Aq/1/
However, it works in the fiddle because it is just straight HTML... I don't think what you are trying to do will work.
<html:text > is a custom tag that gets processed on the server, does a bunch of stuff, and then generates HTML for you. You will never actually see
<html:text> if you view the source from your browser, even though it is in your jsp.
You might want to try changing the
<html:text > to a straight
<input type="text"> tag (in which case, you could just move the
<html:form> into the body and leave the script where it is).
I am completely agreed with what Mike is saying.
Better to write
<html:form in body tag. This will work for you.
It should work in a
©2020 All rights reserved.