Any Takers ?RE: Struts Validator and Select boxes

2004-03-26 Thread Janarthan Sathiamurthy
Any help/takers ? -Original Message- From: Janarthan Sathiamurthy Sent: Thursday, March 25, 2004 10:16 PM To: [EMAIL PROTECTED] Subject: Struts Validator and Select boxes Hi, I am using Struts validator. One page of mine has dates displayed as MM DD . All the above 3

RE: Struts Validator and Select boxes

2004-03-26 Thread Janarthan Sathiamurthy
). Niall - Original Message - From: Janarthan Sathiamurthy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:46 PM Subject: Struts Validator and Select boxes Hi, I am using Struts validator. One page of mine has dates displayed as MM DD . All the above 3

reload application.properties

2004-03-25 Thread Janarthan Sathiamurthy
Hi , How can i programmatically reload the application.properties file without a server restart/redeploy ? It happens as our clients may change the value of the keyes specified in the properties files. Does Struts provide any readymade class for this ? Thanks Regards, Janarthan S.

Struts Validator and Select boxes

2004-03-25 Thread Janarthan Sathiamurthy
Hi, I am using Struts validator. One page of mine has dates displayed as MM DD . All the above 3 are displayed in seprate combo/select boxes. I need to do some custom validations on these fields. I wrote a custom class for the same Looks like - public static boolean validateDates(Object

RE: Difference between ValidatorForm and ValidatorActionForm

2004-03-24 Thread Janarthan Sathiamurthy
Hi, ValidatorActionForm - This class extends ValidatorForm and provides basic field validation based on an XML file. The key passed into the validator is the action element's 'path' attribute from the struts-config.xml which should match the form element's name attribute in the validation.xml.

RE: Sycnhronizer Token- can someone explain this?Curre

2004-03-24 Thread Janarthan Sathiamurthy
Sandeep, What is this transaction attribute ? Please elaborate.. Regards, Janarthan S -Original Message- From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 5:47 PM To: Struts Users Mailing List Subject: RE: Sycnhronizer Token- can someone explain this?Curre

RE: html:javascript question

2004-03-24 Thread Janarthan Sathiamurthy
var myMessage = bean:write name=msg /; alert(myMessage) -Original Message- From: Daniel [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 6:23 PM To: Struts Users Mailing List Subject: html:javascript question I want to put the msg inside a javasript alert (popup with error

RE: Struts validator Regular Expressions

2004-03-24 Thread Janarthan Sathiamurthy
Hi, This is a good one to get started - http://weblogtoolscollection.com/regex/regex.php Best Regards, Janarthan S -Original Message- From: Joao Batistella [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 12:03 AM To: 'Struts Users Mailing List' Subject: Struts validator Regular

RE: are you sure?

2004-03-23 Thread Janarthan Sathiamurthy
Try with this - html:form action=/adddate name=dateForm type=nl.rinke.DateForm onsubmit=return areyousure() Should work -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 3:10 PM To: [EMAIL PROTECTED] Subject: are

Re: Cannot Create Iterator

2004-03-11 Thread Janarthan Sathiamurthy
Here is the solution - HashMap hMap = (HashMap) request.getSession().setAttribute(alpha,alpha); logic:iterate id=map collection=%= hMap % Regards, Janarthan S Craig Tataryn [EMAIL PROTECTED] wrote: Try this: When you iterate a map, the elements are of type Map.Entry

Struts-Validation and Property file

2004-03-11 Thread Janarthan Sathiamurthy
Hi, I am using Struts validator in my application. I have defined a properties file that has all the error messages for my application. I have mapped this file in my struts-config.xml file. I have created a new rule specific for my application. I have mapped this in my validation-rules.xml.

Form bean property as java variable in page ?

2004-03-11 Thread Janarthan Sathiamurthy
Hi, I have a form bean entry in my struts-config.xml, looks like - form-bean name=myForm type=org.apache.struts.validator.DynaValidatorForm form-property name=pageNumber type=java.lang.String initial=0 / form-property name=numberOfRows type=java.lang.String initial=0 / /form-bean I have a jsp

Re: Suggestion needed on good Struts book

2004-03-08 Thread Janarthan Sathiamurthy
Programming Jakarta Struts - OReilly [EMAIL PROTECTED] wrote:Hi, I am a newbie to Struts. I have been looking for books on Struts and found these on Amazon Programming Jakarta Struts - OReilly Struts in Action - Manning Struts Framework - Morgan Kaufmann Struts Survival Guide - ObjectSource

RE: JSF RI Final is out!

2004-03-05 Thread Janarthan Sathiamurthy
at: http://www.jamesholmes.com/JavaServerFaces/ Hope that helps, -James -Original Message- From: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 12:19 AM To: Struts Users Mailing List Subject: RE: JSF RI Final is out! Hi, How do i get started wiith JSF ?. Any

RE: JSF RI Final is out!

2004-03-04 Thread Janarthan Sathiamurthy
Hi, How do i get started wiith JSF ?. Any books ? Please advice Regards, Janarthan S Hookom, Jacob [EMAIL PROTECTED] wrote: I've come to the conclusion that I'm disappointed with JSF. Yes, I see what it's trying to accomplish, but it puts too much overhead in the JSP designer, you can't

Re: Populating form Elements from another object.

2004-02-25 Thread Janarthan Sathiamurthy
Hi, This is what i have understood - Button Click - An action class - Showing a form that needs to be populated. In the action class u may have got the desired data. Assciate the form bean to this action class. Doing this u can get a reference to the Action Form in the execute(). Now do -

Passing values via hyperlink

2004-02-23 Thread Janarthan Sathiamurthy
Hi, I have a report summary page in my application. Each row in the summary page corresponds to a particular report id. I have a hyperlink for each of the report. Clicking on which i display the report details. The catch is that there are some users to which a report belongs. Hence passing the

RE:Form creation

2004-02-23 Thread Janarthan Sathiamurthy
Hi, You need to associate your form bean with the action. So that in the execute() you can cast and get back the form. Regards, Janarthan S [EMAIL PROTECTED] wrote: Hi, Got a query about when ActionForm is created. In struts config I map appname/MyQueries.do URL to MyQueryAction class via

Re: using logic:iterate

2004-02-19 Thread Janarthan Sathiamurthy
Try This - logic:iterate id =emp name=EmpList offset=%= indexVar % length=%= lengthVar % Regards, Janarthan S Chaminda Fernando [EMAIL PROTECTED] wrote: I am trying to use EmpList,index and length values are set properly in session . But this throws following exception :

Re: JUnit test cases for struts

2004-02-18 Thread Janarthan Sathiamurthy
Hi, Try this - http://www.strutstestcase.sourceforge.net/ This is a testing framework extending JUnit. Regards, Janarthan S. Jitender Kumar C [EMAIL PROTECTED] wrote: Can anybody help me how I can proceed with writing JUnit Test cases for Struts Applications. Can I follow the same procedure

Re: perform vs execute

2004-02-16 Thread Janarthan Sathiamurthy
Hi, The reason perform is deprecated is, it can throw only exceptions of type ServletException and IOException. Whereas for the support of declarative exception handling in Struts 1.1, the execute() throws Exception. This is the main reason. Regards, Janarthan S Niall Pemberton [EMAIL

Re: Setting nocache

2004-02-12 Thread Janarthan Sathiamurthy
Hi, Your problem sounds like you are using a forward tag which might be like - forward name=success path=/my_page.jsp / Try this - forward name=success path=/zip_inquiry.jsp redirect=true / This should solve your repost problem. This is very beautifully explained in Chuck Cavances

RE: [OT] - Request against Session

2004-02-11 Thread Janarthan Sathiamurthy
Hi, Even i had this simillar problem. The solution explained below is the way out. Thanks, Janarthan S Wendy Smoak [EMAIL PROTECTED] wrote: From: Samyukta Akunuru [mailto:[EMAIL PROTECTED] Using session/hidden variables-what would be the best way to carry the array of selected checkboxes

Re: How to export the html table contents (records) to an Excel file.

2004-02-04 Thread Janarthan Sathiamurthy
Hi, The following link is a very good solution - http://jakarta.apache.org/poi/hssf/index.html Regards, Janarthan S [EMAIL PROTECTED] wrote: Hi, I have webpage (.jsp) which lists out 4 to 5 records (having say 4 to 5 columns) inside html table tag. This page, has an Export button, at the

Checkbox problem

2004-01-31 Thread Janarthan Sathiamurthy
Hi Group, I am using Struts 1.1 version. I have a page in which i display a set of checkboxes(10 checkboxes to be specific). All the checkboxes have the same name and have different values. I have an ActionForm for this. In the ActionForm, i have a String[] checkBoxArr to represent these