Li
When you say sending response using JSON what does that mean?
I have been sending result between view and action class by putting in
request object as
request.setAttribute("result",resultFrom); and
request.getAttribute("result")
What can be better approach than this?
Thanks
Anjib
On 11/30/2010 4:21 PM, Chris Pratt wrote:
Either use ajax or submit the page request, there's no other good way to
access a server side resource from the client side.
(*chris*)
On Nov 30, 2010 1:15 PM, "Anjib Mulepati"<anji...@hotmail.com> wrote:
Struts 1.3.8
I have text box and button in the JSP page with the function on
onCLick() event.
<script lanaguage="javascript">
function fnClickAddRow() {
alert("Validating -- Inserting in Db and then add to below table");
//Add row to the table
}
</scirpt>
<input type="text" id="email">
<input type="button" value="Add" onclick="fnClickAddRow();">
Now how I can call the Struts actions also since I have to validate the
input and insert to database before adding to table?
Anjib
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org