Re: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread Martin Gainty
Saul:
Run websphere as root or Administrator in Windows
Regards,
Martin
- Original Message -
From: "Saul Q Yuan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 23, 2004 9:05 PM
Subject: Re: Error while upgrading from struts version 1.0 to 1.1


Can you run any example applications from Struts1.1 in your current
enviroment, that is Webshpere, I think? just try to see if it's an upgrading
issue or your application server setup issue. If it's an Websphere issue,
you may have better luck from the Websphere user group.

  - Original Message -
  From: Jignesh Kapadia
  To: Struts Users Mailing List
  Sent: Tuesday, March 23, 2004 7:30 PM
  Subject: RE: Error while upgrading from struts version 1.0 to 1.1


  Hi ,
   Now today I tried it with the Simple Log and tried to run a very
simple APP using in WSAD with Struts 1.1 and the Log file generated
following error.




  3/23/04 15:58:10:184 EST] 26c486ff ServletEngine A SRVE0169I: Loading
  Web Module: Hello.
  [3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet
  LOG]: JSP 1.1 Processor: init
  [3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet
  LOG]: SimpleFileServlet: init
  [3/23/04 15:58:10:528 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet
  LOG]: InvokerServlet: init
  [3/23/04 15:58:10:684 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet
  LOG]: action: init
  [INFO] PropertyMessageResources - -Initializing,
  config='org.apache.struts.util.LocalStrings', returnNull=true
  [INFO] PropertyMessageResources - -Initializing,
  config='org.apache.struts.action.ActionResources', returnNull=true
  [INFO] PropertyMessageResources - -Initializing,
  config='ApplicationResources', returnNull=true
  [3/23/04 15:58:11:496 EST] 26c486ff HttpTransport A SRVE0171I:
  Transport http is listening on port 8,080.
  [3/23/04 15:58:11:496 EST] 26c486ff WSRegistryImp X Unable to
  initialize user registry class
  com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type
Windows due to exception: Access is denied.

  [3/23/04 15:58:11:496 EST] 26c486ff StandardIniti W SECJ0007E: Error
  during security initialization. Exception
  com.ibm.ejs.security.registry.RegistryErrorException: Windows:Access is
denied.




  I think Its not able to read any Property file in struts.jar file. Do we
need to do any setting in web.xml ot struts-config.xml.  The resoucebundle
has already an entry in config.xml file.

  Please help,
  Jignesh


  Saul Q Yuan <[EMAIL PROTECTED]> wrote:
  >From the error log, it seems it's looking for the default logger which
  comes with jdk1.4. Have you configured to use a logger like log4j, if
  you havn't configured one, then Struts will try to use the logger from
  jdk1.4. So, try to configure log4j, or use jdk1.4 to see how it goes.
  The following thread may be helpful.

  http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0209/tmct-020998/tmct
  02092603_04404.html


  -Original Message-
  From: Jignesh Kapadia [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 22, 2004 10:34 PM
  To: Struts Users Mailing List
  Subject: Re: Error while upgrading from struts version 1.0 to 1.1


  Well I think my struts-config.xml is proper except
  I dont know what to put for

  In web.xml file all parameters are proper Except following
  config/${module} and rulesets parameter .
  My aplication has only one module and I dont know what to put for
  RuleSet since I am using th e default one i.e.
  org.apache.commons.digester.RuleSet.

  Also I have moved the MessageResources has been moved from web.xml to
  struts-Config.xml. From the error I had set earlier. I think its failing
  in ActionServlet.init(). I am attaching the error file again.

  Thanks,
  Jignesh


  Saul Q Yuan wrote:

  Well, here is a bit longer version of the reply. There are many changes
  from Struts 1.0.1 to 1.1, you can find a full description below:

  http://jakarta.apache.org/struts/userGuide/release-notes.html

  and the configuration changes below.

  http://jakarta.apache.org/struts/userGuide/configuration.html


  Back to your particular questions, yes, you'll need to define your
  Message resouce like the following:

  in Struts-config.xml file.

  And Struts1.1 works with JDK1.2 and up.

  HTH,
  Saul


  - Original Message -
  From: Jignesh Kapadia
  To: Struts Users Mailing List
  Sent: Monday, March 22, 2004 7:52 PM
  Subject: RE: Error while upgrading from struts version 1.0 to 1.1


  Well,
  All the jar files are compiled properly. do we need to add some special
  parameter in in Struts-Config.xml file? It seems its looking for some
  Message Resource Factory Information. Also does Struts 1.1 work with JDK
  1.3.* or we need to have JDK 1.4*? I am struggling with this for almost
  2 days now. I created a new application and copied this Struts1.1/jar
 

Re: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread Saul Q Yuan
Can you run any example applications from Struts1.1 in your current enviroment, that 
is Webshpere, I think? just try to see if it's an upgrading issue or your application 
server setup issue. If it's an Websphere issue, you may have better luck from the 
Websphere user group.

  - Original Message - 
  From: Jignesh Kapadia 
  To: Struts Users Mailing List 
  Sent: Tuesday, March 23, 2004 7:30 PM
  Subject: RE: Error while upgrading from struts version 1.0 to 1.1


  Hi ,
   Now today I tried it with the Simple Log and tried to run a very simple APP 
using in WSAD with Struts 1.1 and the Log file generated following error.
   
   
   
   
  3/23/04 15:58:10:184 EST] 26c486ff ServletEngine A SRVE0169I: Loading 
  Web Module: Hello.
  [3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
  LOG]: JSP 1.1 Processor: init
  [3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
  LOG]: SimpleFileServlet: init
  [3/23/04 15:58:10:528 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
  LOG]: InvokerServlet: init
  [3/23/04 15:58:10:684 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
  LOG]: action: init
  [INFO] PropertyMessageResources - -Initializing, 
  config='org.apache.struts.util.LocalStrings', returnNull=true
  [INFO] PropertyMessageResources - -Initializing, 
  config='org.apache.struts.action.ActionResources', returnNull=true
  [INFO] PropertyMessageResources - -Initializing, 
  config='ApplicationResources', returnNull=true
  [3/23/04 15:58:11:496 EST] 26c486ff HttpTransport A SRVE0171I: 
  Transport http is listening on port 8,080.
  [3/23/04 15:58:11:496 EST] 26c486ff WSRegistryImp X Unable to 
  initialize user registry class 
  com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due to 
exception: Access is denied.

  [3/23/04 15:58:11:496 EST] 26c486ff StandardIniti W SECJ0007E: Error 
  during security initialization. Exception 
  com.ibm.ejs.security.registry.RegistryErrorException: Windows:Access is denied.

   
   
   
  I think Its not able to read any Property file in struts.jar file. Do we need to do 
any setting in web.xml ot struts-config.xml.  The resoucebundle has already an entry 
in config.xml file.
   
  Please help,
  Jignesh


  Saul Q Yuan <[EMAIL PROTECTED]> wrote:
  >From the error log, it seems it's looking for the default logger which
  comes with jdk1.4. Have you configured to use a logger like log4j, if
  you havn't configured one, then Struts will try to use the logger from
  jdk1.4. So, try to configure log4j, or use jdk1.4 to see how it goes.
  The following thread may be helpful.

  http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0209/tmct-020998/tmct
  02092603_04404.html


  -Original Message-
  From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
  Sent: Monday, March 22, 2004 10:34 PM
  To: Struts Users Mailing List
  Subject: Re: Error while upgrading from struts version 1.0 to 1.1


  Well I think my struts-config.xml is proper except 
  I dont know what to put for 

  In web.xml file all parameters are proper Except following
  config/${module} and rulesets parameter . 
  My aplication has only one module and I dont know what to put for
  RuleSet since I am using th e default one i.e.
  org.apache.commons.digester.RuleSet.

  Also I have moved the MessageResources has been moved from web.xml to
  struts-Config.xml. From the error I had set earlier. I think its failing
  in ActionServlet.init(). I am attaching the error file again.

  Thanks,
  Jignesh 


  Saul Q Yuan wrote:

  Well, here is a bit longer version of the reply. There are many changes
  from Struts 1.0.1 to 1.1, you can find a full description below:

  http://jakarta.apache.org/struts/userGuide/release-notes.html

  and the configuration changes below.

  http://jakarta.apache.org/struts/userGuide/configuration.html


  Back to your particular questions, yes, you'll need to define your
  Message resouce like the following:

  in Struts-config.xml file. 

  And Struts1.1 works with JDK1.2 and up. 

  HTH,
  Saul


  - Original Message - 
  From: Jignesh Kapadia 
  To: Struts Users Mailing List 
  Sent: Monday, March 22, 2004 7:52 PM
  Subject: RE: Error while upgrading from struts version 1.0 to 1.1


  Well,
  All the jar files are compiled properly. do we need to add some special
  parameter in in Struts-Config.xml file? It seems its looking for some
  Message Resource Factory Information. Also does Struts 1.1 work with JDK
  1.3.* or we need to have JDK 1.4*? I am struggling with this for almost
  2 days now. I created a new application and copied this Struts1.1/jar
  file along with the set of Commons.jar file.

  It will a good if somebody can help out in this.

  Thanks,
  Jignesh

  Saul Q Yuan wrote:
  I think you need to recompile your application against the new
  Struts.jar file and other jar files it depends on.

  Saul

  -

RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread a s
Hi Jignesh,
When I was upgrading to struts1.1 beta last year, I had some issues.
I did a clean up of the work directory in the Resin Application Server, and 
everything was fine
 
-Aswath

Jignesh Kapadia <[EMAIL PROTECTED]> wrote:
Hi ,
Now today I tried it with the Simple Log and tried to run a very simple APP using in 
WSAD with Struts 1.1 and the Log file generated following error.




3/23/04 15:58:10:184 EST] 26c486ff ServletEngine A SRVE0169I: Loading 
Web Module: Hello.
[3/23/04 15:58:10:512 EST] 26c486ff WebGroup I SRVE0091I: [Servlet 
LOG]: JSP 1.1 Processor: init
[3/23/04 15:58:10:512 EST] 26c486ff WebGroup I SRVE0091I: [Servlet 
LOG]: SimpleFileServlet: init
[3/23/04 15:58:10:528 EST] 26c486ff WebGroup I SRVE0091I: [Servlet 
LOG]: InvokerServlet: init
[3/23/04 15:58:10:684 EST] 26c486ff WebGroup I SRVE0091I: [Servlet 
LOG]: action: init
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='ApplicationResources', returnNull=true
[3/23/04 15:58:11:496 EST] 26c486ff HttpTransport A SRVE0171I: 
Transport http is listening on port 8,080.
[3/23/04 15:58:11:496 EST] 26c486ff WSRegistryImp X Unable to 
initialize user registry class 
com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due to 
exception: Access is denied.

[3/23/04 15:58:11:496 EST] 26c486ff StandardIniti W SECJ0007E: Error 
during security initialization. Exception 
com.ibm.ejs.security.registry.RegistryErrorException: Windows:Access is denied.




I think Its not able to read any Property file in struts.jar file. Do we need to do 
any setting in web.xml ot struts-config.xml. The resoucebundle has already an entry in 
config.xml file.

Please help,
Jignesh


Saul Q Yuan wrote:
>From the error log, it seems it's looking for the default logger which
comes with jdk1.4. Have you configured to use a logger like log4j, if
you havn't configured one, then Struts will try to use the logger from
jdk1.4. So, try to configure log4j, or use jdk1.4 to see how it goes.
The following thread may be helpful.

http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0209/tmct-020998/tmct
02092603_04404.html


-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:34 PM
To: Struts Users Mailing List
Subject: Re: Error while upgrading from struts version 1.0 to 1.1


Well I think my struts-config.xml is proper except 
I dont know what to put for 

In web.xml file all parameters are proper Except following
config/${module} and rulesets parameter . 
My aplication has only one module and I dont know what to put for
RuleSet since I am using th e default one i.e.
org.apache.commons.digester.RuleSet.

Also I have moved the MessageResources has been moved from web.xml to
struts-Config.xml. From the error I had set earlier. I think its failing
in ActionServlet.init(). I am attaching the error file again.

Thanks,
Jignesh 


Saul Q Yuan wrote:

Well, here is a bit longer version of the reply. There are many changes
from Struts 1.0.1 to 1.1, you can find a full description below:

http://jakarta.apache.org/struts/userGuide/release-notes.html

and the configuration changes below.

http://jakarta.apache.org/struts/userGuide/configuration.html


Back to your particular questions, yes, you'll need to define your
Message resouce like the following:

in Struts-config.xml file. 

And Struts1.1 works with JDK1.2 and up. 

HTH,
Saul


- Original Message - 
From: Jignesh Kapadia 
To: Struts Users Mailing List 
Sent: Monday, March 22, 2004 7:52 PM
Subject: RE: Error while upgrading from struts version 1.0 to 1.1


Well,
All the jar files are compiled properly. do we need to add some special
parameter in in Struts-Config.xml file? It seems its looking for some
Message Resource Factory Information. Also does Struts 1.1 work with JDK
1.3.* or we need to have JDK 1.4*? I am struggling with this for almost
2 days now. I created a new application and copied this Struts1.1/jar
file along with the set of Commons.jar file.

It will a good if somebody can help out in this.

Thanks,
Jignesh

Saul Q Yuan wrote:
I think you need to recompile your application against the new
Struts.jar file and other jar files it depends on.

Saul

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Error while upgrading from struts version 1.0 to 1.1


Hi ,
I am upgrading my current application from Struts 1.0 to Struts
1.1. The application is working properly with version 1.0. I just copied
the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
restart my application it gives meError while loading Action Servlet.
its failing in Super.

RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread Jignesh Kapadia
Hi ,
 Now today I tried it with the Simple Log and tried to run a very simple APP using 
in WSAD with Struts 1.1 and the Log file generated following error.
 
 
 
 
3/23/04 15:58:10:184 EST] 26c486ff ServletEngine A SRVE0169I: Loading 
Web Module: Hello.
[3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
LOG]: JSP 1.1 Processor: init
[3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
LOG]: SimpleFileServlet: init
[3/23/04 15:58:10:528 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
LOG]: InvokerServlet: init
[3/23/04 15:58:10:684 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
LOG]: action: init
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='ApplicationResources', returnNull=true
[3/23/04 15:58:11:496 EST] 26c486ff HttpTransport A SRVE0171I: 
Transport http is listening on port 8,080.
[3/23/04 15:58:11:496 EST] 26c486ff WSRegistryImp X Unable to 
initialize user registry class 
com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due to 
exception: Access is denied.

[3/23/04 15:58:11:496 EST] 26c486ff StandardIniti W SECJ0007E: Error 
during security initialization. Exception 
com.ibm.ejs.security.registry.RegistryErrorException: Windows:Access is denied.

 
 
 
I think Its not able to read any Property file in struts.jar file. Do we need to do 
any setting in web.xml ot struts-config.xml.  The resoucebundle has already an entry 
in config.xml file.
 
Please help,
Jignesh


Saul Q Yuan <[EMAIL PROTECTED]> wrote:
>From the error log, it seems it's looking for the default logger which
comes with jdk1.4. Have you configured to use a logger like log4j, if
you havn't configured one, then Struts will try to use the logger from
jdk1.4. So, try to configure log4j, or use jdk1.4 to see how it goes.
The following thread may be helpful.

http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0209/tmct-020998/tmct
02092603_04404.html


-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:34 PM
To: Struts Users Mailing List
Subject: Re: Error while upgrading from struts version 1.0 to 1.1


Well I think my struts-config.xml is proper except 
I dont know what to put for 

In web.xml file all parameters are proper Except following
config/${module} and rulesets parameter . 
My aplication has only one module and I dont know what to put for
RuleSet since I am using th e default one i.e.
org.apache.commons.digester.RuleSet.

Also I have moved the MessageResources has been moved from web.xml to
struts-Config.xml. From the error I had set earlier. I think its failing
in ActionServlet.init(). I am attaching the error file again.

Thanks,
Jignesh 


Saul Q Yuan wrote:

Well, here is a bit longer version of the reply. There are many changes
from Struts 1.0.1 to 1.1, you can find a full description below:

http://jakarta.apache.org/struts/userGuide/release-notes.html

and the configuration changes below.

http://jakarta.apache.org/struts/userGuide/configuration.html


Back to your particular questions, yes, you'll need to define your
Message resouce like the following:

in Struts-config.xml file. 

And Struts1.1 works with JDK1.2 and up. 

HTH,
Saul


- Original Message - 
From: Jignesh Kapadia 
To: Struts Users Mailing List 
Sent: Monday, March 22, 2004 7:52 PM
Subject: RE: Error while upgrading from struts version 1.0 to 1.1


Well,
All the jar files are compiled properly. do we need to add some special
parameter in in Struts-Config.xml file? It seems its looking for some
Message Resource Factory Information. Also does Struts 1.1 work with JDK
1.3.* or we need to have JDK 1.4*? I am struggling with this for almost
2 days now. I created a new application and copied this Struts1.1/jar
file along with the set of Commons.jar file.

It will a good if somebody can help out in this.

Thanks,
Jignesh

Saul Q Yuan wrote:
I think you need to recompile your application against the new
Struts.jar file and other jar files it depends on.

Saul

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Error while upgrading from struts version 1.0 to 1.1


Hi ,
I am upgrading my current application from Struts 1.0 to Struts
1.1. The application is working properly with version 1.0. I just copied
the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
restart my application it gives meError while loading Action Servlet.
its failing in Super.init(). Is there anything I need to do other that
just realcing the war files when I upgrade the Struts version.
The error file is attached in e-mail.


Thanks and Regards,
Jignesh


RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread Saul Q Yuan
>From the error log, it seems it's looking for the default logger which
comes with jdk1.4. Have you configured to use a logger like log4j, if
you havn't configured one, then Struts will try to use the logger from
jdk1.4. So, try to configure log4j, or use jdk1.4 to see how it goes.
The following thread may be helpful.
 
http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0209/tmct-020998/tmct
02092603_04404.html
 

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:34 PM
To: Struts Users Mailing List
Subject: Re: Error while upgrading from struts version 1.0 to 1.1


Well I think my struts-config.xml is proper except 
I dont know what to put for   
 
In web.xml file all parameters are proper Except following
config/${module} and  rulesets  parameter . 
My aplication has only one module and I dont know what to put for
RuleSet since I am using th e default one i.e.
org.apache.commons.digester.RuleSet.
 
Also I have moved the MessageResources has been moved from web.xml to
struts-Config.xml. From the error I had set earlier. I think its failing
in ActionServlet.init(). I am attaching the error file again.
 
Thanks,
Jignesh 


Saul Q Yuan <[EMAIL PROTECTED]> wrote:

Well, here is a bit longer version of the reply. There are many changes
from Struts 1.0.1 to 1.1, you can find a full description below:

http://jakarta.apache.org/struts/userGuide/release-notes.html

and the configuration changes below.

http://jakarta.apache.org/struts/userGuide/configuration.html


Back to your particular questions, yes, you'll need to define your
Message resouce like the following:

in Struts-config.xml file. 

And Struts1.1 works with JDK1.2 and up. 

HTH,
Saul


- Original Message - 
From: Jignesh Kapadia 
To: Struts Users Mailing List 
Sent: Monday, March 22, 2004 7:52 PM
Subject: RE: Error while upgrading from struts version 1.0 to 1.1


Well,
All the jar files are compiled properly. do we need to add some special
parameter in in Struts-Config.xml file? It seems its looking for some
Message Resource Factory Information. Also does Struts 1.1 work with JDK
1.3.* or we need to have JDK 1.4*? I am struggling with this for almost
2 days now. I created a new application and copied this Struts1.1/jar
file along with the set of Commons.jar file.

It will a good if somebody can help out in this.

Thanks,
Jignesh

Saul Q Yuan wrote:
I think you need to recompile your application against the new
Struts.jar file and other jar files it depends on.

Saul

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Error while upgrading from struts version 1.0 to 1.1


Hi ,
I am upgrading my current application from Struts 1.0 to Struts
1.1. The application is working properly with version 1.0. I just copied
the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
restart my application it gives meError while loading Action Servlet.
its failing in Super.init(). Is there anything I need to do other that
just realcing the war files when I upgrade the Struts version.
The error file is attached in e-mail.


Thanks and Regards,
Jignesh

Do you Yahoo!?
Yahoo! Finance Tax Center - File
online. File on time.


Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Do you Yahoo!?
 <http://taxes.yahoo.com/filing.html> Yahoo! Finance Tax Center - File
online. File on time.



Re: Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Jignesh Kapadia

Well I think my struts-config.xml is proper except 
I dont know what to put for   
 
In web.xml file all parameters are proper Except following
config/${module} and  rulesets  parameter . 
My aplication has only one module and I dont know what to put for RuleSet since I am using th e default one i.e. org.apache.commons.digester.RuleSet.
 
Also I have moved the MessageResources has been moved from web.xml to struts-Config.xml. From the error I had set earlier. I think its failing in ActionServlet.init(). I am attaching the error file again.
 
Thanks,
Jignesh 
Saul Q Yuan <[EMAIL PROTECTED]> wrote:
Well, here is a bit longer version of the reply. There are many changes from Struts 1.0.1 to 1.1, you can find a full description below:http://jakarta.apache.org/struts/userGuide/release-notes.htmland the configuration changes below.http://jakarta.apache.org/struts/userGuide/configuration.htmlBack to your particular questions, yes, you'll need to define your Message resouce like the following:in Struts-config.xml file. And Struts1.1 works with JDK1.2 and up. HTH,Saul- Original Message - From: Jignesh Kapadia To: Struts Users Mailing List Sent: Monday, March 22, 2004 7:52 PMSubject: RE: Error while upgrading from struts version 1.0 to 1.1Well,All the jar files are compiled properly. do we need to add some special
 parameter in in Struts-Config.xml file? It seems its looking for some Message Resource Factory Information. Also does Struts 1.1 work with JDK 1.3.* or we need to have JDK 1.4*? I am struggling with this for almost 2 days now. I created a new application and copied this Struts1.1/jar file along with the set of Commons.jar file.It will a good if somebody can help out in this.Thanks,JigneshSaul Q Yuan <[EMAIL PROTECTED]>wrote:I think you need to recompile your application against the newStruts.jar file and other jar files it depends on.Saul-Original Message-From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 1:55 PMTo: [EMAIL PROTECTED]Subject: Error while upgrading from struts version 1.0 to 1.1Hi ,I am upgrading my current application from Struts 1.0 to Struts1.1. The application is working properly with version 1.0. I just copiedthe
 struts 1.1 realted jar files in my web-inf/lib directory. Now when Irestart my application it gives meError while loading Action Servlet.its failing in Super.init(). Is there anything I need to do other thatjust realcing the war files when I upgrade the Struts version.The error file is attached in e-mail.Thanks and Regards,JigneshDo you Yahoo!?Yahoo! Finance Tax Center - Fileonline. File on time.Do you Yahoo!?Yahoo! Finance Tax Center - File online. File on time.Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.*** Starting the server ***
IBM WebSphere Application Server, Release 4.0.4
Advanced Single Server Edition for Multiplatforms
Copyright IBM Corp., 1997-2001

[3/20/04 14:30:12:932 EST] 26cac26b WSRegistryImp X Unable to initialize user registry 
class com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due 
to exception: Access is denied.

[3/20/04 14:30:12:979 EST] 26cac26b SASConfig X SECJ0108E: Unexpected exception 
occurred when getting user registry or registry attributes.
 Start Display Current Environment 
WebSphere AEs 4.0.4 ptf40230.02 running with process name localhost/Default Server and 
process id 346
Host Operating System is Windows NT, version 4.0
Java version = J2RE 1.3.1 IBM Windows 32 build cn131w-20020710 ORB130 (JIT enabled: 
jitc), Java Compiler = jitc, Java VM name = Classic VM
server.root = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4
Java Home = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4\java\jre
ws.ext.dirs = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/java/lib;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/classes;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib/ext;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/web/help;C:/Program Files/SQLLIB/java/db2java.zip;C:/Program 
Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wasListener.jar;C:/Program
 Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.webservice_5.0.1/runtime/worf.jar;C:\wsad40requiredjars;C:\devc\olr_properties\env;C:\JAR\persistent_services_classes.jar;C:\JAR\config_services_classes_1_0_0.jar;C:\JAR\eas_api_classes_2_1_3.jar;C:\JAR\easaccess_classes.jar;C:\JAR\codes_repository_classes.jar;C:\JAR\uniqueidgeneration_services_classes.jar;C:\JAR\xml_services_classes_1_0_0.jar;C:\projects\testingEarWeb\Web
 Content\WEB-INF\classes;C:\projects\testingEarWeb\Web Content\WEB-INF\lib
Classpath = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/properties;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib/bootstrap.jar;C:/Program Files/IBM/WebSphere 
Studi

Re: Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Saul Q Yuan
Well, here is a bit longer version of the reply. There are many changes from Struts 
1.0.1 to 1.1, you can find a full description below:

http://jakarta.apache.org/struts/userGuide/release-notes.html

and the configuration changes below.

http://jakarta.apache.org/struts/userGuide/configuration.html


Back to your particular questions, yes, you'll need to define your Message resouce 
like the following:

 in Struts-config.xml file. 

And Struts1.1 works with JDK1.2 and up. 

HTH,
Saul


  - Original Message - 
  From: Jignesh Kapadia 
  To: Struts Users Mailing List 
  Sent: Monday, March 22, 2004 7:52 PM
  Subject: RE: Error while upgrading from struts version 1.0 to 1.1


  Well,
 All the jar files are compiled properly.  do we need to add  some special  
parameter in  in Struts-Config.xml file? It seems its looking for some Message 
Resource Factory Information. Also does Struts 1.1 work with JDK 1.3.* or we need to 
have JDK 1.4*? I am struggling with this for almost 2 days now. I created a new 
application and copied this Struts1.1/jar file along with the set of Commons.jar file.
   
  It will a good if somebody can help out  in this.
   
  Thanks,
  Jignesh

  Saul Q Yuan <[EMAIL PROTECTED]> wrote:
  I think you need to recompile your application against the new
  Struts.jar file and other jar files it depends on.

  Saul

  -Original Message-
  From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
  Sent: Monday, March 22, 2004 1:55 PM
  To: [EMAIL PROTECTED]
  Subject: Error while upgrading from struts version 1.0 to 1.1


  Hi ,
  I am upgrading my current application from Struts 1.0 to Struts
  1.1. The application is working properly with version 1.0. I just copied
  the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
  restart my application it gives meError while loading Action Servlet.
  its failing in Super.init(). Is there anything I need to do other that
  just realcing the war files when I upgrade the Struts version.
  The error file is attached in e-mail.


  Thanks and Regards,
  Jignesh

  Do you Yahoo!?
  Yahoo! Finance Tax Center - File
  online. File on time.


  Do you Yahoo!?
  Yahoo! Finance Tax Center - File online. File on time.

RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Jignesh Kapadia
Well,
   All the jar files are compiled properly.  do we need to add  some special  
parameter in  in Struts-Config.xml file? It seems its looking for some Message 
Resource Factory Information. Also does Struts 1.1 work with JDK 1.3.* or we need to 
have JDK 1.4*? I am struggling with this for almost 2 days now. I created a new 
application and copied this Struts1.1/jar file along with the set of Commons.jar file.
 
It will a good if somebody can help out  in this.
 
Thanks,
Jignesh

Saul Q Yuan <[EMAIL PROTECTED]> wrote:
I think you need to recompile your application against the new
Struts.jar file and other jar files it depends on.

Saul

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Error while upgrading from struts version 1.0 to 1.1


Hi ,
I am upgrading my current application from Struts 1.0 to Struts
1.1. The application is working properly with version 1.0. I just copied
the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
restart my application it gives meError while loading Action Servlet.
its failing in Super.init(). Is there anything I need to do other that
just realcing the war files when I upgrade the Struts version.
The error file is attached in e-mail.


Thanks and Regards,
Jignesh

Do you Yahoo!?
Yahoo! Finance Tax Center - File
online. File on time.


Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Saul Q Yuan
I think you need to recompile your application against the new
Struts.jar file and other jar files it depends on.
 
Saul

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Error while upgrading from struts version 1.0 to 1.1


Hi ,
I am upgrading my current application from Struts 1.0 to Struts
1.1. The application is working properly with version 1.0. I just copied
the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
restart my application it gives meError while loading Action Servlet.
its failing in Super.init(). Is there anything I need to do other that
just realcing the war files when I upgrade the Struts version.
The error file is attached in e-mail.
 
 
Thanks and Regards,
Jignesh

Do you Yahoo!?
  Yahoo! Finance Tax Center - File
online. File on time.



RE: error message display

2004-03-15 Thread Paul, R. Chip
There's also header and footer properties that you can set to avoid having
this on every line.  For instance in our project we display them as a list:

   errors.header=
   errors.prefix= 
   errors.suffix=   
   errors.footer=

Header goes before the first error, footer after the last, and each error is
wrapped between prefix in suffix.

This goes in your ApplicationResources.properties file.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 15, 2004 2:14 AM
To: [EMAIL PROTECTED]
Subject: RE: error message display



In your property file after the error message specify 

For e.g.

Your property file should look like

Validation.err = input data must be entered 


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

Sent: Monday, March 15, 2004 1:30 PM
To: [EMAIL PROTECTED]
Subject: error message display


Can anybody guide me how to show server error messages line by line rather

then in a one line.

-Jignesh

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


Confidentiality Notice


The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify the sender at Wipro or [EMAIL PROTECTED]
immediately and destroy all copies of this message and any attachments.

-
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: error message display

2004-03-15 Thread anant.parnami

In your property file after the error message specify 

For e.g.

Your property file should look like

Validation.err = input data must be entered 

-Original Message-
From: Jignesh Patel [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 1:30 PM
To: [EMAIL PROTECTED]
Subject: error message display


Can anybody guide me how to show server error messages line by line
rather
then in a one line.

-Jignesh

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


Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



Re: error no getter method defined while inside logic:iterate

2004-02-25 Thread Niall Pemberton
I just noticed something else wrong...your index value is 0 for all three
RawRecords - so you are initializing raw[0] three times and not raw[1]  or
raw[2]

public DateForm() {
  raw = new RawRecord[3];
  raw[0] = new RawRecord("","","","");
  raw[0] = new RawRecord("","","","");
  raw[0] = new RawRecord("","","","");


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, February 25, 2004 1:11 PM
Subject: Re: error no getter method defined while inside logic:iterate


> Hi Niall, List
>
> thanks for you answer. I tried out you suggestion (literary and in
> several variations), but it does not help: still the same error.
>
> no getter defined.
>
> If you have any other suggestions, I'd be happy.
>
> Otherwise I will just try a workaround which is not such a nice
> sollution, but it will work I guess: just put everything, all different
> fields, in one long array, in stead of working with the
> array[0].fieldname option.
>
> rinke
>
>
> On 25 Feb 2004, at 10:00, Niall Pemberton wrote:
>
> > Inside the  the beans returned by your getRaw() method
> > should be exposed with the name you specify in the iterate's 'id'
> > attribute. So something along the lines of.
> >
> >   >indexId="ctr" >
> >   
> >  
> >   >   property="time" />
> >   
> >  
> >
> > Niall
> >
> > - Original Message - 
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 24, 2004 12:11 PM
> > Subject: error no getter method defined while inside logic:iterate
> >
> >
> > > Hi list,
> > >
> > >
> > > I am having a form which contains a single property, an array with
> > > "RawRecord", a simple java bean which simply contains 4 strings,
> > > including getters, setters and a constructor.
> > >
> > >
> > > In my jsp, it works fine when i make a call like this:
> > >
> > >
> > > 
> > >
> > >
> > > where dateform is the name of my action form, and rawRecord is
> > > the array in which the RawRecord  beans reside.
> > >
> > >
> > > However, as soon as I put this inside a < loop, all
> > > goes wrong: I get the following error:
> > >
> > >
> > > No getter for property time of bean
> > > org.apache.struts.taglib.html.BEAN
> > >
> > >
> > > which is a lie, because there is a getter for my property, otherwise
> > > the thing wouldn't have been working without the logic:iterate tag.
> > >
> > >
> > > The jsp looks like this:
> > >
> > >
> > >  > >
> > > indexId="ctr" >
> > >
> > > 
> > >
> > > <%= ctr %>
> > >
> > > 
> > >
> > >  > >
> > > property="rawRecord[1].time" />
> > >
> > > 
> > >
> > > ...
> > >
> > >
> > > The DateForm looks like this
> > >
> > >
> > > public class DateForm extends ActionForm {
> > >
> > > //fields
> > >
> > > private RawRecord raw[];
> > >
> > >
> > > public DateForm() {
> > >
> > > raw = new RawRecord[3];
> > >
> > > raw[0] = new RawRecord("","","","");
> > >
> > > raw[0] = new RawRecord("","","","");
> > >
> > > raw[0] = new RawRecord("","","","");
> > >
> > > }
> > >
> > >
> > > //getters setters
> > >
> > >
> > > public RawRecord getRawRecord(int index) {
> > >
> > > return raw[index];
> > >
> > > }
> > >
> > > public RawRecord[] getRaw {
> > >
> > > return raw;
> > >
> > > }
> > >
> > > public void setRaw(RawRecord[] records) {
> > >
> > > raw = records;
> > >
> > > }
> > >
> > > + some reset stuff
> > >
> > >
> > > The RawRecord bean is really just a class with four strings as
> > > fields, + getters + setters + a constructor
> > >
> > >
> > > I did not include struts-config.xml, because it is correct: the
> > > dateform is normally declared as a form bean, and the action is not
> > > even used yet, as the error takes place before that stage. And
> > > struts-config worked without that logic:iterate tag...
> > >
> > >
> > > SO, how can I get this to work inside the logic:iterate tags?? What
> > > am i doing wrong here??
> > >
> > >
> > > thanks, Rinke
> > >
> > >
> > >
> > > 
> > > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED] For
> > additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>



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



Re: error no getter method defined while inside logic:iterate

2004-02-25 Thread [EMAIL PROTECTED]
Hi Niall, List

thanks for you answer. I tried out you suggestion (literary and in 
several variations), but it does not help: still the same error.

no getter defined.

If you have any other suggestions, I'd be happy. 

Otherwise I will just try a workaround which is not such a nice 
sollution, but it will work I guess: just put everything, all different 
fields, in one long array, in stead of working with the 
array[0].fieldname option. 

rinke


On 25 Feb 2004, at 10:00, Niall Pemberton wrote:

> Inside the  the beans returned by your getRaw() method
> should be exposed with the name you specify in the iterate's 'id'
> attribute. So something along the lines of.
> 
>  indexId="ctr" >
>   
>  
> property="time" />
>   
>  
> 
> Niall
> 
> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 24, 2004 12:11 PM
> Subject: error no getter method defined while inside logic:iterate
> 
> 
> > Hi list,
> >
> >
> > I am having a form which contains a single property, an array with
> > "RawRecord", a simple java bean which simply contains 4 strings,
> > including getters, setters and a constructor.
> >
> >
> > In my jsp, it works fine when i make a call like this:
> >
> >
> > 
> >
> >
> > where dateform is the name of my action form, and rawRecord is
> > the array in which the RawRecord  beans reside.
> >
> >
> > However, as soon as I put this inside a < loop, all
> > goes wrong: I get the following error:
> >
> >
> > No getter for property time of bean
> > org.apache.struts.taglib.html.BEAN
> >
> >
> > which is a lie, because there is a getter for my property, otherwise
> > the thing wouldn't have been working without the logic:iterate tag.
> >
> >
> > The jsp looks like this:
> >
> >
> >  >
> > indexId="ctr" >
> >
> > 
> >
> > <%= ctr %>
> >
> > 
> >
> >  >
> > property="rawRecord[1].time" />
> >
> > 
> >
> > ...
> >
> >
> > The DateForm looks like this
> >
> >
> > public class DateForm extends ActionForm {
> >
> > //fields
> >
> > private RawRecord raw[];
> >
> >
> > public DateForm() {
> >
> > raw = new RawRecord[3];
> >
> > raw[0] = new RawRecord("","","","");
> >
> > raw[0] = new RawRecord("","","","");
> >
> > raw[0] = new RawRecord("","","","");
> >
> > }
> >
> >
> > //getters setters
> >
> >
> > public RawRecord getRawRecord(int index) {
> >
> > return raw[index];
> >
> > }
> >
> > public RawRecord[] getRaw {
> >
> > return raw;
> >
> > }
> >
> > public void setRaw(RawRecord[] records) {
> >
> > raw = records;
> >
> > }
> >
> > + some reset stuff
> >
> >
> > The RawRecord bean is really just a class with four strings as
> > fields, + getters + setters + a constructor
> >
> >
> > I did not include struts-config.xml, because it is correct: the
> > dateform is normally declared as a form bean, and the action is not
> > even used yet, as the error takes place before that stage. And
> > struts-config worked without that logic:iterate tag...
> >
> >
> > SO, how can I get this to work inside the logic:iterate tags?? What
> > am i doing wrong here??
> >
> >
> > thanks, Rinke
> >
> >
> >
> > 
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
> 



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



Re: error no getter method defined while inside logic:iterate

2004-02-25 Thread Niall Pemberton
Inside the  the beans returned by your getRaw() method should
be exposed with the name you specify in the iterate's 'id' attribute. So
something along the lines of.

 
  
 
 
  
 

Niall

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 24, 2004 12:11 PM
Subject: error no getter method defined while inside logic:iterate


> Hi list,
>
>
> I am having a form which contains a single property, an array with
> "RawRecord", a simple java bean which simply contains 4 strings,
> including getters, setters and a constructor.
>
>
> In my jsp, it works fine when i make a call like this:
>
>
> 
>
>
> where dateform is the name of my action form, and rawRecord is
> the array in which the RawRecord  beans reside.
>
>
> However, as soon as I put this inside a < loop, all
> goes wrong: I get the following error:
>
>
> No getter for property time of bean
> org.apache.struts.taglib.html.BEAN
>
>
> which is a lie, because there is a getter for my property, otherwise
> the thing wouldn't have been working without the logic:iterate tag.
>
>
> The jsp looks like this:
>
>
> 
> indexId="ctr" >
>
> 
>
> <%= ctr %>
>
> 
>
> 
> property="rawRecord[1].time" />
>
> 
>
> ...
>
>
> The DateForm looks like this
>
>
> public class DateForm extends ActionForm {
>
> //fields
>
> private RawRecord raw[];
>
>
> public DateForm() {
>
> raw = new RawRecord[3];
>
> raw[0] = new RawRecord("","","","");
>
> raw[0] = new RawRecord("","","","");
>
> raw[0] = new RawRecord("","","","");
>
> }
>
>
> //getters setters
>
>
> public RawRecord getRawRecord(int index) {
>
> return raw[index];
>
> }
>
> public RawRecord[] getRaw {
>
> return raw;
>
> }
>
> public void setRaw(RawRecord[] records) {
>
> raw = records;
>
> }
>
> + some reset stuff
>
>
> The RawRecord bean is really just a class with four strings as
> fields, + getters + setters + a constructor
>
>
> I did not include struts-config.xml, because it is correct: the
> dateform is normally declared as a form bean, and the action is not
> even used yet, as the error takes place before that stage. And
> struts-config worked without that logic:iterate tag...
>
>
> SO, how can I get this to work inside the logic:iterate tags?? What
> am i doing wrong here??
>
>
> thanks, Rinke
>
>
>
> -
> 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: Error in join of hibernate

2004-02-20 Thread Larry Meadors
You would probably have better luck on the hibernate list.

>>> [EMAIL PROTECTED] 02/20/04 7:50 AM >>>
Friends,

When i do this:

select m.name, dm.name
from com.MasterTable as m join com.DetailAndMaster as dm

i get this:

outer or full join must be followed by path expression


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



RE: Error page problems with Tiles

2004-02-19 Thread Johnson, Gary
Hi Russ,
   I had the same problem and ended up including the error page in the body
of the tiles layout. This way the user could continue in the app, but be
informed that an error occurred. So, all of my body tiles have an error page
directive. If the error occurs elsewhere (header, menu, footer) I put the
code below in web.xml. If you haven't already you might try using this
method or a combination.HTHs, Gary

  
404
/Error404Page.jsp
  
  
500
/Error500Page.jsp
  

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 19, 2004 3:19 AM
To: Struts Users Mailing List
Subject: Re: Error page problems with Tiles







in your action you can forward to error in the event that something's 
gone pear-shaped.


On 19 Feb 2004, at 01:58, Russ Baker wrote:

> I am having a real issue with the way Tiles handles an error page.  I
> am
> setting up the following jsp directive in the base layout:
>
> <%@ page language="java" errorPage="/error.jsp" %>
>
> But when I do this, the page shows the error, something like: 
> "[ServletException in:/somePage.jsp] / divide by zero,"
>
> which tells me that the request object cannot be sent back to the 
> layout.  So then I tried to put the errorPage directive into a page 
> that will be included in all the pages, then the error page is now 
> embedded in the content tile.  I just can't win!
>
> Is there some way of getting Tiles to cleanly forward to the error
> page,
> and the error page ONLY.  Please don't tell me to check for errors in 
> my
> actions, because I do, and there is no feasible way to catch every sort
> of error/exception given our "typical" software development environment
> (tight budgets and no time!).
>
> Thanks in advance.
>
> Russ Baker
>
>
>
>
> -
> 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: Error page problems with Tiles

2004-02-19 Thread Mark Lowe



in your action you can forward to error in the event that something's 
gone pear-shaped.

On 19 Feb 2004, at 01:58, Russ Baker wrote:

I am having a real issue with the way Tiles handles an error page.  I 
am
setting up the following jsp directive in the base layout:

<%@ page language="java" errorPage="/error.jsp" %>

But when I do this, the page shows the error, something like:
"[ServletException in:/somePage.jsp] / divide by zero,"
which tells me that the request object cannot be sent back to the
layout.  So then I tried to put the errorPage directive into a page 
that
will be included in all the pages, then the error page is now embedded
in the content tile.  I just can't win!

Is there some way of getting Tiles to cleanly forward to the error 
page,
and the error page ONLY.  Please don't tell me to check for errors in 
my
actions, because I do, and there is no feasible way to catch every sort
of error/exception given our "typical" software development environment
(tight budgets and no time!).

Thanks in advance.

Russ Baker



-
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: Error Start Tag Exception

2004-02-16 Thread Betty Koon
Thanks for the reply.  I figurd out what happened. I upgraded my code to use
struts 1.2 but some how the jar file got reverted back to 1.1.

-Betty


-Original Message-
From: Curtis Taylor [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 16, 2004 8:32 AM
To: Struts Users Mailing List
Subject: Re: Error Start Tag Exception


Hi Betty,

I think you need to set the 'message' attribute to false here, as the tag is

looking for an ActionMessage instance, not an ActionError one (which is what
you 
get in the loop created by the  tag).

Here's a snippet of an implementation I've used:


   
 
   
 
   


HTH,

Curtis
--
c dot tee at verizon dot net

Betty Koon wrote:
> Any one has any idea why this exception happens?
> I am using 1.2 nightly build currently.
> 
> My jsp is simply using the following:
> 
> 
> 
> 
> 
> java.lang.ClassCastException


-
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: Error Start Tag Exception

2004-02-16 Thread Curtis Taylor
Hi Betty,

I think you need to set the 'message' attribute to false here, as the tag is 
looking for an ActionMessage instance, not an ActionError one (which is what you 
get in the loop created by the  tag).

Here's a snippet of an implementation I've used:


  

  

  

HTH,

Curtis
--
c dot tee at verizon dot net
Betty Koon wrote:
Any one has any idea why this exception happens?
I am using 1.2 nightly build currently.
My jsp is simply using the following:




java.lang.ClassCastException


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


Re: Error Start Tag Exception

2004-02-16 Thread Niall Pemberton
 changed from processing ActionErrors/ActionError to
ActionMessages/ActionMessage from struts 1.1 to struts 1.2 - the most
obvious cause of this is your app generating ActionMessages/ActionMessage
messages but the tag is struts 1.1 version.

Are you sure you are deploying the nightly build jars to your servlet
container rather than the struts 1.1 jars?

Niall
- Original Message - 
From: "Betty Koon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, February 16, 2004 6:20 AM
Subject: Error Start Tag Exception


> Any one has any idea why this exception happens?
> I am using 1.2 nightly build currently.
>
> My jsp is simply using the following:
>
> 
> 
> 
>
> java.lang.ClassCastException
> at
> org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:215)
> at
>
org.apache.jsp.action_feedback_jsp._jspx_meth_html_errors_0(action_feedback_
> jsp.java:694)
> at
>
org.apache.jsp.action_feedback_jsp._jspx_meth_logic_messagesPresent_1(action
> _feedback_jsp.java:672)
> at
>
org.apache.jsp.action_feedback_jsp._jspService(action_feedback_jsp.java:469)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> 10)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> java:684)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
> er.java:432)
> at
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
> .java:356)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
> 69)
> at
>
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
> r.java:274)
> at
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
> sor.java:455)
> at
>
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
> estProcessor.java:320)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
com.adobe.edc.server.presentation.auth.AuthenticationFilter.doFilter(Authent
> icationFilter.java:143)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:256)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:171)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> )
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipe

RE: error- no getter method for property of bean

2004-02-03 Thread Frank Nguyen
Thanks to Heya and Wendy. I got it worked! I like both of your suggestion.
For DB, I prefer to label the fields as _ as much as
possible for many reasons. Torque is pretty good in conforming bean standard
by creating getter/setters as setGroupName()/getGroupName() in the Base
classes and still preserve the database field name (with underscore) as
class' private members. Since I cloned some of the Base code created by
Torque for my form code, I didn't use the bean-conforming method in the JSP
form. I think it's best to get rid of underscore in the JSP forms but
continue to use underscore in DB (thus Torque) as recommended.

-Frank


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 03, 2004 2:30 PM
> To: Struts Users Mailing List
> Subject: RE: error- no getter method for property of bean
>
>
> There is a reason why people choose field names like group_name with
> underscore and no "CamelCase": it is to mirror the column names in the
> database. I personally agree with you in general terms but if DBAs insist
> on their "of" notation (the underscore means "of" or something
> syntactically similar, so the field means "name of group") then
> if we want
> to keep our code aligned with the database we will have to use
> underscrores in the field names...
>
> Of course, it is not essential to do this and we could stick to the much
> more bean-standard groupName, getGroupName and setGroupName.
>
> In Frank's case I think the easiest solution would be to change the
> accessors though because there are less changes to make... saves tracking
> down references to this field in the jsp and possibly in validation.xml
> (if using struts validator forms) . The main thing is to understand the
> reason why the method call was not recognized.
>
> Cheers,
> Heya Gosper
> CSC Australia
> 212 Northbourne Ave, Braddon ACT 2612
> Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
> MOB: 0401 611779
> --
> --
> This is a PRIVATE message. If you are not the intended recipient, please
> delete without copying and kindly advise us by e-mail of the mistake in
> delivery. NOTE: Regardless of content, this e-mail shall not operate to
> bind CSC to any order or other contract unless pursuant to explicit
> written agreement or government initiative expressly permitting
> the use of
> e-mail for such purpose.
> --
> --
>
>
>
>
>
> Wendy Smoak <[EMAIL PROTECTED]>
> 04/02/2004 09:08 AM
> Please respond to "Struts Users Mailing List"
>
>
> To: Struts Users Mailing List
> <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> cc:
> Subject:RE: error- no getter method for property of bean
>
>
> > From: Frank Nguyen [mailto:[EMAIL PROTECTED]
> > javax.servlet.ServletException: No getter method for property
> > group_name of bean org.apache.struts.taglib.html.BEAN
>
> I didn't look at anything you attached, but based on this message I'd
> encourage you to stick to property names like 'groupName' and get rid of
> the underscores.  You should then have getGroupName() and setGroupName()
> methods with exactly the same type (and no other similarly named methods
> with different signatures).  For the rest of the rules, read the
> JavaBeans specification.
>
> --
> Wendy Smoak
> Application Systems Analyst, Sr.
> ASU IA Information Resources Management
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> 
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
> 
>
>
>


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



RE: error- no getter method for property of bean

2004-02-03 Thread hgosper
There is a reason why people choose field names like group_name with 
underscore and no "CamelCase": it is to mirror the column names in the 
database. I personally agree with you in general terms but if DBAs insist 
on their "of" notation (the underscore means "of" or something 
syntactically similar, so the field means "name of group") then if we want 
to keep our code aligned with the database we will have to use 
underscrores in the field names...

Of course, it is not essential to do this and we could stick to the much 
more bean-standard groupName, getGroupName and setGroupName.

In Frank's case I think the easiest solution would be to change the 
accessors though because there are less changes to make... saves tracking 
down references to this field in the jsp and possibly in validation.xml 
(if using struts validator forms) . The main thing is to understand the 
reason why the method call was not recognized. 

Cheers,
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






Wendy Smoak <[EMAIL PROTECTED]>
04/02/2004 09:08 AM
Please respond to "Struts Users Mailing List"

 
To: Struts Users Mailing List <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]
cc: 
Subject:RE: error- no getter method for property of bean


> From: Frank Nguyen [mailto:[EMAIL PROTECTED] 
> javax.servlet.ServletException: No getter method for property 
> group_name of bean org.apache.struts.taglib.html.BEAN

I didn't look at anything you attached, but based on this message I'd
encourage you to stick to property names like 'groupName' and get rid of
the underscores.  You should then have getGroupName() and setGroupName()
methods with exactly the same type (and no other similarly named methods
with different signatures).  For the rest of the rules, read the
JavaBeans specification.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 



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



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com





RE: error- no getter method for property of bean

2004-02-03 Thread Wendy Smoak
> From: Frank Nguyen [mailto:[EMAIL PROTECTED] 
> javax.servlet.ServletException: No getter method for property 
> group_name of bean org.apache.struts.taglib.html.BEAN

I didn't look at anything you attached, but based on this message I'd
encourage you to stick to property names like 'groupName' and get rid of
the underscores.  You should then have getGroupName() and setGroupName()
methods with exactly the same type (and no other similarly named methods
with different signatures).  For the rest of the rules, read the
JavaBeans specification.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 



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



Re: error- no getter method for property of bean

2004-02-03 Thread hgosper

You will need to change your getter method to getGroup_name()
Struts uses the name of the field when it looks for a getter or setter method. It will assume that the first letter of the field name is capitalised after the get (as per general JavaBean standards). getGroupName will not be recognized as the getter for your property group_name (although it would match a property called "groupName"

Cheers,
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779

This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.








"Frank Nguyen" <[EMAIL PROTECTED]>
04/02/2004 08:53 AM
Please respond to "Struts Users Mailing List"

        
        To:        "Struts Users Mailing List" <[EMAIL PROTECTED]>
        cc:        
        Subject:        error- no getter method for property of bean


Hi,

I'm experimenting a simple form, adding a group (3 fields) to a simple, one
group table database, following some examples from the Struts book by James
Turner. All classes built (with Torque and mysql) and deployed. I couldn't
bring up the form and kept getting the error below. I think something is
wrong w/ my struts setup. Attached are struts config, my jsp, and some
simple java files. Could someone help me on this ? I really appreciate it.

-Frank

Error: 500
Location: /infolink/users/edit_group.jsp
Internal Servlet Error:

javax.servlet.ServletException: No getter method for property group_name of
bean org.apache.struts.taglib.html.BEAN
                 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:460)
                 at users.edit_group_1._jspService(edit_group_1.java:550)
                 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                 at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
                 at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
                 at org.apache.tomcat.core.Handler.service(Handler.java:235)
                 at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
                 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
                 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
                 at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:176)
                 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
                 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
                 at java.lang.Thread.run(Thread.java:536)
Root cause:
javax.servlet.jsp.JspException: No getter method for property group_name of
bean org.apache.struts.taglib.html.BEAN
                 at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:742)
                 at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:193)
                 at users.edit_group_1._jspService(edit_group_1.java:241)
                 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                 at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
                 at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
                 at org.apache.tomcat.core.Handler.service(Handler.java:235)
                 at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
                 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
                 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
                 at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:176)
                 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
                 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
                 at java.lang.Thread.run(Thread.java:536)



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, aroun

RE: Error deploying strus application to JBOSS --- The content of element type "taglib" must match

2004-02-02 Thread Yibing Li
Thanks, Max.

That is also my initial thoughts and I have searched for "mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 7:40 PM
To: Struts Users Mailing List
Subject: Re: Error deploying strus application to JBOSS --- The content
of element type "taglib" must match


Could your struts-bean.tld file be damaged? It seems like the exceptions you
posted are ocurring when the .tld file is being parsed, rather than when the
server is reading your web.xml specifically.

WILD GUESSES: Look for " element -- perhaps a 
element got changed to  in the .tld file somehow? Or it might be bad in
the distribution and other app servers aren't as picky about it (what Struts
dist are you using? 1.1?).

-Max

- Original Message -
From: "Yibing Li" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, January 30, 2004 2:17 PM
Subject: Error deploying strus application to JBOSS --- The content of
element type "taglib" must match


>
> The following are the errors I got when deploying our Struts application
to
> JBOSS. I think it is related to taglibs. In web.xml it is like:
>
>  
> /WEB-INF/struts-bean.tld
> /WEB-INF/struts-bean.tld
>   
>
> Has anyone experienced the same problem?
>
> Thanks,
>
> Yibing
>
> +++
>
> 2004-01-30 09:43:25,266 ERROR [org.apache.commons.digester.Digester] Parse
> Error at line 8 column 7: Element type "urn" must be declared.
> org.xml.sax.SAXParseException: Element type "urn" must be declared.
> org.xml.sax.SAXParseException
>
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(org.apach
> e.xerces.xni.parser.XMLParseException)
> ErrorHandlerWrapper.java:232
>
> and
>
> 2004-01-30 09:43:25,391 ERROR [org.apache.commons.digester.Digester] Parse
> Error at line 23 column 10: The content of element type "taglib" must
match
> "(tlibversion,jspversion?,shortname,uri?,info?,tag+)".
> org.xml.sax.SAXParseException: The content of element type "taglib" must
> match "(tlibversion,jspversion?,shortname,uri?,info?,tag+)".
> org.xml.sax.SAXParseException
>
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(org.apach
> e.xerces.xni.parser.XMLParseException)
> ErrorHandlerWrapper.java:232
> void org.apache.xerces.util.ErrorHandlerWrapper.error(java.lang.String,
> java.lang.String, org.apache.xerces.xni.parser.XMLParseException)
> ErrorHandlerWrapper.java:173
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


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



Re: Error deploying strus application to JBOSS --- The content of element type "taglib" must match

2004-01-30 Thread Max Cooper
Could your struts-bean.tld file be damaged? It seems like the exceptions you
posted are ocurring when the .tld file is being parsed, rather than when the
server is reading your web.xml specifically.

WILD GUESSES: Look for " element -- perhaps a 
element got changed to  in the .tld file somehow? Or it might be bad in
the distribution and other app servers aren't as picky about it (what Struts
dist are you using? 1.1?).

-Max

- Original Message - 
From: "Yibing Li" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, January 30, 2004 2:17 PM
Subject: Error deploying strus application to JBOSS --- The content of
element type "taglib" must match


>
> The following are the errors I got when deploying our Struts application
to
> JBOSS. I think it is related to taglibs. In web.xml it is like:
>
>  
> /WEB-INF/struts-bean.tld
> /WEB-INF/struts-bean.tld
>   
>
> Has anyone experienced the same problem?
>
> Thanks,
>
> Yibing
>
> +++
>
> 2004-01-30 09:43:25,266 ERROR [org.apache.commons.digester.Digester] Parse
> Error at line 8 column 7: Element type "urn" must be declared.
> org.xml.sax.SAXParseException: Element type "urn" must be declared.
> org.xml.sax.SAXParseException
>
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(org.apach
> e.xerces.xni.parser.XMLParseException)
> ErrorHandlerWrapper.java:232
>
> and
>
> 2004-01-30 09:43:25,391 ERROR [org.apache.commons.digester.Digester] Parse
> Error at line 23 column 10: The content of element type "taglib" must
match
> "(tlibversion,jspversion?,shortname,uri?,info?,tag+)".
> org.xml.sax.SAXParseException: The content of element type "taglib" must
> match "(tlibversion,jspversion?,shortname,uri?,info?,tag+)".
> org.xml.sax.SAXParseException
>
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(org.apach
> e.xerces.xni.parser.XMLParseException)
> ErrorHandlerWrapper.java:232
> void org.apache.xerces.util.ErrorHandlerWrapper.error(java.lang.String,
> java.lang.String, org.apache.xerces.xni.parser.XMLParseException)
> ErrorHandlerWrapper.java:173
>
>
>
> -
> 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: Error in JSP when using DynaActionForm / apologies, problem solved

2004-01-07 Thread Sheldon Hearn
On (2003/12/23 13:57), Marco Mistroni wrote:

>   Sorry that I bothered the list with my spam.
> I found the problem..in the struts config I was still associating
> The old MyForm bean to the new action created 'AliasMaintenanceAction'

I have the same problem, but I can't spot my misconfiguration.

... struts-config.xml ...







...









The JSP form that breaks viewAlias.jsp is:












If I give aliasParentAliasAddress a value in the html:text tag, I don't
have a problem.  Without one, I get

No getter method for property aliasParentAliasAddress of bean
org.apache.struts.taglib.html.BEAN

I've followed the example pretty closely on this; the O'Reilly book's a
little useless in this area. :-(

Ciao,
Sheldon.

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



Re: error

2004-01-06 Thread Khalid K.
Please post your program if possible.
It looks like you are missing the "import" statements. 
If you are using any type of IDE, it usually has an option like "organize 
imports", if you are just using a text editor, then make sure to declare those 
import statements.

Khalid

> Hi,
> 
>  
> 
> I have an error occurring when I try and compile some java files in struts.
> 
>  
> 
> Package org.apache.struts.action does not exist
> 
> Import org.apache.struts.action.ActionForm;
> 
>  
> 
> Package javax.servlet.http does not exist
> 
> Import javax.servlet.http.HttpServletResponse;
> 
>  
> 
> There are many more similar errors.
> 
>  
> 
> I have included the struts.jar file from the Jakarta-struts/lib folder in
> the classpath.
> 
> I have added all the .tld files, web.xml and struts-config.xml in the
> WEB-INF folder of my application
> 
> I have added the struts.jar file to the lib folder in my application
> 
> In the classes folder I have put ApplicationResources.properties
> 
> Web-inf/classes/com/example contains the java files I want to compile
> 
>  
> 
> This is an example from a book I am learning from and I have followed
> everything exactly. Can anyone advise me on what I am doing wrong?
> 
>  
> 
> Thanks
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
>  
> 


-- 
Khalid K.

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



Re: error

2004-01-06 Thread Mark Lowe
While I agree that there's quite a lot of ground to cover I think if 
java/jsp is a serious alternative to other web based technologies then 
there needs to be a way of introducing new folks to these technologies 
by getting things up and running and then start to learn stuff.

Post me off the list Nasrin if you need to get up and running. Seeing 
you've a academic email address I assume you've done some programming 
perhaps a bit of c or something, make as your build tool and/or 
familiar with the likes of perl.

If you're running windows then there's an Ant installer for windows 
users who are generally used to double clicking on stuff without to 
much cognition mediating the installation process.

Then you'll want to get the sample project in the tomcat documentation 
built with ant. This will let you put all the classpaths in an xml file 
and make life much simpler.

I assume you've installed tomcat or another container so I wont mention 
that. But if i'm wrong then just say so.

Cheers Mark

On 6 Jan 2004, at 15:00, Andrew Hill wrote:


I don’t know what an IDE is - I'm quite new to struts and programming. 
I am
just using a command prompt to compile - which is what was written in 
the
book I am following to learn.


Me thinks you may be starting a little at the deep end in that case. 
You
would probably do better to get comfortable writing simple 
applications in
java before you get into the more complex stuff (such as servlets and
frameworks etc...).

An IDE is an "integrated development environment". A very good (& 
free) one
is Eclipse.
(www.eclipse.org)
If your just starting out with Java then its good to learn to code 
without
an IDE first to get a feel for whats going on and how all the classpath
stuff works (as your discovering, it can be quite troublesome at 
times!!!),
but once your past the learning stage and writing real programs you 
will
find an IDE very helpful and a big time saver.

Which book are you reading?

-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 January 2004 20:29
To: 'Struts Users Mailing List'
Subject: RE: error
Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm 
using
tomcat).

What did you mean by struts-jarS ? I added all the .jar files from 
struts to
my lib folder of my application. But no change in the errors.

I don’t know what an IDE is - I'm quite new to struts and programming. 
I am
just using a command prompt to compile - which is what was written in 
the
book I am following to learn.

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: 06 January 2004 12:13
To: 'Struts Users Mailing List'
Subject: RE: error
hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse
it is deliverd with tomcat
in $TOMCAT/common/lib (in case of using tomcat)
or
in j2ee.jar (in $J2EE_HOME/lib)
add this to your classpath
and of course your struts-jarS!
do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error
Hi,



I have an error occurring when I try and compile some java files in
struts.


Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;



Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;



There are many more similar errors.



I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.
I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application
I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile



This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?


Thanks

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


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


--

RE: error

2004-01-06 Thread Matthias Wessendorf
hi,

IDE means integrated development environment
like eclipse.

jarS == all jar-files (you had done)

is "." in classpath ???

mine "comand-prompt" works
%CLASSPATH% said:
.;C:\libs\struts\struts.jar;C:\libs\struts\commons-beanutils.jar ... and
so on

please check your classpath:
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
:-)



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 1:29 PM
To: 'Struts Users Mailing List'
Subject: RE: error


Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm
using tomcat).

What did you mean by struts-jarS ? I added all the .jar files from
struts to my lib folder of my application. But no change in the errors.

I don’t know what an IDE is - I'm quite new to struts and programming. I
am just using a command prompt to compile - which is what was written in
the book I am following to learn.


-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: 06 January 2004 12:13
To: 'Struts Users Mailing List'
Subject: RE: error

hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse

it is deliverd with tomcat 
in $TOMCAT/common/lib (in case of using tomcat)

or
in j2ee.jar (in $J2EE_HOME/lib) 

add this to your classpath
and of course your struts-jarS!

do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error


Hi,

 

I have an error occurring when I try and compile some java files in
struts.

 

Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;

 

Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;

 

There are many more similar errors.

 

I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.

I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application

I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile

 

This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?

 

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


-
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: error

2004-01-06 Thread Mark Lowe
Good man I hate IDE's (well xcode is okay but its not really an ide in 
same way as all that eclipse nonsense)..

Something you will need is ant or even make to build your project. I 
get the impression that you're compiling using javac and adding the 
classes to your class path.

If you look through the tomcat docs there's an example project using 
ant.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

This will take a few hours and you'll need to install ant, feel free to 
post me off the list if you want a hand with this as its not really a 
struts question

Cheers Mark

On 6 Jan 2004, at 13:28, Nasrin Hafezparast wrote:

Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm 
using
tomcat).

What did you mean by struts-jarS ? I added all the .jar files from 
struts to
my lib folder of my application. But no change in the errors.

I don’t know what an IDE is - I'm quite new to struts and programming. 
I am
just using a command prompt to compile - which is what was written in 
the
book I am following to learn.

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: 06 January 2004 12:13
To: 'Struts Users Mailing List'
Subject: RE: error
hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse
it is deliverd with tomcat
in $TOMCAT/common/lib (in case of using tomcat)
or
in j2ee.jar (in $J2EE_HOME/lib)
add this to your classpath
and of course your struts-jarS!
do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error
Hi,



I have an error occurring when I try and compile some java files in
struts.


Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;



Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;



There are many more similar errors.



I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.
I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application
I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile



This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?


Thanks

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


-
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: error

2004-01-06 Thread Andrew Hill

I don’t know what an IDE is - I'm quite new to struts and programming. I am
just using a command prompt to compile - which is what was written in the
book I am following to learn.


Me thinks you may be starting a little at the deep end in that case. You
would probably do better to get comfortable writing simple applications in
java before you get into the more complex stuff (such as servlets and
frameworks etc...).

An IDE is an "integrated development environment". A very good (& free) one
is Eclipse.
(www.eclipse.org)
If your just starting out with Java then its good to learn to code without
an IDE first to get a feel for whats going on and how all the classpath
stuff works (as your discovering, it can be quite troublesome at times!!!),
but once your past the learning stage and writing real programs you will
find an IDE very helpful and a big time saver.

Which book are you reading?

-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 January 2004 20:29
To: 'Struts Users Mailing List'
Subject: RE: error


Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm using
tomcat).

What did you mean by struts-jarS ? I added all the .jar files from struts to
my lib folder of my application. But no change in the errors.

I don’t know what an IDE is - I'm quite new to struts and programming. I am
just using a command prompt to compile - which is what was written in the
book I am following to learn.


-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: 06 January 2004 12:13
To: 'Struts Users Mailing List'
Subject: RE: error

hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse

it is deliverd with tomcat
in $TOMCAT/common/lib (in case of using tomcat)

or
in j2ee.jar (in $J2EE_HOME/lib)

add this to your classpath
and of course your struts-jarS!

do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error


Hi,



I have an error occurring when I try and compile some java files in
struts.



Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;



Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;



There are many more similar errors.



I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.

I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application

I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile



This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?



Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003



-
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: error

2004-01-06 Thread Nasrin Hafezparast
Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm using
tomcat).

What did you mean by struts-jarS ? I added all the .jar files from struts to
my lib folder of my application. But no change in the errors.

I don’t know what an IDE is - I'm quite new to struts and programming. I am
just using a command prompt to compile - which is what was written in the
book I am following to learn.


-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: 06 January 2004 12:13
To: 'Struts Users Mailing List'
Subject: RE: error

hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse

it is deliverd with tomcat 
in $TOMCAT/common/lib (in case of using tomcat)

or
in j2ee.jar (in $J2EE_HOME/lib) 

add this to your classpath
and of course your struts-jarS!

do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error


Hi,

 

I have an error occurring when I try and compile some java files in
struts.

 

Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;

 

Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;

 

There are many more similar errors.

 

I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.

I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application

I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile

 

This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?

 

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


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



RE: error

2004-01-06 Thread Matthias Wessendorf
hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse

it is deliverd with tomcat 
in $TOMCAT/common/lib (in case of using tomcat)

or
in j2ee.jar (in $J2EE_HOME/lib) 

add this to your classpath
and of course your struts-jarS!

do you use an IDE?



-Original Message-
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error


Hi,

 

I have an error occurring when I try and compile some java files in
struts.

 

Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;

 

Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;

 

There are many more similar errors.

 

I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.

I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application

I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile

 

This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?

 

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003
 


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



RE: Error in JSP when using DynaActionForm / apologies, problem solved

2003-12-23 Thread Marco Mistroni
Hi all, 
Sorry that I bothered the list with my spam.
I found the problem..in the struts config I was still associating
The old MyForm bean to the new action created 'AliasMaintenanceAction'

So whenever, in my aliasMaintenance.jsp, I was using the tag



the page assumed that the form to be used was MyForm (as of struts
config)

thanx anyway for ur prompt responses..

regards 
marco




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



RE: Error in JSP when using DynaActionForm

2003-12-23 Thread Marco Mistroni
Hi,
Got some 'hints'..
Actually what I forgot to mention is the whole flow of action


>From  JSPa, I redirect to MyDispatchAction (which uses MyFormBean).
In turn, MyDispatchAction forward the request to ProductSetUpAction.
In ProductSetUpAction, I 'create' the DynaAction form and populate it,
And then I forward the request to  aliasMaintenance.jsp

In aliasMaintenance.jsp, I am supposing to get properties from a
DynaActionForm, but the JSP is assuming that the form used is still
MyFormBean used before.
As a proof of that, i tried to output the buttonSelected property, and
with
My surprise it was not the value that I have put in ProductSetUpAction

aliasForm.set("buttonSelected","enter");  

but it was the value that was retrieved from MyDispatchAction (by
clicking a button on that page, 'alias', I trigger the call of
ProductSetUpAction via
MyDispatchAction.

Can anyone tell me why the aliasMaintenance.jsp is still expecting to 
Read properties from MyFormBean?

Here are the config info for ProductSetUpAction







the jsp ignores completely that I am using a DynaActionForm now
(productAliasForm is a DynaActionForm)..

regards
marco




-Original Message-
From: Nigel Vivian [mailto:[EMAIL PROTECTED] 
Sent: 23 December 2003 12:17
To: 'Struts Users Mailing List'
Subject: RE: Error in JSP when using DynaActionForm

Hi Marco

Is it trying to compile "AliasMaintenance.jsp" as the error message says
or
is it a typo?

As coded the action you've described should forward to another jsp -->
"productMaintenance.jsp

If its not this, then I think the list might need a fragment of your jsp
code as well

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: 23 December 2003 11:26
To: 'Struts Users Mailing List'
Subject: Error in JSP when using DynaActionForm


Hi all,
I am trying to get things working with DynaActionform.
I have defined my dynaAction form in my struts-config file as follows..







mapped to following class







now, when the ProductSetupAction forward the request  to
productMaintenance.jsp,
I got following JSP compilation error:

ServletException in:/AliasMaintenance.jsp] No getter method for property
aliasRef of bean org.apache.struts.taglib.html.BEAN'


At a glance, it seems that the page does not recognize the
DynaActionForm, since it is expecting to have a getAliasRef, while the
DynaActionForm has only get and set..

Any additional steps that I have to configure still in JSP to get things
working?

Thanx and regards
marco





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
(1) Matthew Clark plc and all its subsidiary Companies ("Matthew Clark")
is part of the Constellation Brands Inc. group of companies.  (2) The
contents of this e-mail are intended for the named recipient(s).  If you
are not the intended recipient please preserve the confidentiality of it
and advise Matthew Clark of the error immediately by telephone or by
replying to this e-mail and then please delete the e-mail from your
system.  (3) If you are an unauthorised recipient any action taken or
not taken in respect of, or any reliance upon, the contents of this
e-mail is prohibited and you may not copy, disseminate, distribute,
disclose, print or in any way use the contents of this e-mail and/or any
trademarks or copyright works or any other intellectual property
belonging to Matthew Clark which is contained in this e-mail.  (4)
Matthew Clark cannot accept liability for any damage which you might
sustain as a result of software viruses contained in this e-mail or any
of its atta!
 chments and in keeping with good computing practice, you should
therefore ensure that the contents of this e-mail and its attachments
are virus free.  (5) Any views expressed by an individual within the
contents of this e-mail do not necessarily reflect the views of Matthew
Clark.  (6) Matthew Clark reserves the right to monitor, intercept and
record incoming and outgoing e-mails for the purpose of protecting our
business and to ensure regulatory compliance. 

Visit our web site at www.matthewclark.co.uk

-
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: Error in JSP when using DynaActionForm

2003-12-23 Thread Marco Mistroni
Hi,
The page is correct. 
Now to avoid any null values that may cause any problems, I have
Writte following code in my action class..

DynaActionForm  aliasForm = (DynaActionForm)form;
aliasForm.set("buttonSelected","enter");  
aliasForm.set("aliasRef", "1234") ; 
forward = mapping.findForward("blank");
// Finish with
return forward;



And here is the code that I have in my JSP..

** This works ***
System.err.println("Simple DynaACtionForm test");
DynaActionForm form =
(DynaActionForm)request.getAttribute("productAliasForm");
if(form != null) {
System.err.println("DYNAACTIONFORM IS IN REQUEST!");
System.err.println("ALIASREF IS:" + form.get("aliasRef"));
}

** This does not, and I don't know why... *

 




this above gives me the same exception

[ServletException in:/productAliasMaintenanceBody.jsp] No getter method
for property aliasRef of bean org.apache.struts.taglib.html.BEAN'


but aliasRef is declared in the form bean...

 
 
 
 
 



any clues ? ;-(

regards
marco





















-Original Message-
From: Nigel Vivian [mailto:[EMAIL PROTECTED] 
Sent: 23 December 2003 12:17
To: 'Struts Users Mailing List'
Subject: RE: Error in JSP when using DynaActionForm

Hi Marco

Is it trying to compile "AliasMaintenance.jsp" as the error message says
or
is it a typo?

As coded the action you've described should forward to another jsp -->
"productMaintenance.jsp

If its not this, then I think the list might need a fragment of your jsp
code as well

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: 23 December 2003 11:26
To: 'Struts Users Mailing List'
Subject: Error in JSP when using DynaActionForm


Hi all,
I am trying to get things working with DynaActionform.
I have defined my dynaAction form in my struts-config file as follows..







mapped to following class







now, when the ProductSetupAction forward the request  to
productMaintenance.jsp,
I got following JSP compilation error:

ServletException in:/AliasMaintenance.jsp] No getter method for property
aliasRef of bean org.apache.struts.taglib.html.BEAN'


At a glance, it seems that the page does not recognize the
DynaActionForm, since it is expecting to have a getAliasRef, while the
DynaActionForm has only get and set..

Any additional steps that I have to configure still in JSP to get things
working?

Thanx and regards
marco





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
(1) Matthew Clark plc and all its subsidiary Companies ("Matthew Clark")
is part of the Constellation Brands Inc. group of companies.  (2) The
contents of this e-mail are intended for the named recipient(s).  If you
are not the intended recipient please preserve the confidentiality of it
and advise Matthew Clark of the error immediately by telephone or by
replying to this e-mail and then please delete the e-mail from your
system.  (3) If you are an unauthorised recipient any action taken or
not taken in respect of, or any reliance upon, the contents of this
e-mail is prohibited and you may not copy, disseminate, distribute,
disclose, print or in any way use the contents of this e-mail and/or any
trademarks or copyright works or any other intellectual property
belonging to Matthew Clark which is contained in this e-mail.  (4)
Matthew Clark cannot accept liability for any damage which you might
sustain as a result of software viruses contained in this e-mail or any
of its atta!
 chments and in keeping with good computing practice, you should
therefore ensure that the contents of this e-mail and its attachments
are virus free.  (5) Any views expressed by an individual within the
contents of this e-mail do not necessarily reflect the views of Matthew
Clark.  (6) Matthew Clark reserves the right to monitor, intercept and
record incoming and outgoing e-mails for the purpose of protecting our
business and to ensure regulatory compliance. 

Visit our web site at www.matthewclark.co.uk

-
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: Error in JSP when using DynaActionForm

2003-12-23 Thread Nigel Vivian
Hi Marco

Is it trying to compile "AliasMaintenance.jsp" as the error message says or
is it a typo?

As coded the action you've described should forward to another jsp -->
"productMaintenance.jsp

If its not this, then I think the list might need a fragment of your jsp
code as well

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: 23 December 2003 11:26
To: 'Struts Users Mailing List'
Subject: Error in JSP when using DynaActionForm


Hi all,
I am trying to get things working with DynaActionform.
I have defined my dynaAction form in my struts-config file as follows..







mapped to following class







now, when the ProductSetupAction forward the request  to
productMaintenance.jsp,
I got following JSP compilation error:

ServletException in:/AliasMaintenance.jsp] No getter method for property
aliasRef of bean org.apache.struts.taglib.html.BEAN'


At a glance, it seems that the page does not recognize the
DynaActionForm, since it is expecting to have a getAliasRef, while the
DynaActionForm has only get and set..

Any additional steps that I have to configure still in JSP to get things
working?

Thanx and regards
marco





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
(1) Matthew Clark plc and all its subsidiary Companies (“Matthew Clark”) is part of 
the Constellation Brands Inc. group of companies.  (2) The contents of this e-mail are 
intended for the named recipient(s).  If you are not the intended recipient please 
preserve the confidentiality of it and advise Matthew Clark of the error immediately 
by telephone or by replying to this e-mail and then please delete the e-mail from your 
system.  (3) If you are an unauthorised recipient any action taken or not taken in 
respect of, or any reliance upon, the contents of this e-mail is prohibited and you 
may not copy, disseminate, distribute, disclose, print or in any way use the contents 
of this e-mail and/or any trademarks or copyright works or any other intellectual 
property belonging to Matthew Clark which is contained in this e-mail.  (4) Matthew 
Clark cannot accept liability for any damage which you might sustain as a result of 
software viruses contained in this e-mail or any of its atta!
 chments and in keeping with good computing practice, you should therefore ensure that 
the contents of this e-mail and its attachments are virus free.  (5) Any views 
expressed by an individual within the contents of this e-mail do not necessarily 
reflect the views of Matthew Clark.  (6) Matthew Clark reserves the right to monitor, 
intercept and record incoming and outgoing e-mails for the purpose of protecting our 
business and to ensure regulatory compliance. 

Visit our web site at www.matthewclark.co.uk

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



Re: Error in JSP when using DynaActionForm

2003-12-23 Thread Mark Lowe
Its actually expecting

theForm.get("aliasRef");

and

theForm.set("aliasRef","foo");

but this shouldn't make any difference in the jsp as

getAliasRef() and get("aliasRef").. are the same thing in the jsp (well 
in terms of the jsp one uses to access the properties.)

Cheers Mark

On 23 Dec 2003, at 11:25, Marco Mistroni wrote:

Hi all,
I am trying to get things working with DynaActionform.
I have defined my dynaAction form in my struts-config file as follows..





mapped to following class





now, when the ProductSetupAction forward the request  to
productMaintenance.jsp,
I got following JSP compilation error:
ServletException in:/AliasMaintenance.jsp] No getter method for 
property
aliasRef of bean org.apache.struts.taglib.html.BEAN'

At a glance, it seems that the page does not recognize the
DynaActionForm, since it is expecting to have a getAliasRef, while the
DynaActionForm has only get and set..
Any additional steps that I have to configure still in JSP to get 
things
working?

Thanx and regards
marco




-
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: Error using tiles-el

2003-12-20 Thread David M. Karr
> "Sunitha" == Sunitha Narayanan  writes:

Sunitha> Hello,
Sunitha> I am using Struts 1.2 (nightly build as of 17 Dec 2003) and am trying out 
using the tiles-el. When I replace my tiles taglib with tiles-el, I am getting this 
error

Sunitha> /WEB-INF/tiles/layout/main_layout.jsp(4): Error in using tag library 
uri='/WEB-INF/taglib/struts-tiles-el.tld' prefix='tiles': The Tag class 
'org.apache.strutsel.taglib.tiles.ELUseAttributeTag' has no setter method 
corresponding to TLD declared attribute 'classname', (JSP 1.1 spec, 5.4.1)
Sunitha> probably occurred due to an error in 
/WEB-INF/tiles/layout/main_layout.jsp line 4:
Sunitha> <%@ taglib uri="/WEB-INF/taglib/struts-tiles-el.tld" prefix="tiles" %> 

Sunitha> On looking at the source of ELUseAttributeTag.java, am finding that there 
is no setter for the classname attribute which has been defined in the 
struts-tiles-el.tld file.

Sunitha> Have any of you seen this problem? Is this a known bug?

Try testing tonight's nightly build with this.  This should be resolved now.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD; SCBCD





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



RE: Error using tiles-el

2003-12-19 Thread Karr, David
Yup, you're correct.  Could you please file a bug in Bugzilla for this?
I may get to this this weekend.

-Original Message-
From: Narayanan, Sunitha [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 17, 2003 11:45 AM
To: [EMAIL PROTECTED]
Subject: Error using tiles-el


Hello,

I am using Struts 1.2 (nightly build as of 17 Dec 2003) and am trying
out using the tiles-el. When I replace my tiles taglib with tiles-el, I
am getting this error

/WEB-INF/tiles/layout/main_layout.jsp(4): Error in using tag library
uri='/WEB-INF/taglib/struts-tiles-el.tld' prefix='tiles': The Tag class
'org.apache.strutsel.taglib.tiles.ELUseAttributeTag' has no setter
method corresponding to TLD declared attribute 'classname', (JSP 1.1
spec, 5.4.1) probably occurred due to an error in
/WEB-INF/tiles/layout/main_layout.jsp line 4: <%@ taglib
uri="/WEB-INF/taglib/struts-tiles-el.tld" prefix="tiles" %> 

On looking at the source of ELUseAttributeTag.java, am finding that
there is no setter for the classname attribute which has been defined in
the struts-tiles-el.tld file.

Have any of you seen this problem? Is this a known bug?

Thanks,
Sunitha


-
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: Error using Struts Validation on Weblogic 8.1 platform

2003-12-18 Thread rahul.chaudhary

Indeed it was the problem with the path of the DTD
Thanks
Rahul

-Original Message-
From: Milon Krejca [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 7:58 PM
To: Struts Users Mailing List
Subject: Re: Error using Struts Validation on Weblogic 8.1 platform


Seems like you do not have DTD configured localy and the server is
tryiing to access DTD from web server.  See beginning of  validation.xml
file and look for DTD definition...

Milon

[EMAIL PROTECTED] wrote:

>All,
>
>The validation doesn't seem to work.Checking the Server logs displays the following 
>stack trace.Any thoughts as to what needs to be done?
>
>Thanks
>Rahul
>
>17 Dec 2003 10:20:01,806 INFO  ValidatorPlugIn []: Loading validation rules file from 
>'/WEB-INF/validator-rules.xml'
>
>17 Dec 2003 10:20:19,031 ERROR ValidatorPlugIn []: jakarta.apache.org
>Throwable: java.net.UnknownHostException: jakarta.apache.org
>Stack Trace:
>java.net.UnknownHostException: jakarta.apache.org
>   at java.net.InetAddress.getAllByName0(InetAddress.java:1004)
>   at java.net.InetAddress.getAllByName0(InetAddress.java:969)
>   at java.net.InetAddress.getAllByName(InetAddress.java:963)
>   at weblogic.net.http.HttpClient.openServer(HttpClient.java:228)
>   at weblogic.net.http.HttpClient.openServer(HttpClient.java:292)
>   at weblogic.net.http.HttpClient.(HttpClient.java:128)
>   at 
> weblogic.net.http.HttpURLConnection.getHttpClient(HttpURLConnection.java:122)
>   at 
> weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:321)
>   at java.net.URL.openStream(URL.java:960)
>   at 
> weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:836)
>   at 
> weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:796)
>   at 
> weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:275)
>   at 
> weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:841)
>   at 
> weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
>   at 
> weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
>   at 
> weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
>   at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>   at 
> weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
>   at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
>   at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
>   at org.apache.commons.digester.Digester.parse(Digester.java:1562)
>   at 
> org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:256)
>   at 
> org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:224)
>   at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167)
>   at 
> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
>   at 
> com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.registerModule(DynamicSubappActionServlet.java:346)
>   at 
> com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.ensureModuleRegistered(DynamicSubappActionServlet.java:520)
>   at 
> com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.getModuleConfig(DynamicSubappActionServlet.java:455)
>   at 
> com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.process(DynamicSubappActionServlet.java:389)
>   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
>   at 
> com.bea.wlw.netui.pageflow.scoping.ScopedServletUtils.strutsLookup(ScopedServletUtils.java:348)
>   at 
> com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1196)
>   at com.bea.wlw.netui.pageflow.FlowController.lookup(FlowController.java:1615)
>   at 
> com.bea.netuix.servlets.controls.content.PageflowContent.preRender(PageflowContent.java:343)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
>   at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
>   at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
>   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>   at 
> com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
>   at weblogic.servlet.internal.FilterChainImpl.doFilt

Re: Error using Struts Validation on Weblogic 8.1 platform

2003-12-17 Thread Milon Krejca
Seems like you do not have DTD configured localy and the server is 
tryiing to access DTD from web server.  See beginning of  validation.xml 
file and look for DTD definition...

Milon

[EMAIL PROTECTED] wrote:

All,

The validation doesn't seem to work.Checking the Server logs displays the following stack trace.Any thoughts as to what needs to be done?

Thanks
Rahul
17 Dec 2003 10:20:01,806 INFO  ValidatorPlugIn []: Loading validation rules file from '/WEB-INF/validator-rules.xml'

17 Dec 2003 10:20:19,031 ERROR ValidatorPlugIn []: jakarta.apache.org
Throwable: java.net.UnknownHostException: jakarta.apache.org
Stack Trace:
java.net.UnknownHostException: jakarta.apache.org
at java.net.InetAddress.getAllByName0(InetAddress.java:1004)
at java.net.InetAddress.getAllByName0(InetAddress.java:969)
at java.net.InetAddress.getAllByName(InetAddress.java:963)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:228)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:292)
at weblogic.net.http.HttpClient.(HttpClient.java:128)
at 
weblogic.net.http.HttpURLConnection.getHttpClient(HttpURLConnection.java:122)
at 
weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:321)
at java.net.URL.openStream(URL.java:960)
at 
weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:836)
at 
weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:796)
at 
weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:275)
at 
weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:841)
at 
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
at 
weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at 
weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
at org.apache.commons.digester.Digester.parse(Digester.java:1562)
at 
org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:256)
at 
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:224)
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
at 
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.registerModule(DynamicSubappActionServlet.java:346)
at 
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.ensureModuleRegistered(DynamicSubappActionServlet.java:520)
at 
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.getModuleConfig(DynamicSubappActionServlet.java:455)
at 
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.process(DynamicSubappActionServlet.java:389)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
at 
com.bea.wlw.netui.pageflow.scoping.ScopedServletUtils.strutsLookup(ScopedServletUtils.java:348)
at 
com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1196)
at com.bea.wlw.netui.pageflow.FlowController.lookup(FlowController.java:1615)
at 
com.bea.netuix.servlets.controls.content.PageflowContent.preRender(PageflowContent.java:343)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at 
com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at 
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDispatcherImpl.java:385)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at 
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:286)
at 
com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(PageFlowRequestProcessor.java:1017)
at 
com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultH

Re: Error message display in the case of redirect = true

2003-12-10 Thread Gurpreet Dhanoa
HI

Alok , here is the code for it

Follwoing is the snapshot for the same.




 public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response) throws
Exception {
// Extract attributes and/or parameters we will need

 // When "navigating" to this action, ActionForm is null, so
// user's info is copied into the form and then saved in request
scope
if (form == null) {
// Set a transactional control token to prevent double posting
saveToken(request);
   }

//IF this Action has been called of by Submit Form
 // Validate the transactional control token
if (!isTokenValid(request))//This is an inbuild method of ACtion
class to check the Token
{

request.setAttribute(DOUBLE_POST_ATTEMPT_KEY, "trapped");
return new ActionForward(mapping.getInput());
}



HOpe this may help

Cheers
Gary

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 12:54 PM
Subject: Re: Error message display in the case of redirect = true


>
> Hello Gurpreet,
> Thanks for the input but can you please send me an example of how to do
it.
>
> Alok Garg
> Polaris Software Lab Ltd.
> ( + 91 - 022 - 28290019 Ext. # 1308 )
>
>
>
>   "Gurpreet Dhanoa"
>   <[EMAIL PROTECTED] To:  "Struts Users
Mailing List" <[EMAIL PROTECTED]>
>   atainc.com>   cc:  (bcc:
alok.garg/Polaris)
> Subject: Re: Error message
display in the case of redirect = true
>   12/10/03 11:28 AM
>   Please respond to
>   "Struts Users
>   Mailing List"
>
>
>
>
>
>
> hi ALok
>
> You can stop the resubmitting of form with the help of Tokens in struts
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, December 10, 2003 11:00 AM
> Subject: RE: Error message display in the case of redirect = true
>
>
> >
> >
> > You are right even I knew that it was the same problem. But then in that
> > case if I make redirect = false and if the user refreshes the page then
> the
> > request is again submitted.
> > So, can you throw some light on how to stop the user from re submitting
> the
> > same URL.
> >
> > Alok Garg
> > Polaris Software Lab Ltd.
> > ( + 91 - 022 - 28290019 Ext. # 1308 )
> >
> >
> >
> >   "Navjot Singh"
> >   <[EMAIL PROTECTED] To:  "Struts Users
> Mailing List" <[EMAIL PROTECTED]>
> >   dia.net> cc:  (bcc:
> alok.garg/Polaris)
> >Subject: RE: Error
message
> display in the case of redirect = true
> >   12/09/03 06:02
> >   PM
> >   Please respond
> >   to "Struts Users
> >   Mailing List"
>
> >
> >
> >
> >
> >
> >
> > not sure but the logic says that error messages are being stored in the
> > REQUEST SCOPE and when you set redirect=true, naturally that's a new
> > request
> > so you won't get the errors set in earlier request.
> >
> > anybody else?
> >
> > >-Original Message-
> > >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > >Sent: Tuesday, December 09, 2003 5:53 PM
> > >To: Struts Users Mailing List
> > >Subject: Error message display in the case of redirect = true
> > >
> > >
> > >Hello all,
> > >I want to display the errors stack provided y Struts in the jsp page
> using
> > >the  tag. I am able to display it but the moment I add
the
> > >redirect=true in the action mapping tag I am not able to see the error
> > >messages.
> > >
> > >Please help with it.
> > >
> > >Alok Garg
> > >Polaris Software Lab Ltd.
> > >( + 91 - 022 - 28290019 Ext. # 1308 )
> > >
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Error message display in the case of redirect = true

2003-12-10 Thread alok . garg

Hello Gurpreet,
Thanks for the input but can you please send me an example of how to do it.

Alok Garg
Polaris Software Lab Ltd.
( + 91 - 022 - 28290019 Ext. # 1308 )


   
 
  "Gurpreet Dhanoa"
 
  <[EMAIL PROTECTED] To:  "Struts Users Mailing List" 
<[EMAIL PROTECTED]>   
  atainc.com>   cc:  (bcc: alok.garg/Polaris)  
 
        Subject: Re: Error message display in 
the case of redirect = true   
  12/10/03 11:28 AM
 
  Please respond to
 
  "Struts Users
 
  Mailing List"
 
   
 
   
 




hi ALok

You can stop the resubmitting of form with the help of Tokens in struts

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 11:00 AM
Subject: RE: Error message display in the case of redirect = true


>
>
> You are right even I knew that it was the same problem. But then in that
> case if I make redirect = false and if the user refreshes the page then
the
> request is again submitted.
> So, can you throw some light on how to stop the user from re submitting
the
> same URL.
>
> Alok Garg
> Polaris Software Lab Ltd.
> ( + 91 - 022 - 28290019 Ext. # 1308 )
>
>
>
>   "Navjot Singh"
>   <[EMAIL PROTECTED] To:  "Struts Users
Mailing List" <[EMAIL PROTECTED]>
>   dia.net> cc:  (bcc:
alok.garg/Polaris)
>Subject: RE: Error message
display in the case of redirect = true
>   12/09/03 06:02
>   PM
>   Please respond
>   to "Struts Users
>   Mailing List"

>
>
>
>
>
>
> not sure but the logic says that error messages are being stored in the
> REQUEST SCOPE and when you set redirect=true, naturally that's a new
> request
> so you won't get the errors set in earlier request.
>
> anybody else?
>
> >-Original Message-
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, December 09, 2003 5:53 PM
> >To: Struts Users Mailing List
> >Subject: Error message display in the case of redirect = true
> >
> >
> >Hello all,
> >I want to display the errors stack provided y Struts in the jsp page
using
> >the  tag. I am able to display it but the moment I add the
> >redirect=true in the action mapping tag I am not able to see the error
> >messages.
> >
> >Please help with it.
> >
> >Alok Garg
> >Polaris Software Lab Ltd.
> >( + 91 - 022 - 28290019 Ext. # 1308 )
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>







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


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






This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby n

Re: Error message display in the case of redirect = true

2003-12-09 Thread Gurpreet Dhanoa
hi ALok

You can stop the resubmitting of form with the help of Tokens in struts

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 11:00 AM
Subject: RE: Error message display in the case of redirect = true


>
>
> You are right even I knew that it was the same problem. But then in that
> case if I make redirect = false and if the user refreshes the page then
the
> request is again submitted.
> So, can you throw some light on how to stop the user from re submitting
the
> same URL.
>
> Alok Garg
> Polaris Software Lab Ltd.
> ( + 91 - 022 - 28290019 Ext. # 1308 )
>
>
>
>   "Navjot Singh"
>   <[EMAIL PROTECTED] To:  "Struts Users
Mailing List" <[EMAIL PROTECTED]>
>   dia.net>     cc:  (bcc:
alok.garg/Polaris)
>Subject: RE: Error message
display in the case of redirect = true
>   12/09/03 06:02
>   PM
>   Please respond
>   to "Struts Users
>   Mailing List"

>
>
>
>
>
>
> not sure but the logic says that error messages are being stored in the
> REQUEST SCOPE and when you set redirect=true, naturally that's a new
> request
> so you won't get the errors set in earlier request.
>
> anybody else?
>
> >-Original Message-
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, December 09, 2003 5:53 PM
> >To: Struts Users Mailing List
> >Subject: Error message display in the case of redirect = true
> >
> >
> >Hello all,
> >I want to display the errors stack provided y Struts in the jsp page
using
> >the  tag. I am able to display it but the moment I add the
> >redirect=true in the action mapping tag I am not able to see the error
> >messages.
> >
> >Please help with it.
> >
> >Alok Garg
> >Polaris Software Lab Ltd.
> >( + 91 - 022 - 28290019 Ext. # 1308 )
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>






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


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



RE: Error message display in the case of redirect = true

2003-12-09 Thread alok . garg


You are right even I knew that it was the same problem. But then in that
case if I make redirect = false and if the user refreshes the page then the
request is again submitted.
So, can you throw some light on how to stop the user from re submitting the
same URL.

Alok Garg
Polaris Software Lab Ltd.
( + 91 - 022 - 28290019 Ext. # 1308 )


   

  "Navjot Singh"   

  <[EMAIL PROTECTED] To:  "Struts Users Mailing List" 
<[EMAIL PROTECTED]>   
  dia.net> cc:  (bcc: alok.garg/Polaris)   

       Subject: RE: Error message display in 
the case of redirect = true   
  12/09/03 06:02   

  PM   

  Please respond   

  to "Struts Users 

  Mailing List"

   

   





not sure but the logic says that error messages are being stored in the
REQUEST SCOPE and when you set redirect=true, naturally that's a new
request
so you won't get the errors set in earlier request.

anybody else?

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 09, 2003 5:53 PM
>To: Struts Users Mailing List
>Subject: Error message display in the case of redirect = true
>
>
>Hello all,
>I want to display the errors stack provided y Struts in the jsp page using
>the  tag. I am able to display it but the moment I add the
>redirect=true in the action mapping tag I am not able to see the error
>messages.
>
>Please help with it.
>
>Alok Garg
>Polaris Software Lab Ltd.
>( + 91 - 022 - 28290019 Ext. # 1308 )
>
>
>


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






This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

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

RE: Error: Object expected

2003-12-09 Thread Ciaran Hanley
Silly me!

You're right, thanks

-Original Message-
From: Saul Q Yuan [mailto:[EMAIL PROTECTED] 
Sent: 09 December 2003 20:22
To: 'Struts Users Mailing List'
Subject: RE: Error: Object expected

Assuming it's not a typo, inside your onsubmit it should be return
validateClientForm(this).

Saul

-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:54 PM
To: [EMAIL PROTECTED]
Subject: Error: Object expected


Hi, 
 
I'm trying to get use struts validator with my application. I am
currently working with a very simple example, only checking that the
required field has been filled but keep getting an "Error: Object
expected error" I think the error is on the "
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
 

  


  
  
  

  
   




   
   
   
  

  

 
 
Any help?
Thanks in advance,
Ciaran


-
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: Error: Object expected

2003-12-09 Thread Saul Q Yuan
Assuming it's not a typo, inside your onsubmit it should be return
validateClientForm(this).

Saul

-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 2:54 PM
To: [EMAIL PROTECTED]
Subject: Error: Object expected


Hi, 
 
I'm trying to get use struts validator with my application. I am
currently working with a very simple example, only checking that the
required field has been filled but keep getting an "Error: Object
expected error" I think the error is on the "
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
 

  


  
  
  

  
   




   
   
   
  

  

 
 
Any help?
Thanks in advance,
Ciaran


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



Re: Error message!

2003-12-09 Thread Oron Gill Haus
It looks as though one of your tags in the 'app' include doesn't have a
getter/setter for an attribute you have specified in your TLD.

--- Zakaria khabot <[EMAIL PROTECTED]> wrote:
> Hi,
> I received this error message and don't understand the soiurce of
> error :
> 
> javax.servlet.jsp.JspException: No getter method for property action
> of bean org.apache.struts.taglib.html.BEAN
> 
>   java.lang.Object
>
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
> java.lang.String, java.lang.String, java.lang.String)
> 
>   RequestUtils.java:968
> 
>   int org.apache.struts.taglib.html.BaseFieldTag.doStartTag()
> 
>   BaseFieldTag.java:176
> 
>   int org.apache.struts.taglib.html.HiddenTag.doStartTag()
> 
>   HiddenTag.java:123
> 
>   void _detail._jspService(javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse)
> 
>   [/detail.jsp]
> 
>   detail.jsp:29
> 
> My detail.jsp file is the following :
> <%@ page contentType="text/html;charset=windows-1252"%>
> <%@ taglib uri="/WEB-INF/app.tld"prefix="app" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> 
> 
> 
> 
> 
> Consultation et modification des données.
> 
> 
> 
> 
> Les données sur le DVD.
> 
> 
>  action="/process">
>  
> 
> function go(action) {
> document.forms["myform"].action.value=action;
>  }
>  
> 
> 
>  
> 
> 
> 
> 
> 
> 
>   
> 
>   :
> 
> 
> 
>   
> 
>  
> 
>   
> 
>   
> 
>   :
> 
> 
>   
> 
>   
> 
>   
> 
>   :
> 
> 
>   
> 
>   
> 
>   
> 
>   :
> 
> 
>   
> 
>   
> 
>   
> 
> 
> 
> 
>   
> 
> 
> 
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> Thanks.
> Zakaria
> 
>   
> 


=
Oron Gill Haus
IBM CSE Content Manager 8 - Sun Certified Programmer Java 2 1.4
office: (410) 539-3733 x1348
fax:(410) 837-9535 c/o Oron
e-mail: [EMAIL PROTECTED]
web: http://www.electronicscene.com/oron_haus

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



RE: Error message display in the case of redirect = true

2003-12-09 Thread Navjot Singh
not sure but the logic says that error messages are being stored in the
REQUEST SCOPE and when you set redirect=true, naturally that's a new request
so you won't get the errors set in earlier request.

anybody else?

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 09, 2003 5:53 PM
>To: Struts Users Mailing List
>Subject: Error message display in the case of redirect = true
>
>
>Hello all,
>I want to display the errors stack provided y Struts in the jsp page using
>the  tag. I am able to display it but the moment I add the
>redirect=true in the action mapping tag I am not able to see the error
>messages.
>
>Please help with it.
>
>Alok Garg
>Polaris Software Lab Ltd.
>( + 91 - 022 - 28290019 Ext. # 1308 )
>
>
>


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



Re: Error message!

2003-12-09 Thread Gurpreet Dhanoa
hi
It seems your tld file for HTML is not right. Try to open the tld file and
check it
- Original Message -
From: "Zakaria khabot" <[EMAIL PROTECTED]>
To: "struts-user-help" <[EMAIL PROTECTED]>; "struts-user"
<[EMAIL PROTECTED]>
Sent: Sunday, December 08, 2002 9:24 PM
Subject: Error message!


Hi,
I received this error message and don't understand the soiurce of error :

javax.servlet.jsp.JspException: No getter method for property action of bean
org.apache.struts.taglib.html.BEAN

java.lang.Object
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
java.lang.String, java.lang.String, java.lang.String)

RequestUtils.java:968

int org.apache.struts.taglib.html.BaseFieldTag.doStartTag()

BaseFieldTag.java:176

int org.apache.struts.taglib.html.HiddenTag.doStartTag()

HiddenTag.java:123

void _detail._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)

[/detail.jsp]

detail.jsp:29

My detail.jsp file is the following :
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/WEB-INF/app.tld"prefix="app" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>





Consultation et modification des données.




Les données sur le DVD.





function go(action) {
document.forms["myform"].action.value=action;
 }










  

  :







  

  

  :


  

  

  

  :


  

  

  

  :


  

  

  




  




 

 

 

 

 

 

 


  







Thanks.
Zakaria



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



RE: Error message!

2003-12-09 Thread Jitesh Sinha
Do you have getAction() method in your actionForm?

-Original Message-
From: Zakaria khabot [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 08, 2002 9:25 PM
To: struts-user-help; struts-user
Subject: Error message!


Hi,
I received this error message and don't understand the soiurce of error :

javax.servlet.jsp.JspException: No getter method for property action of bean
org.apache.struts.taglib.html.BEAN

java.lang.Object
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
java.lang.String, java.lang.String, java.lang.String)

RequestUtils.java:968

int org.apache.struts.taglib.html.BaseFieldTag.doStartTag()

BaseFieldTag.java:176

int org.apache.struts.taglib.html.HiddenTag.doStartTag()

HiddenTag.java:123

void _detail._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)

[/detail.jsp]

detail.jsp:29

My detail.jsp file is the following :
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/WEB-INF/app.tld"prefix="app" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>





Consultation et modification des données.




Les données sur le DVD.





function go(action) {
document.forms["myform"].action.value=action;
 }










  

  :







  

  

  :


  

  

  

  :


  

  

  

  :


  

  

  




  




 

 

 

 

 

 

 


  







Thanks.
Zakaria




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



RE: Error creating form bean

2003-12-01 Thread David Friedman
Yep.  That was the first thing I noticed when I read your email after
dinner: 'form' :)

Regards,
David

-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 7:45 PM
To: Struts Users Mailing List
Subject: Re: Error creating form bean


And I think you just found my problem - it was a small typo:

In struts-config, I had:

type="com.ponyprinting.web.manager.UploadForm" />

Instead of:

type="com.ponyprinting.web.manager.forms.UploadForm" />

Thanks a lot David!  Sorry to bother the list with such a stupid mistake.
But when you've been looking at something for 15 hours...

-Sasha


On 12/1/03 6:38 PM, "Sasha Borodin" <[EMAIL PROTECTED]> wrote:

>> Just to be explicit, you have a file in tomcat as:
>> WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ?
>
> Yep.
>
> WEB-INF/classes/com/ponyprinting/web/manager/forms/UploadForm.class
>
> ...just to be precise.
>
> Thanks,
>
> -Sasha
>
> On 12/1/03 6:27 PM, "David Friedman" <[EMAIL PROTECTED]> wrote:
>
>> Just to be explicit, you have a file in tomcat as:
>> WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ?
>>
>> Regards,
>> David
>>
>> -----Original Message-
>> From: Sasha Borodin [mailto:[EMAIL PROTECTED]
>> Sent: Monday, December 01, 2003 7:22 PM
>> To: Struts Users Mailing List
>> Subject: Re: Error creating form bean
>>
>>
>> Attention Todd Thorner! :-)
>>
>> It look like you had  very similar problem, but I saw no replies to your
>> post.  Did you ever get this fixed:
>>
>> http://www.mail-archive.com/[EMAIL PROTECTED]/msg86103.html
>>
>> I'm working under an extreme deadline, please help :-(
>>
>> -
>> Howdy,
>>
>> I'm having a bizarre problem with a new ActionForm I've just created:
when I
>> hit a jsp that uses this form, the RequestUtils say there's an error
>> creating
>> form bean of my class.
>>
>> 2003-12-01 17:01:33,432 [Thread-2] ERROR
org.apache.struts.util.RequestUtils
>>
>> Error creating form bean of class com.ponyprinting.web.manager.UploadForm
>> java.lang.ClassNotFoundException: com.ponyprinting.web.manager.UploadForm
>>
>> The class file is there (I checked the build directory that tomcat's
being
>> pointed to for "docBase" of my web app).  And it obviously compiled fine.
>>
>> Sigh. It's the little problems that take up 80% of the time :-(
>>
>> Please help!  Thank you,
>>
>> -Sasha Borodin
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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


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



Re: Error creating form bean

2003-12-01 Thread Sasha Borodin
And I think you just found my problem - it was a small typo:

In struts-config, I had:

type="com.ponyprinting.web.manager.UploadForm" />

Instead of:

type="com.ponyprinting.web.manager.forms.UploadForm" />

Thanks a lot David!  Sorry to bother the list with such a stupid mistake.
But when you've been looking at something for 15 hours...

-Sasha


On 12/1/03 6:38 PM, "Sasha Borodin" <[EMAIL PROTECTED]> wrote:

>> Just to be explicit, you have a file in tomcat as:
>> WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ?
> 
> Yep.
> 
> WEB-INF/classes/com/ponyprinting/web/manager/forms/UploadForm.class
> 
> ...just to be precise.
> 
> Thanks,
> 
> -Sasha
> 
> On 12/1/03 6:27 PM, "David Friedman" <[EMAIL PROTECTED]> wrote:
> 
>> Just to be explicit, you have a file in tomcat as:
>> WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ?
>> 
>> Regards,
>> David
>> 
>> -Original Message-
>> From: Sasha Borodin [mailto:[EMAIL PROTECTED]
>> Sent: Monday, December 01, 2003 7:22 PM
>> To: Struts Users Mailing List
>> Subject: Re: Error creating form bean
>> 
>> 
>> Attention Todd Thorner! :-)
>> 
>> It look like you had  very similar problem, but I saw no replies to your
>> post.  Did you ever get this fixed:
>> 
>> http://www.mail-archive.com/[EMAIL PROTECTED]/msg86103.html
>> 
>> I'm working under an extreme deadline, please help :-(
>> 
>> -
>> Howdy,
>> 
>> I'm having a bizarre problem with a new ActionForm I've just created: when I
>> hit a jsp that uses this form, the RequestUtils say there's an error
>> creating
>> form bean of my class.
>> 
>> 2003-12-01 17:01:33,432 [Thread-2] ERROR org.apache.struts.util.RequestUtils
>> 
>> Error creating form bean of class com.ponyprinting.web.manager.UploadForm
>> java.lang.ClassNotFoundException: com.ponyprinting.web.manager.UploadForm
>> 
>> The class file is there (I checked the build directory that tomcat's being
>> pointed to for "docBase" of my web app).  And it obviously compiled fine.
>> 
>> Sigh. It's the little problems that take up 80% of the time :-(
>> 
>> Please help!  Thank you,
>> 
>> -Sasha Borodin
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Error creating form bean

2003-12-01 Thread Sasha Borodin
> Just to be explicit, you have a file in tomcat as:
> WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ?

Yep.

WEB-INF/classes/com/ponyprinting/web/manager/forms/UploadForm.class

...just to be precise.

Thanks,

-Sasha

On 12/1/03 6:27 PM, "David Friedman" <[EMAIL PROTECTED]> wrote:

> Just to be explicit, you have a file in tomcat as:
> WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ?
> 
> Regards,
> David
> 
> -Original Message-
> From: Sasha Borodin [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 01, 2003 7:22 PM
> To: Struts Users Mailing List
> Subject: Re: Error creating form bean
> 
> 
> Attention Todd Thorner! :-)
> 
> It look like you had  very similar problem, but I saw no replies to your
> post.  Did you ever get this fixed:
> 
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg86103.html
> 
> I'm working under an extreme deadline, please help :-(
> 
> -
> Howdy,
> 
> I'm having a bizarre problem with a new ActionForm I've just created: when I
> hit a jsp that uses this form, the RequestUtils say there's an error
> creating
> form bean of my class.
> 
> 2003-12-01 17:01:33,432 [Thread-2] ERROR org.apache.struts.util.RequestUtils
> 
> Error creating form bean of class com.ponyprinting.web.manager.UploadForm
> java.lang.ClassNotFoundException: com.ponyprinting.web.manager.UploadForm
> 
> The class file is there (I checked the build directory that tomcat's being
> pointed to for "docBase" of my web app).  And it obviously compiled fine.
> 
> Sigh. It's the little problems that take up 80% of the time :-(
> 
> Please help!  Thank you,
> 
> -Sasha Borodin
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Error creating form bean

2003-12-01 Thread David Friedman
Just to be explicit, you have a file in tomcat as:
WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ?

Regards,
David

-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 7:22 PM
To: Struts Users Mailing List
Subject: Re: Error creating form bean


Attention Todd Thorner! :-)

It look like you had  very similar problem, but I saw no replies to your
post.  Did you ever get this fixed:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg86103.html

I'm working under an extreme deadline, please help :-(

-
Howdy,

I'm having a bizarre problem with a new ActionForm I've just created: when I
hit a jsp that uses this form, the RequestUtils say there's an error
creating
form bean of my class.

2003-12-01 17:01:33,432 [Thread-2] ERROR org.apache.struts.util.RequestUtils

Error creating form bean of class com.ponyprinting.web.manager.UploadForm
java.lang.ClassNotFoundException: com.ponyprinting.web.manager.UploadForm

The class file is there (I checked the build directory that tomcat's being
pointed to for "docBase" of my web app).  And it obviously compiled fine.

Sigh. It's the little problems that take up 80% of the time :-(

Please help!  Thank you,

-Sasha Borodin


-
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: Error creating form bean

2003-12-01 Thread Sasha Borodin
Attention Todd Thorner! :-)

It look like you had  very similar problem, but I saw no replies to your
post.  Did you ever get this fixed:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg86103.html

I'm working under an extreme deadline, please help :-(

-
Howdy,

I'm having a bizarre problem with a new ActionForm I've just created: when I
hit a jsp that uses this form, the RequestUtils say there's an error
creating  
form bean of my class.

2003-12-01 17:01:33,432 [Thread-2] ERROR org.apache.struts.util.RequestUtils

Error creating form bean of class com.ponyprinting.web.manager.UploadForm
java.lang.ClassNotFoundException: com.ponyprinting.web.manager.UploadForm

The class file is there (I checked the build directory that tomcat's being
pointed to for "docBase" of my web app).  And it obviously compiled fine.

Sigh. It's the little problems that take up 80% of the time :-(

Please help!  Thank you,

-Sasha Borodin


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



Re: Error while accessing the application

2003-11-30 Thread Melanie Pfefer
Hi,

I went through your recommendations. I am suspicious
that iWS 6.0 web server has problem with STRUTS (Kind
of bugs or unsupported versions). Do you have any
information about this?

Thank you!


Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs
http://www.yahoo.co.uk/robbiewilliams

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



RE: Error while accessing the application

2003-11-30 Thread Karr, David
Just for clarification to others, your last line abbreviates the fact
that in a Servlet 2.3 container, it's not necessary to include the TLDs,
either in the "/WEB-INF" directory, or referenced in the "web.xml", if
you reference the canonical URI in the "taglib" directives in the JSP
pages.  The "canonical" URI for the tag library is listed in the TLD for
the tag library.  There are differences of opinion on which of these
strategies is preferable.  There are tradeoffs both ways.

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

Hi Melanie,

don't really see anything wrong right off the bat, but let's walk
through what has to be configured:

Place all your tlds in the WEB-INF directory (looks good here) Place all
required struts library JARs in the lib directory of your web appl
Configure your web.xml to include the TLDs, here's an example of one of
my projects:

  
  index.html
  index.jsp
  
  
  /WEB-INF/c-rt.tld
  /WEB-INF/c-rt.tld
  
  
  /WEB-INF/c.tld
  /WEB-INF/c.tld
  
  
  /WEB-INF/fmt-rt.tld
  /WEB-INF/fmt-rt.tld
  
  
  /WEB-INF/fmt.tld
  /WEB-INF/fmt.tld
  
  
  /WEB-INF/struts-bean.tld
  /WEB-INF/struts-bean.tld
  
  
  /WEB-INF/struts-html.tld
  /WEB-INF/struts-html.tld
  
Finally configure the JSP to include (or point) to the proper tag
definition, here's an example:

  <%@ page import="java.util.*"%>
  <[EMAIL PROTECTED] uri="/WEB-INF/c.tld" prefix="c" %>
  <[EMAIL PROTECTED] uri="/WEB-INF/fmt.tld" prefix="fmt" %>
  <[EMAIL PROTECTED] uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  <[EMAIL PROTECTED] uri="/WEB-INF/pager-taglib.tld" prefix="pg" %>
  <%@ taglib uri="/WEB-INF/security.tld" prefix="security" %>
  <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>

I always reference tlds from the /WEB-INF directory, not from within the
library JAR.


Jim Kennedy
IT Consultant
Mobile Phone: 813-503-1484
-


- Original Message - 
From: "Melanie Pfefer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 30, 2003 7:30 AM
Subject: Error while accessing the application


> Hi,
> 
> My application is not able to find the tag libraries.
> The tag libraries lie in the WEB-INF directory of the application and 
> refer to a directory on another server.  These two servers are able to

> connect with one another.
> 
> I am getting exceptions like
> info ( 5840): JSP: JSP1x compiler threw exception
> org.apache.jasper.compiler.CompileException:
> /Mydocs/sun/web/docs/jvNET/Login.jsp(1,0) Unable to
> open taglibrary
> /WEB-INF/struts-bean.tld : Could not locate TLD
> /WEB-INF/struts-bean.tld
> at
>
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspPars
> eEventListener.java:707)
> at
>
org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegating
> Listener.java:110)
> at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
> at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
> at
>
com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.jav
> a:252)
> at
>
com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.j
> ava:173)
> at
>
com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.
> java:416)
> [16/Nov/2003:14:54:22] warning ( 5840): Internal
> error: Failed to get
> GenericServlet.
> (uri=/jvNET/Login.jsp,SCRIPT_NAME=/jvNET/Login.jsp)
> [16/Nov/2003:14:56:02] info ( 5840): Internal Info:
> loading servlet
> /jvNET/Login.jsp
> [16/Nov/2003:14:56:02] info ( 5840): JSP: JSP1x
> compiler threw exception
> org.apache.jasper.compiler.CompileException:
> /Mydocs/sun/web/docs/jvNET/Login.jsp(1,0) Unable to
> open taglibrary
> /WEB-INF/struts-bean.tld : Could not locate TLD
> /WEB-INF/struts-bean.tld
> at
>
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspPars
> eEventListener.java:707)
> at
>
org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegating
> Listener.java:110)
> at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
> at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
> at
>
com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.jav
> a:252)
> at
>
com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.j
> ava:173)
> at
>
com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.
> java:416)
> [16/Nov/2003:14:56:02] warning ( 5840): Internal
> error: Failed to get
> GenericServlet. (uri=/jvNET/Login.jsp,SCRIPT_NAME=/jvNET/Login.jsp)
> 
> __

Re: Error while accessing the application

2003-11-30 Thread Jim Kennedy
Hi Melanie,

don't really see anything wrong right off the bat, but let's walk through what has to 
be configured:

Place all your tlds in the WEB-INF directory (looks good here)
Place all required struts library JARs in the lib directory of your web appl
Configure your web.xml to include the TLDs, here's an example of one of my projects:

  
  index.html
  index.jsp
  
  
  /WEB-INF/c-rt.tld
  /WEB-INF/c-rt.tld
  
  
  /WEB-INF/c.tld
  /WEB-INF/c.tld
  
  
  /WEB-INF/fmt-rt.tld
  /WEB-INF/fmt-rt.tld
  
  
  /WEB-INF/fmt.tld
  /WEB-INF/fmt.tld
  
  
  /WEB-INF/struts-bean.tld
  /WEB-INF/struts-bean.tld
  
  
  /WEB-INF/struts-html.tld
  /WEB-INF/struts-html.tld
  
Finally configure the JSP to include (or point) to the proper tag definition, here's 
an example:

  <%@ page import="java.util.*"%>
  <[EMAIL PROTECTED] uri="/WEB-INF/c.tld" prefix="c" %>
  <[EMAIL PROTECTED] uri="/WEB-INF/fmt.tld" prefix="fmt" %>
  <[EMAIL PROTECTED] uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  <[EMAIL PROTECTED] uri="/WEB-INF/pager-taglib.tld" prefix="pg" %>
  <%@ taglib uri="/WEB-INF/security.tld" prefix="security" %>
  <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>

I always reference tlds from the /WEB-INF directory, not from within the library JAR.


Jim Kennedy
IT Consultant
Mobile Phone: 813-503-1484
-


- Original Message - 
From: "Melanie Pfefer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 30, 2003 7:30 AM
Subject: Error while accessing the application


> Hi,
> 
> My application is not able to find the tag libraries.
> The tag libraries lie in the WEB-INF directory of the
> application and refer to a directory on another
> server.  These two servers are able to connect with
> one another.
> 
> I am getting exceptions like 
> info ( 5840): JSP: JSP1x compiler threw exception
> org.apache.jasper.compiler.CompileException:
> /Mydocs/sun/web/docs/jvNET/Login.jsp(1,0) Unable to
> open taglibrary
> /WEB-INF/struts-bean.tld : Could not locate TLD
> /WEB-INF/struts-bean.tld
> at
> org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspPars
> eEventListener.java:707)
> at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegating
> Listener.java:110)
> at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
> at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
> at
> com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.jav
> a:252)
> at
> com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.j
> ava:173)
> at
> com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.
> java:416)
> [16/Nov/2003:14:54:22] warning ( 5840): Internal
> error: Failed to get
> GenericServlet.
> (uri=/jvNET/Login.jsp,SCRIPT_NAME=/jvNET/Login.jsp)
> [16/Nov/2003:14:56:02] info ( 5840): Internal Info:
> loading servlet
> /jvNET/Login.jsp
> [16/Nov/2003:14:56:02] info ( 5840): JSP: JSP1x
> compiler threw exception
> org.apache.jasper.compiler.CompileException:
> /Mydocs/sun/web/docs/jvNET/Login.jsp(1,0) Unable to
> open taglibrary
> /WEB-INF/struts-bean.tld : Could not locate TLD
> /WEB-INF/struts-bean.tld
> at
> org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspPars
> eEventListener.java:707)
> at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegating
> Listener.java:110)
> at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
> at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
> at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
> at
> com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.jav
> a:252)
> at
> com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.j
> ava:173)
> at
> com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.
> java:416)
> [16/Nov/2003:14:56:02] warning ( 5840): Internal
> error: Failed to get
> GenericServlet. (uri=/jvNET/Login.jsp,SCRIPT_NAME=/jvNET/Login.jsp)
> 
> 
> Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs
> http://www.yahoo.co.uk/robbiewilliams
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: Error when using Java Version 1.3.1_09

2003-11-04 Thread Dirk Markert
Hello Sashi,

  

***

SR> Hi

SR> The following code which is used to iterate works fine when using Java
SR> Version 1.3.1_07, but when we started to use 1.3.1_09 , we get an
SR> error.

Seems like a problem of your jdk 1.3.1_09. Struts 1.1 works with
1.3.1.

SR> We are using Struts 1.1 final release libraries.

SR> I am pasting the code we used and also the error message. Are there any
SR> deprecated methods used by Struts tags which are not compatable with
SR> Java 1.31._07.

SR> 
Try inserting here something like the following to check your getter
exists:

   <%=(ClassOfProviderForm)addProviderForm).getAssocSBList()%>

If it does exist I would really assume a jdk error. Then try changing
the name of your property. Maybe it has to do with capitalization of
'assocSBList'. Try assocSbList.

SR>  property="assocSBList" indexId="i" >
SR> 
SR> >
SR>  >
SR> 
SR> 
SR> 

SR> Error msg when using Java Version 1.3.1_09

SR> No getter method for assocSBList in addProviderForm
SR> ..


SR> Thanks


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



Regards,
Dirk

+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-->>> to success! <<-+ 


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



Re: error code 404

2003-10-06 Thread Peter Ondruska
I'm sorry I didn't pay attention. The error code Struts returns when action 
does not exist is not 404 (No Found) but it is 400 Bad Request. Now if I add 
appropriate error page for error code 400 everything works.

- Original Message -
From: "Peter Ondruska" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 06, 2003 12:09 PM
Subject: error code 404
> On Struts 1.1 with Jetty 4.2.9 "*.do" is mapped to struts action servlet.
> Everything works fine except if requesting unknown action e.g.
> /thisActionDoesNotExistInStrutsConfig.do instead of web.xml defined
> error-page with code 404 I get container supplied code 404 general error
> page (as if no error page was defined in web.xml). Is this designed
> functionality in Struts or is it container (Jetty) bug?
_
FREE online games with MSN Messenger 6.0 - FREE download 
http://messenger.msn.cz

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


Re: error code 404

2003-10-06 Thread Craig R. McClanahan
Peter Ondruska wrote:

On Struts 1.1 with Jetty 4.2.9 "*.do" is mapped to struts action 
servlet. Everything works fine except if requesting unknown action 
e.g. /thisActionDoesNotExistInStrutsConfig.do instead of web.xml 
defined error-page with code 404 I get container supplied code 404 
general error page (as if no error page was defined in web.xml). Is 
this designed functionality in Struts or is it container (Jetty) bug?


What Struts does in this scenario (assuming you don't have 
default="true" on any of your  elements) is to send an 
SC_BAD_REQUEST (equal to 400, not 404) error back to the container -- so 
if you want to customize the container's default error page you should 
be matching on status code 400.

Craig



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


Re: error code 404

2003-10-06 Thread Max Cooper
That is working as designed. The Action (mapping) doesn't exist, so you get
a 404 error. This seems like the appropriate behavior to me.

-Max

- Original Message - 
From: "Peter Ondruska" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 06, 2003 12:09 PM
Subject: error code 404


> On Struts 1.1 with Jetty 4.2.9 "*.do" is mapped to struts action servlet.
> Everything works fine except if requesting unknown action e.g.
> /thisActionDoesNotExistInStrutsConfig.do instead of web.xml defined
> error-page with code 404 I get container supplied code 404 general error
> page (as if no error page was defined in web.xml). Is this designed
> functionality in Struts or is it container (Jetty) bug?
>
> _
> Plan your week with MSN Weather -  http://www.msn.cz/weather/
>
>
> -
> 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: error page

2003-09-26 Thread harm
Thanks for your suggestion. But how exactly should I do this?




"Madhu Nair" <[EMAIL PROTECTED]> 
09/26/2003 03:52 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc

Subject
RE: error page






Use the exception handler provided by Struts and extend it.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 7:17 PM
To: [EMAIL PROTECTED]
Subject: error page


Hi all,

I would like to display an error page if some weird exception occurs in my 

code. (Maybe a RemoteException or a NullPointer). 
I don't like Tomcat's default error page. Is there something I can change 
in struts-config.xml to create a custom error page?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands


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


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




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



RE: error page

2003-09-26 Thread Fenderbosch, Eric
Actually, that's part of the Servlet spec, not even Struts. You could add something 
like this to your web.xml:


  500
  /500.jsp


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 09:47
To: [EMAIL PROTECTED]
Subject: error page


Hi all,

I would like to display an error page if some weird exception occurs in my 
code. (Maybe a RemoteException or a NullPointer). 
I don't like Tomcat's default error page. Is there something I can change 
in struts-config.xml to create a custom error page?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands


-
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: error page

2003-09-26 Thread Madhu Nair
Use the exception handler provided by Struts and extend it.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 7:17 PM
To: [EMAIL PROTECTED]
Subject: error page


Hi all,

I would like to display an error page if some weird exception occurs in my 
code. (Maybe a RemoteException or a NullPointer). 
I don't like Tomcat's default error page. Is there something I can change 
in struts-config.xml to create a custom error page?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands


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



Antwort: RE: Error in RequestProcessor

2003-09-24 Thread Manuel Lenz

Where do I have to set redirecting=false?
I did this in my beforgoing actionClass before setting the
forward-variable:

forward.setRedirect(false);
forward = mapping.findForward("vorschlagAction");

But I only get Error 500.

Manuel


|-+>
| ||
| ||
| ||
| |"Andrew Hill"   |
| |<[EMAIL PROTECTED]>|
| |24.09.2003 13:03|
| |Bitte antworten an "Struts Users|
| |Mailing List"   |
| ||
|-+>
  
>|
  |
|
  | An:  "Struts Users Mailing List" <[EMAIL PROTECTED]>   
   |
  | Kopie: 
    |
  | Thema:   RE: Error in RequestProcessor 
|
  
>|




Is this for an ActionForward that you return from an action?
If so make sure that redirecting=false for the forward.

-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 24 September 2003 18:59
To: Struts Users Mailing List
Subject: Error in RequestProcessor



Hi,
my forwarding-Problem does still exist and I have an idea whats going on...

Instead of doing a GET for the path="FooAction.do" my web-application tries
to do a POST from the beforegoing ActionClass.
How can I solve this problem?
Why is my application doing a POST instead of a GET?


Manuel



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


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







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



RE: Error in RequestProcessor

2003-09-24 Thread Andrew Hill
Is this for an ActionForward that you return from an action?
If so make sure that redirecting=false for the forward.

-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 24 September 2003 18:59
To: Struts Users Mailing List
Subject: Error in RequestProcessor



Hi,
my forwarding-Problem does still exist and I have an idea whats going on...

Instead of doing a GET for the path="FooAction.do" my web-application tries
to do a POST from the beforegoing ActionClass.
How can I solve this problem?
Why is my application doing a POST instead of a GET?


Manuel



-
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: Error : No Action Instance for path could be Created

2003-09-22 Thread Ted Husted
It usually means that the Action class couldn't be found on the 
classpath. Another, albeit unlikely cause, would be if there were a 
member that could be instantiated for some reason.

-Ted.

guruprasad jakka wrote:

Hi,

I am using action chaining to call an action for an action.
The new action has a different actionform to that of the calling
action.
But, When I run the application, I get the error,

"No action instance for path /srfailure could be created".

srfailure is the path for the new action.

what might be the error?

All the action and form classes are present.

My entries in struts-config.xml is as follows,



   type="RegistrationAction"
   name="registrationForm"
   scope="request"
   validate="true"
   input="/registration.jsp">
   
   



   type="SRFailureAction"
   name="srfailureForm"
   scope="session"
  >
   


  



J G Guru Prasad
V sem, Information Technology,
Bachelor of Engineering,
National Institute of Technology Karnataka, Surathkal.
( formerly KREC )

Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Ted Husted,
  Junit in Action  - ,
  Struts in Action - ,
  JSP Site Design  - .
"Get Ready, We're Moving Out!!" - 



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


RE: error pages, actions, and tiles

2003-09-15 Thread Susan Bradeen
On 09/15/2003 10:16:50 AM Dan Snider wrote:

> Hi Susan,
> 
> Are you certain that no exceptions are being logged for your setup? 
Note, it
> appears to work for me other than the exceptions that are logged upon 
every
> request.
> 

No, I am not getting any kind of socket errors, or any errors logged. 

> A few more things:
> 
> I am able to reproduce the problem with the tiles-blank-struts1-1 
example
> app.
> 

Where did you get this app? I haven't got this one in my Struts 1.1 
distribution. 

Susan

> I have reproduced the problem with both the following Tomcat 
distributions
> (from Jbuilder 9):
> jakarta-tomcat-4.1.24-LE-jdk14
> jakarta-tomcat-4.0.6-LE-jdk14
> 
> Are other people not forwarding to error pages to actions/tiles?
> 
> Thanks,
> 
> Dan
> 
> > -Original Message-
> > From: Susan Bradeen
> > Sent: Friday, September 12, 2003 4:02 PM
> > To: Struts Users Mailing List
> > Subject: RE: error pages, actions, and tiles
> >
> >
> > Hi Dan,
> >
> > Did you get anywhere on this? I just put in a couple of error page
> > definitions in my web.xml to see what happens, and it works
> > ok for me.
> > Here's what I have, basically just what you have:
> >
> > web.xml:
> >   
> > 404
> > /prompterrors.do
> >   
> > 
> > 400
> > /prompterrors.do
> >   
> >
> > struts-config.xml:
> >  >path="/prompterrors"
> >type="org.apache.struts.actions.ForwardAction"
> >parameter=".regError" />
> >
> > tiles-defs.xml:
> > 
> >
> >
> >
> >
> > Do you get the socket errors if you specify a straight JSP
> > file, instead
> > of a tile/action for the error page location attribute? I
> > wonder if all
> > web servers interpret the location attribute the same way.
> >
> > Susan
> >
> >
> > On 09/12/2003 12:42:35 PM Dan Snider wrote:
> >
> > > Sorry, I'm actually using the same technique for other
> > errors. I wanted
> > to
> > > give a representative case but accidentally grabbed the 400 error
> > definition
> > > from struts-config.xml. The struts-config also contains:
> > >
> > >  > > type="org.apache.struts.actions.ForwardAction"
> > > parameter=".error.404.page"
> > > path="/error/404" />
> > >
> > > Dan
> > >
> > > > -Original Message-
> > > > From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, September 12, 2003 12:25 PM
> > > > To: Struts Users Mailing List
> > > > Subject: Re: error pages, actions, and tiles
> > > >
> > > >
> > > > First of all, unless they are email typos, you've got 404s
> > > > and 400s in
> > > > your definitions. Should the 400s be 404s?
> > > >
> > > > Susan Bradeen
> > > >
> > > > On 09/12/2003 11:41:49 AM Dan Snider wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > I am using Struts 1.1 and Tiles and I would like to forward
> > > > error-pages
> > > > to a
> > > > > tile-composing action.
> > > > >
> > > > > web.xml:
> > > > > 
> > > > > 404
> > > > > /error/404.do
> > > > > 
> > > > >
> > > > > struts-config.xml:
> > > > >  > > > > type="org.apache.struts.actions.ForwardAction"
> > > > > parameter=".error.400.page"
> > > > > path="/error/400" />
> > > > >
> > > > > From a user standpoint, it appears works but I now get
> > the following
> > > > > exceptions upon every request, valid or not.
> > > > >
> > > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > > java.net.SocketException:
> > > > > Software caused connection abort: socket write error
> > > > > ...
> > > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > > > 

RE: error pages, actions, and tiles

2003-09-15 Thread Dan Snider
Hi Susan,

Are you certain that no exceptions are being logged for your setup? Note, it
appears to work for me other than the exceptions that are logged upon every
request.

A few more things:

I am able to reproduce the problem with the tiles-blank-struts1-1 example
app.

I have reproduced the problem with both the following Tomcat distributions
(from Jbuilder 9):
jakarta-tomcat-4.1.24-LE-jdk14
jakarta-tomcat-4.0.6-LE-jdk14

Are other people not forwarding to error pages to actions/tiles? 

Thanks,

Dan

> -Original Message-
> From: Susan Bradeen 
> Sent: Friday, September 12, 2003 4:02 PM
> To: Struts Users Mailing List
> Subject: RE: error pages, actions, and tiles
> 
> 
> Hi Dan,
> 
> Did you get anywhere on this? I just put in a couple of error page 
> definitions in my web.xml to see what happens, and it works 
> ok for me. 
> Here's what I have, basically just what you have:
> 
> web.xml:
>   
> 404
> /prompterrors.do
>   
> 
> 400
> /prompterrors.do
>   
> 
> struts-config.xml:
> path="/prompterrors" 
>type="org.apache.struts.actions.ForwardAction" 
>parameter=".regError" />
> 
> tiles-defs.xml:
> 
>
> 
>
> 
> Do you get the socket errors if you specify a straight JSP 
> file, instead 
> of a tile/action for the error page location attribute? I 
> wonder if all 
> web servers interpret the location attribute the same way.
> 
> Susan 
> 
> 
> On 09/12/2003 12:42:35 PM Dan Snider wrote:
> 
> > Sorry, I'm actually using the same technique for other 
> errors. I wanted 
> to
> > give a representative case but accidentally grabbed the 400 error 
> definition
> > from struts-config.xml. The struts-config also contains:
> > 
> >  > type="org.apache.struts.actions.ForwardAction"
> > parameter=".error.404.page"
> > path="/error/404" />
> > 
> > Dan
> > 
> > > -Original Message-
> > > From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, September 12, 2003 12:25 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: error pages, actions, and tiles
> > >
> > >
> > > First of all, unless they are email typos, you've got 404s
> > > and 400s in
> > > your definitions. Should the 400s be 404s?
> > >
> > > Susan Bradeen
> > >
> > > On 09/12/2003 11:41:49 AM Dan Snider wrote:
> > >
> > > > Hello,
> > > >
> > > > I am using Struts 1.1 and Tiles and I would like to forward
> > > error-pages
> > > to a
> > > > tile-composing action.
> > > >
> > > > web.xml:
> > > > 
> > > > 404
> > > > /error/404.do
> > > > 
> > > >
> > > > struts-config.xml:
> > > >  > > > type="org.apache.struts.actions.ForwardAction"
> > > > parameter=".error.400.page"
> > > > path="/error/400" />
> > > >
> > > > From a user standpoint, it appears works but I now get 
> the following
> > > > exceptions upon every request, valid or not.
> > > >
> > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > java.net.SocketException:
> > > > Software caused connection abort: socket write error
> > > > ...
> > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > > ...
> > > > java.net.SocketException: Software caused connection abort:
> > > socket write
> > > > error
> > > > ...
> > > > java.net.SocketException: Software caused connection abort:
> > > socket write
> > > > error
> > > > ...
> > > >
> > > > Any ideas?
> > > >
> > > > Thanks,
> > > >
> > > > Dan
> > > >
> > > >
> > > 
> -
> > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > >
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: error pages, actions, and tiles

2003-09-12 Thread Dan Snider
Hi Susan,

I get no socket errors even if I point to the very error content page I use
in the tile definition. 

What is odd to me is that the exceptions are thrown upon every request, not
just in response to an error. This would imply the error handling logic, to
some degree, is evaluated upon every request. I can't readily see why that
is necessary...

Dan

> -Original Message-
> From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 4:02 PM
> To: Struts Users Mailing List
> Subject: RE: error pages, actions, and tiles
> 
> 
> Hi Dan,
> 
> Did you get anywhere on this? I just put in a couple of error page 
> definitions in my web.xml to see what happens, and it works 
> ok for me. 
> Here's what I have, basically just what you have:
> 
> web.xml:
>   
> 404
> /prompterrors.do
>   
> 
> 400
> /prompterrors.do
>   
> 
> struts-config.xml:
> path="/prompterrors" 
>type="org.apache.struts.actions.ForwardAction" 
>parameter=".regError" />
> 
> tiles-defs.xml:
> 
>
> 
>
> 
> Do you get the socket errors if you specify a straight JSP 
> file, instead 
> of a tile/action for the error page location attribute? I 
> wonder if all 
> web servers interpret the location attribute the same way.
> 
> Susan 
> 
> 
> On 09/12/2003 12:42:35 PM Dan Snider wrote:
> 
> > Sorry, I'm actually using the same technique for other 
> errors. I wanted 
> to
> > give a representative case but accidentally grabbed the 400 error 
> definition
> > from struts-config.xml. The struts-config also contains:
> > 
> >  > type="org.apache.struts.actions.ForwardAction"
> > parameter=".error.404.page"
> > path="/error/404" />
> > 
> > Dan
> > 
> > > -Original Message-
> > > From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, September 12, 2003 12:25 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: error pages, actions, and tiles
> > >
> > >
> > > First of all, unless they are email typos, you've got 404s
> > > and 400s in
> > > your definitions. Should the 400s be 404s?
> > >
> > > Susan Bradeen
> > >
> > > On 09/12/2003 11:41:49 AM Dan Snider wrote:
> > >
> > > > Hello,
> > > >
> > > > I am using Struts 1.1 and Tiles and I would like to forward
> > > error-pages
> > > to a
> > > > tile-composing action.
> > > >
> > > > web.xml:
> > > > 
> > > > 404
> > > > /error/404.do
> > > > 
> > > >
> > > > struts-config.xml:
> > > >  > > > type="org.apache.struts.actions.ForwardAction"
> > > > parameter=".error.400.page"
> > > > path="/error/400" />
> > > >
> > > > From a user standpoint, it appears works but I now get 
> the following
> > > > exceptions upon every request, valid or not.
> > > >
> > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > java.net.SocketException:
> > > > Software caused connection abort: socket write error
> > > > ...
> > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > > ...
> > > > java.net.SocketException: Software caused connection abort:
> > > socket write
> > > > error
> > > > ...
> > > > java.net.SocketException: Software caused connection abort:
> > > socket write
> > > > error
> > > > ...
> > > >
> > > > Any ideas?
> > > >
> > > > Thanks,
> > > >
> > > > Dan
> > > >
> > > >
> > > 
> -
> > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > >
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: error pages, actions, and tiles

2003-09-12 Thread Susan Bradeen
Hi Dan,

Did you get anywhere on this? I just put in a couple of error page 
definitions in my web.xml to see what happens, and it works ok for me. 
Here's what I have, basically just what you have:

web.xml:
  
404
/prompterrors.do
  

400
/prompterrors.do
  

struts-config.xml:


tiles-defs.xml:

   

   

Do you get the socket errors if you specify a straight JSP file, instead 
of a tile/action for the error page location attribute? I wonder if all 
web servers interpret the location attribute the same way.

Susan 


On 09/12/2003 12:42:35 PM Dan Snider wrote:

> Sorry, I'm actually using the same technique for other errors. I wanted 
to
> give a representative case but accidentally grabbed the 400 error 
definition
> from struts-config.xml. The struts-config also contains:
> 
>  type="org.apache.struts.actions.ForwardAction"
> parameter=".error.404.page"
> path="/error/404" />
> 
> Dan
> 
> > -Original Message-
> > From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 12, 2003 12:25 PM
> > To: Struts Users Mailing List
> > Subject: Re: error pages, actions, and tiles
> >
> >
> > First of all, unless they are email typos, you've got 404s
> > and 400s in
> > your definitions. Should the 400s be 404s?
> >
> > Susan Bradeen
> >
> > On 09/12/2003 11:41:49 AM Dan Snider wrote:
> >
> > > Hello,
> > >
> > > I am using Struts 1.1 and Tiles and I would like to forward
> > error-pages
> > to a
> > > tile-composing action.
> > >
> > > web.xml:
> > > 
> > > 404
> > > /error/404.do
> > > 
> > >
> > > struts-config.xml:
> > >  > > type="org.apache.struts.actions.ForwardAction"
> > > parameter=".error.400.page"
> > > path="/error/400" />
> > >
> > > From a user standpoint, it appears works but I now get the following
> > > exceptions upon every request, valid or not.
> > >
> > > ErrorDispatcherValve[localhost]: Exception Processing
> > > ErrorPage[errorCode=404, location=/error/404.do]
> > java.net.SocketException:
> > > Software caused connection abort: socket write error
> > > ...
> > > ErrorDispatcherValve[localhost]: Exception Processing
> > > ErrorPage[errorCode=404, location=/error/404.do]
> > > ErrorDispatcherValve[localhost]: Exception Processing
> > > ErrorPage[errorCode=404, location=/error/404.do]
> > > ...
> > > java.net.SocketException: Software caused connection abort:
> > socket write
> > > error
> > > ...
> > > java.net.SocketException: Software caused connection abort:
> > socket write
> > > error
> > > ...
> > >
> > > Any ideas?
> > >
> > > Thanks,
> > >
> > > Dan
> > >
> > >
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: error pages, actions, and tiles

2003-09-12 Thread Dan Snider
Sorry, I'm actually using the same technique for other errors. I wanted to
give a representative case but accidentally grabbed the 400 error definition
from struts-config.xml. The struts-config also contains:



Dan

> -Original Message-
> From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 12:25 PM
> To: Struts Users Mailing List
> Subject: Re: error pages, actions, and tiles
> 
> 
> First of all, unless they are email typos, you've got 404s 
> and 400s in 
> your definitions. Should the 400s be 404s?
> 
> Susan Bradeen
> 
> On 09/12/2003 11:41:49 AM Dan Snider wrote:
> 
> > Hello,
> > 
> > I am using Struts 1.1 and Tiles and I would like to forward 
> error-pages 
> to a
> > tile-composing action.
> > 
> > web.xml:
> > 
> > 404
> > /error/404.do
> > 
> > 
> > struts-config.xml:
> >  > type="org.apache.struts.actions.ForwardAction"
> > parameter=".error.400.page"
> > path="/error/400" />
> > 
> > From a user standpoint, it appears works but I now get the following
> > exceptions upon every request, valid or not.
> > 
> > ErrorDispatcherValve[localhost]: Exception Processing
> > ErrorPage[errorCode=404, location=/error/404.do] 
> java.net.SocketException:
> > Software caused connection abort: socket write error
> > ...
> > ErrorDispatcherValve[localhost]: Exception Processing
> > ErrorPage[errorCode=404, location=/error/404.do]
> > ErrorDispatcherValve[localhost]: Exception Processing
> > ErrorPage[errorCode=404, location=/error/404.do]
> > ...
> > java.net.SocketException: Software caused connection abort: 
> socket write
> > error
> > ...
> > java.net.SocketException: Software caused connection abort: 
> socket write
> > error
> > ...
> > 
> > Any ideas?
> > 
> > Thanks,
> > 
> > Dan
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: error pages, actions, and tiles

2003-09-12 Thread Susan Bradeen
First of all, unless they are email typos, you've got 404s and 400s in 
your definitions. Should the 400s be 404s?

Susan Bradeen

On 09/12/2003 11:41:49 AM Dan Snider wrote:

> Hello,
> 
> I am using Struts 1.1 and Tiles and I would like to forward error-pages 
to a
> tile-composing action.
> 
> web.xml:
> 
> 404
> /error/404.do
> 
> 
> struts-config.xml:
>  type="org.apache.struts.actions.ForwardAction"
> parameter=".error.400.page"
> path="/error/400" />
> 
> From a user standpoint, it appears works but I now get the following
> exceptions upon every request, valid or not.
> 
> ErrorDispatcherValve[localhost]: Exception Processing
> ErrorPage[errorCode=404, location=/error/404.do] 
java.net.SocketException:
> Software caused connection abort: socket write error
> ...
> ErrorDispatcherValve[localhost]: Exception Processing
> ErrorPage[errorCode=404, location=/error/404.do]
> ErrorDispatcherValve[localhost]: Exception Processing
> ErrorPage[errorCode=404, location=/error/404.do]
> ...
> java.net.SocketException: Software caused connection abort: socket write
> error
> ...
> java.net.SocketException: Software caused connection abort: socket write
> error
> ...
> 
> Any ideas?
> 
> Thanks,
> 
> Dan
> 
> -
> 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: Error ordering

2003-09-04 Thread Jeff Kyser
It appears to me that the errors get displayed in the order
they are declared in the validation.xml file for each of the fields
in that particular form. So arrange your validation rules in
the same order as the fields are laid out on the form.
You're not wanting them to appear in the order that
the user entered them are you? Like if the user
entered a value for the 4th field down, then the first,
then the last field? I doubt a user would remember
or care what order they were in. If the error messages
are meaningful and in the order of the fields as they
are laid out on the form, that should be good enough, no?
-jeff

On Thursday, September 4, 2003, at 06:10  AM, [EMAIL PROTECTED]  
wrote:





I apologize! I should've been more specific.

Using  won't display the errors with the entry order. I  
know that
it is possible to use  approach. I  
was
wondering if anybody has had success with another technique in order  
to display
all the errors preserving their entry order.

Thanks,

 - Yagiz Erkan



|-+>
| |   "Mark Galbreath" |
| |   <[EMAIL PROTECTED]|
| |   oad.net> |
| ||
| |   09/04/2003 11:48 |
| |   AM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
-- 
---|
  | 
 |
  |   To:   "Struts Users Mailing List"  
<[EMAIL PROTECTED]>
 |
  |   cc:   
     |
  |   Subject:  RE: Error ordering  
 |
-- 
---|




Sort the errors alphanumerically?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 5:22 AM
Has any of you had an easy solution to the error ordering problem?

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




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


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


RE: Error ordering

2003-09-04 Thread YErkan




I apologize! I should've been more specific.

Using  won't display the errors with the entry order. I know that
it is possible to use  approach. I was
wondering if anybody has had success with another technique in order to display
all the errors preserving their entry order.

Thanks,

 - Yagiz Erkan



|-+>
| |   "Mark Galbreath" |
| |   <[EMAIL PROTECTED]|
| |   oad.net> |
| ||
| |   09/04/2003 11:48 |
| |   AM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>-|
  |
 |
  |   To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
|
  |   cc:  
         |
  |   Subject:  RE: Error ordering 
 |
  
>-|




Sort the errors alphanumerically?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 5:22 AM

Has any of you had an easy solution to the error ordering problem?


-
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: Error ordering

2003-09-04 Thread Mark Galbreath
Sort the errors alphanumerically?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 5:22 AM

Has any of you had an easy solution to the error ordering problem?


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



Re: Error message headers and footers?

2003-08-14 Thread Jason Lea
Jason Long wrote:

I am looking for a way to simplify my ApplicationResources.properties
file.  For example:
errors.header=Validation Error
errors.footer=
error.footageRequired.integer=Footage
required must be a positive integer
error.chkItems.required=At least 1 item must be
selected
I basically do not want to put
 
in front of each entry or
 
following them.
Is this already possible?
If you look at this:
http://jakarta.apache.org/struts/userGuide/struts-html.html#messages
You can use it like so:



  

  
Validation Error
  
  

   border="0" />

  

 
  

In your ApplicationResources.properties file you just need:

error.footageRequired.integer=Footage required must be a positive integer
error.chkItems.required=At least 1 item must be selected
Much more tidy :) and we don't need errors.header or errors.footer

The  tag will iterate over the ActionErrors, so you don't 
need to put markup in your .properties file.  The 
 will mean the table will only be displayed if 
there are errors.

I use the JSTL way  of outputting the error 
message, but you could use  I think.

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering  

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



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


Re: Error switching to Struts 1.1

2003-08-14 Thread Robert Leland
Marco Tedone wrote:

Sorry, referring to my previous message, I swap from Struts 1.1b3 to 1.1
 

I am assuming you have :
1) Recompiled all jars that depend on struts with the jars that came 
with struts 1.1 final.
2) You have updated all *.tld and *.xml files with their new struts 
versions.
3) Made sure that when you deploy that its deployed with all the new jars.
4) To make sure your container doesn't have a loader bug made sure that 
there are no other
   older struts or commons jars in the containers common/lib folder or 
class path.

-Rob


Thanks,

Marco



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


 



--
Robert Leland   [EMAIL PROTECTED]
--
Java, J2EE, Struts, Web Application Development
804 N. Kenmore Street   +01-703-525-3580
Arlington VA 22201


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


RE: Error - tag useAttribute : no tiles context found.

2003-08-14 Thread Bailey, Shane C.

Good to hear you fixed it.
Very unexpected cause for the effect.

I use to do the attribute values without quotes and ever since using Struts
(which really makes it essential to use double quotes around tag attribute
values) I have done it for all my tags (HTML, JSP, Struts, etc.)

Even though that wasn't your probably in this case you may want to get in a
habit of doing  instead of .

Just to be safe.

So how did you figure out that was the problem?


-Original Message-
From: Jianbo Mao [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 4:37 PM
To: 'Struts Users Mailing List'
Subject: RE: Error - tag useAttribute : no tiles context found.

Hi, Shane,

This is just for your information.

An error in html table tag caused the tile context to be lost;-)

This is what it took to get rid of the nasty exception:

fixed this:
to : 

I'm not sure how could this html error to upset the tile by the way.

Jianbo



-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: 12 August 2003 19:01
To: 'Struts Users Mailing List'
Subject: RE: Error - tag useAttribute : no tiles context found.






Here is the source code producing your problem:

ComponentContext compContext = (ComponentContext)pageContext.getAttribute(
ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE);
if( compContext == null )
  throw new JspException ( "Error - tag useAttribute : no tiles context
found." );


If this happens intermittently then maybe it is because a user is hitting
the back button or a cached page or something like that which would cause
the request to be missing the component context.

Just a guess.


-Original Message-
From: Jianbo Mao [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 1:38 PM
To: [EMAIL PROTECTED]
Subject: Error - tag useAttribute : no tiles context found.

I am using tiles:useAttribute tag to define a variable in request scope for
the remaining page to reference like this:



The runtime complains about tiles context not found as follow:

javax.servlet.jsp.JspException: Error - tag useAttribute : no tiles context
found.
at
org.apache.struts.taglib.tiles.UseAttributeTag.doStartTag(UseAttributeTag.ja
va:219)
at
jsp_servlet._common._layouts._classiclayout._jspService(_classiclayout.java:
85)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:915)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:879)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

The application works fine with intended functionalities, but this exception
fills my log file all over. Any idea what could cause this?

Jianbo


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

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


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

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



RE: Error - tag useAttribute : no tiles context found.

2003-08-14 Thread Jianbo Mao
Hi, Shane,

Thanks for your information.

This happens persistently on some pages when they are accessed normally but
not on others. But there are no fundamental difference between these pages
in this reagrd;-)

Do you where is the ComponentContext set at the first place?

Jianbo


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: 12 August 2003 19:01
To: 'Struts Users Mailing List'
Subject: RE: Error - tag useAttribute : no tiles context found.






Here is the source code producing your problem:

ComponentContext compContext = (ComponentContext)pageContext.getAttribute(
ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE);
if( compContext == null )
  throw new JspException ( "Error - tag useAttribute : no tiles context
found." );


If this happens intermittently then maybe it is because a user is hitting
the back button or a cached page or something like that which would cause
the request to be missing the component context.

Just a guess.


-Original Message-
From: Jianbo Mao [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 1:38 PM
To: [EMAIL PROTECTED]
Subject: Error - tag useAttribute : no tiles context found.

I am using tiles:useAttribute tag to define a variable in request scope for
the remaining page to reference like this:



The runtime complains about tiles context not found as follow:

javax.servlet.jsp.JspException: Error - tag useAttribute : no tiles context
found.
at
org.apache.struts.taglib.tiles.UseAttributeTag.doStartTag(UseAttributeTag.ja
va:219)
at
jsp_servlet._common._layouts._classiclayout._jspService(_classiclayout.java:
85)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:915)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:879)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

The application works fine with intended functionalities, but this exception
fills my log file all over. Any idea what could cause this?

Jianbo


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

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


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



RE: Error - tag useAttribute : no tiles context found.

2003-08-14 Thread Jianbo Mao
Hi, Shane,

This is just for your information.

An error in html table tag caused the tile context to be lost;-)

This is what it took to get rid of the nasty exception:

fixed this:
to : 

I'm not sure how could this html error to upset the tile by the way.

Jianbo



-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: 12 August 2003 19:01
To: 'Struts Users Mailing List'
Subject: RE: Error - tag useAttribute : no tiles context found.






Here is the source code producing your problem:

ComponentContext compContext = (ComponentContext)pageContext.getAttribute(
ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE);
if( compContext == null )
  throw new JspException ( "Error - tag useAttribute : no tiles context
found." );


If this happens intermittently then maybe it is because a user is hitting
the back button or a cached page or something like that which would cause
the request to be missing the component context.

Just a guess.


-Original Message-
From: Jianbo Mao [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 1:38 PM
To: [EMAIL PROTECTED]
Subject: Error - tag useAttribute : no tiles context found.

I am using tiles:useAttribute tag to define a variable in request scope for
the remaining page to reference like this:



The runtime complains about tiles context not found as follow:

javax.servlet.jsp.JspException: Error - tag useAttribute : no tiles context
found.
at
org.apache.struts.taglib.tiles.UseAttributeTag.doStartTag(UseAttributeTag.ja
va:219)
at
jsp_servlet._common._layouts._classiclayout._jspService(_classiclayout.java:
85)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:915)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:879)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

The application works fine with intended functionalities, but this exception
fills my log file all over. Any idea what could cause this?

Jianbo


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

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


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



RE: Error - tag useAttribute : no tiles context found.

2003-08-14 Thread Bailey, Shane C.




Here is the source code producing your problem:

ComponentContext compContext = (ComponentContext)pageContext.getAttribute(
ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE);
if( compContext == null )
  throw new JspException ( "Error - tag useAttribute : no tiles context
found." );


If this happens intermittently then maybe it is because a user is hitting
the back button or a cached page or something like that which would cause
the request to be missing the component context.

Just a guess.


-Original Message-
From: Jianbo Mao [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 1:38 PM
To: [EMAIL PROTECTED]
Subject: Error - tag useAttribute : no tiles context found.

I am using tiles:useAttribute tag to define a variable in request scope for
the remaining page to reference like this:



The runtime complains about tiles context not found as follow:

javax.servlet.jsp.JspException: Error - tag useAttribute : no tiles context
found.
at
org.apache.struts.taglib.tiles.UseAttributeTag.doStartTag(UseAttributeTag.ja
va:219)
at
jsp_servlet._common._layouts._classiclayout._jspService(_classiclayout.java:
85)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:915)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:879)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

The application works fine with intended functionalities, but this exception
fills my log file all over. Any idea what could cause this?

Jianbo


-
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: error in writing message on JSP using

2003-08-14 Thread tim
I don't know why your getting the CCE however, when using the 
errors.{header,footer} I have always used the  tag 
(specifying no property) which results in the errors.{header,footer} 
message being rendered.

Sunil Sharma (C) wrote:

Hi,

While using tag  

I am getting following error on my server console. 

java.lang.ClassCastException: java.lang.String
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:930)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
Can any one tell me why I am getting this error

Thanks
Sunil
 



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


RE: error in writing message on JSP using

2003-08-04 Thread Suzette Daniel
I think there might be a problem with the value that you assigned to
"errors.header"? What does your "errors.header" value look like? You can
assign it any value, mine is pretty simple it looks like this: 
errors.header=Error

Suzette H. Daniel

-Original Message-
From: Sunil Sharma (C) [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 02, 2003 10:21 AM
To: Struts Users Mailing List
Subject: error in writing message on JSP using  


Hi,
 
While using tag  
 
I am getting following error on my server console. 
 
java.lang.ClassCastException: java.lang.String
 at org.apache.struts.util.RequestUtils.message(RequestUtils.java:930)
 at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
 
Can any one tell me why I am getting this error
 
Thanks
Sunil

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



Re: Error Msg:Internal Server Error

2003-07-29 Thread gowri shankar
hi,
i tried to do as u said , but still i am  getting the
same error messge. i have sent struts-config.xml file
for your perusal.




http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>



  
  

  


  
  
  


  
  





  


  
   





 --- R Balaji <[EMAIL PROTECTED]> wrote: >
check whether u have the
> *MessageResources.properties  *in the right 
> place and being configutred in the
> struts-config.xml.
> 
> balaji
> 
> gowri shankar wrote:
> 
> >Hi,
> >
> >This is Gowri Shankar.I tried to run a struts
> >application (A basic web Application)which was
> given
> >in the site ---
>
>http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#struts
> >
> >
> >I compiled the application and when i tried to run
> it
> >I got the following error.
> >
> >Can anyone please help me out in fixing this bug.
> >
> >
> >The error in the browser was 
> >
> >Apache Tomcat/4.0.6 - HTTP Status 500 - Internal
> >Server Error
> >
>
>
> >
> >type Exception report
> >
> >message Internal Server Error
> >
> >description The server encountered an internal
> error
> >(Internal Server Error) that prevented it from
> >fulfilling this request.
> >
> >exception 
> >
> >javax.servlet.ServletException: Missing resources
> >attribute org.apache.struts.action.MESSAGE
> > at
>
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
> > at
>
>org.apache.jsp.LoginView$jsp._jspService(LoginView$jsp.java:365)
> > at
>
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> > at
>
>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
>
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
> > at
>
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> > at
>
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> > at
>
>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> > at
>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> > at
>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> > at
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > at
>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at
>
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
> > at
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > at
>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at
>
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
>
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
> > at
>
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> > at
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > at
>
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> > at
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at
>
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> > at
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at
>
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> > at
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at
>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at
>
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
>
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> > at
>
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > at
>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at
>
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
>
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
> > at
>
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
> > at java.lang.Thread.run(Thread.java:484)
> >
> >
> >root cause 
> >
> >javax.servlet.jsp.JspException: Missing resources
> >attribute org.apache.struts.action.MESSAGE
> > at
>
>org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
> > at
>
>org.apache.jsp.LoginView$jsp._jspService(LoginView$jsp.java:76)
> > at
>
>org.apache.jasper.runtime.HttpJspBase.service(HttpJsp

Re: Error Msg:Internal Server Error

2003-07-28 Thread R Balaji
check whether u have the *MessageResources.properties  *in the right 
place and being configutred in the struts-config.xml.

balaji

gowri shankar wrote:

Hi,

This is Gowri Shankar.I tried to run a struts
application (A basic web Application)which was given
in the site ---
http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#struts
I compiled the application and when i tried to run it
I got the following error.
Can anyone please help me out in fixing this bug.

The error in the browser was 

Apache Tomcat/4.0.6 - HTTP Status 500 - Internal
Server Error


type Exception report

message Internal Server Error

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

javax.servlet.ServletException: Missing resources
attribute org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at
org.apache.jsp.LoginView$jsp._jspService(LoginView$jsp.java:365)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)
root cause 

javax.servlet.jsp.JspException: Missing resources
attribute org.apache.struts.action.MESSAGE
at
org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
at
org.apache.jsp.LoginView$jsp._jspService(LoginView$jsp.java:76)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Applica

RE: error..!(Thnks Swaroop George)

2003-07-22 Thread virupaksha hosamath
Dear Prashanth,
 
I tried out for scope ="session" ,still the error is same..
..
 
thanks 4 ur response..
 
thanks..
 
rgds,
virupaksha

"Prashanth.S" <[EMAIL PROTECTED]> wrote:
Hi
I agree with nagendra..
try out

instead of 
scope=request...
Thanks
Prashanth


virupaksha hosamath wrote:
Dear Nagendra,

Still same error no change...!
Still I am not getting where will be the problem..?

Hey Nagendra..? r u indian..? where ur working..?

I m indian working in Malysia..

thanks 4 mail,

Regds,
virupaksha

Nagendra Kumar O V S wrote:
FLAVOR00-NONE---;hey,
u have saved ur dataObject to the request with the name "list" .
so ur jsp should look something like this











Show 





check it out!!

-- nagi
---Original Message---

From: Struts Users Mailing List
Date: Tuesday, July 22, 2003 11:37:18 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: error..!(Thnks Swaroop George)


Dear Swaroop,

Thanks for ur response..!

I just want to retrive data from the database using bean Dept.java,
I m not using any formbean here.just instantiating Dept bean in 
ListDepartmentAction.java and displaying using tag in jsp called DeptListing.jsp. 
Action mapping has done in struts-config.xml.
but still, i m getting same error. can u help me out..?

Model : Dept.java(to just retrive data from the database.)
Controller : ListDepartmentsAction.java(Instantiate class Dept )
View : DeptListing.jsp(iterate over bean and display)

for ur ref. i m sending code again pls. find..

im getting same error

Thank you once again..
please reply me

Regards,
virupaksha

struts-config---










-

-DeptListing.jsp-










Show 




---
-ListDepartmentsAction.java--
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{

public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest 
request,HttpServletResponse response) throws Exception{
Dept dept = new Dept();
request.getSession().setAttribute("list",dept.getDepartments);
return mapping.findForward("listing");
}
}
---
--error--

exception 
javax.servlet.ServletException: Cannot find bean departments in scope null at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
 at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at
org.apache.catalina.valves.E

RE: error..!(Thnks Swaroop George)

2003-07-22 Thread Nagendra Kumar O V S








  ooops, i am sorry it is session scope.. i overlooked
   
  yes,virupaksha.. i am indian working in Hyderabad
   
  -- nagi
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Tuesday, July 22, 
  2003 12:36:11 PM
  To: Struts Users Mailing 
  List
  Subject: RE: 
  error..!(Thnks Swaroop George)
   HiI agree with nagendra..try 
  outinstead of 
  scope=request...ThanksPrashanthvirupaksha hosamath 
  <[EMAIL PROTECTED]> 
  wrote:Dear Nagendra,Still same error no change...!Still I 
  am not getting where will be the problem..?Hey Nagendra..? r u 
  indian..? where ur working..?I m indian working in 
  Malysia..thanks 4 
  mail,Regds,virupakshaNagendra Kumar O V S 
  wrote:FLAVOR00-NONE---;hey,u have saved ur 
  dataObject to the request with the name "list" .so ur jsp should look 
  something like thisShow 
  check it out!!-- nagi---Original 
  Message---From: Struts Users Mailing ListDate: Tuesday, 
  July 22, 2003 11:37:18 AMTo: [EMAIL PROTECTED]Cc: [EMAIL PROTECTED]Subject: 
  RE: error..!(Thnks Swaroop George)Dear Swaroop,Thanks 
  for ur response..!I just want to retrive data from the database 
  using bean Dept.java,I m not using any formbean here.just 
  instantiating Dept bean in ListDepartmentAction.java and displaying using 
  tag in jsp called DeptListing.jsp. Action mapping has done in 
  struts-config.xml.but still, i m getting same error. can u help me 
  out..?Model : Dept.java(to just retrive data from the 
  database.)Controller : ListDepartmentsAction.java(Instantiate class 
  Dept )View : DeptListing.jsp(iterate over bean and display)for 
  ur ref. i m sending code again pls. find..im getting same 
  errorThank you once again..please reply 
  meRegards,virupakshastruts-config-DeptListing.jsp-Show 
  ListDepartmentsAction.java--package 
  app;import javax.servlet.http.HttpServletRequest;import 
  javax.servlet.http.HttpServletRequest;import 
  org.apache.struts.action.Action;import 
  org.apache.struts.action.ActionForward;import 
  org.apache.struts.action.ActionMapping;public class 
  ListDepartmentsAction extends Action{public ActionForward 
  perform(ActionMapping mapping,ActionForm form,HttpServletRequest 
  request,HttpServletResponse response) throws Exception{Dept dept = new 
  Dept();request.getSession().setAttribute("list",dept.getDepartments);return 
  mapping.findForward("listing");}}-error--exception 
  javax.servlet.ServletException: Cannot find bean departments in scope 
  null at 
  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457) 
  at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at 
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
  org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) 
  at 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) 
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) 
  at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) 
  at 
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
  atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
  at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
  at 
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) 
  at 
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
  at 
  org.apache.catalina.valves.CertificatesValve.invoke(C

RE: error..!(Thnks Swaroop George)

2003-07-22 Thread Prashanth.S
Hi
I agree with nagendra..
try out

instead of 
scope=request...
Thanks
Prashanth


virupaksha hosamath <[EMAIL PROTECTED]> wrote:
Dear Nagendra,

Still same error no change...!
Still I am not getting where will be the problem..?

Hey Nagendra..? r u indian..? where ur working..?

I m indian working in Malysia..

thanks 4 mail,

Regds,
virupaksha

Nagendra Kumar O V S wrote:
FLAVOR00-NONE---;hey,
u have saved ur dataObject to the request with the name "list" .
so ur jsp should look something like this











Show 





check it out!!

-- nagi
---Original Message---

From: Struts Users Mailing List
Date: Tuesday, July 22, 2003 11:37:18 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: error..!(Thnks Swaroop George)


Dear Swaroop,

Thanks for ur response..!

I just want to retrive data from the database using bean Dept.java,
I m not using any formbean here.just instantiating Dept bean in 
ListDepartmentAction.java and displaying using tag in jsp called DeptListing.jsp. 
Action mapping has done in struts-config.xml.
but still, i m getting same error. can u help me out..?

Model : Dept.java(to just retrive data from the database.)
Controller : ListDepartmentsAction.java(Instantiate class Dept )
View : DeptListing.jsp(iterate over bean and display)

for ur ref. i m sending code again pls. find..

im getting same error

Thank you once again..
please reply me

Regards,
virupaksha

struts-config---










-

-DeptListing.jsp-










Show 




---
-ListDepartmentsAction.java--
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{

public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest 
request,HttpServletResponse response) throws Exception{
Dept dept = new Dept();
request.getSession().setAttribute("list",dept.getDepartments);
return mapping.findForward("listing");
}
}
---
--error--

exception 
javax.servlet.ServletException: Cannot find bean departments in scope null at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
 at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at 
org.apache.cat

RE: error..!(Thnks Swaroop George)

2003-07-21 Thread virupaksha hosamath
Dear Nagendra,
 
Still same error no change...!
Still I am not getting where will be the problem..?
 
Hey Nagendra..? r u indian..? where ur working..?
 
I m indian working in Malysia..
 
thanks 4 mail,
 
Regds,
virupaksha

Nagendra Kumar O V S <[EMAIL PROTECTED]> wrote:
FLAVOR00-NONE---;hey,
u have saved ur dataObject to the request with the name "list" .
so ur jsp should look something like this
 
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>



 



 Show 


 


check it out!!
 
-- nagi
---Original Message---
 
From: Struts Users Mailing List
Date: Tuesday, July 22, 2003 11:37:18 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: error..!(Thnks Swaroop George)

 
Dear Swaroop,

Thanks for ur response..!

I just want to retrive data from the database using bean Dept.java,
I m not using any formbean here.just instantiating Dept bean in 
ListDepartmentAction.java and displaying using  tag in jsp called 
DeptListing.jsp. Action mapping has done in struts-config.xml.
but still, i m getting same error. can u help me out..?

Model : Dept.java(to just retrive data from the database.)
Controller : ListDepartmentsAction.java(Instantiate class Dept )
View : DeptListing.jsp(iterate over bean and display)

for ur ref. i m sending code again pls. find..

im getting same error

Thank you once again..
please reply me

Regards,
virupaksha

struts-config---










-

-DeptListing.jsp-
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>



 



 Show 


 

---
-ListDepartmentsAction.java--
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{

public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest 
request,HttpServletResponse response) throws Exception{
Dept dept = new Dept();
request.getSession().setAttribute("list",dept.getDepartments);
return mapping.findForward("listing");
}
}
---
--error--

exception 
javax.servlet.ServletException: Cannot find bean departments in scope null at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
 at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at 
org.apache.catalina.core.St

RE: error..!(Thnks Swaroop George)

2003-07-21 Thread Nagendra Kumar O V S








  hey,
  u have saved ur dataObject to the request with the name "list" 
.
  so ur jsp should look something like this
   
  <%@ taglib uri="strutslogic" prefix="logic" %><%@ taglib 
  uri="strutsbean" prefix="bean" %><%@ taglib uri="strutshtml" 
  prefix="html" %> 
   Show 
   
  
  check it out!!
   
  -- nagi
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Tuesday, July 22, 
  2003 11:37:18 AM
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: RE: 
  error..!(Thnks Swaroop George)
   Dear Swaroop,Thanks for ur response..!I 
  just want to retrive data from the database using bean Dept.java,I m 
  not using any formbean here.just instantiating Dept bean in 
  ListDepartmentAction.java and displaying using  tag 
  in jsp called DeptListing.jsp. Action mapping has done in 
  struts-config.xml.but still, i m getting same error. can u help me 
  out..?Model : Dept.java(to just retrive data from the 
  database.)Controller : ListDepartmentsAction.java(Instantiate class 
  Dept )View : DeptListing.jsp(iterate over bean and display)for 
  ur ref. i m sending code again pls. find..im getting same 
  errorThank you once again..please reply 
  meRegards,virupakshastruts-config-DeptListing.jsp-<%@ 
  taglib uri="strutslogic" prefix="logic" %><%@ taglib 
  uri="strutsbean" prefix="bean" %><%@ taglib uri="strutshtml" 
  prefix="html" %>  Show 
   
  ListDepartmentsAction.java--package 
  app;import javax.servlet.http.HttpServletRequest;import 
  javax.servlet.http.HttpServletRequest;import 
  org.apache.struts.action.Action;import 
  org.apache.struts.action.ActionForward;import 
  org.apache.struts.action.ActionMapping;public class 
  ListDepartmentsAction extends Action{public ActionForward 
  perform(ActionMapping mapping,ActionForm form,HttpServletRequest 
  request,HttpServletResponse response) throws Exception{Dept dept = new 
  Dept();request.getSession().setAttribute("list",dept.getDepartments);return 
  mapping.findForward("listing");}}-error--exception 
  javax.servlet.ServletException: Cannot find bean departments in scope 
  null at 
  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457) 
  at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at 
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
  org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) 
  at 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) 
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) 
  at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) 
  at 
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
  atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
  at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
  at 
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) 
  at 
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
  at 
  org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) 
  at 
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
  at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
  at org.apache.catalina.core.ContainerBase.inv

RE: error..!(Thnks Swaroop George)

2003-07-21 Thread Imran Bohoran
Try putting the scope as session in your iterate tag.

-Original Message-
From: virupaksha hosamath [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 12:07 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: error..!(Thnks Swaroop George)


Dear Swaroop,
 
Thanks for ur response..!
 
I just want to retrive data from the database using bean Dept.java,
I m not using any formbean here.just instantiating Dept bean in
ListDepartmentAction.java and displaying using  tag in jsp
called DeptListing.jsp. Action mapping has done in struts-config.xml.
but still, i m getting same error. can u help me out..?
 
Model : Dept.java(to just retrive data from the database.)
Controller : ListDepartmentsAction.java(Instantiate class Dept )
View : DeptListing.jsp(iterate over bean and display)
 
for ur ref. i m sending code again pls. find..
 
im getting same error
 
Thank you once again..
 please reply me
 
Regards,
virupaksha
 
struts-config---


  
  
   

 
 
 

  

-
 
-DeptListing.jsp
-
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>

 

   

   
 
 Show 
 
  
  


---
-ListDepartmentsAction.java-
-
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{
 
public ActionForward perform(ActionMapping mapping,ActionForm
form,HttpServletRequest request,HttpServletResponse response) throws
Exception{
Dept dept = new Dept();
request.getSession().setAttribute("list",dept.getDepartments);
return mapping.findForward("listing");
 }
}

---
--error-
-

exception 
javax.servlet.ServletException: Cannot find bean departments in scope null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:457) at
org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187)at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243) at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)   at
org.apache.catalina.core.StandardPipel

RE: error..!(Thnks Swaroop George)

2003-07-21 Thread virupaksha hosamath
Dear Swaroop,
 
Thanks for ur response..!
 
I just want to retrive data from the database using bean Dept.java,
I m not using any formbean here.just instantiating Dept bean in 
ListDepartmentAction.java and displaying using  tag in jsp called 
DeptListing.jsp. Action mapping has done in struts-config.xml.
but still, i m getting same error. can u help me out..?
 
Model : Dept.java(to just retrive data from the database.)
Controller : ListDepartmentsAction.java(Instantiate class Dept )
View : DeptListing.jsp(iterate over bean and display)
 
for ur ref. i m sending code again pls. find..
 
im getting same error
 
Thank you once again..
 please reply me
 
Regards,
virupaksha
 
struts-config---

  
  
   

 
 
 

  
-
 
-DeptListing.jsp-
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>

 

   

   
 
 Show 
 
  
  

---
-ListDepartmentsAction.java--
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{
 
public ActionForward perform(ActionMapping mapping,ActionForm 
form,HttpServletRequest request,HttpServletResponse response) throws Exception{
Dept dept = new Dept();
request.getSession().setAttribute("list",dept.getDepartments);
return mapping.findForward("listing");
 }
}
---
--error--

exception 
javax.servlet.ServletException: Cannot find bean departments in scope null  at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
  at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)  
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)   
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)  
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
 at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)   
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) 
   at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)  
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)  
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  at 
org.apache.catalina.core.ContainerBas

RE: error..!

2003-07-21 Thread Swaroop George
Although u have listed down the errors its not clear what exactly you
want to do.. I assume that u want to iterate over a collection of
departments and print the name of the department.

So here it goes 

mailto:[EMAIL PROTECTED] 
Sent: Monday, July 21, 2003 4:42 PM
To: [EMAIL PROTECTED]
Subject: error..!

Dear All,
 
 
I am new to struts framework, please any body can help me to come out
from the following error... 
 
Bean Name : Dept.java
Action Name:ListDepartmentsAction.java
JSP name: DeptListing.jsp
 
-error--
-
javax.servlet.ServletException: Cannot find bean listdepartments in
scope null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:457)
at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:193)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
4)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1106)
at java.lang.Thread.run(Thread.java:536)

I am facing above error when i run  DeptListing.jsp.
 
Hereby I have mentioned code for struts-config.xml & DeptListing.jsp ,
 
 
-code for
DeptListing.jsp-
 
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>

<%System.out.println("Before Calling Me..!");%>

<%System.out.println("After  Calling Me..!");%>
   
   

   
   
   
  
   Show 

   
  
  

--end---
-
 
-struts-config.xml--
---
 

http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";
>







 
 
 
 
 







--end---
--

 
waiting for ur help.
 
regards,
virupaksha

 

 




-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


Re: error..!

2003-07-21 Thread virupaksha hosamath
Dear Buics,
 
Thanks for ur immediate response..
 
I tried by putting request.setAttribute("listdeprtments",listdepartments)..
 
please have look on my ListDepartmentAction.java & DeptListing.jsp
-ListActionDeprtment.java-
package app;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class ListDepartmentsAction extends Action{
 
public ActionForward perform(ActionMapping mapping,ActionForm 
form,HttpServletRequest request,HttpServletResponse response) throws Exception{
Dept dept = new Dept();
request.setAttribute("listdepartments",dept.getDepartments());
 return mapping.findForward("listing");
 }
}

 
end
-DeptListing.jsp---
<%@ taglib uri="strutslogic" prefix="logic" %>
<%@ taglib uri="strutsbean" prefix="bean" %>
<%@ taglib uri="strutshtml" prefix="html" %>

 <%
 request.getAttribute("listdepartments");
 %>


   
   

   
   
   
  
   Show 

   
  
  

--

Buics <> wrote:
put your object in the request attribute
ex.
request.setAttribute("listdepartments", listdepartments);
%>


virupaksha hosamath wrote:

> Dear All,
>
>
> I am new to struts framework, please any body can help me to come out from the 
> following error...
>
> Bean Name : Dept.java
> Action Name:ListDepartmentsAction.java
> JSP name: DeptListing.jsp
>
> -error---
> javax.servlet.ServletException: Cannot find bean listdepartments in scope null
> at 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
> at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:193)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
> at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
> at java.lang.Thread.run(Thread.java:536)
>

RE: error..!

2003-07-21 Thread Alex Shneyderman
There is really no code that shows that you actually attached the
listdepartments bean to any of the contexts. Where do you do it?

If you call your jsp directly then the error above is in deed correct.
Before you are ready to display your content you have to set it up
first. A good place to do it is in an Action. You can also do it in your
JSP but then you would be scriptleting.

Alex.

> -Original Message-
> From: virupaksha hosamath [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 7:12 AM
> To: [EMAIL PROTECTED]
> Subject: error..!
> 
> Dear All,
> 
> 
> I am new to struts framework, please any body can help me to come out
from
> the following error...
> 
> Bean Name : Dept.java
> Action Name:ListDepartmentsAction.java
> JSP name: DeptListing.jsp
> 
>
-error--
--
> ---
> javax.servlet.ServletException: Cannot find bean listdepartments in
scope
> null
> at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tI
> mpl.java:457)
> at
org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:193)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.
> java:202)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
ti
> onFilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
er
> Chain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.
> java:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :566)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72
> )
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.
> java:201)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :566)
> at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va
> :246)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :564)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72
> )
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
4)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:1
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :566)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lv
> e.java:170)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :564)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:1
> 70)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :564)
> at
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :564)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72
> )
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
ja
> va:163)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :566)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72
> )
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
av
> a:1011)
> at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
11
> 06)
> at java.lang.Thread.run(Thread.java:536)
> 
> I am facing above error when i run  DeptListing.jsp.
> 
> Hereby I have mentioned code for struts-config.xml & DeptListing.jsp ,
> 
> 
> -code for
DeptListing.jsp-
> 
> 
> <%@ taglib uri="strutslogic" prefix="logic" %>
> <%@ taglib uri="strutsbean" prefix="bean" %>
> <%@ taglib uri="strutshtml" prefix="html" %>
> 
> <%System.out.println("Before Calling Me..!");%>
>  >
> <%System.out.println("After  Calling Me..!");%>
>
>   
> 
>
> 
>
> 
>paramProperty="id"> Show 
> 
>
>   
>  
> 
>
--end---
--
> ---
> 
>
--

  1   2   3   4   5   >