Validation message Help

2006-08-10 Thread Krishna, Hari
Hi
I have a registration page where i have a list of text boxes (all are 
mandatory).Is it possible to show one single error message for all the fields 
while highlighting all of them in RED color?Please get me ur advice.I know only 
one way of validation where we show multiple mandatory validation messages for 
multiple fields while highlighting all of them in RED color. I need one message 
but multiple highlighting .

With Best Regards,
I.Hari krishna.

Franklin Templeton Investments
+91- 44 - 24407000 Extn:17123
--
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

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



RE: Validation message Help

2006-08-10 Thread Tejas Bavishi
Hi

Possible solution:
Write tags to check if the error message is set in the request and
correspondingly apply the style on the text boxes to render them in RED
color and also show the same error message.

Thanks  regards
Tejas

-Original Message-
From: Krishna, Hari [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 12:03 PM
To: user@struts.apache.org
Subject: Validation message Help


Hi
I have a registration page where i have a list of text boxes (all are
mandatory).Is it possible to show one single error message for all the
fields while highlighting all of them in RED color?Please get me ur advice.I
know only one way of validation where we show multiple mandatory validation
messages for multiple fields while highlighting all of them in RED color. I
need one message but multiple highlighting .

With Best Regards,
I.Hari krishna.

Franklin Templeton Investments
+91- 44 - 24407000 Extn:17123
--
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

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

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_

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

RE: Validation message Help

2006-08-10 Thread Vishal Seth
You can try filtering out the error list for displaying unique error
messages. You would require a validation for each field, but to display
one message rather than duplicating them you can filter out the error
list

Vishal

-Original Message-
From: Tejas Bavishi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 12:26 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation message Help

Hi

Possible solution:
Write tags to check if the error message is set in the request and
correspondingly apply the style on the text boxes to render them in RED
color and also show the same error message.

Thanks  regards
Tejas

-Original Message-
From: Krishna, Hari [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 12:03 PM
To: user@struts.apache.org
Subject: Validation message Help


Hi
I have a registration page where i have a list of text boxes (all are
mandatory).Is it possible to show one single error message for all the
fields while highlighting all of them in RED color?Please get me ur
advice.I
know only one way of validation where we show multiple mandatory
validation
messages for multiple fields while highlighting all of them in RED
color. I
need one message but multiple highlighting .

With Best Regards,
I.Hari krishna.

Franklin Templeton Investments
+91- 44 - 24407000 Extn:17123
--
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

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

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_




MASTEK 
Making a valuable difference
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~


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



RE: Validation message Help

2006-08-10 Thread Krishna, Hari
How to filter out and where to do it?Do i need to customize validation.xml?

-Original Message-
From: Vishal Seth [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 12:34 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Validation message Help


You can try filtering out the error list for displaying unique error
messages. You would require a validation for each field, but to display
one message rather than duplicating them you can filter out the error
list

Vishal

-Original Message-
From: Tejas Bavishi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 12:26 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation message Help

Hi

Possible solution:
Write tags to check if the error message is set in the request and
correspondingly apply the style on the text boxes to render them in RED
color and also show the same error message.

Thanks  regards
Tejas

-Original Message-
From: Krishna, Hari [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 12:03 PM
To: user@struts.apache.org
Subject: Validation message Help


Hi
I have a registration page where i have a list of text boxes (all are
mandatory).Is it possible to show one single error message for all the
fields while highlighting all of them in RED color?Please get me ur
advice.I
know only one way of validation where we show multiple mandatory
validation
messages for multiple fields while highlighting all of them in RED
color. I
need one message but multiple highlighting .

With Best Regards,
I.Hari krishna.

Franklin Templeton Investments
+91- 44 - 24407000 Extn:17123
--
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

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

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_




MASTEK 
Making a valuable difference
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

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



RE: Validation message Help

2006-08-10 Thread Vishal Seth
You would need to override RequestProcessor class there is
postProcessValidate() Method you can try using that for your purpose...
over there you get ActionErrors instance..if you are using tiles and
depending upon the struts version you would need to override
TilesRequestProcessor. I am not sure abt the version.

I think the ActionErrors is stored in request scope with key
Globals.ERROR_KEY. You can try getting it from here and then modifying
the same.



-Original Message-
From: Krishna, Hari [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 12:49 PM
To: Struts Users Mailing List
Subject: RE: Validation message Help

How to filter out and where to do it?Do i need to customize
validation.xml?

-Original Message-
From: Vishal Seth [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 12:34 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Validation message Help


You can try filtering out the error list for displaying unique error
messages. You would require a validation for each field, but to display
one message rather than duplicating them you can filter out the error
list

Vishal

-Original Message-
From: Tejas Bavishi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 12:26 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation message Help

Hi

Possible solution:
Write tags to check if the error message is set in the request and
correspondingly apply the style on the text boxes to render them in RED
color and also show the same error message.

Thanks  regards
Tejas

-Original Message-
From: Krishna, Hari [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 12:03 PM
To: user@struts.apache.org
Subject: Validation message Help


Hi
I have a registration page where i have a list of text boxes (all are
mandatory).Is it possible to show one single error message for all the
fields while highlighting all of them in RED color?Please get me ur
advice.I
know only one way of validation where we show multiple mandatory
validation
messages for multiple fields while highlighting all of them in RED
color. I
need one message but multiple highlighting .

With Best Regards,
I.Hari krishna.

Franklin Templeton Investments
+91- 44 - 24407000 Extn:17123
--
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

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

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_




MASTEK 
Making a valuable difference
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK


~~
Opinions expressed in this e-mail are those of the individual and not
that of Mastek Limited, unless specifically indicated to that effect.
Mastek Limited does not accept any responsibility or liability for it.
This e-mail and attachments (if any) transmitted with it are
confidential and/or privileged and solely for the use of the intended
person or entity to which it is addressed. Any review, re-transmission,
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. This e-mail and its attachments have been
scanned for the presence of computer viruses. It is the responsibility
of the recipient to run the virus check on e-mails and attachments
before opening them. If you have received this e-mail in error, kindly
delete this e-mail from all computers.

~~


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

Plz Help, Urgent

2006-08-10 Thread Medicherla Lakshmi
Hi All,
   
  I developed an application which forwards menuitems.jsp as we login and it 
was working fine.
  I changed the name of the jsp into MenuItems.jsp and trying to access, it 
gives the following error.  I felt it unable to find the class file. So, 
undeployed the application and deployed again.  Still its giving the same 
problem.
  Can anyone tell me why is it so.  

javax.servlet.ServletException: org/apache/jsp/MenuItems_jsp (wrong name: 
org/apache/jsp/menuitems_jsp)   
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
   
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063) 
  
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) 
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)   
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
  
  
  root cause 
java.lang.NoClassDefFoundError: org/apache/jsp/MenuItems_jsp (wrong name: 
org/apache/jsp/menuitems_jsp)   java.lang.ClassLoader.defineClass1(Native 
Method)   java.lang.ClassLoader.defineClass(ClassLoader.java:620)   
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)   
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)   
java.net.URLClassLoader.access$100(URLClassLoader.java:56)   
java.net.URLClassLoader$1.run(URLClassLoader.java:195)   
java.security.AccessController.doPrivileged(Native Method)   
java.net.URLClassLoader.findClass(URLClassLoader.java:188)   
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)   
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)   
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:589)   
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305) 
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)   
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
   
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063) 
  
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) 
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)   
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
  

Thanks and Regards,

Lakshmi


-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

Re: Plz Help, Urgent

2006-08-10 Thread Shervin Asgari
I guess you have forgotten to change menuitems.jps in your forwards.xml 
file or other config files.

Because your output is saying: (wrong name: org/apache/jsp/menuitems_jsp)
Find this value, and changed it to MenuItems and not menuitems

Shervin Asgari - System Consultant




Medicherla Lakshmi wrote:

Hi All,
   
  I developed an application which forwards menuitems.jsp as we login and it was working fine.

  I changed the name of the jsp into MenuItems.jsp and trying to access, it 
gives the following error.  I felt it unable to find the class file. So, 
undeployed the application and deployed again.  Still its giving the same 
problem.
  Can anyone tell me why is it so.  

javax.servlet.ServletException: org/apache/jsp/MenuItems_jsp (wrong name: org/apache/jsp/menuitems_jsp)   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)   org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)   org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)   org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)   javax.servlet.http.HttpServlet.service(HttpServlet.java:709)   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)  
  
  root cause 
java.lang.NoClassDefFoundError: org/apache/jsp/MenuItems_jsp (wrong name: org/apache/jsp/menuitems_jsp)   java.lang.ClassLoader.defineClass1(Native Method)   java.lang.ClassLoader.defineClass(ClassLoader.java:620)   java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)   java.net.URLClassLoader.defineClass(URLClassLoader.java:260)   java.net.URLClassLoader.access$100(URLClassLoader.java:56)   java.net.URLClassLoader$1.run(URLClassLoader.java:195)   java.security.AccessController.doPrivileged(Native Method)   java.net.URLClassLoader.findClass(URLClassLoader.java:188)   org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)   org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)   org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:589)   org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)  
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)   org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)   org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)   org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)   javax.servlet.http.HttpServlet.service(HttpServlet.java:709)   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)  


Thanks and Regards,

Lakshmi


-
 Here’s a new way to find what you're looking for - Yahoo! Answers 
  



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



RE: Plz Help, Urgent

2006-08-10 Thread Chandra.Ravinithala
If its tomcat, worth clearing the cache. Goto work/Catalina/ and remove
whatever in there.

Chandra

-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 4:47 PM
To: user@struts.apache.org
Subject: Plz Help, Urgent

Hi All,
   
  I developed an application which forwards menuitems.jsp as we login
and it was working fine.
  I changed the name of the jsp into MenuItems.jsp and trying to access,
it gives the following error.  I felt it unable to find the class file.
So, undeployed the application and deployed again.  Still its giving the
same problem.
  Can anyone tell me why is it so.  

javax.servlet.ServletException: org/apache/jsp/MenuItems_jsp (wrong
name: org/apache/jsp/menuitems_jsp)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)  
  
  root cause 
java.lang.NoClassDefFoundError: org/apache/jsp/MenuItems_jsp (wrong
name: org/apache/jsp/menuitems_jsp)
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:
589)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper
.java:137)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:305)  
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)  

Thanks and Regards,

Lakshmi


-
 Here's a new way to find what you're looking for - Yahoo! Answers 

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



Re: Plz Help, Urgent

2006-08-10 Thread kalpesh modi
It seems that you have not changed the JSP name in your forward. You are still 
forwarding to the old JSP in your code.

Thanks,
-Kalpesh


-
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail Beta.

RE: Plz Help, Urgent

2006-08-10 Thread Medicherla Lakshmi
Am using NetBeans bundled with Tomcat, i could not fine work folder in the ide, 
but anyhow, i tried to delete the content in it.  Still i get the same error.  
I even tried to clean and build the project.
  

[EMAIL PROTECTED] wrote:
  If its tomcat, worth clearing the cache. Goto work/Catalina/ and remove
whatever in there.

Chandra

-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 4:47 PM
To: user@struts.apache.org
Subject: Plz Help, Urgent

Hi All,

I developed an application which forwards menuitems.jsp as we login
and it was working fine.
I changed the name of the jsp into MenuItems.jsp and trying to access,
it gives the following error. I felt it unable to find the class file.
So, undeployed the application and deployed again. Still its giving the
same problem.
Can anyone tell me why is it so. 

javax.servlet.ServletException: org/apache/jsp/MenuItems_jsp (wrong
name: org/apache/jsp/menuitems_jsp)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362) 

root cause 
java.lang.NoClassDefFoundError: org/apache/jsp/MenuItems_jsp (wrong
name: org/apache/jsp/menuitems_jsp)
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:
589)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper
.java:137)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:305) 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362) 

Thanks and Regards,

Lakshmi


-
Here's a new way to find what you're looking for - Yahoo! Answers 

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




-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

RE: Plz Help, Urgent

2006-08-10 Thread Chandra.Ravinithala

You can locate that in Drive:\Program
Files\netbeans-5.5beta2\enterprise3\apache-tomcat-5.5.17\work. But,
having going thru the exception in details - you try what Kalpesh and
Shervin Asgari mentioned.

Chandra

-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 5:04 PM
To: Struts Users Mailing List
Subject: RE: Plz Help, Urgent

Am using NetBeans bundled with Tomcat, i could not fine work folder in
the ide, but anyhow, i tried to delete the content in it.  Still i get
the same error.  I even tried to clean and build the project.
  

[EMAIL PROTECTED] wrote:
  If its tomcat, worth clearing the cache. Goto work/Catalina/ and
remove whatever in there.

Chandra

-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 4:47 PM
To: user@struts.apache.org
Subject: Plz Help, Urgent

Hi All,

I developed an application which forwards menuitems.jsp as we login and
it was working fine.
I changed the name of the jsp into MenuItems.jsp and trying to access,
it gives the following error. I felt it unable to find the class file.
So, undeployed the application and deployed again. Still its giving the
same problem.
Can anyone tell me why is it so. 

javax.servlet.ServletException: org/apache/jsp/MenuItems_jsp (wrong
name: org/apache/jsp/menuitems_jsp)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362) 

root cause
java.lang.NoClassDefFoundError: org/apache/jsp/MenuItems_jsp (wrong
name: org/apache/jsp/menuitems_jsp)
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:
589)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper
.java:137)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:305) 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362) 

Thanks and Regards,

Lakshmi


-
Here's a new way to find what you're looking for - Yahoo! Answers 

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




-
 Here's a new way to find what you're looking for - Yahoo! Answers 

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



RE: Validation message Help

2006-08-10 Thread kalpesh modi
 As Tejas mentioned, you can use the logic:messagesPresent tag to apply the 
style to the text boxes. If the error message for that particular field is 
present, it will apply the style to the text field. 

As far as displaying a single error message, you can again use 
logic:messagesPresent on the top of the JSP instead of html:errors. Inside 
the logic:messagesPresent tag, you can use the bean:message or 
fmt:message tag and display the error message from the properties file.

HTH.

Thanks,
-Kalpesh


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

Re: Plz Help, Urgent

2006-08-10 Thread Medicherla Lakshmi
No, i changed everywhere.

kalpesh modi [EMAIL PROTECTED] wrote:  It seems that you have not changed the 
JSP name in your forward. You are still forwarding to the old JSP in your code.

Thanks,
-Kalpesh


-
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.


-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

Re: Plz Help, Urgent

2006-08-10 Thread Shervin Asgari

I don't think you have changed everywhere. Try searching for menuitems
If you have Linux then try grep -r menuitems *
if nothing, then try grep -ri menuitems *

Shervin Asgari - System Consultant



Medicherla Lakshmi wrote:

No, i changed everywhere.

kalpesh modi [EMAIL PROTECTED] wrote:  It seems that you have not changed the 
JSP name in your forward. You are still forwarding to the old JSP in your code.

Thanks,
-Kalpesh


-
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.


-
 Here’s a new way to find what you're looking for - Yahoo! Answers 
  


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



Re: Plz Help, Urgent

2006-08-10 Thread Medicherla Lakshmi
i tried to search in the application using find for any file by name 
menuitems.jsp with case, it did not give me any results.
  Thatz the reason, am not able to understand where is the problem like.

Shervin Asgari [EMAIL PROTECTED] wrote:
  I don't think you have changed everywhere. Try searching for menuitems
If you have Linux then try grep -r menuitems *
if nothing, then try grep -ri menuitems *

Shervin Asgari - System Consultant



Medicherla Lakshmi wrote:
 No, i changed everywhere.

 kalpesh modi wrote: It seems that you have not changed the JSP name in your 
 forward. You are still forwarding to the old JSP in your code.

 Thanks,
 -Kalpesh


 -
 Do you Yahoo!?
 Everyone is raving about the all-new Yahoo! Mail Beta.

 
 -
 Here’s a new way to find what you're looking for - Yahoo! Answers 
 

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




-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

Re: Plz Help, Urgent

2006-08-10 Thread Shervin Asgari
You cannot use find, because find does not search inside a file. You 
have to use grep


Shervin Asgari - System Consultant



Medicherla Lakshmi wrote:

i tried to search in the application using find for any file by name 
menuitems.jsp with case, it did not give me any results.
  Thatz the reason, am not able to understand where is the problem like.

Shervin Asgari [EMAIL PROTECTED] wrote:
  I don't think you have changed everywhere. Try searching for menuitems
If you have Linux then try grep -r menuitems *
if nothing, then try grep -ri menuitems *

Shervin Asgari - System Consultant



Medicherla Lakshmi wrote:
  

No, i changed everywhere.

kalpesh modi wrote: It seems that you have not changed the JSP name in your 
forward. You are still forwarding to the old JSP in your code.

Thanks,
-Kalpesh


-
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.


-
Here's a new way to find what you're looking for - Yahoo! Answers 




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




-
 Here's a new way to find what you're looking for - Yahoo! Answers 
  


Re: EventActionDispatcher, specifying event from ActionClass not JSP?

2006-08-10 Thread kalpesh modi
You can do something like

return new ActionForward(/secondAction.do?eventName);

Thanks,
-Kalpesh

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

RE: Plz Help, Urgent

2006-08-10 Thread Pillay, Kiren KN
Hi

I'm not sure if grep -r does this also, but you can also use:

find . -name '*.jsp' -exec grep yoursearchstring {} \;

Regards
Kiren

-Original Message-
From: Shervin Asgari [mailto:[EMAIL PROTECTED] 
Sent: 10 August 2006 13:53 PM
To: Struts Users Mailing List
Subject: Re: Plz Help, Urgent

You cannot use find, because find does not search inside a file. You
have to use grep

Shervin Asgari - System Consultant



Medicherla Lakshmi wrote:
 i tried to search in the application using find for any file by name
menuitems.jsp with case, it did not give me any results.
   Thatz the reason, am not able to understand where is the problem
like.

 Shervin Asgari [EMAIL PROTECTED] wrote:
   I don't think you have changed everywhere. Try searching for 
 menuitems If you have Linux then try grep -r menuitems * if nothing, 
 then try grep -ri menuitems *

 Shervin Asgari - System Consultant



 Medicherla Lakshmi wrote:
   
 No, i changed everywhere.

 kalpesh modi wrote: It seems that you have not changed the JSP name
in your forward. You are still forwarding to the old JSP in your code.

 Thanks,
 -Kalpesh


 -
 Do you Yahoo!?
 Everyone is raving about the all-new Yahoo! Mail Beta.


 -
 Here's a new way to find what you're looking for - Yahoo! Answers

 

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



   
 -
  Here's a new way to find what you're looking for - Yahoo! Answers
   
__

Standard Bank Disclaimer and Confidentiality Note

This e-mail, its attachments and any rights attaching hereto are, unless the 
context clearly indicates otherwise, the property of Standard Bank Group Limited
and/or its subsidiaries (the Group). It is confidential, private and intended 
for the addressee only. Should you not be the addressee and receive this e-mail 
by
mistake, kindly notify the sender, and delete this e-mail, immediately and do 
not disclose or use same in any manner whatsoever. Views and opinions
expressed in this e-mail are those of the sender unless clearly stated as those 
of the Group. The Group accepts no liability whatsoever for any loss or
damages whatsoever and howsoever incurred, or suffered, resulting, or arising, 
from the use of this email or its attachments. The Group does not warrant the 
integrity
of this e-mail nor that it is free of errors, viruses, interception or 
interference. Licensed divisions of the Standard Bank Group are authorised 
financial services providers
in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 
(FAIS).
For information about the Standard Bank Group Limited visit our website 
http://www.standardbank.co.za
___

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



Issue with Struts check box

2006-08-10 Thread Hanmay Udgiri

Hi
I have a String form field which is used as a check box.
And I do some validation based on this check box if selected.
I am having a problem,when the user selects a check box and submit.
I am getting the errors properly.
But when If I uncheck the check box and submit,the value i am getting in
form is still as on.
So the I am still getting error saying plz enter the below details if you
selects the check box.
Any clue why It does not reset the value


--
Thanks and Regards
Hanmayya Udgiri


Re: Plz Help, Urgent

2006-08-10 Thread sarat chandra
Hi,
   Its not creating the class file for that JSP. So
its not doesn't find that file. Can You extract the
war file you are deploying and check out when is it
modified. and genareate a class for the MenuItems.jsp
and put it in that war file not using build.xml(I
think thats how you are doing it). Copy it and paste
it. Now Deploy the war. Lets see if it can help you.


--- Medicherla Lakshmi [EMAIL PROTECTED]
wrote:

 Hi All,

   I developed an application which forwards
 menuitems.jsp as we login and it was working fine.
   I changed the name of the jsp into MenuItems.jsp
 and trying to access, it gives the following error. 
 I felt it unable to find the class file. So,
 undeployed the application and deployed again. 
 Still its giving the same problem.
   Can anyone tell me why is it so.  
 
 javax.servlet.ServletException:
 org/apache/jsp/MenuItems_jsp (wrong name:
 org/apache/jsp/menuitems_jsp)  

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
  

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
  

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
  

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
  

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
  

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
  

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  

javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
  
   
   root cause 
 java.lang.NoClassDefFoundError:
 org/apache/jsp/MenuItems_jsp (wrong name:
 org/apache/jsp/menuitems_jsp)  
 java.lang.ClassLoader.defineClass1(Native Method)  

java.lang.ClassLoader.defineClass(ClassLoader.java:620)
  

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
  

java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
  

java.net.URLClassLoader.access$100(URLClassLoader.java:56)
  

java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   java.security.AccessController.doPrivileged(Native
 Method)  

java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  

org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
  

org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
  

org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:589)
  

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
  

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
  
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
  

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
  

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
  

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
  

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
  

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
  

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  

javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
  
 
 Thanks and Regards,
 
 Lakshmi
 
   
 -
  Here’s a new way to find what you're looking for -
 Yahoo! Answers 


Thanks and Regards,
Sarat Ala
770-840-0739

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



Re: Issue with Struts check box

2006-08-10 Thread kalpesh modi
You need to reset the checkbox value in the ActionForm's reset method.

Thanks,
-Kalpesh


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

RE: Issue with Struts check box

2006-08-10 Thread Vishal Seth
In web application the value of checkbox is submitted only when it is
selected otherwise it is not submitted. Your form/form-property would be
in session scope hence it is still remembering the old value.

-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 6:54 PM
To: Struts Users Mailing List
Subject: Issue with Struts check box

Hi
I have a String form field which is used as a check box.
And I do some validation based on this check box if selected.
I am having a problem,when the user selects a check box and submit.
I am getting the errors properly.
But when If I uncheck the check box and submit,the value i am getting in
form is still as on.
So the I am still getting error saying plz enter the below details if
you
selects the check box.
Any clue why It does not reset the value


-- 
Thanks and Regards
Hanmayya Udgiri



MASTEK 
Making a valuable difference
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~


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



Re: Plz Help, Urgent

2006-08-10 Thread Shervin Asgari
 No this is not correct. The problem is that he must search all content 
in all files containing menuitems with small letters. Somewhere he has 
forgotten to change this from menuitems to MenuItems


Shervin

Pillay, Kiren KN wrote:

Hi

I'm not sure if grep -r does this also, but you can also use:

find . -name '*.jsp' -exec grep yoursearchstring {} \;

Regards
Kiren

-Original Message-
From: Shervin Asgari [mailto:[EMAIL PROTECTED] 
Sent: 10 August 2006 13:53 PM

To: Struts Users Mailing List
Subject: Re: Plz Help, Urgent

You cannot use find, because find does not search inside a file. You
have to use grep

Shervin Asgari - System Consultant



Medicherla Lakshmi wrote:
  

i tried to search in the application using find for any file by name


menuitems.jsp with case, it did not give me any results.
  

  Thatz the reason, am not able to understand where is the problem


like.
  

Shervin Asgari [EMAIL PROTECTED] wrote:
  I don't think you have changed everywhere. Try searching for 
menuitems If you have Linux then try grep -r menuitems * if nothing, 
then try grep -ri menuitems *


Shervin Asgari - System Consultant



Medicherla Lakshmi wrote:
  


No, i changed everywhere.

kalpesh modi wrote: It seems that you have not changed the JSP name
  

in your forward. You are still forwarding to the old JSP in your code.
  

Thanks,
-Kalpesh


-
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.


-
Here's a new way to find what you're looking for - Yahoo! Answers


  

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




-
 Here's a new way to find what you're looking for - Yahoo! Answers
  


__

Standard Bank Disclaimer and Confidentiality Note

This e-mail, its attachments and any rights attaching hereto are, unless the 
context clearly indicates otherwise, the property of Standard Bank Group Limited
and/or its subsidiaries (the Group). It is confidential, private and intended 
for the addressee only. Should you not be the addressee and receive this e-mail by
mistake, kindly notify the sender, and delete this e-mail, immediately and do 
not disclose or use same in any manner whatsoever. Views and opinions
expressed in this e-mail are those of the sender unless clearly stated as those 
of the Group. The Group accepts no liability whatsoever for any loss or
damages whatsoever and howsoever incurred, or suffered, resulting, or arising, 
from the use of this email or its attachments. The Group does not warrant the 
integrity
of this e-mail nor that it is free of errors, viruses, interception or 
interference. Licensed divisions of the Standard Bank Group are authorised 
financial services providers
in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 
(FAIS).
For information about the Standard Bank Group Limited visit our website 
http://www.standardbank.co.za
___
  


Re: Plz Help, Urgent

2006-08-10 Thread kalpesh modi
In Eclipse, there is an option Search - File. This will search a particular 
word in all the files.

I am not sure how to do it in Netbeans.

Thanks,
-Kalpesh

Shervin Asgari [EMAIL PROTECTED] wrote:   No this is not correct. The problem 
is that he must search all content 
in all files containing menuitems with small letters. Somewhere he has 
forgotten to change this from menuitems to MenuItems

Shervin

Pillay, Kiren KN wrote:
 Hi

 I'm not sure if grep -r does this also, but you can also use:

 find . -name '*.jsp' -exec grep  {} \;

 Regards
 Kiren

 -Original Message-
 From: Shervin Asgari [mailto:[EMAIL PROTECTED] 
 Sent: 10 August 2006 13:53 PM
 To: Struts Users Mailing List
 Subject: Re: Plz Help, Urgent

 You cannot use find, because find does not search inside a file. You
 have to use grep

 Shervin Asgari - System Consultant



 Medicherla Lakshmi wrote:
   
 i tried to search in the application using find for any file by name
 
 menuitems.jsp with case, it did not give me any results.
   
   Thatz the reason, am not able to understand where is the problem
 
 like.
   
 Shervin Asgari  wrote:
   I don't think you have changed everywhere. Try searching for 
 menuitems If you have Linux then try grep -r menuitems * if nothing, 
 then try grep -ri menuitems *

 Shervin Asgari - System Consultant



 Medicherla Lakshmi wrote:
   
 
 No, i changed everywhere.

 kalpesh modi wrote: It seems that you have not changed the JSP name
   
 in your forward. You are still forwarding to the old JSP in your code.
   
 Thanks,
 -Kalpesh


 -
 Do you Yahoo!?
 Everyone is raving about the all-new Yahoo! Mail Beta.


 -
 Here's a new way to find what you're looking for - Yahoo! Answers

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



  
 -
  Here's a new way to find what you're looking for - Yahoo! Answers
   
 
 __

 Standard Bank Disclaimer and Confidentiality Note

 This e-mail, its attachments and any rights attaching hereto are, unless the 
 context clearly indicates otherwise, the property of Standard Bank Group 
 Limited
 and/or its subsidiaries (the Group). It is confidential, private and 
 intended for the addressee only. Should you not be the addressee and receive 
 this e-mail by
 mistake, kindly notify the sender, and delete this e-mail, immediately and do 
 not disclose or use same in any manner whatsoever. Views and opinions
 expressed in this e-mail are those of the sender unless clearly stated as 
 those of the Group. The Group accepts no liability whatsoever for any loss or
 damages whatsoever and howsoever incurred, or suffered, resulting, or 
 arising, from the use of this email or its attachments. The Group does not 
 warrant the integrity
 of this e-mail nor that it is free of errors, viruses, interception or 
 interference. Licensed divisions of the Standard Bank Group are authorised 
 financial services providers
 in terms of the Financial Advisory and Intermediary Services Act, No 37 of 
 2002 (FAIS).
 For information about the Standard Bank Group Limited visit our website 
 http://www.standardbank.co.za
 ___
   



-
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.

Re: Plz Help, Urgent

2006-08-10 Thread sarat chandra
did u checked the war file and saw what file u have in
that and when is it modified
--- Medicherla Lakshmi [EMAIL PROTECTED]
wrote:

 No, i changed everywhere.
 
 kalpesh modi [EMAIL PROTECTED] wrote:  It
 seems that you have not changed the JSP name in your
 forward. You are still forwarding to the old JSP in
 your code.
 
 Thanks,
 -Kalpesh
 
 
 -
 Do you Yahoo!?
 Everyone is raving about the all-new Yahoo! Mail
 Beta.
 
   
 -
  Here’s a new way to find what you're looking for -
 Yahoo! Answers 


Thanks and Regards,
Sarat Ala
770-840-0739

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



Re: Plz Help, Urgent

2006-08-10 Thread Srinivas_Biragoni




In Netbeans also ..right click on the parent folder(which have jsp, java
and xml files) in projects menu(left pane) then click  find .

Thanks,
Srinivas.




   
 kalpesh modi  
 [EMAIL PROTECTED] 
 oo.comTo 
   Struts Users Mailing List   
 08/10/2006 08:26  user@struts.apache.org
 PM cc 
   
   Subject 
 Please respond to Re: Plz Help, Urgent
   Struts Users   
   Mailing List   
 [EMAIL PROTECTED] 
  he.org  
   
   




In Eclipse, there is an option Search - File. This will search a
particular word in all the files.

I am not sure how to do it in Netbeans.

Thanks,
-Kalpesh

Shervin Asgari [EMAIL PROTECTED] wrote:   No this is not correct. The
problem is that he must search all content
in all files containing menuitems with small letters. Somewhere he has
forgotten to change this from menuitems to MenuItems

Shervin

Pillay, Kiren KN wrote:
 Hi

 I'm not sure if grep -r does this also, but you can also use:

 find . -name '*.jsp' -exec grep  {} \;

 Regards
 Kiren

 -Original Message-
 From: Shervin Asgari [mailto:[EMAIL PROTECTED]
 Sent: 10 August 2006 13:53 PM
 To: Struts Users Mailing List
 Subject: Re: Plz Help, Urgent

 You cannot use find, because find does not search inside a file. You
 have to use grep

 Shervin Asgari - System Consultant



 Medicherla Lakshmi wrote:

 i tried to search in the application using find for any file by name

 menuitems.jsp with case, it did not give me any results.

   Thatz the reason, am not able to understand where is the problem

 like.

 Shervin Asgari  wrote:
   I don't think you have changed everywhere. Try searching for
 menuitems If you have Linux then try grep -r menuitems * if nothing,
 then try grep -ri menuitems *

 Shervin Asgari - System Consultant



 Medicherla Lakshmi wrote:


 No, i changed everywhere.

 kalpesh modi wrote: It seems that you have not changed the JSP name

 in your forward. You are still forwarding to the old JSP in your code.

 Thanks,
 -Kalpesh


 -
 Do you Yahoo!?
 Everyone is raving about the all-new Yahoo! Mail Beta.


 -
 Here's a new way to find what you're looking for - Yahoo! Answers



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




 -
  Here's a new way to find what you're looking for - Yahoo! Answers



__


 Standard Bank Disclaimer and Confidentiality Note

 This e-mail, its attachments and any rights attaching hereto are, unless
the context clearly indicates otherwise, the property of Standard Bank
Group Limited
 and/or its subsidiaries (the Group). It is confidential, private and
intended for the addressee only. Should you not be the addressee and
receive this e-mail by
 mistake, kindly notify the sender, and delete this e-mail, immediately
and do not disclose or use same in any manner whatsoever. Views and
opinions
 expressed in this e-mail are those of the sender unless clearly stated as
those of the Group. The Group accepts no liability whatsoever for any loss
or
 damages whatsoever and howsoever incurred, or suffered, resulting, or
arising, from the use of this email or its attachments. The Group does not
warrant the integrity
 of this e-mail nor that it is free of errors, viruses, interception or
interference. Licensed divisions of the Standard Bank Group are authorised
financial services providers
 in terms of the Financial Advisory and Intermediary Services Act, No 37
of 2002 (FAIS).
 For information about the Standard Bank Group Limited visit our website
http://www.standardbank.co.za

___





-
 Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail 

Re: Issue with Struts check box

2006-08-10 Thread Hanmay Udgiri

Yes
The form is in session.I am resetting the form value in reset but then when
the use goes to next page where I have to show the USER entered values,I
need to show the selected  check box and the corresponsding sections values.
But even though the reset method is not called when I unselect the checkbox
so the values are going as selected only.



On 8/10/06, Vishal Seth [EMAIL PROTECTED] wrote:


In web application the value of checkbox is submitted only when it is
selected otherwise it is not submitted. Your form/form-property would be
in session scope hence it is still remembering the old value.

-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 6:54 PM
To: Struts Users Mailing List
Subject: Issue with Struts check box

Hi
I have a String form field which is used as a check box.
And I do some validation based on this check box if selected.
I am having a problem,when the user selects a check box and submit.
I am getting the errors properly.
But when If I uncheck the check box and submit,the value i am getting in
form is still as on.
So the I am still getting error saying plz enter the below details if
you
selects the check box.
Any clue why It does not reset the value


--
Thanks and Regards
Hanmayya Udgiri



MASTEK
Making a valuable difference
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK


~~
Opinions expressed in this e-mail are those of the individual and not that
of Mastek Limited, unless specifically indicated to that effect. Mastek
Limited does not accept any responsibility or liability for it. This e-mail
and attachments (if any) transmitted with it are confidential and/or
privileged and solely for the use of the intended person or entity to which
it is addressed. Any review, re-transmission, dissemination or other use of
or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. This e-mail and
its attachments have been scanned for the presence of computer viruses. It
is the responsibility of the recipient to run the virus check on e-mails and
attachments before opening them. If you have received this e-mail in error,
kindly delete this e-mail from all computers.

~~


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





--
Thanks and Regards
Hanmayya Udgiri


Re: Stream ended unexpectedly

2006-08-10 Thread Jon Koberstein
The files aren't anywhere near 250M they are at most a few M big. The 
particular files that we saw crash it were only around 200k


Monkeyden wrote:


This is where I was going with it:

Search for maxFileSize.  Default is 250M, which sounds big.

http://struts.apache.org/1.2.x/userGuide/configuration.html#struts-config


On 8/8/06, Monkeyden [EMAIL PROTECTED] wrote:



How big is the file?


On 8/8/06, Jon Koberstein [EMAIL PROTECTED] wrote:

 We are using struts to develop an online classifieds site. While
 uploading pictures for the classified a few clients get the error
 message given below. We spoke briefly with one of the clients that is
 having this problem and he was using a DSL connection and uploading a
 picture of size 200k. We haven't been able to reproduce the error 
using
 our own equipment. When the error occurs execution appears to end 
before

 our command is even called. Any ideas or suggestions would be greatly
 appreciated!

 Thanks
 Jon

 ==
 =The browser shows this error
 ==

 HTTP Status 500 -
 



 type Exception report

 message

 description The server encountered an internal error () that prevented
 it from fulfilling this request.

 exception

 javax.servlet.ServletException: Processing of multipart/form-data
 request failed. Stream ended unexpectedly

 org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(
 CommonsMultipartRequestHandler.java:204)
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java :445)
 org.apache.struts.action.RequestProcessor.processPopulate(
 RequestProcessor.java:798)
 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java

 :205)
 org.apache.struts.action.ActionServlet.process 
(ActionServlet.java:1164)

 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 javax.servlet.http.HttpServlet.service(HttpServlet.java :802)

 root cause

 org.apache.commons.fileupload.FileUploadException: Processing of
 multipart/form-data request failed. Stream ended unexpectedly
 org.apache.commons.fileupload.FileUploadBase.parseRequest (
 FileUploadBase.java:429)
 org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(
 CommonsMultipartRequestHandler.java:195)
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:445)
 org.apache.struts.action.RequestProcessor.processPopulate (
 RequestProcessor.java:798)
 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java

 :205)
 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

 org.apache.struts.action.ActionServlet.doPost (ActionServlet.java:415)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 ==
 =In our logs we see this error.
 ==

 Failed to parse multipart request
 org.apache.commons.fileupload.FileUploadException: Processing of
 multipart/form-data request failed. Stream ended unexpectedly
at
 org.apache.commons.fileupload.FileUploadBase.parseRequest(
 FileUploadBase.java:429)
at
 org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(
 CommonsMultipartRequestHandler.java :195)
at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:445)
at
 org.apache.struts.action.RequestProcessor.processPopulate(
 RequestProcessor.java:798)
at
 org.apache.struts.action.RequestProcessor.process 
(RequestProcessor.java

 :205)
at
 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service 
(HttpServlet.java:709)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 ApplicationFilterChain.java:252)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(
 ApplicationFilterChain.java:173)
at
 org.apache.catalina.core.StandardWrapperValve.invoke(
 StandardWrapperValve.java:213)
at
 org.apache.catalina.core.StandardContextValve.invoke (
 StandardContextValve.java:178)
at
 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java

 :126)
at
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java

 :105)
at
 org.apache.catalina.core.StandardEngineValve.invoke(
 StandardEngineValve.java:107)
at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
 :148)
at
 org.apache.jk.server.JkCoyoteHandler.invoke (JkCoyoteHandler.java:307)
at
 

Re: Plz Help, Urgent

2006-08-10 Thread Puneet Lakhina

On 8/10/06, Medicherla Lakshmi [EMAIL PROTECTED] wrote:


Hi All,

  I developed an application which forwards menuitems.jsp as we login and
it was working fine.
  I changed the name of the jsp into MenuItems.jsp and trying to access,
it gives the following error.  I felt it unable to find the class file. So,
undeployed the application and deployed again.  Still its giving the same
problem.
  Can anyone tell me why is it so.

javax.servlet.ServletException: org/apache/jsp/MenuItems_jsp (wrong name:
org/apache/jsp/menuitems_jsp)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(
MonitorFilter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(
RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(
MonitorFilter.java:362)

  root cause
java.lang.NoClassDefFoundError: org/apache/jsp/MenuItems_jsp (wrong name:
org/apache/jsp/menuitems_jsp)   java.lang.ClassLoader.defineClass1(Native
Method)   java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:589)
org.apache.jasper.servlet.JspServletWrapper.getServlet(
JspServletWrapper.java:137)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(
MonitorFilter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(
RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(
MonitorFilter.java:362)

Thanks and Regards,

Lakshmi


-
Here's a new way to find what you're looking for - Yahoo! Answers



coud you post your web.xml and struts-config.xml.. that will give an idea as
to where and what is happening

--
Puneet


html:checkbox issue

2006-08-10 Thread Adam Gordon

I'm sure this is a coding problem (they usually are...) on the server-side:

I've got an html:checkbox in a form and the property is mapped/spelled 
correctly to the field/method in the bean.  The behavior I am seeing is 
that the bean property (a boolean) is not being set based on the state 
of the checkbox.


I fired up Ethereal and following the TCP stream from the POST, I can 
see the name of the property being passed (property name=on) as a 
parameter on the request if the checkbox is checked, but if it is not 
checked, the parameter doesn't show up at all on the request (I'd 
expected property name=off) but this might be the reason that Struts 
can't set the property if it doesn't know the value


Obviously, I can issue a request.getParameter(property name) and if it 
returns null, set the property on the bean myself, but I had hoped 
Struts would do this for me...


Anyone run into this before or have any suggestions?  Thanks.

-- adam


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



Re: html:checkbox issue

2006-08-10 Thread David Durham

Adam Gordon wrote:
I've got an html:checkbox in a form and the property is mapped/spelled 
correctly to the field/method in the bean.  The behavior I am seeing is 
that the bean property (a boolean) is not being set based on the state 
of the checkbox.


I fired up Ethereal and following the TCP stream from the POST, I can 
see the name of the property being passed (property name=on) as a 
parameter on the request if the checkbox is checked, but if it is not 
checked, the parameter doesn't show up at all on the request (I'd 
expected property name=off) but this might be the reason that Struts 
can't set the property if it doesn't know the value


Obviously, I can issue a request.getParameter(property name) and if it 
returns null, set the property on the bean myself, but I had hoped 
Struts would do this for me...


Anyone run into this before or have any suggestions?  Thanks.


Try using multibox.  I think it will do what you need.

http://husted.com/struts/tips/007.html

-Dave


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



Re: html:checkbox issue

2006-08-10 Thread kalpesh modi
You can keep the default value for the checkbox field to be off in the form 
bean. It will be set to on only if the checkbox is checked on the JSP.

Thanks,
-Kalpesh

Adam Gordon [EMAIL PROTECTED] wrote: I'm sure this is a coding problem (they 
usually are...) on the server-side:

I've got an html:checkbox in a form and the property is mapped/spelled 
correctly to the field/method in the bean.  The behavior I am seeing is 
that the bean property (a boolean) is not being set based on the state 
of the checkbox.

I fired up Ethereal and following the TCP stream from the POST, I can 
see the name of the property being passed (
=on) as a 
parameter on the request if the checkbox is checked, but if it is not 
checked, the parameter doesn't show up at all on the request (I'd 
expected 
=off) but this might be the reason that Struts 
can't set the property if it doesn't know the value

Obviously, I can issue a request.getParameter(
) and if it 
returns null, set the property on the bean myself, but I had hoped 
Struts would do this for me...

Anyone run into this before or have any suggestions?  Thanks.

-- adam


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







-
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 

Re: html:checkbox issue

2006-08-10 Thread Adam Gordon

David-

Since I've only one checkbox, I think that's way overkill...regardless, 
I should take back my prior comment about the documentation for struts:


http://struts.apache.org/1.x/struts-taglib/tlddoc/index.html has a 
WARNING about how to make struts have the ability to detect unchecked 
checkboxes.  It's amazing how RTFM results in user education...


Incidentally, I believe this is basically the same as what Kalpesh 
suggests in the follow up email...


-Adam

David Durham wrote:

Adam Gordon wrote:
I've got an html:checkbox in a form and the property is 
mapped/spelled correctly to the field/method in the bean.  The 
behavior I am seeing is that the bean property (a boolean) is not 
being set based on the state of the checkbox.


I fired up Ethereal and following the TCP stream from the POST, I can 
see the name of the property being passed (property name=on) as a 
parameter on the request if the checkbox is checked, but if it is not 
checked, the parameter doesn't show up at all on the request (I'd 
expected property name=off) but this might be the reason that 
Struts can't set the property if it doesn't know the value


Obviously, I can issue a request.getParameter(property name) and if 
it returns null, set the property on the bean myself, but I had hoped 
Struts would do this for me...


Anyone run into this before or have any suggestions?  Thanks.


Try using multibox.  I think it will do what you need.

http://husted.com/struts/tips/007.html

-Dave


-
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]



clear vs. reset

2006-08-10 Thread Caroline Jen
When a session ends, all data submitted have to be
cleared.

My form bean is in a session.  I want to re-use the
submitted data during the session.

It seems that if I have the 'reset' method in my form
bean, the submitted data are lost when I want to
re-use the data.  

What are the differences between the 'clear' method
and the 'reset' method?

Thanks for your advice.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How to retrieve parameters off URL in JSP via Struts

2006-08-10 Thread David Durham

Adam Gordon wrote:
A, if only the taglib docs were documented in a more thorough 
manner


Since I wanted to render some Struts tags based on the presence of a 
parameter, I discovered the logic:present element and used the 
parameter attribute.  Hooray for me!


It's possible to use EL:

${param.paramName}

So,

c:if test=${param.paramName != null} /

But, that's not Struts.


-Dave

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



Re: clear vs. reset

2006-08-10 Thread Adam Gordon

Caroline-

I can't speak for clear vs. reset, but if you look at the default 
implementation of reset(...), it doesn't do anything - you have to 
override it in your form bean to have it do anything.


However, if you want to persist the data, you can set an attribute on 
the session and it will be available everywhere.


Hope that helps.

-Adam

Caroline Jen wrote:

When a session ends, all data submitted have to be
cleared.

My form bean is in a session.  I want to re-use the
submitted data during the session.

It seems that if I have the 'reset' method in my form
bean, the submitted data are lost when I want to
re-use the data.  


What are the differences between the 'clear' method
and the 'reset' method?

Thanks for your advice.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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]



RE: validation of two form properties

2006-08-10 Thread Givler, Eric
If I can't write it in validator easily, then I write it in the validate() 
method.  I use validator for required, date mask, integer, and a few others.  
If I knew anything about regular expressions or struts validator's validwhen() 
I'd probably do more - excuses, excuses.

So, you could say something like:

public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request)
{
   log.info( request.getRemoteUser() +  *** validate - Start ***);
   // Struts validator is happening here
   ActionErrors errors = super.validate(mapping, request);
   // I've seen examples that use null, but when I run it now, isEmpty() is 
true and the errors object is not null)
   if (( errors == null ) || errors.isEmpty() )
   {   
  if (errors == null) errors = new ActionErrors();
   
  // write your validation logic here, and set valid

  if (!valid) {
 // gain access to msg resource bundle...
 MessageResources mr = (MessageResources) 
request.getAttribute(Globals.MESSAGES_KEY);
 // lookup any replace-able values to place into msg
 String strArg0 = mr.getMessage(Page1.first_name);
 //...
 // Add msg to errors:
 errors.add ( property, new ActionMessage( msg.key, strArg0 
[,...] );
  }
   }
   return errors;
   }

If this is off base, then I'll assume someone else will chime in.


-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 8:57 AM
To: user@struts.apache.org
Subject: RE: validation of two form properties


can someone help me wih this please? Thanks.


From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: validation of two form properties
Date: Tue, 08 Aug 2006 15:50:58 -0400

have form properties a and b

have to validate that property b is an integer, greater than 0 and also 
greater than form property a.

field property=b depends=integer,validwhen
msg name=integer key=errors.notvalid/
msg name=validwhen key=errors.notvalid/
var
var-nametest/var-name
var-value( (*this* = 0) and (*this* = a) 
)/var-value
/var
/field

tried using the above. but not working. getting error message even when the 
form property is greater than zero and greater than a.

what is missing here? Thanks.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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


_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-
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 message Help

2006-08-10 Thread Puneet Lakhina

On 8/10/06, Krishna, Hari [EMAIL PROTECTED]  wrote:


Hi
I have a registration page where i have a list of text boxes (all are
mandatory).Is it possible to show one single error message for all the
fields while highlighting all of them in RED color?



For highlighting the the textboxes with red bordor or whatever you could use
something called errorStyle, which is available for struts version 1.2.5 and
above.
http://struts.apache.org/1.2.9/userGuide/struts-html.html#text

Could you please clarify on what you mean by one error message,
as in do you want it one line saying field1 field2 field3.. missing or do
you just want fields missing or do you want field1 missing.
--
Puneet


Re: clear vs. reset

2006-08-10 Thread Martin Gainty
My simple explanation
Reset is supposed to reset all of the form fields to their original default 
values
Clear is supposed to clear all of the form fields

Anyone else?
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Adam Gordon [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, August 10, 2006 1:46 PM
Subject: Re: clear vs. reset


 Caroline-
 
 I can't speak for clear vs. reset, but if you look at the default 
 implementation of reset(...), it doesn't do anything - you have to 
 override it in your form bean to have it do anything.
 
 However, if you want to persist the data, you can set an attribute on 
 the session and it will be available everywhere.
 
 Hope that helps.
 
 -Adam
 
 Caroline Jen wrote:
 When a session ends, all data submitted have to be
 cleared.

 My form bean is in a session.  I want to re-use the
 submitted data during the session.

 It seems that if I have the 'reset' method in my form
 bean, the submitted data are lost when I want to
 re-use the data.  

 What are the differences between the 'clear' method
 and the 'reset' method?

 Thanks for your advice.

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.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]
 


Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-10 Thread James Mitchell
Looks like I'll have some time this weekend to work on this.  And so  
I wanted to get some feedback on this process.  How do we want to do  
this?


Are both Retrotranslator and Retroweaver necessary for full 1.4  
compatibility?  Or will using just 1 suffice?  Do we use these from  
the command line or with a Maven plugin or should use antrun maven  
plugin to do it?


In any case, what is the targeted output for all of this?

http://people.apache.org/builds/struts/nightlies/
   /2.0.x/struts2-j14-api-2.0.0-SNAPSHOT-20060804.jar
   /2.0.x/struts2-j15-api-2.0.0-SNAPSHOT-20060804.jar


I think for now, I'll add this process manually (as part of my  
nightly bash script) and then we can work out the details later.


--
James Mitchell
678.910.8017




On Aug 2, 2006, at 2:19 PM, Ted Husted wrote:


Feel free. Note that I included a README and the relevant license
files in the S2-for-J4 distribution, which we might want to include in
the nightly process.

-T.

On 8/2/06, James Mitchell [EMAIL PROTECTED] wrote:

Would you like me to add this to the nightly process?


--
James Mitchell
678.910.8017




On Aug 2, 2006, at 6:38 AM, Ted Husted wrote:

 On 8/2/06, Don Brown [EMAIL PROTECTED] wrote:
 Ah, yeah, we'll have to run XWork through the retrotranslater/ 
weaver
 too, as it is built with Java 5.  Ted, can you make the build  
changes

 to XWork too?  If you need commit access, let Pat or Jason know.

 For now, I just ran the J5 JARs through the translator and  
posted the

 ZIP. There isn't a build per se yet.

 * http://people.apache.org/builds/struts/2.0.x/nightly/

 I added a translated XWork JAR to the build from yesterday. I  
wish I
 could test this myself, but I just don't have any discretionary  
time

 this week.

 -Ted.

  
-

 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]





--
HTH, Ted.
* http://www.husted.com/struts/

-
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: Stream ended unexpectedly

2006-08-10 Thread Max Cooper
What browser is the user using? Are they double-clicking the submit 
button? Pressing stop because it seems like it is taking too long? Can 
they successfully upload the same file (or another that is similar in 
size) to another web site? I would ask the user those questions.


-Max

Jon Koberstein wrote:
The files aren't anywhere near 250M they are at most a few M big. The 
particular files that we saw crash it were only around 200k


Monkeyden wrote:


This is where I was going with it:

Search for maxFileSize.  Default is 250M, which sounds big.

http://struts.apache.org/1.2.x/userGuide/configuration.html#struts-config


On 8/8/06, Monkeyden [EMAIL PROTECTED] wrote:



How big is the file?


On 8/8/06, Jon Koberstein [EMAIL PROTECTED] wrote:

 We are using struts to develop an online classifieds site. While
 uploading pictures for the classified a few clients get the error
 message given below. We spoke briefly with one of the clients that is
 having this problem and he was using a DSL connection and uploading a
 picture of size 200k. We haven't been able to reproduce the error 
using
 our own equipment. When the error occurs execution appears to end 
before

 our command is even called. Any ideas or suggestions would be greatly
 appreciated!

 Thanks
 Jon

 ==
 =The browser shows this error
 ==

 HTTP Status 500 -
 



 type Exception report

 message

 description The server encountered an internal error () that prevented
 it from fulfilling this request.

 exception

 javax.servlet.ServletException: Processing of multipart/form-data
 request failed. Stream ended unexpectedly

 org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(
 CommonsMultipartRequestHandler.java:204)
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java :445)
 org.apache.struts.action.RequestProcessor.processPopulate(
 RequestProcessor.java:798)
 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java

 :205)
 org.apache.struts.action.ActionServlet.process 
(ActionServlet.java:1164)

 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 javax.servlet.http.HttpServlet.service(HttpServlet.java :802)

 root cause

 org.apache.commons.fileupload.FileUploadException: Processing of
 multipart/form-data request failed. Stream ended unexpectedly
 org.apache.commons.fileupload.FileUploadBase.parseRequest (
 FileUploadBase.java:429)
 org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(
 CommonsMultipartRequestHandler.java:195)
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:445)
 org.apache.struts.action.RequestProcessor.processPopulate (
 RequestProcessor.java:798)
 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java

 :205)
 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

 org.apache.struts.action.ActionServlet.doPost (ActionServlet.java:415)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 ==
 =In our logs we see this error.
 ==

 Failed to parse multipart request
 org.apache.commons.fileupload.FileUploadException: Processing of
 multipart/form-data request failed. Stream ended unexpectedly
at
 org.apache.commons.fileupload.FileUploadBase.parseRequest(
 FileUploadBase.java:429)
at
 org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(
 CommonsMultipartRequestHandler.java :195)
at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:445)
at
 org.apache.struts.action.RequestProcessor.processPopulate(
 RequestProcessor.java:798)
at
 org.apache.struts.action.RequestProcessor.process 
(RequestProcessor.java

 :205)
at
 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service 
(HttpServlet.java:709)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 ApplicationFilterChain.java:252)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(
 ApplicationFilterChain.java:173)
at
 org.apache.catalina.core.StandardWrapperValve.invoke(
 StandardWrapperValve.java:213)
at
 org.apache.catalina.core.StandardContextValve.invoke (
 StandardContextValve.java:178)
at
 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java

 :126)
at
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java

 

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-10 Thread Ted Husted

On 8/10/06, James Mitchell [EMAIL PROTECTED] wrote:

Looks like I'll have some time this weekend to work on this.  And so
I wanted to get some feedback on this process.  How do we want to do
this?

Are both Retrotranslator and Retroweaver necessary for full 1.4
compatibility?  Or will using just 1 suffice?


AFAIK, RetroTranslator should be sufficient.



Do we use these from
the command line or with a Maven plugin or should use antrun maven
plugin to do it?


I just filtered the JARs from the command line. I suppose the Maven
plugin would work too. I think it might be best to keep this a
separate JAR distribution and make the cannonical target Java 5.




In any case, what is the targeted output for all of this?


I uploaded the test distribution from August 2 to my home directory.

* http://people.apache.org/~husted/struts2-core-j4-2.0.0-SNAPSHOT-20060801.zip




http://people.apache.org/builds/struts/nightlies/
/2.0.x/struts2-j14-api-2.0.0-SNAPSHOT-20060804.jar
/2.0.x/struts2-j15-api-2.0.0-SNAPSHOT-20060804.jar


I'd keep the J4 as a special distribution and leave J5 as the
default. So I'd say keep what we got as it is, and just add the ZIP
with a translated J4 JARs.





I think for now, I'll add this process manually (as part of my
nightly bash script) and then we can work out the details later.

--
James Mitchell
678.910.8017


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



Re: EventActionDispatcher, specifying event from ActionClass not JSP?

2006-08-10 Thread Mississippi John Hurt

It doesn't seem to pick up the eventName. It forwards to the 2nd action
class alright, but somehow the EventActionDispatcher is told which event, is
it via a form parameter or request attribute?  Which one?

On 8/10/06, kalpesh modi [EMAIL PROTECTED] wrote:


You can do something like

return new ActionForward(/secondAction.do?eventName);

Thanks,
-Kalpesh

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2¢/min or less.



Re: EventActionDispatcher, specifying event from ActionClass not JSP?

2006-08-10 Thread Mississippi John Hurt

I tried this and it works...

return new ActionForward(/secondAction.do?anyEventName=OneOfParams);

the anyEventName can be anything, while OneOfParams has to be one of the
values in the parameter list in the struts config.
One possible problem is that it seems the dispatcher will simply try to
match each param from first to last with any form parameter so you have to
be careful that no form param values might resemble on of the parameters in
your struts config.

For example what is someone had an input field where they typed in 'delete'
and you had 1 of the parameters ie methods as 'delete', then the dispatcher
could very well match the delete methodparam with the delete value of the
form input field and trigger the delete() method.

Isn't this an issue anybody?

On 8/10/06, Mississippi John Hurt [EMAIL PROTECTED] wrote:


It doesn't seem to pick up the eventName. It forwards to the 2nd action
class alright, but somehow the EventActionDispatcher is told which event, is
it via a form parameter or request attribute?  Which one?


On 8/10/06, kalpesh modi [EMAIL PROTECTED] wrote:

 You can do something like

 return new ActionForward(/secondAction.do?eventName);

 Thanks,
 -Kalpesh

 -
 Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
 countries) for 2¢/min or less.





RE: How to retrieve parameters off URL in JSP via Struts

2006-08-10 Thread Vishal Seth
In el you need not check for null like this...you can also use isEmpty
method..
It also checks for empty string I guess..


-Original Message-
From: David Durham [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 11:09 PM
To: Struts Users Mailing List
Subject: Re: How to retrieve parameters off URL in JSP via Struts

Adam Gordon wrote:
 A, if only the taglib docs were documented in a more thorough 
 manner
 
 Since I wanted to render some Struts tags based on the presence of a 
 parameter, I discovered the logic:present element and used the 
 parameter attribute.  Hooray for me!

It's possible to use EL:

${param.paramName}

So,

c:if test=${param.paramName != null} /

But, that's not Struts.


-Dave

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





MASTEK 
Making a valuable difference
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~


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



click first table rows, the rows of second table change ??

2006-08-10 Thread A. Lotfi
I am trying to have in my jsp page two tables :
   
  First table : Select the package  :
  row1
  row2
  row3
  ...
  row10
   
  each time the user select a row, the rows in the second table change :
  for example if the user click in row2 the second table will be like this :
   
  Second Table : Select the page to print :
  row2Page1
  row2Page2
  ...
  row2Page6
   
   
  Could you please give me an idea on how to do it, thanks your help is 
appreciated.
   


-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

Re: Dynamic directory creation and access

2006-08-10 Thread Lixin Chu

is Apache Slide somthing you are looking for ?


Radio Button Issue

2006-08-10 Thread Krishna, Hari
Hi all,
I am displaying a list of Radio buttons using html:radio inside a 
logic:iterate which is displaying the radio buttons properly.But when the 
selected value is submitted to the action i am unable to show the selected one 
in jsp.How to deal with Radio buttons more effectively (while passing values to 
action )and how to show the selected radio button in jsp?

With Best Regards,
I.Hari krishna.

Franklin Templeton Investments
+91- 44 - 24407000 Extn:17123
--
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

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



Splitting validation.xml

2006-08-10 Thread Kevin Maeer

I want to split the validation.xml file into multiple files so some pages can be
more easily reused. If I save the new file under /WEB-INF/ and add it to the
ValidatorPlugIn pathnames in struts-config.xml everything works fine.

If I move the new file out into the class hierarchy and change the
ValidatorPlugIn entry to point to the new location, it all turns to custard and
I get the following in the logs:
 
Loading validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-validation
.xml' 
Skipping validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-validation
.xml'.  No stream could be opened.
javax.servlet.ServletException: Skipping validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-validation
.xml'.  No stream could be opened.
at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:2
26)
at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:162)

Is it possible to specify a location that isn't under web-inf for the validation
file and if so how is it specified? All the examples I've googled, that have the
file not under web-inf, use the old style pathname property to specify the
location.

Thanks,
Kevin


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



RE: Splitting validation.xml

2006-08-10 Thread David Friedman
Kevin,

A number of java application/web servers have issues with files outside of
the web application directories.  For example Tomcat has a policy file that
often requires tweaking to open files in other places for reading.  What is
your application server?   Perhaps someone here has experience with it.

Regards,
David

-Original Message-
From: Kevin Maeer [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 1:34 AM
To: 'Struts Users Mailing List'
Subject: Splitting validation.xml

I want to split the validation.xml file into multiple files so some pages
can be
more easily reused. If I save the new file under /WEB-INF/ and add it to the
ValidatorPlugIn pathnames in struts-config.xml everything works fine.

If I move the new file out into the class hierarchy and change the
ValidatorPlugIn entry to point to the new location, it all turns to custard
and
I get the following in the logs:

Loading validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-valida
tion
.xml'
Skipping validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-valida
tion
.xml'.  No stream could be opened.
javax.servlet.ServletException: Skipping validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-valida
tion
.xml'.  No stream could be opened.
at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.ja
va:2
26)
at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:162)

Is it possible to specify a location that isn't under web-inf for the
validation
file and if so how is it specified? All the examples I've googled, that have
the
file not under web-inf, use the old style pathname property to specify the
location.

Thanks,
Kevin


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