URL and path validation
Hello. I need to validate URL format at the same time path format URL Format: http://yahoo.com path Format: /pages/entry.jsp /pages/entry.do ../pages/entry.do I already made URL validation using the following field property=programLinkUrl depends=url msg name = url key=Invalid URL resource = false/ var var-namenofragments/var-name var-valuetrue/var-value /var var var-nameschemes/var-name var-valuehttp,https,ftp,telnet/var-value /var /field This seems working for URL validation, but it it doesnt work for the path validation. I tried to use mask but it also not works? Do u guys have any idea? Hiro -- View this message in context: http://www.nabble.com/URL-and-path-validation-tf4750405.html#a13583532 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Displaying table contents
Hello guys.. Please help me in displaying the contents of the table. I have the following in my database: 3 radio buttons (siteName/siteSequence) each siteSequence has the following select options (siteTemplate/siteTemplateSequence) Example: siteName siteSeqsiteTemplate siteTemplateSequence X 1 A,B,C 1 Y 2 D,E,F 2 Z 3 G,H,I3 For every siteList(radio button), it will display the corresponding siteTemplate Now I have this code in my JSP c:forEach items=${siteList} var=element tr tdhtml:radio property=siteSequence value=${element.siteSequence}/c:out value=${element.siteName}//td td html:select property=siteTemplateSequence html:option value=/html:option c:forEach items=${templateList} var=template html:option value=${template.siteTemplateSequence}${template.siteTemplate}/html:option /c:forEach /html:select /td /tr /c:forEach In the above code, the 3 buttons are displayed and each has their select options, but the contents of each options does not corresponds to each siteSequence, instead it displays all the siteTemplate for each select options (A,B,C,D,E,F,G,H,I).. How will I connect the siteSequence to the siteTemplate so that it will display only the corresponding siteTemplate for each siteName? Please help me.. Hiro -- View this message in context: http://www.nabble.com/Displaying-table-contents-tf4480149.html#a12774871 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Displaying table contents
there are some mistakes in the siteTemplateSequence. WRONG: siteName siteSeqsiteTemplate siteTemplateSequence X 1 A,B,C 1 Y 2 D,E,F 2 Z 3 G,H,I3 CORRECT: siteName siteSeqsiteTemplate X 1 A,B,C Y 2 D,E,F Z 3 G,H,I siteTemplate siteTemplateSequence A 1 B 2 C 3 .. .. .. .. I 9 -- View this message in context: http://www.nabble.com/Displaying-table-contents-tf4480149.html#a12774960 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date validation (month and day)
I already solved it, in my form I added another field (maxDay1 and maxDay2) that will return OK and NG, i used this field in my validation.xml using validwhen, when the field is equal to OK, then it is valid, if it is NG, it is invalid.. This is my code, it also checks number of days in february when it is leap year or not. // validate number of days for month (ViewStartDate) public String getMaxDay1(){ Calendar cal = new GregorianCalendar(); cal.set(Calendar.MONTH, Integer.parseInt(cal1_Month)-1); cal.set(Calendar.YEAR, Integer.parseInt(cal1_Year)); maxDay1 = OK; //初期値 int maxDayInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH); if (Integer.parseInt(cal1_Day) maxDayInMonth) maxDay1 = NG; return maxDay1; } public void setMaxDay1(String maxDay1){ this.maxDay1 = maxDay1; } // validate number of days for month (ViewEndDate) public String getMaxDay2(){ Calendar cal = new GregorianCalendar(); cal.set(Calendar.MONTH, Integer.parseInt(cal2_Month)-1); cal.set(Calendar.YEAR, Integer.parseInt(cal2_Year)); maxDay2 = OK; //初期値 int maxDayInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH); if (Integer.parseInt(cal2_Day) maxDayInMonth) maxDay2 = NG; return maxDay2; } public void setMaxDay2(String maxDay2){ this.maxDay2 = maxDay2; } -- View this message in context: http://www.nabble.com/Date-validation-%28month-and-day%29-tf4376264.html#a12514004 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date validation (month and day)
My problem now is how to validate the entered date so that it will check if the EndDate is higher than the StartDate.. -- View this message in context: http://www.nabble.com/Date-validation-%28month-and-day%29-tf4376264.html#a12514017 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Date validation (month and day)
ello guys! How would I check my date input so that it will validate the maximum days per month. For example: Jan, Mar, May, Aug, Oct, Dec (31 days) April, June,Sept, Nov (30 days)... Please share me your ideas.. Addtional: Separate field name for month and day. Thank you Hiro -- View this message in context: http://www.nabble.com/Date-validation-%28month-and-day%29-tf4376264.html#a12473964 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Concerning index on validating under logic:iterate
Guys,i have this error saying that indexed is invalid for my multibox attribute this is my JSP logic:iterate name=metaEntryConfirmForm indexId=index id=item1 property=items1 tr tdhtml:multibox indexed=true property=bitratebean:write name=item1//html:multibox/td tdhtml:text property=filename indexed=true size=50 disabled=true//td tdhtml:multibox property=haishin indexed=true disabled=truebean:write name=metaEntryConfirmForm property=haishinValue[0]//html:multibox/td tdhtml:multibox property=haishin indexed=true disabled=truebean:write name=metaEntryConfirmForm property=haishinValue[1]//html:multibox/td tdhtml:multibox property=haishin indexed=true disabled=truebean:write name=metaEntryConfirmForm property=haishinValue[2]//html:multibox/td /tr /logic:iterate what seems to be the problem? -- View this message in context: http://www.nabble.com/Concerning-index-on-validating-under-logic%3Aiterate-tf4223157.html#a12013480 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validating using indexedListProperty
hello guys..its me again.. I have a problem regarding my validation of html:text which is inside the iteration and the validation will depends if the corresponding checkbox has been selected. this is my JSP bitratebox is for the multibox and bitrateTxt is for the text logic:iterate name=metaEntryConfirmForm indexId=index id=item1 property=items1 tr tdhtml:multibox property=bitrateboxbean:write name=item1//html:multiboxbean:write name=item1//td tdhtml:text property=%=bitrateTxt[+index+]% size=50//td /tr /logic:iterate when I tried to write it in my validation.xml a FOR bitrateTxt[0] when bitratebox[0] is checked field property=bitrateTxt[0] indexedListProperty=items1 depends=requiredif arg name = requiredif key = 「500K用ファイル名」を入力 resource = false position=0/ var var-namefield[0]/var-name var-valuebitratebox/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-value500k/var-value /var /field I used bitrateTxt[0] because the generated html will look like this tr tdinput type=checkbox name=bitratebox value=500k disabled=disabled500k/td tdinput type=text name=bitrateTxt[0] size=50 value= disabled=disabled/td tdinput type=checkbox name=haishinselect value=goohigashi0 disabled=disabled/td tdinput type=checkbox name=haishinselect value=goonishi0 disabled=disabled/td tdinput type=checkbox name=haishinselect value=gooBB0 disabled=disabled/td /tr Actionform private String[] bitratebox = {}; private String[] items1 = {500k,1M,2M,5M,6M}; public String[] getBitratebox() { return this.bitratebox; } public void setBitratebox(String[] bitratebox) { this.bitratebox = bitratebox; } public String[] getItems1(){ return this.items1; private String[] bitrateTxt = {}; public String[] getBitrateTxt() { return this.bitrateTxt; } public void setBitrateTxt(String[] bitrateTxt) { this.bitrateTxt = bitrateTxt; } Is my validdation correct? I cant make this work properly.. Please teach me the incorrect part. Thank you.. -- View this message in context: http://www.nabble.com/Validating-using-indexedListProperty-tf4204569.html#a11959696 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:text inside logic:iterate
hello guys..Im Hiroyuki and im new here.. Hope you could help me with some of my inquiries. I have this JSP logic:iterate name=metaEntryConfirmForm indexId=index id=item1 property=items1 tr tdhtml:multibox property=bitrateboxbean:write name=item1//html:multiboxbean:write name=item1//td tdhtml:text name=item1 property=bitrateTxt indexed=true size=25//td tdhtml:multibox property=haishinselect value=%=goohigashi+index%//td tdhtml:multibox property=haishinselect value=%=goonishi+index%//td tdhtml:multibox property=haishinselect value=%=gooBB+index%//td /tr /logic:iterate my action form contains: private String[] bitratebox = {}; private String[] items1 = {500k,1M,2M,5M,6M}; public String[] getBitratebox() { return this.bitratebox; } public void setBitratebox(String[] bitratebox) { this.bitratebox = bitratebox; } public String[] getItems1(){ return this.items1; } When i try to run it, it produces the ff error javax.servlet.ServletException: Bean items1 のプロパティ bitrateTxt に対するゲッターメソッドがありません which means no getter method for Bean item1 property bitrate. What is wrong with my code? please help me -- View this message in context: http://www.nabble.com/html%3Atext-inside-logic%3Aiterate-tf4199265.html#a11943047 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:text inside logic:iterate
hi but I also declares bitrateText in my actionform.. Thank you for your reply.. nuwan chandrasoma-2 wrote: Hi, You dont have a getter method for bitrateTxt property in the bean your trying to access (item1). Thanks, Nuwan Hiroyuki Suzuki wrote: hello guys..Im Hiroyuki and im new here.. Hope you could help me with some of my inquiries. I have this JSP logic:iterate name=metaEntryConfirmForm indexId=index id=item1 property=items1 tr tdhtml:multibox property=bitrateboxbean:write name=item1//html:multiboxbean:write name=item1//td tdhtml:text name=item1 property=bitrateTxt indexed=true size=25//td tdhtml:multibox property=haishinselect value=%=goohigashi+index%//td tdhtml:multibox property=haishinselect value=%=goonishi+index%//td tdhtml:multibox property=haishinselect value=%=gooBB+index%//td /tr /logic:iterate my action form contains: private String[] bitratebox = {}; private String[] items1 = {500k,1M,2M,5M,6M}; public String[] getBitratebox() { return this.bitratebox; } public void setBitratebox(String[] bitratebox) { this.bitratebox = bitratebox; } public String[] getItems1(){ return this.items1; } When i try to run it, it produces the ff error javax.servlet.ServletException: Bean items1 のプロパティ bitrateTxt に対するゲッターメソッドがありません which means no getter method for Bean item1 property bitrate. What is wrong with my code? please help me - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/html%3Atext-inside-logic%3Aiterate-tf4199265.html#a11946326 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:text inside logic:iterate
here is the declaration of bitrateTxt in my actionform private String bitrateTxt; public String getBitrateTxt() { return this.bitrateTxt; } public void setBitrateTxt(String bitrateTxt) { this.bitrateTxt = bitrateTxt; } private String[] bitratebox = {}; private String[] items1 = {500k,1M,2M,5M,6M}; public String[] getBitratebox() { return this.bitratebox; } public void setBitratebox(String[] bitratebox) { this.bitratebox = bitratebox; } public String[] getItems1(){ return this.items1; } Hiroyuki Suzuki wrote: hi but I also declares bitrateText in my actionform.. Thank you for your reply.. nuwan chandrasoma-2 wrote: Hi, You dont have a getter method for bitrateTxt property in the bean your trying to access (item1). Thanks, Nuwan Hiroyuki Suzuki wrote: hello guys..Im Hiroyuki and im new here.. Hope you could help me with some of my inquiries. I have this JSP logic:iterate name=metaEntryConfirmForm indexId=index id=item1 property=items1 tr tdhtml:multibox property=bitrateboxbean:write name=item1//html:multiboxbean:write name=item1//td tdhtml:text name=item1 property=bitrateTxt indexed=true size=25//td tdhtml:multibox property=haishinselect value=%=goohigashi+index%//td tdhtml:multibox property=haishinselect value=%=goonishi+index%//td tdhtml:multibox property=haishinselect value=%=gooBB+index%//td /tr /logic:iterate my action form contains: private String[] bitratebox = {}; private String[] items1 = {500k,1M,2M,5M,6M}; public String[] getBitratebox() { return this.bitratebox; } public void setBitratebox(String[] bitratebox) { this.bitratebox = bitratebox; } public String[] getItems1(){ return this.items1; } When i try to run it, it produces the ff error javax.servlet.ServletException: Bean items1 のプロパティ bitrateTxt に対するゲッターメソッドがありません which means no getter method for Bean item1 property bitrate. What is wrong with my code? please help me - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/html%3Atext-inside-logic%3Aiterate-tf4199265.html#a11956936 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:text inside logic:iterate
hello..it works properly now. Ive changed html:text syntax to tdhtml:text property=%=bitrateTxt[+index+]% size=25//td and declared bitrateTxt in my actionform as private String[] bitrateTxt = {}; public String[] getBitrateTxt() { return this.bitrateTxt; } public void setBitrateTxt(String[] bitrateTxt) { this.bitrateTxt = bitrateTxt; } Hiroyuki Suzuki wrote: here is the declaration of bitrateTxt in my actionform private String bitrateTxt; public String getBitrateTxt() { return this.bitrateTxt; } public void setBitrateTxt(String bitrateTxt) { this.bitrateTxt = bitrateTxt; } private String[] bitratebox = {}; private String[] items1 = {500k,1M,2M,5M,6M}; public String[] getBitratebox() { return this.bitratebox; } public void setBitratebox(String[] bitratebox) { this.bitratebox = bitratebox; } public String[] getItems1(){ return this.items1; } Hiroyuki Suzuki wrote: hi but I also declares bitrateText in my actionform.. Thank you for your reply.. nuwan chandrasoma-2 wrote: Hi, You dont have a getter method for bitrateTxt property in the bean your trying to access (item1). Thanks, Nuwan Hiroyuki Suzuki wrote: hello guys..Im Hiroyuki and im new here.. Hope you could help me with some of my inquiries. I have this JSP logic:iterate name=metaEntryConfirmForm indexId=index id=item1 property=items1 tr tdhtml:multibox property=bitrateboxbean:write name=item1//html:multiboxbean:write name=item1//td tdhtml:text name=item1 property=bitrateTxt indexed=true size=25//td tdhtml:multibox property=haishinselect value=%=goohigashi+index%//td tdhtml:multibox property=haishinselect value=%=goonishi+index%//td tdhtml:multibox property=haishinselect value=%=gooBB+index%//td /tr /logic:iterate my action form contains: private String[] bitratebox = {}; private String[] items1 = {500k,1M,2M,5M,6M}; public String[] getBitratebox() { return this.bitratebox; } public void setBitratebox(String[] bitratebox) { this.bitratebox = bitratebox; } public String[] getItems1(){ return this.items1; } When i try to run it, it produces the ff error javax.servlet.ServletException: Bean items1 のプロパティ bitrateTxt に対するゲッターメソッドがありません which means no getter method for Bean item1 property bitrate. What is wrong with my code? please help me - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/html%3Atext-inside-logic%3Aiterate-tf4199265.html#a11957193 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]