JavaScript Integer Validation - Leading zeros

2005-02-16 Thread snekse
Has anyone else noticed the JavaScript function for Integer validation does goofy things when you have a leading zero? Try passing these number into an Integer field: 045 075 078 085 The first 2 will pass, the second 2 will fail. After looking at the source I found out that the JavaScript funct

Re: JavaScript Integer Validation - Leading zeros

2005-02-17 Thread snekse
> Although JavaScript is not Java, the language designers adopted the > same syntax for integer literals that is found in Java (and C/C++/C#) > ... integer literals with a leading 0 are interpreted to be octal > literals, unless they start with 0x or 0X to indicate hexadecimal > literals. > > Crai

Re: Struts Studio

2005-02-18 Thread snekse
tool > costs in time savings alone. > > Brian Which program allows you to do this? I've never really seen this in action with a web app. Are you linking the IDE to the Web Server somehow or does the IDE have a built in web server? -snekse --

Embedding messages within messages

2005-03-22 Thread snekse
Can you do something like this inside your message-resources files? //--- applicationName=My Application error.application=You have run into an error caused the the ${applicationName} application. //-

Where to send !isTokenValid(request)

2005-01-21 Thread snekse
I have a Best Practices type question. Where should I send the user if isValidToken returns FALSE? Here is the flow we have for this application. 1. User searches for a profile 2. List of matching profiles is displayed 3. User clicks the EDIT link for the profile they want to update 4. Profile i

Re: Where to send !isTokenValid(request)

2005-01-24 Thread snekse
Thanks for your response. It was helpful since it brought up some other instances that I hadn't really thought of, such as allowing a double submit for certain actions. > > Here is the flow we have for this application. > > > > 1. User searches for a profile > > 2. List of matching profiles is d