johny sil

Greenhorn
+ Follow
since Jul 11, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by johny sil

[Thread hi-jack removed.

johny, start your own questions in your own topics]
[ November 19, 2006: Message edited by: Bear Bibeault ]
Thanks for reply

How it is define in ActionForm
17 years ago
HI,

I want to display checkbox is cheked intially in sturts

I am using <html:checkbox>

is there any attribute to solve this problem

Help me,

Thanks in advance
17 years ago
Hi,

I have a jsp page



Here is my Admin.js



when the aboue jsp is submitted it goes to the saveStatusSetup() in Admin.js, In this saveStatusSetup function is not accepted morethan two spaces in statusName property,It works fine.

But if i give morethan two spaces control will come to this function and then goes focus to the statusName property then immediatly form is submitted ,

How to stop this submission when i give morethan two spaces in statusName property

Help me,

Thanks in advance
17 years ago
HI,

MY jsp code is


<%
//Calling the class processDAO and the ICode value
processDAO dao=new processDAO();
String ICode=dao.newsupplier();

%>

and then i write

<html:text styleClass="txfield" property="code" value="<%= ICode %>" disabled="true"/>

My form bean is

public String code;
public String getCode() {
return code;
}

public void setCode(String code) {
this.code = code;
}

but its not taking the value;

But i write it as a disbled="false" in jsp it takes a value

Help me,

Thanks in advance
17 years ago
Thank u very much Higgi,

This script code is work fine
17 years ago
Hi,

i have array check boxes in my jsp,

ex: itemcode itemname checkbox ADDMORE

when i click ADDMORE button add new row in jsp with same properties

i write my formbean checkbox property as:

public boolean[] check;

in my action:

String check[]=request.getParameterValues("check");

i didn't get checkbox values

but i get the checked values in setter method of formbean(didn't get unchecked values)

Help me,

Thanks in advance
17 years ago
Hi,

I want to display checkboxes based on the value come from the database,

If the value is "true" checkbox is displayed as checked.

Plaese send sample code,

Thanks in advance
17 years ago
Thanks for reply

in my jsp proerties are like this

itemcode itemname checkbox ADDMORE

when i click addmore one more row added in jsp using javascript,

itemcode itemname checkbox
itemcode itemname checkbox like this

checkbox define like this
html:checkbox property="percent" value="true"

my Action form

public String[] getPercent() {
return percent;
}

public void setPercent(String[] percent) {
this.percent=percent;

}

public String[] percent;

public void reset(ActionMapping mapping, HttpServletRequest request)
{
}

when the checkbox is checked it takes the value true, it works fine,

when it is not cheked i want to take false,

how it is,keep in mind it is array,

ex may be it will come true,false,false,true,false like this

Help me

Thanks in advance
17 years ago
Thanks for reply,

If the checkboxes multiple with same name ,

then how to define in ActionForm and reset method;

help me,

Thanks in advance
17 years ago
Hi,

I have a checkbox in my jsp page,

When i click this ActionForm takes the value true otherwise it will take false,

How it is in struts,

Help me,

Thanks in advance.
17 years ago
Hi,

I have a multiple check boxes in jsp with same names.

Ex:
My fileds are like this

checkbox itemcode itemname AddMore

When i click AddMore i get one more row like this

checkbox itemcode itemname

These fields are have same name

How to set this properties in ActionForm

Help me,

Thanks in advance
17 years ago
Hi,

I want to set multiple values to the same property,

How it is possible in struts.

ex:
in jsp:
<html:text property="itemname"/>

i want to set multiple values to this.

how to declare it in ActionForm

Help me,

Thanks in advance
17 years ago