struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parvat Singh Ranawat" <>
Subject Re: two form one jsp
Date Wed, 02 Aug 2006 15:33:44 GMT
Hi All n Kalpesh,

Here I can use seperate formBean but this may not be good practice.......
actually somebody suggested me to pass the form object  as parameter in
function while calling java script


<script language="JavaScript" type="text/javascript">

function fooBar( form){

if(form.criteria.value==' ' || form.criteria.value==null)


alert("Please provide criteria");

 return false;}

//code to perform some function

<form action=" ">

<html:img page=" "

onclick="fooBar(this.form)" />

This is working fine for most of the code but for one <html:img
onclick=" "/> it is not able to call java script (giving some js error as
"form is not object")

What is the problem I didnt get .... if it(form) is not object then why it
is working for other code

please suggest if this is good or I can Trustful approach


Shakti Singh

On 02/08/06, kalpesh modi <> wrote:
> Is it not possible to use two seperate form beans?
> -Kalpesh
> ---------------------------------
> How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone call
> rates.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message