User Profile
Collapse
-
any help regarding my post -
pagination problem
hi,
i need to implement pagination in my project..i m using struts2..in my jsp page im implementing pagination using javascript...it is showing error as 'rows is undefined'...i tried the same with sample its working fine..if i implement in my application it is showing error..
Code:<style type="text/css"> .pg-normal { color: #0000FF; font-weight: normal; text-decoration:
-
problem in validation cost in struts2
hi gud mrng,
in my application i had to do validation for cost im dng server-side validations..i used regex for cost..but im not getting validated can any one help me out..here is the code
Code:<field name="cost"> <field-validator type="regex"> <param name="expression"> ^\[0-9]+(\.\?[0-9]+)?$ </param> <message>Enter Valid Cost</message>
-
-
hi,
i changed the code as follows
Code:chkRate = /^[123456789]$/; if (chkRate.test(form.rate.value)){} else { alert('Invalid \" Rating \" Entry'); return false; }
Leave a comment:
-
required format is not coming for numbers
hi gud mrng,
in text box i need to enter numbers i.e., frm 0-9..and tht text box is take any no..but i need is i need an alert if i enter '0' and also if user enters '10' it shld take...only '10' and other nos. frm 1-9..can anyone help me out..here is my code.
Code:chkRate = /^[123456789]\d{1}$/; if (chkRate.test(form.rate.value)){} else { alert('Invalid \" Rating \" Entry');
-
-
hi,
i had done wht u suggested..but im not getting any alert msg that it is correct...cn u once chk my code.
Code:<script type="text/javascript"> function f(){ var re= /^[0-9]{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])/; var re1= /(\d{2}):(\d{2}):(\d{2})/; var el= document.getElementById('d'); var M= el.value.match(re); var M1= e1.value.match(re1); var msg= M+M1;
Leave a comment:
-
hi,
im chkng for both in the same text field nd i need to get in the text field as '2010-09-28 11:50:25 'like that format..i need that one..cn u suggest me where to changeLeave a comment:
-
problem in validating date nd time in same textfield
hi,
in my application i need to enter date nd time in the same textbox...if i run individually it is wrkng fine but wen i combine it is nt wrking fine...can anyone help me out
Code:<script type="text/javascript"> function f(){ var re= /^[0-9]{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])/; var re1= /^(\d{2}):(\d{2}):(\d{2})/; var el= document.getElementById('d'); var M= el.value.match(re);
-
hi,
i got it..i had another doubt that it is not validating the fields first..after clicking next it is validatingLeave a comment:
-
problem in validating other field
hi,
i m using Struts 2 in my application...i m doing validation...my problem is it is validating all the fields expect the last field..i used cost in my jsp page..it is getting validated but the next field of cost is not getting validated..here is the code
login.jsp
Code:<tr><td align="right" valign="top"> <s:label for="cost" value="Cost"/> </td><td>
-
-
i had done but im not getting..it getting down the first browse buttonLeave a comment:
-
hi gud afternoon,
i had wht u suggested but i need the 'Add' and 'Delete' buttons should come in one line i.e.,'Browse' 'Add' 'Delete'..cn u suggest me..here is the screen shot...Leave a comment:
-
hi,
i got it what i need..can u tell me tht add and delete should come aside browse button..i tried to place but it is not getting cn u tell me how to doLeave a comment:
-
hi,
i had attached the screen shot.in that im getting added browse buttons after 'Add','Delete' and 'Upload' buttons..but i need it immediately after first browse button..can u chk it where it goes wrong..here is the code.
Code:<div id="div2"> <table id="contentTable" align="center" width=610 cellspacing=0 cellpadding=3 border="0" style="border:1px solid gray">
Leave a comment:
-
-
i had attached the screen shot cn u look it nd provide me the solutionLeave a comment:
-
No activity results to display
Show More
Leave a comment: