RE: Eclipse Editor and struts tags

2007-08-02 Thread Sahil Gupta
Hi,

Why don't you use MyEclipse. Download and install this. It will search for
ur Eclipse and get installed in the appropriate location. Then open all JSP
files and xml files using MyEclipse editor.

Sahil

-Original Message-
From: appel [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 02, 2007 3:22 PM
To: user@struts.apache.org
Subject: Eclipse Editor and struts tags


Hello,

I'm using Eclipse 3.2.2, isn't it possible to get tag insight, syntax
coloring, code completion etc. when editing JSP pages using struts-tags ?

It's currently just raw black text.
--
View this message in context:
http://www.nabble.com/Eclipse-Editor-and-struts-tags-tf4205171.html#a1196156
4
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Zip to FormFile

2007-01-16 Thread Sahil Gupta
Hi,

I have an Action that picks up a file from a JSP and does the processing
that is required. This is working fine. 
The code to pick up file is
resumeZipDir = (FormFile) Form.get("resumeZipDir");


Now I am calling the same Action from another Action, and I want the zip
file I have to be processed.
request.setAttribute("zip", tempZipPath); 
And then I called the same Action through
return mapping.findForward("myAction");

When myAction is loaded, it gives me an error as it is expecting FormFile
and I have set a File in request attribute.

Is there some way to go about it.

Can I convert Zip file to Form File?

Please Help

Sahil


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using 'Enter' in Validation-admin.xml

2006-09-25 Thread Sahil Gupta
Hi,

I have used masking in validation-admin.xml in my project. The problem
is that I want 'Enter' to be allowed to my Text Area on which masking is
done but masking does not allow me to do so. Please help me in this
context.

Thanks

 



RE: Validation on String[]

2006-09-21 Thread Sahil Gupta
 Hi,

Thanks a lot
Can I do put the validation with the help of validation.xml to a String[]

Regards,

Sahil Gupta


-Original Message-
From: Strachan, Paul [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 21, 2006 6:11 PM
To: Struts Users Mailing List
Subject: RE: Validation on String[]

  





in your action class:
 
ArrayList list = new ArrayList();
Location location = new Location();
location.setLocationName("A Location");
list.add(location);
dyForm.set("locations", list);
 
 
I'm not sure how to validate a simple array of strings (eg
java.lang.String[]) as the property attribute is required by the validator.

________

From: Sahil Gupta [mailto:[EMAIL PROTECTED]
Sent: Thu 21/09/2006 8:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation on String[]



Hi,

How can we use List or ArrayList in DynaValidator Forms?


Regards,

Sahil Gupta



-Original Message-
From: Li [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 3:57 PM
To: Struts Users Mailing List
Subject: Re: Validation on String[]

hi,
there is no such type : java.lang.String[], try to use List or ArrayList

On 9/21/06, Sahil Gupta <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have used a dyna form in which I have a property which is a 
> multi-select pick list defined as
>
> form-property name="location" type="java.lang.String[]
>
> Now I want to put validation (required and/or mask) on this. Can 
> anyone please guide me. I want it to show an error if the user clicks 
> on submit button without selecting anything in the picklist. I have 
> handled this validation in my Action but I want to do this through 
> validation.xml
>
>
>
> Regards,
>
> Sahil Gupta
>
>
>
>


--
When we invent time, we invent death.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**
This message is intended for the addressee named and may contain privileged
information or confidential information or both. If you are not the intended
recipient please delete it and notify the sender.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validation on String[]

2006-09-21 Thread Sahil Gupta
Hi,

How can we use List or ArrayList in DynaValidator Forms? 


Regards,

Sahil Gupta



-Original Message-
From: Li [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 21, 2006 3:57 PM
To: Struts Users Mailing List
Subject: Re: Validation on String[]

hi,
there is no such type : java.lang.String[], try to use List or ArrayList

On 9/21/06, Sahil Gupta <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have used a dyna form in which I have a property which is a 
> multi-select pick list defined as
>
> form-property name="location" type="java.lang.String[]
>
> Now I want to put validation (required and/or mask) on this. Can 
> anyone please guide me. I want it to show an error if the user clicks 
> on submit button without selecting anything in the picklist. I have 
> handled this validation in my Action but I want to do this through 
> validation.xml
>
>
>
> Regards,
>
> Sahil Gupta
>
>
>
>


--
When we invent time, we invent death.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validation on String[]

2006-09-21 Thread Sahil Gupta
Hi,
 
I have used a dyna form in which I have a property which is a
multi-select pick list defined as 

form-property name="location" type="java.lang.String[]

Now I want to put validation (required and/or mask) on this. Can anyone
please guide me. I want it to show an error if the user clicks on submit
button without selecting anything in the picklist. I have handled this
validation in my Action but I want to do this through validation.xml

 

Regards,

Sahil Gupta

 


RE: Jasper Reports

2006-09-12 Thread Sahil Gupta
Thanks a lot for the information. Will try and get back to u for further
assistance 


Regards,

Sahil Gupta

Extn : 339
Mobile: 91 9899468288
Email : [EMAIL PROTECTED] 
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose or take any action based on this message or any
information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 12, 2006 5:54 PM
To: Struts Users Mailing List
Subject: RE: Jasper Reports

JasperAssistant's support is questionable at this point, iReports has become
part of the JAsperSoft bundle and in my humble opinion is a better IDE.
Additionally, there is a "How To" booklet available for JasperReports on
their website...its pretty comprehensive, now, scoot

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Setup of software....!

2006-09-12 Thread Sahil Gupta
Hi,
 
How do u deploy ur product or software at the client side? We use JBoss
server and whenever we need to deploy the product what we do is that we have
the full Jboss unzipped there and then the server and ear and war is placed
there and all that stuff... There is no proper setup. Do u use a proper
setup for the software or what? 
 

Regards,

Sahil Gupta

Extn : 339
Mobile: 91 9899468288
Email :  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] 
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose or take any action based on this message or any
information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation. 
 


RE: Jasper Reports

2006-09-12 Thread Sahil Gupta
Hi,


Yeah thanks for the URL but I thought may be some of us are using Jasper
Reports on eclipse and would be able to help me. 

Anyways thanks 


Regards,

Sahil Gupta

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 12, 2006 1:33 PM
To: 'Struts Users Mailing List'
Subject: RE: Jasper Reports 

Hi,
 Beside the fact that this has nothing to do with struts, You may find
something here

i believe this has all you need

http://jasperforge.org/sf/projects/jasperreports

hth
marco


-Original Message-----
From: Sahil Gupta [mailto:[EMAIL PROTECTED]
Sent: 12 September 2006 09:09
To: 'Struts Users Mailing List'
Subject: Jasper Reports 

Hi,
 
I have to start working on Jasper Reports now and I will be doing this from
scratch. So can you please guide me. Also if there is some tutorial or a PDF
available with u do let me know. Another thing I have to add the plug-in to
my eclipse. If u have any information regarding to this please let me know.
 
Thanks
 

Regards,

Sahil Gupta



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Jasper Reports

2006-09-12 Thread Sahil Gupta
Hi,
 
I have to start working on Jasper Reports now and I will be doing this from
scratch. So can you please guide me. Also if there is some tutorial or a PDF
available with u do let me know. Another thing I have to add the plug-in to
my eclipse. If u have any information regarding to this please let me know.
 
Thanks
 

Regards,

Sahil Gupta



Using JUnit with Struts

2006-06-16 Thread Sahil Gupta
Hi,
 
I want to use JUnit with struts, can anyone please guide me.
 

Regards,

Sahil Gupta

Extn : 339
Mobile: 91 9899468288
Email :  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] 
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose or take any action based on this message or any
information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation. 
 


RE: Reset Image Button

2006-06-06 Thread Sahil Gupta
Hi, 
Try using this as below, I have used this way in my project

 


Regards,

Sahil Gupta
Extn : 339
Mobile: 91 9899468288
Email : [EMAIL PROTECTED] 
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose or take any action based on this message or any
information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation. 



-Original Message-
From: marcus biel (innoWake gmbh) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 5:20 PM
To: Struts Users Mailing List
Subject: Reset Image Button

Is there a way to create an image button that IS a reset button?

I tried this:


and this:


But unfortunately, it didn't work! :-(

Marcus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Switch Action

2006-04-03 Thread Sahil Gupta
Hi, 
 
Can anyone tell me how to use Switch Action in my project. My project
consists of more than one module and I need to forward from one to
another file in different modules. 
 
Are there any good links available to get more information about it.
 

Regards,

Sahil Gupta

Extn : 233
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation. 
 


RE: Struts Validation

2006-03-30 Thread Sahil Gupta
Thanks Bart,

I will try and do as you said. Thanks a lot 


Regards,

Sahil Gupta


-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 30, 2006 5:51 PM
To: Struts Users Mailing List
Subject: Re: Struts Validation

The reason you can use a space is because you have . in there which does NOT
mean the character . but 'anything', that is matching your spaces. 
Having a - in a character class un-escaped is definitely incorrect syntax as
it's the range opperator for things like A-Z and a-z. The & thing is
wrong because character classes only match individual characters and not
sequences of characters. The reason your RE is not working right is because
it has syntax errors in it. You need to fix those before it will work
reliably. The class in my reply you quoted below is more correct to what you
have ATM.

If you want to get this to work my advice would be to simplify it first, get
the basics working and then start adding in suport for more special
characters, testing as you go.

As I read your RE the pattern in English would be "A letter followed by any
amount of letters, nubmers, spaces, new line characters and some allowed
special characters". Hence the following would be my starting point and I
would then start adding in the special characters, being careful to escape
where needed:

^[a-ZA-Z][\w\ \r\n]*$

That will allow all letters, numbers, spaces, newline characters after the
first character which must be a letter. You can then add the special
characters you need. You will definitely need at least the following:

^[a-ZA-Z][\w\ \r\n\.\-\(\)]*$

Note that you MUST escape . and - or you will be getting a different RE than
what you think you are getting. If you put in . without escaping it it means
"anything" so your RE will still allow through the special characters you
think you are blocking.

Regards,

Bart.

Sahil Gupta wrote:

>Bart, the mask that I have been using is
>
>^[a-zA-Z]{1}[a-zA-Z0-9\n_,;?!;:[EMAIL 
>PROTECTED]/\\()&$%#*+=-]*$value
>  
>
>
>And this allows me to use spaces, & , - and other special characters 
>mentioned above. Just that \n does not work here.
>
>Regards,
>
>Sahil Gupta
>
>
>-Original Message-
>From: Bart Busschots [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 30, 2006 5:02 PM
>To: Struts Users Mailing List
>Subject: Re: Struts Validation
>
>Hi Sahil,
>
>I'm 90% sure the problem here is that some more of the special 
>characters in your large character class need to be escaped out. Thing 
>is I can't find any details of the syntax for REs in the struts 
>validator docs so I'm not sure exactly which ones. At a guess I'd suggest
the following:
>
>^[a-zA-Z]{1}[a-zA-Z0-9\n\r\
>_,;?!;:[EMAIL PROTECTED]/\\()&$%#*+=\-]*$
>
>The character class only matches individual characters so & should 
>not be intere like that. As long as &, the letters a, m and P and ; are 
>matched then & will be fine. . is a special character in it's own 
>right so to represent an actual fulstop you need \. and - is certainly 
>a special character within a character class so it definitely needs to be
escaped.
>Your RE was also not allowing the space character and depending on your 
>OS new lines can also use the \r special character so I added \ (slash 
>followed by a space) and \r to the class.
>
>Bart.
>
>
>
>Sahil Gupta wrote:
>
>  
>
>>The current mask that I am using is:
>>
>>
>>  
>>
>>  
>>  
>>   mask
>>  
>>^[a-zA-Z]{1}[a-zA-Z0-9\n_,;?!;:[EMAIL PROTECTED]/\\()&$%#*+=
>>-]*$
>>
>>  
>>  
>>   maxlength
>>   250
>>
>>   
>>
>>And if I input some text and along with that I press the Enter Key I 
>>get Validation Error message that I have mentioned in my 
>>ApplicationResources.properties file.
>>
>>Eg: In the text box I gave the following:
>>Recommended (and then pressed enter)
>>And Verified.
>>
>>When I entered the above text in the Text Box it gave the validation 
>>error message.
>>
>>
>>Regards,
>>
>>Sahil Gupta
>>
>>Extn : 233
>>Email : [EMAIL PROTECTED]
>>**
>>NetEdge Computing Global Solutions Private Limited. 
>>A-14, Sector-7, NOIDA U.P. 201-301
>>Tel #  91-120-2423281, 2423282
>>Fax #  91-120-2423279
>>URL  http//www.netedgecomputing.com
>>**
>>This message may contain confidential and/or privileged inf

RE: Struts Validation

2006-03-30 Thread Sahil Gupta
Bart, the mask that I have been using is 

^[a-zA-Z]{1}[a-zA-Z0-9\n_,;?!;:[EMAIL 
PROTECTED]/\\()&$%#*+=-]*$

And this allows me to use spaces, & , - and other special characters
mentioned above. Just that \n does not work here.

Regards,

Sahil Gupta


-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 30, 2006 5:02 PM
To: Struts Users Mailing List
Subject: Re: Struts Validation

Hi Sahil,

I'm 90% sure the problem here is that some more of the special characters in
your large character class need to be escaped out. Thing is I can't find any
details of the syntax for REs in the struts validator docs so I'm not sure
exactly which ones. At a guess I'd suggest the following:

^[a-zA-Z]{1}[a-zA-Z0-9\n\r\
_,;?!;:[EMAIL PROTECTED]/\\()&$%#*+=\-]*$

The character class only matches individual characters so & should not
be intere like that. As long as &, the letters a, m and P and ; are matched
then & will be fine. . is a special character in it's own right so to
represent an actual fulstop you need \. and - is certainly a special
character within a character class so it definitely needs to be escaped.
Your RE was also not allowing the space character and depending on your OS
new lines can also use the \r special character so I added \ (slash followed
by a space) and \r to the class.

Bart.



Sahil Gupta wrote:

>The current mask that I am using is:
>
>
>   
>
>   
>   
>mask
>   
>^[a-zA-Z]{1}[a-zA-Z0-9\n_,;?!;:[EMAIL PROTECTED]/\\()&$%#*+=
>-]*$
> 
>   
>   
>maxlength
>250
> 
>   
>
>And if I input some text and along with that I press the Enter Key I 
>get Validation Error message that I have mentioned in my 
>ApplicationResources.properties file.
>
>Eg: In the text box I gave the following:
>Recommended (and then pressed enter)
>And Verified.
>
>When I entered the above text in the Text Box it gave the validation 
>error message.
>
>
>Regards,
>
>Sahil Gupta
>
>Extn : 233
>Email : [EMAIL PROTECTED]
>**
>NetEdge Computing Global Solutions Private Limited. 
>A-14, Sector-7, NOIDA U.P. 201-301
>Tel #  91-120-2423281, 2423282
>Fax #  91-120-2423279
>URL  http//www.netedgecomputing.com
>**
>This message may contain confidential and/or privileged information. If 
>you are not the addressee or authorized to receive this for the 
>addressee, you must not use, copy, disclose or take any action based on 
>this message or any information herein. If you have received this 
>message in error, please advise the sender immediately by reply e-mail 
>and delete this message. Thank you for your cooperation.
>
>-Original Message-
>From: Bart Busschots [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 30, 2006 4:05 PM
>To: Struts Users Mailing List
>Subject: Re: Struts Validation
>
>Can you show me the current version of your mask and a sample of an 
>input it is rejecting?
>
>Bart.
>
>Sahil Gupta wrote:
>
>  
>
>>Thanks Bart,
>>Yes, what you said was right, so I have changed \ to \\ to match \.
>>But still I am unable to allow \n in my Validation. 
>>
>>Regards,
>>
>>Sahil Gupta
>>
>>
>>-Original Message-
>>From: Bart Busschots [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, March 30, 2006 3:39 PM
>>To: Struts Users Mailing List
>>Subject: Re: Struts Validation
>>
>>OK, so your Regular expression is trying to match everything between 
>>the start (^) and the end ($) of your input and no where in it do you 
>>allow a new line character, hence it is failing. You need to allow \n 
>>in which ever part of the RE you are happy to have new lines appear in.
>>At a guess I'd say you probably want them in the second character 
>>class. What I do also notice is that you seem to have some un-escaped 
>>special characters in your second character class. The most obvious 
>>one is a single \, that will not match \, to match \ you need \\.
>>
>>Hope that helps,
>>
>>Bart.
>>
>>Sahil Gupta wrote:
>>
>> 
>>
>>
>>
>>>Here is an example of the mask that I am using.
>>>
>>> 
>>>     
>>> >>key="message.mask.displayname" />
>>> 
>>> mask
>>> 
>>>^[a-zA-Z]{1}[a-zA-Z0-9_,;?!;:[EMAIL PROTECT

RE: Struts Validation

2006-03-30 Thread Sahil Gupta
The current mask that I am using is:






 mask

^[a-zA-Z]{1}[a-zA-Z0-9\n_,;?!;:[EMAIL PROTECTED]/\\()&$%#*+=
-]*$
  


 maxlength
 250
  
   

And if I input some text and along with that I press the Enter Key I get
Validation Error message that I have mentioned in my
ApplicationResources.properties file.

Eg: In the text box I gave the following:
Recommended (and then pressed enter) 
And Verified.

When I entered the above text in the Text Box it gave the validation error
message.


Regards,

Sahil Gupta

Extn : 233
Email : [EMAIL PROTECTED] 
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose or take any action based on this message or any
information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation. 

-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 30, 2006 4:05 PM
To: Struts Users Mailing List
Subject: Re: Struts Validation

Can you show me the current version of your mask and a sample of an input it
is rejecting?

Bart.

Sahil Gupta wrote:

> 
>Thanks Bart,
>Yes, what you said was right, so I have changed \ to \\ to match \.
>But still I am unable to allow \n in my Validation. 
>
>Regards,
>
>Sahil Gupta
>
>
>-Original Message-
>From: Bart Busschots [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 30, 2006 3:39 PM
>To: Struts Users Mailing List
>Subject: Re: Struts Validation
>
>OK, so your Regular expression is trying to match everything between 
>the start (^) and the end ($) of your input and no where in it do you 
>allow a new line character, hence it is failing. You need to allow \n 
>in which ever part of the RE you are happy to have new lines appear in. 
>At a guess I'd say you probably want them in the second character 
>class. What I do also notice is that you seem to have some un-escaped 
>special characters in your second character class. The most obvious one 
>is a single \, that will not match \, to match \ you need \\.
>
>Hope that helps,
>
>Bart.
>
>Sahil Gupta wrote:
>
>  
>
>>Here is an example of the mask that I am using.
>>
>>  
>>  
>>  >key="message.mask.displayname" />
>>  
>>  mask
>>  
>>^[a-zA-Z]{1}[a-zA-Z0-9_,;?!;:[EMAIL PROTECTED]/\()&$%#*+=
-]*$
>>
>>  >resource="false"/>
>>  
>>  maxlength
>>  250
>>  
>>
>>   
>>
>>
>>Regards,
>>
>>Sahil Gupta
>>
>>
>>-Original Message-
>>From: Bart Busschots [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, March 30, 2006 2:54 PM
>>To: Struts Users Mailing List
>>Subject: Re: Struts Validation
>>
>>Can you show us the mask you currently use and then we will have a 
>>better chance of being able to help.
>>
>>Bart.
>>
>>Sahil Gupta wrote:
>>
>> 
>>
>>
>>
>>>Hi,
>>>
>>>I have used Masking in Validations. I have a text area in which I 
>>>have only restricted some special characters. But still if I press 
>>>Enter while adding some text there I get an error message.
>>>
>>>Can anyone tell me how to allow ENTER in mask.
>>>
>>>Thanks
>>>
>>>Regards,
>>>
>>>Sahil Gupta
>>>
>>>Extn : 233
>>>Email : [EMAIL PROTECTED] 
>>><mailto:[EMAIL PROTECTED]>
>>>**
>>>NetEdge Computing Global Solutions Private Limited. 
>>>A-14, Sector-7, NOIDA U.P. 201-301
>>>Tel #  91-120-2423281, 2423282
>>>Fax #  91-120-2423279
>>>URL  http//www.netedgecomputing.com
>>>**
>>>This mess

RE: Struts Validation

2006-03-30 Thread Sahil Gupta
 
Thanks Bart,
Yes, what you said was right, so I have changed \ to \\ to match \.
But still I am unable to allow \n in my Validation. 

Regards,

Sahil Gupta


-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 30, 2006 3:39 PM
To: Struts Users Mailing List
Subject: Re: Struts Validation

OK, so your Regular expression is trying to match everything between the
start (^) and the end ($) of your input and no where in it do you allow a
new line character, hence it is failing. You need to allow \n in which ever
part of the RE you are happy to have new lines appear in. At a guess I'd say
you probably want them in the second character class. What I do also notice
is that you seem to have some un-escaped special characters in your second
character class. The most obvious one is a single \, that will not match \,
to match \ you need \\.

Hope that helps,

Bart.

Sahil Gupta wrote:

>Here is an example of the mask that I am using.
>
>   
>   
>   key="message.mask.displayname" />
>   
>   mask
>   
>^[a-zA-Z]{1}[a-zA-Z0-9_,;?!;:[EMAIL PROTECTED]/\()&$%#*+= 
>-]*$
> 
>   resource="false"/>
>   
>   maxlength
>   250
>   
>
>
>
>
>Regards,
>
>Sahil Gupta
>
>
>-Original Message-
>From: Bart Busschots [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 30, 2006 2:54 PM
>To: Struts Users Mailing List
>Subject: Re: Struts Validation
>
>Can you show us the mask you currently use and then we will have a 
>better chance of being able to help.
>
>Bart.
>
>Sahil Gupta wrote:
>
>  
>
>>Hi,
>>
>>I have used Masking in Validations. I have a text area in which I have 
>>only restricted some special characters. But still if I press Enter 
>>while adding some text there I get an error message.
>>
>>Can anyone tell me how to allow ENTER in mask.
>>
>>Thanks
>>
>>Regards,
>>
>>Sahil Gupta
>>
>>Extn : 233
>>Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>>**
>>NetEdge Computing Global Solutions Private Limited. 
>>A-14, Sector-7, NOIDA U.P. 201-301
>>Tel #  91-120-2423281, 2423282
>>Fax #  91-120-2423279
>>URL  http//www.netedgecomputing.com
>>**
>>This message may contain confidential and/or privileged information. 
>>If you are not the addressee or authorized to receive this for the 
>>addressee, you must not use, copy, disclose or take any action based 
>>on this message or any information herein. If you have received this 
>>message in error, please advise the sender immediately by reply e-mail 
>>and delete this message. Thank you for your cooperation.
>>
>>
>> 
>>
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts Validation

2006-03-30 Thread Sahil Gupta
Here is an example of the mask that I am using.





mask

^[a-zA-Z]{1}[a-zA-Z0-9_,;?!;:[EMAIL PROTECTED]/\()&$%#*+= 
-]*$
  


maxlength
250


 


Regards,

Sahil Gupta


-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 30, 2006 2:54 PM
To: Struts Users Mailing List
Subject: Re: Struts Validation

Can you show us the mask you currently use and then we will have a better
chance of being able to help.

Bart.

Sahil Gupta wrote:

>Hi,
> 
>I have used Masking in Validations. I have a text area in which I have 
>only restricted some special characters. But still if I press Enter 
>while adding some text there I get an error message.
> 
>Can anyone tell me how to allow ENTER in mask.
> 
>Thanks
>
>Regards,
>
>Sahil Gupta
>
>Extn : 233
>Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>**
>NetEdge Computing Global Solutions Private Limited. 
>A-14, Sector-7, NOIDA U.P. 201-301
>Tel #  91-120-2423281, 2423282
>Fax #  91-120-2423279
>URL  http//www.netedgecomputing.com
>**
>This message may contain confidential and/or privileged information. If 
>you are not the addressee or authorized to receive this for the 
>addressee, you must not use, copy, disclose or take any action based on 
>this message or any information herein. If you have received this 
>message in error, please advise the sender immediately by reply e-mail 
>and delete this message. Thank you for your cooperation.
> 
>
>  
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: New to Struts

2006-03-29 Thread Sahil Gupta
Do read First three lessons on the link
 http://www.learntechnology.net/ 


Regards,

Sahil Gupta

-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 30, 2006 12:12 PM
To: Struts Users Mailing List
Subject: Re: New to Struts

Did you mean WebWork tutorial? ;-)

On 3/29/06, Dion Gillard <[EMAIL PROTECTED]> wrote:
> Sure, pop over to the coffee shop near my office and we can have a 
> chat ;-)
>
> Sohumour asidedid you read the home page? 
> http://struts.apache.org/ Did you do a google on Struts tutorial ?
> http://www.google.com.au/search?q=struts+tutorial&start=0&ie=utf-8&oe=
> utf-8&client=firefox-a&rls=org.mozilla:en-US:official
>
> That'd be a start.
>
> On 3/30/06, Naveen Sharma <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> > Can any one help me with Struts as I am new to it and I am supposed 
> > to learn Struts.
> > Thanx in advance
> > Navin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts Validation

2006-03-29 Thread Sahil Gupta
Hi,
 
I have used Masking in Validations. I have a text area in which I have
only restricted some special characters. But still if I press Enter
while adding some text there I get an error message. 
 
Can anyone tell me how to allow ENTER in mask.
 
Thanks

Regards,

Sahil Gupta

Extn : 233
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation. 
 


RE: Invalidating a session using JAVASCRIPT

2006-03-21 Thread Sahil Gupta
 
Ya that's right. I want to invalidate the session when the window closes
without performing a logout.

Regards,

Sahil Gupta

Extn : 233
Email : [EMAIL PROTECTED] 
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
 

-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 4:21 PM
To: Struts Users Mailing List
Subject: RE: Invalidating a session using JAVASCRIPT


I think he doesn't want to catch those events. He wants to invalidate
session on clicking window's close button.

/Ashwani

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Tuesday, March 21, 2006 4:08 PM
To: Struts Users Mailing List
Subject: Re: Invalidating a session using JAVASCRIPT

Hi Sahil,
I believe this can be done by implementing the
HttpSessionBindingListenerInterface.The HttpSessionBindingListener interface
is implemented by the classes whose objects need to receive notifications
whenever they are added to or removed from a session. We do not have to
inform the container about such objects explicitly via the deployment
descriptor. Whenever an object is added to or removed from any session, the
container introspects the interfaces implemented by that object. If the
object implements the HttpSessionBindingListener interface, the container
calls the corresponding notification methods

Rajasekhar Cherukuri
Tata Consultancy Services Limited
Air-India Building 11th Floor,
Nariman Point ,
Mumbai - 400 021,Maharashtra
India
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com




"Sahil Gupta" <[EMAIL PROTECTED]>
03/21/2006 04:08 PM
Please respond to
"Struts Users Mailing List" 


To

cc

Subject
Invalidating a session using JAVASCRIPT






Hi,
 Can anyone tell me how to  logout a user (invalidate his Session) when a
user directly closes his browser window.  Thanks.

Regards,

Sahil Gupta

Extn : 233
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
**
NetEdge Computing Global Solutions Private Limited. A-14, Sector-7, NOIDA
U.P. 201-301 Tel #  91-120-2423281, 2423282 Fax #  91-120-2423279 URL
http//www.netedgecomputing.com
**
This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose or take any action based on this message or any
information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation.  
ForwardSourceID:NT0001060A 

Notice: The information contained in this e-mail message and/or attachments
to it may contain confidential or privileged information. If you are not the
intended recipient, any dissemination, use, review, distribution, printing
or copying of the information contained in this e-mail message and/or
attachments to it are strictly prohibited. If you have received this
communication in error, please notify us by reply e-mail or telephone and
immediately and permanently delete the message and any attachments. Thank
you


This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is intended only for the person
to whom it is addressed. If you are not the intended recipient,  you are not
authorized to read, print, retain, copy, disseminate,  distribute, or use
this message or any part thereof. If you receive this  message in error,
please notify the sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Invalidating a session using JAVASCRIPT

2006-03-21 Thread Sahil Gupta
Hi,
 
Can anyone tell me how to  logout a user (invalidate his Session) when a
user directly closes his browser window. 
 
Thanks.

Regards,

Sahil Gupta

Extn : 233
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation. 
 


Masking in Validations

2006-03-21 Thread Sahil Gupta
Hi,
 
I have used masking in my Validations where in I restrict the user to
enter things. I would like to allow the user to use ENTER in a TEXT
AREA. How should this be achieved.?
 
Thanks

Regards,

Sahil Gupta

Extn : 233
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation. 
 


Validation using Mask

2006-03-03 Thread Sahil Gupta
Hi,
 
I have used masking in my Validation-admin.xml, where I have defined all
the things that can be entered in a TEXT AREA. Now if a user logs in and
presses Enter in this Text Area he gets an error. How do we allow things
like Enter in our Masking.
 

Regards,

Sahil Gupta

Extn : 233
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.