shruti patel

Ranch Hand
+ Follow
since Mar 10, 2008
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 shruti patel

Hi All,

i am not able to disable a JSP in IE7 but its working fine in Mozilla can any one guide me please
14 years ago
JSP
<util:tableColumn columnClass="long" property="replaceChkBoxHeader" headerCheckBoxOnClick="selectAll()">
<nested:checkbox property="selected"/>
<nested:hidden property="id"/>
</util:tableColumn>

i am using this for check box
14 years ago
Hi All,

I have a JSP page in that there are checkboxes for the user to select a particular record .

As now the problem is when user has select the particular record in Page 1 and when go to Page 2 and if he come back (cutsom back button )to page 1 the selected particular is not checked.... how make it to selected...
14 years ago
function checkAll()
{


var chkBox = document.forms['orderData'].elements, z = 0;
for(z=0; z<chkBox.length;z++)
{
if(chkBox[z].type == 'checkbox' && chkBox[z].name != 'replaceChkBoxHeader')
{
chkBox[z].checked = true;
}
}

}
function uncheckAll()
{
var chkBox = document.forms['orderData'].elements, z = 0;
for(z=0; z><chkBox.length;z++)
{
if(chkBox[z].type == 'checkbox' && chkBox[z].name != 'replaceChkBoxHeader')
{
chkBox[z].checked = false;
}
}
}

addOnloadFunction(checkAll);


><div class="button_table">
<html:button styleClass="button" value="checked" property="replaceall" onclick="checkAll(this);" ><util:msg key="order.label.replaceall" /></html:button>
<html:button styleClass="button" value="unChecked" property="replacenone" onclick="uncheckAll(this);" ><util:msg key="order.label.replacenone" /> </html:button>
</div>

this is the code which i implemented..as i am calling addOnloadFunction as checkAll, so when i hit back button,the page reload and call again the checkAll. but i do not wnat check box to be checked.
14 years ago
The one which i create custom back button .
14 years ago
Hi friends,

In my Struts Application, i am Using check boxes in some jsp .
The problem which i am facing i will explain with below example.

for example:

i have three JSP's called "first.jsp","second.jsp","third.jsp"
from the "first.jsp" if i hit next button it goes to "second.jsp" in which i have a bunch of
Check boxes which should default to checked and i hit next it goes to "third.jsp" , then i hit back
it should come back to "second.jsp".but now the check boxes should be unchecked .


the problem i am facing is not able to uncheck the checkbox when i come back.


Presently i calling addOnLoadFunction(checkAll) to check all. because of this addOnLoadFunction().the check boxes are
checked when i come back..which i do not want to happen. should be unchecked.



14 years ago
Hi,

I have a drop down box in my struts JSP pages. Depending on my selection few fields should be mandatory. If I select different value from the drop down, then other few fields should be mandatory. How to do this using java script?
hi all,

I am using Date() to display the current date on my page. It displays as "Fri May 27 08:58:21 2005"

Is there i can use to format this to display as '05/27/2005' instead?

using Javascript
Hi All,
i want to make a client side validation for the date using common validator in struts.

In my application i don't want to select future date(ie suppose today's date is 4 , then i should not select 5).suppose if i select future date it should pop an error message..

i don't want to do it on server side.

Please i need your suggestion for this.
15 years ago
Hi,

here is more clear about my application

two drop down 1) request order
2) default order

when i select request order few fields are displaying like
1) representatives to create orders of this type
2) products to be added to orders
3)procedure to be selected

and when i select default order few fields should not display
1) representatives to create orders of this type
2) products to be added to orders

should not display the third field..

so how can i do this using JavaScript. please give me sample code .
15 years ago
Hi,
In my application, i have two drop down buttons, when i select one all fields are displayed,that's fine. but when i select the other drop down button only few fields should display. how can i hide the remaining fields..
and even how to reload the page when i select the other drop down.

ALL these changes should be made in struts JSP.
15 years ago
Hi ,

Which is the Best book to learn Struts?
15 years ago
Is it possible to create mulitple instance of one Action
Class in struts?
15 years ago
Is Struts Thread Safe?
15 years ago