Re: Client Side Validation

2006-08-03 Thread Irwan Nurwandi
Dear Chetan Look at your bean form definition in your validation.xml if you specify the form bean like this : formset form name=attendeeDetailsForm /form /formset then you should call generated javascript with this html:javascript formName=attendeeDetailsForm/ the first

RE: Struts based opensource e-Learning/Distance Learning framework

2006-08-03 Thread Tejas Bavishi
Hi I doubt if there are any ready made frameworks such as the ones you are looking for. Probably, you are going to have to write one on your own. Also, you can publish the framework once done or may be start it as a project on sourceforge. It will be interesting to see what others have to say on

RE: Client Side Validation

2006-08-03 Thread Chetan Pandey
I have changed the name to attendeeDetailsForm everywhere as you have suggested And have html:form action=/addAttendeeDetails onsubmit=return validateAttendeeDetailsForm(this) But this is not helping me still. I only get Server side validation, no Client Side Validation. Thanks. Chetan

Re: html:optionsCollection problem

2006-08-03 Thread Francisco Exposito Aguilera
Thanks a lot for you help! I've got it!!! At the end my problem was that the info didn't arrive to the session. First I've checked if info came to the jsp with c:out and then I've use the html:select... From: Aiping [EMAIL PROTECTED] Reply-To: Struts Users Mailing List

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-03 Thread apka2109
Hi Ted, I downloaded xworks 1.1.3. The exception has changed now to : [Servlet Error]-[Filter [action2]: could not be initialized]: java.lang.NoClassDefFoundError: com/opensymphony/xwork2/config/ConfigurationProvider Can you tell me whats wrong. I'll also try to debug but right now I am

BeanUtils copyProperties - copying vector

2006-08-03 Thread chamal desilva
Hi, I have four classes. public class AccountForm { private String accNum; } public class Account { private String accNum; } public class CustomerForm { private String custRef = ; private Vector accounts= null;//Contains objects of AccountForms classes //Get, set methods }

i18n algorithm and taglibs

2006-08-03 Thread Adam Hardy
I am writing a taglib at the moment to do some complex display logic and I need to get at the message resources. Please correct me if I am wrong but it seems that under some circumstances there can be different Locales (or sub-locales) available from different places in the servlet container

Reg Struts-Shale Framework

2006-08-03 Thread Jeevan Kumar Kade
Hi, Is there is major differeence between Struts-Shale framework and JSF. Please, categorize and differentiate on this. Thanks in Advance Jeevan Kumar __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: DHTML and Struts

2006-08-03 Thread Puneet Lakhina
Any form elements created dynamically on the client-side will have no intrinsic link to the ActionForm. However, this is not necessarily a problem... imagine if your ActionForm has this in it: private String firstName; public void setFirstName(String inFirstName) { firstName = inFirstName; }

Struts-Shale

2006-08-03 Thread Jeevan Kumar Kade
Hi, Is there is major differeence between Struts-Shale framework and JSF. Please, categorize and differentiate on this. Thanks in Advance Jeevan Kumar - Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta.

Re: DHTML and Struts

2006-08-03 Thread Puneet Lakhina
On 8/3/06, Puneet Lakhina [EMAIL PROTECTED] wrote: Any form elements created dynamically on the client-side will have no intrinsic link to the ActionForm. However, this is not necessarily a problem... imagine if your ActionForm has this in it: private String firstName; public void

ParserUtils: warning org.xml.sax.SAXParseException error

2006-08-03 Thread Patil, Sheetal
hi all currently i am facing ParserUtils: warning org.xml.sax.SAXParseException message while compiling any jsp page. after jsp file is compiled this message dosenot come for next request to jsp page. i am developing application from struts. currently i used JFreeChart to design some chart. for

[ANN] JAVAWUG : WebWork in Action The Lost MiniDV Patrick Lightbody BAY CHI

2006-08-03 Thread Peter . Pilgrim
Hi I have recently recovered a MiniDV tape of Patrick Lightbody's presentation of ``WebWork / Struts 2.0 in Action'' at VeriSign's Mountain View office. I thought I had lost that first hour of tape on my travels to northern California, but I found it in the suitcase comparant, and then

Struts + Spring 2.0

2006-08-03 Thread Nicolas De Loof
To those of you that are using Struts with Spring, I've searched a way to make my actions hot-reloadable (no recompile neither redeploy) for quick prototyping using Spring 2.0 groovy scripted bean, without having to hardly change my existing actions and configuration. I've found a not so

Re: ParserUtils: warning org.xml.sax.SAXParseException error

2006-08-03 Thread Thomas Joseph
I know this is not the real solution you want but, one workaround could be pre-compiling your JSPs, using Ant (or Maven). This could pin point if there is error in your JSP itself. Morover, then there is no runtime compilation. Thanks and Regards, Thomas Joseph Kott Software Pvt. Ltd. |

RE: ParserUtils: warning org.xml.sax.SAXParseException error

2006-08-03 Thread Patil, Sheetal
Hi thanks for reply, I have already gone through this solution. I have compiled all my jsp's using probe. I think this is related to somewhat .xml's . -Original Message- From: Thomas Joseph [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 7:14 PM To: Struts Users Mailing List

Browser History by HTTP-REFERER

2006-08-03 Thread Raghuveer
In my Struts Web application i need to restict the user accessing pages from Browser History. When i access any page from Browser History i get http-referer=null So, I am checking this by below code on Server side in All my execute method in Struts Action File .

RE: validate integer with a comma thousands seperator using Validator

2006-08-03 Thread fea jabi
can someone help me with this please? From: fea jabi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: user@struts.apache.org Subject: validate integer with a comma thousands seperator using Validator Date: Wed, 02 Aug 2006 10:09:19 -0400 Using struts validator.

Re: Struts + Spring 2.0

2006-08-03 Thread Wendy Smoak
On 8/3/06, Nicolas De Loof [EMAIL PROTECTED] wrote: To those of you that are using Struts with Spring, I've searched a way to make my actions hot-reloadable (no recompile neither redeploy) for quick prototyping using Spring 2.0 groovy scripted bean, without having to hardly change my existing

Re: DHTML and Struts

2006-08-03 Thread Frank W. Zammetti
Yeah, leave it to IE to not work with DOM-compliant code :) I guess I only tried it in FF, which is odd since I don't generally use FF (it was probably just open at the time!). Glad you got it working! Frank Puneet Lakhina wrote: On 8/3/06, Puneet Lakhina [EMAIL PROTECTED] wrote: Any

RE: Browser History by HTTP-REFERER

2006-08-03 Thread George.Dinwiddie
Do you realize that browsers are not required to send a Referer header? And that many proxies strip out such a header? You will have far better success if you create a robust application that can do the correct thing even if URLs are received out of the expected order. Trying to hamstring the

Re: Struts + Spring 2.0

2006-08-03 Thread Nicolas De Loof
Have you looked at Struts Scripting? It would be interesting to see how your approach differs from this. (And whether Struts Scripting works with Spring 2.0 the way you need it to.) I've looked a Struts-scripting, but AFAIK this requires me to rewrite all my struts-config.xml to set the

Re: Browser History by HTTP-REFERER

2006-08-03 Thread Antonio Petrelli
[EMAIL PROTECTED] ha scritto: Do you realize that browsers are not required to send a Referer header? And that many proxies strip out such a header? And referer can be easily spoofable ;-) http://refspoof.mozdev.org/ - To

RE: Accepting multiple date masks with the date validator

2006-08-03 Thread Adam Gordon
IIOC, the only way you can do this with the stock validator is to use mask rather than date as the validator. Then, you can use a regex to dictate your mask. I'll warn you though, if you use a regular expression it's going to be VERY long because it will also need to validate that the date

Exposing an attribute using tiles

2006-08-03 Thread Per Jørgen Walstrøm
hello list, I have the following code: tiles:insert definition=myLayout tiles:put name=body type=string logic:iterate id=outageElement name=searchForm property=region1Papers tiles:insert page=/nextPage.jsp flush=false/ /logic:iterate /tiles:put /tiles:insert and my

RE: Exposing an attribute using tiles

2006-08-03 Thread Samere, Adam J
Tiles assembles pages using dynamic (runtime) inclusion. The logic:iterate tag defines a page scoped attribute under the key specified by the id tag attribute. The nextPage.jsp will have it's own pageContext, so the outageElement is not visible. Perhaps you could put the outageElement into

Re: Exposing an attribute using tiles

2006-08-03 Thread Antonio Petrelli
Per Jørgen Walstrøm ha scritto: tiles:insert definition=myLayout tiles:put name=body type=string logic:iterate id=outageElement name=searchForm property=region1Papers tiles:insert page=/nextPage.jsp flush=false/ /logic:iterate /tiles:put /tiles:insert and my

RE: validate integer with a comma thousands seperator using Validator

2006-08-03 Thread Givler, Eric
You could create another validator, and inside that perform a stripping of non-numeric characters (stripCommas), then execute code similar to the existing long range validator like this: /** * Determines if a formatted numeric value is between a range as defined by * the

Re: Accepting multiple date masks with the date validator

2006-08-03 Thread Scott Van Wart
Adam Gordon wrote: IIOC, the only way you can do this with the stock validator is to use mask rather than date as the validator. Then, you can use a regex to dictate your mask. I'll warn you though, if you use a regular expression it's going to be VERY long because it will also need to

Re: Accepting multiple date masks with the date validator

2006-08-03 Thread Monkeyden
HAHA! I would have done the same thing. I don't want things like that (regexp) creeping around my application, even if I do only have to touch it once. Ech! shivers On 8/3/06, Scott Van Wart [EMAIL PROTECTED] wrote: Adam Gordon wrote: IIOC, the only way you can do this with the stock

Thread-safe MessageResources[Factory]

2006-08-03 Thread Scott Van Wart
I'm implementing my own MessageResources and MessageResourcesFactory-derived classes. Do these need to be thread-safe, specifically, the 'String MessageResources.getMessage( Locale locale, String key )'? Thanks, Scott - To

Re: Accepting multiple date masks with the date validator

2006-08-03 Thread Adam Gordon
Heh. Regular Expressions aren't for everyone - I happen to work w/ two engineers who live and die by them. In your bean setter for the date, I'd make sure no exceptions could be thrown, or handle them - the code I took over from an engineer we had that left had this issue and it took me

Re: Struts-Shale

2006-08-03 Thread Craig McClanahan
On 8/3/06, Jeevan Kumar Kade [EMAIL PROTECTED] wrote: Hi, Is there is major differeence between Struts-Shale framework and JSF. Please, categorize and differentiate on this. Your best bet is to ask this kind of question on the Shale user mailing list[1] since Shale is now a top level

displaying Date, BigDecimal as html:text

2006-08-03 Thread kkumar
Hello, I saw that bean:write has a format attribute for formatting dates and dollar values. But I didn't see similar thing for html:text. If my bean has a property called amount of type BigDecimal, and I want to display that as a html:text for the user to modify the value, How can I format it?

how to pass attribute values from bean in tiles

2006-08-03 Thread mosho
Hi, I have property pageTitle in my java bean. How can I pass that value to tile attribute? i have xml file, where I am defining my tile definitions. For example, if I include tiles:insert attribute=title beanName=pageTitle beanProperty=common.Page ignore=true/ Thanks -- View this message

Re: displaying Date, BigDecimal as html:text

2006-08-03 Thread Puneet Lakhina
Also, if the user leaves the html:text field for BigDecimal as blank, I get an exception (string-BigDecimal conversion exception). So, is the solution to this is to make all formbean properties to be String type? you coud do something like BigDecimal bigDecimalProperty; public

RE: How to set tiles attribute dynamically?

2006-08-03 Thread mosho
Neil, I am trying to do same thing my page_title comes from the db and it depends on the parameter. I fail to understand, how are you doing it? Do you have some example code. You are creating another class as MyController? Thanks -- View this message in context:

Re: Struts based opensource e-Learning/Distance Learning framework

2006-08-03 Thread Christopher Goldman
On Thu, 2006-08-03 at 10:25 +0530, Raghu Kanchustambham wrote: Hi, I am interested in building a e-Learning/Distance learning framework. Was wondering if there is any framework that exists that I can use as a starting point. First preference would be for a struts based application since I

Re: Accepting multiple date masks with the date validator

2006-08-03 Thread Scott Van Wart
Adam Gordon wrote: Heh. Regular Expressions aren't for everyone - I happen to work w/ two engineers who live and die by them. In your bean setter for the date, I'd make sure no exceptions could be thrown, or handle them - the code I took over from an engineer we had that left had this issue

session lost between JSP and Struts

2006-08-03 Thread Jin Chen
I have a login.jsp page and it directs to welcome.jsp page. Inside welcome.jsp page, it has one link to call struts action and another link to call another jsp. All jsp and struts are running within the same browser. However, I debug and find struts one always creates a new session, because I

Validator not getting called and I can't see why

2006-08-03 Thread Bart Busschots
I'm either missing something stupid (which is always possible) or I've managed to break the validator. I have an app that uses validator all over the place and it's working fine in all my other actions but for this one action it is simply not getting called. I can't see any difference between

Re: Validator not getting called and I can't see why

2006-08-03 Thread Matt Kurjanowicz
Do you have the property page being submitted with your form: html:hidden property=page value=1/ Also, are you sure that the validation isn't working and the error messages aren't getting displayed? Can you send the jsp source? -Matt On 8/3/06, Bart Busschots [EMAIL PROTECTED] wrote: I'm

Re: Struts + Spring 2.0

2006-08-03 Thread Wendy Smoak
On 8/3/06, Nicolas De Loof [EMAIL PROTECTED] wrote: I've looked a Struts-scripting, but AFAIK this requires me to rewrite all my struts-config.xml to set the Action java source as parameter. Lot's of my action already use a parameter and I don't want to change my projet (huge) struts-configs.

Determine whether or not a string is a Tiles definition

2006-08-03 Thread Scott Van Wart
Is there a method anywhere I can use to quickly determine whether or not a given String is a tiles definition? - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: session lost between JSP and Struts

2006-08-03 Thread Danilo Marchiori
check the cookies permission on your browser.. and try in other browser, just to be shure. On 8/3/06, Jin Chen [EMAIL PROTECTED] wrote: I have a login.jsp page and it directs to welcome.jsp page. Inside welcome.jsp page, it has one link to call struts action and another link to call another

can not enable I18N properties

2006-08-03 Thread Lixin Chu
Hi, I am trying to enable I18N in my struts based application, here is what I have done: - added a LocaleFilter, which I copied from Appfuse: String locale = request.getParameter(locale); Locale preferredLocale = (*null* ==

Re: can not enable I18N properties

2006-08-03 Thread Lixin Chu
I tried Appfuse on my machine, it works. so I assume the browser configuration is fine. I use Tiles, Struts, and Spring framework in my application btw.