Re: db error

2004-03-25 Thread Daniel H. F. e Silva
About that url try this:

  jdbc:oracle:thin:@oci8:1521:ora9i

considering 'oci8' is your database server name and 'ora9i' is your Oracle's instance 
(service)
name.

Regards,
 Daniel Silva.

--- Larry Meadors <[EMAIL PROTECTED]> wrote:
> It has been a while since i used oracle, but that url looks wrong:
> 
> jdbc:oracle:thin:oci8:1521:ora9i
> 
> Can you have thin and oci in one url?
> 
> Larry
> 
> >>> [EMAIL PROTECTED] 03/25/04 4:10 AM >>>
> Thanks chris,
> so this is not because of any missing classes or jar files? is this a
> connectivity issue? the database server isup and my other applications
> sqlplusw can access it.
> any pointers?
> sorry about read reciept thing in my previous mail.
> rajat
> - Original Message -
> From: "McCormack, Chris" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, March 25, 2004 4:46 PM
> Subject: RE: db error
> 
> 
> Check your database is up before trying to connect to it. If it is and
> you
> can ping the database from your application server box, then check your
> spelling in the data source definition.
> 
> Chris McCormack
> 
> -Original Message-
> From: Rajat Pandit [mailto:[EMAIL PROTECTED]
> Sent: 25 March 2004 11:01
> To: Struts Users Mailing List
> Subject: db error
> 
> 
> Hello All,
> i am trying to connect a oracle database, and i get this stack trace,
> can
> someone please tell me what is wrong with it.
> 
> javax.servlet.UnavailableException: Initializing application data source
> org.apache.struts.action.DATA_SOURCE
>  at
> org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
> ava:1091)
>  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
>  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
> 4)
>  at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
>  at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> 3420)
>  at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
>  at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
> 21)
>  at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>  at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>  at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
> ava:257)
>  at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
>  at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569
> )
>  at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
>  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
>  at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
>  at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:166)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
>  at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>  at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>  at
> org.apache.catalina.core.StandardService.start(StandardService.java:497)
>  at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
>  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> 
> 
> 
> 
> 
> <--- data sources -->
> 
> 
> 
> 
> 
>  value="oracle.jdbc.driver.OracleDriver" />
>  value="jdbc:oracle:thin:oci8:1521:ora9i" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> <-- code -->
> ServletContext context = servlet.getServletContext();
> DataSource ds = (DataSource)
> context.getAttribute(Action.DATA_SOURCE_KEY);
> 

Re: db error

2004-03-25 Thread Larry Meadors
It has been a while since i used oracle, but that url looks wrong:

jdbc:oracle:thin:oci8:1521:ora9i

Can you have thin and oci in one url?

Larry

>>> [EMAIL PROTECTED] 03/25/04 4:10 AM >>>
Thanks chris,
so this is not because of any missing classes or jar files? is this a
connectivity issue? the database server isup and my other applications
sqlplusw can access it.
any pointers?
sorry about read reciept thing in my previous mail.
rajat
- Original Message -
From: "McCormack, Chris" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 4:46 PM
Subject: RE: db error


Check your database is up before trying to connect to it. If it is and
you
can ping the database from your application server box, then check your
spelling in the data source definition.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:01
To: Struts Users Mailing List
Subject: db error


Hello All,
i am trying to connect a oracle database, and i get this stack trace,
can
someone please tell me what is wrong with it.

javax.servlet.UnavailableException: Initializing application data source
org.apache.struts.action.DATA_SOURCE
 at
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
ava:1091)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569
)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)





<--- data sources -->


















<-- code -->
ServletContext context = servlet.getServletContext();
DataSource ds = (DataSource)
context.getAttribute(Action.DATA_SOURCE_KEY);
//DataSource ds = getDataSource(req);

try {
conn = ds.getConnection();
stmt = conn.createStatement();
rs = stmt.executeQuery("Select tname, tabtype from tab");

if (!rs.wasNull()) {
/**
 * some records where returned
 */
System.err.println("==");
while (rs.next()) {
System.err.println("Table Name: " +
rs.getString(1));
System.err.println("TabType: " + rs.getString(2));
System.err.println("--");
}
System.err.println("==");
}


} catch (SQLException e) {
System.err.println("==> Error in getting the connection: " +
e.getMessage());



<---end of code -->






--
Rajat Pandit  | [EMAIL PROTECTED]
System Analyst

Manchitra Services Pvt. Ltd (www.manchitra.com)
Tel: 011-26232696 /

Re: db error

2004-03-25 Thread Rajat Pandit
Hello,
i tried your suggestion but i continue getting the same error.

javax.servlet.UnavailableException: Initializing application data source
org.apache.struts.action.DATA_SOURCE
 at
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
ava:1091)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)

we are porting a legacy application to struts and i am using now the same
connection URL.












any futher suggestions o clues? pls help this is urgent.
regards
rajat


- Original Message -
From: "McCormack, Chris" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 4:58 PM
Subject: RE: db error


It doesnt appear to be a case of missing classes etc

This exception seems pretty descriptive :
UnavailableException: Initializing application data source
org.apache.struts.action.DATA_SOURCE

It looks like struts cannot physically get a connection to the specified
source, so
a. it doesnt exist
b. it does exist but your application cannot get to the source (routing
issue?)
c. there is a typo in the connection details.
d. the connection details are setup incorrectly.

there are other factors etc but I would say this is an initial check list.












A minor difference I have noticed is the use of the '@' symbol to reference
your box in the url parameter.
I have included one that I know works for one of my systems oracle
connection.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:11
To: Struts Users Mailing List
Subject: Re: db error


Thanks chris,
so this is not because of any missing classes or jar files? is this a
connectivity issue? the database server isup and my other applications
sqlplusw can access it.
any pointers?
sorry about read reciept thing in my previous mail.
rajat
- Original Message -
From: "McCormack, Chris" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 4:46 PM
Subject: RE: db error


Check your database is up before trying to connect to it. If it is and you
can ping the database from your application server box, then check your
spelling in the data source definition.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:01
To: Struts Users Mailing List
Subject: db error


Hello All,
i am trying to connect a oracle database, and i get this stack trace, can
someone please tell me what is wrong with it.

javax.servlet.UnavailableException: Initializing application data source
org.apache.struts.action.DATA_SOURCE
 at
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
ava:1091)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569
)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.e

RE: db error

2004-03-25 Thread McCormack, Chris
It doesnt appear to be a case of missing classes etc

This exception seems pretty descriptive :
UnavailableException: Initializing application data source 
org.apache.struts.action.DATA_SOURCE

It looks like struts cannot physically get a connection to the specified source, so 
a. it doesnt exist 
b. it does exist but your application cannot get to the source (routing issue?)
c. there is a typo in the connection details. 
d. the connection details are setup incorrectly.

there are other factors etc but I would say this is an initial check list.












A minor difference I have noticed is the use of the '@' symbol to reference your box 
in the url parameter.
I have included one that I know works for one of my systems oracle connection.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:11
To: Struts Users Mailing List
Subject: Re: db error


Thanks chris,
so this is not because of any missing classes or jar files? is this a
connectivity issue? the database server isup and my other applications
sqlplusw can access it.
any pointers?
sorry about read reciept thing in my previous mail.
rajat
- Original Message -
From: "McCormack, Chris" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 4:46 PM
Subject: RE: db error


Check your database is up before trying to connect to it. If it is and you
can ping the database from your application server box, then check your
spelling in the data source definition.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:01
To: Struts Users Mailing List
Subject: db error


Hello All,
i am trying to connect a oracle database, and i get this stack trace, can
someone please tell me what is wrong with it.

javax.servlet.UnavailableException: Initializing application data source
org.apache.struts.action.DATA_SOURCE
 at
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
ava:1091)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569
)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)





<--- data sources -->


















<-- code -->
ServletContext context = servlet.getServletContext();
DataSource ds = (DataSource)
context.getAttribute(Action.DATA_SOURCE_KEY);
//DataSource ds = getDataSource(req);

try {
conn = ds.getConnection();
stmt = conn

Re: db error

2004-03-25 Thread Rajat Pandit
Thanks chris,
so this is not because of any missing classes or jar files? is this a
connectivity issue? the database server isup and my other applications
sqlplusw can access it.
any pointers?
sorry about read reciept thing in my previous mail.
rajat
- Original Message -
From: "McCormack, Chris" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 4:46 PM
Subject: RE: db error


Check your database is up before trying to connect to it. If it is and you
can ping the database from your application server box, then check your
spelling in the data source definition.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:01
To: Struts Users Mailing List
Subject: db error


Hello All,
i am trying to connect a oracle database, and i get this stack trace, can
someone please tell me what is wrong with it.

javax.servlet.UnavailableException: Initializing application data source
org.apache.struts.action.DATA_SOURCE
 at
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
ava:1091)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569
)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)





<--- data sources -->


















<-- code -->
ServletContext context = servlet.getServletContext();
DataSource ds = (DataSource)
context.getAttribute(Action.DATA_SOURCE_KEY);
//DataSource ds = getDataSource(req);

try {
conn = ds.getConnection();
stmt = conn.createStatement();
rs = stmt.executeQuery("Select tname, tabtype from tab");

if (!rs.wasNull()) {
/**
 * some records where returned
 */
System.err.println("==");
while (rs.next()) {
System.err.println("Table Name: " + rs.getString(1));
System.err.println("TabType: " + rs.getString(2));
System.err.println("--");
}
System.err.println("======");
}


} catch (SQLException e) {
System.err.println("==> Error in getting the connection: " +
e.getMessage());



<---end of code -->






--
Rajat Pandit  | [EMAIL PROTECTED]
System Analyst

Manchitra Services Pvt. Ltd (www.manchitra.com)
Tel: 011-26232696 / 26232798
Cellphone: 9818247126
B231 / C GK I
New Delhi


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has 

RE: db error

2004-03-25 Thread McCormack, Chris
Check your database is up before trying to connect to it. If it is and you can ping 
the database from your application server box, then check your spelling in the data 
source definition.

Chris McCormack

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 11:01
To: Struts Users Mailing List
Subject: db error


Hello All,
i am trying to connect a oracle database, and i get this stack trace, can someone 
please tell me what is wrong with it.

javax.servlet.UnavailableException: Initializing application data source 
org.apache.struts.action.DATA_SOURCE
 at 
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1091)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)





<--- data sources -->


















<-- code -->
ServletContext context = servlet.getServletContext();
DataSource ds = (DataSource) context.getAttribute(Action.DATA_SOURCE_KEY);
//DataSource ds = getDataSource(req);

try {
conn = ds.getConnection();
stmt = conn.createStatement();
rs = stmt.executeQuery("Select tname, tabtype from tab");

if (!rs.wasNull()) {
/**
 * some records where returned
 */
System.err.println("==");
while (rs.next()) {
System.err.println("Table Name: " + rs.getString(1));
System.err.println("TabType: " + rs.getString(2));
System.err.println("--");
}
System.err.println("==");
}


} catch (SQLException e) {
System.err.println("==> Error in getting the connection: " + 
e.getMessage());



<---end of code -->






--
Rajat Pandit  | [EMAIL PROTECTED]
System Analyst

Manchitra Services Pvt. Ltd (www.manchitra.com)
Tel: 011-26232696 / 26232798
Cellphone: 9818247126
B231 / C GK I
New Delhi 


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 

db error

2004-03-25 Thread Rajat Pandit
Hello All,
i am trying to connect a oracle database, and i get this stack trace, can someone 
please tell me what is wrong with it.

javax.servlet.UnavailableException: Initializing application data source 
org.apache.struts.action.DATA_SOURCE
 at 
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1091)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)





<--- data sources -->


















<-- code -->
ServletContext context = servlet.getServletContext();
DataSource ds = (DataSource) context.getAttribute(Action.DATA_SOURCE_KEY);
//DataSource ds = getDataSource(req);

try {
conn = ds.getConnection();
stmt = conn.createStatement();
rs = stmt.executeQuery("Select tname, tabtype from tab");

if (!rs.wasNull()) {
/**
 * some records where returned
 */
System.err.println("==");
while (rs.next()) {
System.err.println("Table Name: " + rs.getString(1));
System.err.println("TabType: " + rs.getString(2));
System.err.println("--");
}
System.err.println("==");
}


} catch (SQLException e) {
System.err.println("==> Error in getting the connection: " + 
e.getMessage());



<---end of code -->






--
Rajat Pandit  | [EMAIL PROTECTED]
System Analyst

Manchitra Services Pvt. Ltd (www.manchitra.com)
Tel: 011-26232696 / 26232798
Cellphone: 9818247126
B231 / C GK I
New Delhi 



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


Internal error while merging PD's

2004-03-23 Thread McClung, Brian
I recently started getting this exception on code that had been working
before.  I have checked that the get method and set method return and accept
the same type (in this case a String).  I saw the earlier post indicating
that the accessor methods had been mismatched, but in this case I have
checked and double checked to make sure that they each match.  Any help
would be appreciated.

java.lang.Error: PropertyDescriptor: internal error while merging PDs:
type mismatch between read and write methods
at java.beans.PropertyDescriptor.(PropertyDescriptor.java:343)
at
java.beans.Introspector.processPropertyDescriptors(Introspector.java:649)
at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:572)
at java.beans.Introspector.getBeanInfo(Introspector.java:372)
at java.beans.Introspector.getBeanInfo(Introspector.java:144)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUt
ils.java:949)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUt
ils.java:979)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
ls.java:887)
at
org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.j
ava:1172)
at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j
ava:772)
at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:80
1)
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:952)
at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:176)
at
_sharedcontent._registration._test__jsp._jspService(/sharedcontent/registrat
ion/test.jsp:11)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.pageservice(Page.java:555)
at
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155
)
at
com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.ja
va:129)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:
221)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:272)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:111)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
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.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.ja
va:113)
at
com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.ja
va:129)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:
221)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:272)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:111)
at com.caucho.jsp.PageContextImpl.forward(PageContextImpl.java:811)
at
_sharedcontent._registration._index2__jsp._jspService(_index2__jsp.java:30)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.pageservice(Page.java:555)
at
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155
)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:1
77)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:
221)
at
com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:392)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:315)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:353)
at com.caucho.util.ThreadPool.run(ThreadPool.java:302)
at java.lang.Thread.run(Thread.java:534)


Thanks,

Brian McClung
Senior Programmer
Belo Interactive
214-977-4083



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!?
 <http://taxes.yahoo.com/filing.html> Yahoo! Finance Tax Center - File
online. File on time.



Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Jignesh Kapadia

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,
JigneshDo 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 
Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wteServers.jar;C:/Program
 Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wasToolsCommon.jar
Java Library path = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/bin;C:\Program Files\IBM\WebSphere 
Studio\eclipse\jre\bin;.;C:\WINNT\System32;C:\WINNT;C:\Program 
Files\Rational\common;e:\Program Files\ibm\gsk5\lib;C:\Program 
Files\SQLLIB\BIN;C:\Program Files\SQLLIB\FUNCTION;C:\Program 
Files\SQLLIB\help;C:\Program Files\Oracle\jre\1.3.1\bin;C:\ORACLE\ora92\bin;C:\Program 
Files\Oracle\jre\1.1.8\bin;
Current trace specification = *=all=disabled
* End Display Current Environment *
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Version : 4.0.4
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Edition: Advanced Single Server 
Edition for Multiplatforms
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Build date: Thu Sep 05 00:00:00 
EDT 2002
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Build number: ptf40230.02
[3/20/04 14:30:16:792 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:16:792 EST] 26cac26b StandardIniti W SECJ0007E: Error during security 
initialization. Exception com.ibm.ejs.security.registry.RegistryErrorException: 
Windows:Access is denied.

at 
com.ibm.ejs.security.registry.WSRegistryImplFactory.create(WSRegistryImplFactory.java:128)
at 
com.ibm.ejs.security.registry.WSRegistryImplFactory.getRegistryImpl(WSRegistryImplFactory.java:72)
at 
com.ibm.ejs.security.SecurityCollaborator.initialize(SecurityCollaborator.java:345)
at 
com.ibm.ws.security.core.StandardInitializer.initialize(StandardInitializer.java:162)
at 
com.ibm.ws.runtime.StandardServer.initializeSecurityRuntime(StandardServer.java:390)
at com.ibm.ws.runtime.Server.initializeRuntime0(Server.java:953)
at 
com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:341)
at

Re: Way tho highlight error form field

2004-03-18 Thread atta-ur rehman
hi there,

only way i know for achieving this is to extend struts' tags and either
override the getStyleClass() method or add a new property
getErrorStyleClass().

if you search archives on this list,
http://www.mail-archive.com/[EMAIL PROTECTED]/msg96068.html
Niall suggested a few days back about his ErrorTextTag or TextErrorTag that
basically overrides the getStyleClass() method. That in my opinion is the
easiest way to go about this change. he also did point

In one of my recent projects, I had to add errorStyleClass property to about
4 struts tags, and it is not pretty! I think BaseHandlerTag in struts need
some real refactoring!

hope this helps.

ATTA

- Original Message - 
From: "Joao Batistella" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 2004 4:25 AM
Subject: RE: Way tho highlight error form field


But, how about server side errors that I can't not validate in Javascript?

I tought about something like this:


So, if I return an ActionError about the property test, the style class to
use would be error_class, otherwise, normal_class.

I know this doesn't exist in Struts but is there something that can do
something like this?

Thanks

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 18 de março de 2004 10:06
To: Struts Users Mailing List
Subject: Re: Way tho highlight error form field


You could modify the client-side validation stuff to do this rather
than just alerting.

An easy way of layering this on is to define a compulsory array of
fields and then loop through the form on validation. changing the
borderColor style attribute when you have a match between the element
name and your array.


compulsary = ["name","email"];

function validate(form) {
for(i = 0;i < compulsary.length;i++) {
field = compulsary[i];
value = form.elements[field].value;
if(value == "") {
form.elements[field].style.borderColor = "#ff";
}
}
}

Then you can think about having your compulsary array populated in the
same way as the struts validator client-side stuff. In fact you could
use the array then it defines.

On 18 Mar 2004, at 10:49, Joao Batistella wrote:

> Hello!
>
> Is there a way in Struts to highlight the HTML form field that has an
> error?
> I mean, changing the style class of the form field, for example. Is
> there
> some feature in Struts that can help me?
>
> Thanks,
> JP


-
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: Way tho highlight error form field

2004-03-18 Thread Colm Garvey
I've been thinking about this myself, and the way I plan on doing it is
using
a variation on my usual theme of:


   
  alert('<bean:write
name="error"/>')
   


to using a superior jscript function to read the errors into an array which
then
either pops up an alert and/or dynamically changes the class of the element
in
question.

HTH

Colm


-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 12:26
To: 'Struts Users Mailing List'
Subject: RE: Way tho highlight error form field


But, how about server side errors that I can't not validate in Javascript?

I tought about something like this:


So, if I return an ActionError about the property test, the style class to
use would be error_class, otherwise, normal_class.

I know this doesn't exist in Struts but is there something that can do
something like this?

Thanks

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 18 de março de 2004 10:06
To: Struts Users Mailing List
Subject: Re: Way tho highlight error form field


You could modify the client-side validation stuff to do this rather
than just alerting.

An easy way of layering this on is to define a compulsory array of
fields and then loop through the form on validation. changing the
borderColor style attribute when you have a match between the element
name and your array.


compulsary = ["name","email"];

function validate(form) {
for(i = 0;i < compulsary.length;i++) {
field = compulsary[i];
value = form.elements[field].value;
if(value == "") {
form.elements[field].style.borderColor = "#ff";
}
}
}

Then you can think about having your compulsary array populated in the
same way as the struts validator client-side stuff. In fact you could
use the array then it defines.

On 18 Mar 2004, at 10:49, Joao Batistella wrote:

> Hello!
>
> Is there a way in Struts to highlight the HTML form field that has an
> error?
> I mean, changing the style class of the form field, for example. Is
> there
> some feature in Struts that can help me?
>
> Thanks,
> JP


-
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: Way tho highlight error form field

2004-03-18 Thread Joao Batistella
But, how about server side errors that I can't not validate in Javascript?

I tought about something like this:


So, if I return an ActionError about the property test, the style class to
use would be error_class, otherwise, normal_class.

I know this doesn't exist in Struts but is there something that can do
something like this?

Thanks

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 18 de março de 2004 10:06
To: Struts Users Mailing List
Subject: Re: Way tho highlight error form field


You could modify the client-side validation stuff to do this rather 
than just alerting.

An easy way of layering this on is to define a compulsory array of 
fields and then loop through the form on validation. changing the 
borderColor style attribute when you have a match between the element 
name and your array.


compulsary = ["name","email"];

function validate(form) {
for(i = 0;i < compulsary.length;i++) {
field = compulsary[i];
value = form.elements[field].value;
if(value == "") {
form.elements[field].style.borderColor = "#ff";
}
}
}

Then you can think about having your compulsary array populated in the 
same way as the struts validator client-side stuff. In fact you could 
use the array then it defines.

On 18 Mar 2004, at 10:49, Joao Batistella wrote:

> Hello!
>
> Is there a way in Struts to highlight the HTML form field that has an 
> error?
> I mean, changing the style class of the form field, for example. Is 
> there
> some feature in Struts that can help me?
>
> Thanks,
> JP


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


Re: Way tho highlight error form field

2004-03-18 Thread Mark Lowe
You could modify the client-side validation stuff to do this rather 
than just alerting.

An easy way of layering this on is to define a compulsory array of 
fields and then loop through the form on validation. changing the 
borderColor style attribute when you have a match between the element 
name and your array.

compulsary = ["name","email"];

function validate(form) {
for(i = 0;i < compulsary.length;i++) {
field = compulsary[i];
value = form.elements[field].value;
if(value == "") {
form.elements[field].style.borderColor = "#ff";
}
}
}
Then you can think about having your compulsary array populated in the 
same way as the struts validator client-side stuff. In fact you could 
use the array then it defines.

On 18 Mar 2004, at 10:49, Joao Batistella wrote:

Hello!

Is there a way in Struts to highlight the HTML form field that has an 
error?
I mean, changing the style class of the form field, for example. Is 
there
some feature in Struts that can help me?

Thanks,
JP


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


Way tho highlight error form field

2004-03-18 Thread Joao Batistella
Hello!

Is there a way in Struts to highlight the HTML form field that has an error?
I mean, changing the style class of the form field, for example. Is there
some feature in Struts that can help me?

Thanks,
JP


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: validator validwhen error (Repost)

2004-03-15 Thread Betty Koon
Anyone has any idea?  I haven't seen anyone's reply.  Thanks.

-Betty

-Original Message-
From: Betty Koon [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 08, 2004 8:07 PM
To: [EMAIL PROTECTED]
Subject: validator validwhen error


Hi,

I got the following validator error, but not sure why.

here is my validator.xml and the exception:


 



test
((actionType != 'x') or (*this* !=
null))
 
 



test
((editAction != 'false') or (*this* !=
null))


datePatternStrict
MM/dd/ HH:mm:ss










*****
59:03,863 ERROR [STDERR] line 1:23: expecting ''', found '_'
59:03,863 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
exer.nextToken(ValidWhenLexer.java:228)
19:58:59,637 ERROR [STDERR] at
antlr.TokenBuffer.fill(TokenBuffer.java:69)
19:58:59,637 ERROR [STDERR] at antlr.TokenBuffer.LA(TokenBuffer.java:80)
19:58:59,637 ERROR [STDERR] at antlr.LLkParser.LA(LLkParser.java:52)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.value(ValidWhenParser.java:380)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.comparisonExpression(ValidWhenParser.java:434)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.expr(ValidWhenParser.java:415)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.joinedExpression(ValidWhenParser.java:446)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.expr(ValidWhenParser.java:420)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.expression(ValidWhenParser.java:406)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
en.validateValidWhen(ValidWhen.java:155)
19:58:59,637 ERROR [STDERR] at
sun.reflect.GeneratedMethodAccessor126.invoke
(Unknown Source)
19:58:59,637 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:58:59,637 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:3
24)
19:58:59,637 ERROR [STDERR] at
org.apache.commons.validator.ValidatorAction.
executeValidationMethod(ValidatorAction.java:610)
19:58:59,637 ERROR [STDERR] at
org.apache.commons.validator.Field.validateFo
rRule(Field.java:848)
19:58:59,637 ERROR [STDERR] at
org.apache.commons.validator.Field.validate(F
ield.java:927)
19:58:59,637 ERROR [STDERR] at
org.apache.commons.validator.Form.validate(Fo
rm.java:211)
19:58:59,637 ERROR [STDERR] at
org.apache.commons.validator.Validator.valida
te(Validator.java:407)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.ValidatorForm.val
idate(ValidatorForm.java:151)
19:58:59,637 ERROR [STDERR] at
com.adobe.edc.server.presentation.fw.EDCActio
nForm.validate(EDCActionForm.java:96)
19:58:59,637 ERROR [STDERR] at
com.adobe.edc.server.presentation.policy.Assi
gnPermissionAction.addAnonymous_onClick(AssignPermissionAction.java:252)
19:58:59,637 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
19:58:59,637 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccessorImpl.java:39)
19:58:59,637 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:58:59,637 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:3
24)
19:58:59,637 ERROR [STDERR] at
com.cc.framework.adapter.struts.FWAction.hand
leFormAction(Unknown Source)
19:58:59,637 ERROR [STDERR] at
com.cc.framework.adapter.struts.FWAction.exec
ute(Unknown Source)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.pro
cessActionPerform(RequestProcessor.java:462)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.pro
cess(RequestProcessor.java:267)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.proces
s(ActionServlet.java:1187)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.doPost
(ActionServlet.java:451)
19:58:59,637 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:760)
19:58:59,637 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:853)
19:58:59,637 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:247)
19:58:59,637 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:193)
19:58:59,637 ERROR [STDERR] at
com.adobe.edc.server.presentation.auth.Authen
ticationFilter.doFilter(Authentica

FW: Insert arguments into Validator error messages?

2004-03-15 Thread Brendan Richards


Hi, 

I'm getting exactly this problem posted last year. 
I've seen many posts on validator resource bundles including this patch:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868

But have not found THE universally adopted solution.

Just to restate the problem: 

I have a resource bundle for each area of my site:
(struts-config.xml)





Each resources bundle has a copy of the basic default error messages
like:
errors.required={0} is required.


I have validations like this:




 


And display the error messages like this in a JSP.



With this config, when the validation fails, the message
(errors.required) is pulled from the correct bundle but the argument
(viewEmail.subject) is pulled from the default bundle and not the bundle
specified in the  tag.


Hs anyone used the above patch? It doesn't seem to include an update of
the validation dtd file.


I really don't want to put all my error messages and arguments into one
file...

Any help at all will be gratefully received. From the amount of similar
posts on this list I feel that this is an issue for lots of people


--

From: Andreas Lundgren <[EMAIL PROTECTED]>
Subject: SV: Insert arguments into Validator error messages?
Date: Tue, 19 Aug 2003 08:06:03 +0100
Content-Type: text/plain;
charset="iso-8859-1"

When I removed the key = "resource" attribute in the message-resource
declaration in the struts-config.xml, hence using the default
Globals.MessageKey it worked... Can anyone please confirm this? All the
error messages and their arguments needs be to set in a resource-bundle
stored in the default Globals.MessageKey? Hence you can't use
 when presenting error messages WITH arguments?

Can anyone confirm that this is the case?

Thank you!

/Andreas


-Ursprungligt meddelande-
Från: Andreas Lundgren [mailto:[EMAIL PROTECTED]
Skickat: den 19 augusti 2003 06:22
Till: [EMAIL PROTECTED]
Ämne: Insert arguments into Validator error messages?


Hi,

I trying to insert an argument into a error message using the Validator
framework and I just can't make it work.

The validation itself works and it shows a nice display of my (TEST)
error
message also, but the argument is somehow lost.
If I use the resource="false" attribute it works...

What I am missing here?

validation.xml:








My bundle namned "resource":

errors.required={0} TEST is required.
label.name=Name

And the output is (using  )

TEST is required.

And if I use the resource="false" attribute:

label.name TEST is required.

Why is the error message key found but not the argument key (label.name)
in
my resource-bundle?

Thankful for your assistance!

/Andreas


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



FW: [Servlet Error]-[No form found under name logonForm, locale e n_US]:

2004-03-15 Thread Adedokun, Bisi


>  -Original Message-
> From: Adedokun, Bisi  
> Sent: Friday, March 12, 2004 3:18 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  FW: [Servlet Error]-[No form found under name logonForm,
> locale en_US]:
> 
> I am getting the following errors when the servlet engine tries to load
> the index.jsp of the application I'm working on:
> OS: W2K, Browser: IE 5.50 App Server: WSAD with WAS Version 5 test
> environment
> 
> [3/12/04 13:45:25:115 EST]  f4bf269 WebGroup  E SRVE0026E: [Servlet
> Error]-[No form found under name logonForm, locale en_US]:
> javax.servlet.jsp.JspException: No form found under name logonForm, locale
> en_US
>   at
> org.apache.struts.taglib.html.JavascriptValidatorTag.createDynamicJavascri
> pt(JavascriptValidatorTag.java:420)
>   at
> org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(Java
> scriptValidatorTag.java:382)
>   at
> org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascript
> ValidatorTag.java:354)
>   at org.apache.jsp._index._jspService(_index.java:802)
>   at
> com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:8
> 9)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(J
> spServlet.java:357)
>   at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.j
> ava:675)
>   at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:773
> )
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> Below is how my struts-config.xml looks like:
> 
> 
> type="org.acaosa.registration.web.LogonForm">
> 
> 
> 
> 
> 
> 
> 
> 
>input="/index.jsp" name="logonForm"
> scope="request">
>type="org.acaosa.registration.web.CreateRegistrationAction">
>type="org.acaosa.registration.web.MainMenuAction">
>   
>   
> 
> 
> Below is the index.jsp:
> 
> 
>onsubmit="return validateLoginForm(this);">
>
> 
> 
>   
>:
> maxlength="18" />
>   
>   
> :
>  maxlength="18" redisplay="false" />
>   
>   
> 
> 
> 
> 
>   
>   
>   
>
>  
> 
> 
> The LogonForm class looks like this:
> 
> public class LogonForm extends org.apache.struts.validator.ValidatorForm {
>   private String password = null;
>   private String memberName = null;
> 
>   // with appropriate getter and setter methods
> }
> 
> Lastly, relevant code snippet from the action class looks like this:
> 
>   ActionMessages errors = new ActionMessages();
>   String memberName = (String)
>   PropertyUtils.getSimpleProperty(form, "memberName");
>   String password = (String)
>   PropertyUtils.getSimpleProperty(form, "password");
>   signOn = signOnFacade.authenticate(memberName, password);
>   if (!signOn) {
>   errors.add(ActionMessages.GLOBAL_MESSAGE, new
> ActionMessage("error.password.mismatch"));
>   } else {
>   member = signOnFacade.getMember(memberName);
>   }
>   HttpSession session = request.getSession();
>   session.setAttribute(RegistrationConstants.MEMBER_KEY, member);
> 
> 
> Any assistance in resolving this problem will be appreciated.
> 
> PS: Going through the mail list, I have tried some of the things that were
> suggested there for similar error like changing the scope from request to
> session and vice versa. I still get the same errors.
> 
> Bisi
> 
> 
> 
 
This email message is for the sole use of the intended recipient (s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. To reply to our email administrator directly, send
an email to [EMAIL PROTECTED] 
Toys "R" Us, Inc.

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



error message display

2004-03-14 Thread Jignesh Patel
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]



Re: best way to highlight error form fields

2004-03-13 Thread Niall Pemberton
There are two ways to do this -

1) Modify the struts-html.tld (which is usually deployed in WEB-INF) and
change the class name of the "text" tag, The downside is that, if you
upgrade to a new version of struts, you have to remember to re-apply the
change.

2) Create a new tld for this tag - I've put a tld file up on my web site
just for this tag, as well as a jar which contains the class and source
files.

http://www.niallp.pwp.blueyonder.co.uk

Niall


- Original Message - 
From: "Erez Efrati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Saturday, March 13, 2004 10:26 PM
Subject: RE: best way to highlight error form fields


> Sorry but this is quite new to me: how do you use this source code? How
> I integrate it? Do I write a TLD file??
>
> Erez
>
> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 13, 2004 12:54 AM
> To: Struts Users Mailing List
> Subject: Re: best way to highlight error form fields
>
> I have done this by extending the struts  tag and using the
> stylesheets - its pretty straight forward.
>
> I overrode the getStyleClass() method to do the following:
>
> 1) Retrieve the "ActionErrors" from the request
> 2) Check if there is an error message for the name/property
> 3) If there is an error - append a suffix to the StyleClass attribute
> ("Err"
> by default")
>
> So I have something like:
>
>
>
> If "somethingOrOther" is VALID it generates:
>
>
> If "somethingOrOther" is INVALID it generates:
>
>
> All you have to do is set up two styles in your style sheet, the error
> style
> with an appropriate color.
>
> I have put the source code on my web site:
>
> http://www.niallp.pwp.blueyonder.co.uk
>
> Niall
>
>
> - Original Message - 
> From: "Erez Efrati" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, March 12, 2004 9:48 PM
> Subject: best way to highlight error form fields
>
>
> > Hi all,
> >
> > I have a form and I am searching for the best way to do the following:
> > 1. In case there were errors found in the form fields, highlight those
> > fields (using background color of red for example).
> > 2. If there are more than 4 fields with errors, show the user one
> > compact error saying that he should enter the highlighted fields.
> >
> > One way I came up with is using  tag for each
> > field and changing the style he's using thus highlighting it. Is there
> a
> > JSTL equivalent way to perform this?
> >
> > Thanks in advance,
> >
> > Erez E
> >
> >
> >
> >
>
>
>
> -
> 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: best way to highlight error form fields

2004-03-13 Thread Niall Pemberton
Yes - BaseHandlerTag contains the getStyleClass() method and the method to
output the style attributes (prepareStyles()) and the input tags all inherit
from that class. Maybe the best thing to do is re-factor that code into a
separate helper class, so that it can be easily plugged into any tag. I only
use it for  and haven't wanted it for any other tags so far, so I
just did that one.

You can see the BaseHandlerTag and its children here:

http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-tree.html

Niall



- Original Message - 
From: "Erez Efrati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Saturday, March 13, 2004 10:13 PM
Subject: RE: best way to highlight error form fields


> Thanks Niall, I will give it a try, it sounds good :) what about other
> HTML input component? Is it doable the same way?
>
> Erez
>
> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 13, 2004 12:54 AM
> To: Struts Users Mailing List
> Subject: Re: best way to highlight error form fields
>
> I have done this by extending the struts  tag and using the
> stylesheets - its pretty straight forward.
>
> I overrode the getStyleClass() method to do the following:
>
> 1) Retrieve the "ActionErrors" from the request
> 2) Check if there is an error message for the name/property
> 3) If there is an error - append a suffix to the StyleClass attribute
> ("Err"
> by default")
>
> So I have something like:
>
>
>
> If "somethingOrOther" is VALID it generates:
>
>
> If "somethingOrOther" is INVALID it generates:
>
>
> All you have to do is set up two styles in your style sheet, the error
> style
> with an appropriate color.
>
> I have put the source code on my web site:
>
> http://www.niallp.pwp.blueyonder.co.uk
>
> Niall
>
>
> - Original Message - 
> From: "Erez Efrati" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, March 12, 2004 9:48 PM
> Subject: best way to highlight error form fields
>
>
> > Hi all,
> >
> > I have a form and I am searching for the best way to do the following:
> > 1. In case there were errors found in the form fields, highlight those
> > fields (using background color of red for example).
> > 2. If there are more than 4 fields with errors, show the user one
> > compact error saying that he should enter the highlighted fields.
> >
> > One way I came up with is using  tag for each
> > field and changing the style he's using thus highlighting it. Is there
> a
> > JSTL equivalent way to perform this?
> >
> > Thanks in advance,
> >
> > Erez E
> >
> >
> >
> >
>
>
>
> -
> 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: best way to highlight error form fields

2004-03-13 Thread Erez Efrati
Sorry but this is quite new to me: how do you use this source code? How
I integrate it? Do I write a TLD file??

Erez

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 13, 2004 12:54 AM
To: Struts Users Mailing List
Subject: Re: best way to highlight error form fields

I have done this by extending the struts  tag and using the
stylesheets - its pretty straight forward.

I overrode the getStyleClass() method to do the following:

1) Retrieve the "ActionErrors" from the request
2) Check if there is an error message for the name/property
3) If there is an error - append a suffix to the StyleClass attribute
("Err"
by default")

So I have something like:

   

If "somethingOrOther" is VALID it generates:
   

If "somethingOrOther" is INVALID it generates:
   

All you have to do is set up two styles in your style sheet, the error
style
with an appropriate color.

I have put the source code on my web site:

http://www.niallp.pwp.blueyonder.co.uk

Niall


- Original Message - 
From: "Erez Efrati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 9:48 PM
Subject: best way to highlight error form fields


> Hi all,
>
> I have a form and I am searching for the best way to do the following:
> 1. In case there were errors found in the form fields, highlight those
> fields (using background color of red for example).
> 2. If there are more than 4 fields with errors, show the user one
> compact error saying that he should enter the highlighted fields.
>
> One way I came up with is using  tag for each
> field and changing the style he's using thus highlighting it. Is there
a
> JSTL equivalent way to perform this?
>
> Thanks in advance,
>
> Erez E
>
>
>
>



-
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: best way to highlight error form fields

2004-03-13 Thread Erez Efrati
Thanks Niall, I will give it a try, it sounds good :) what about other
HTML input component? Is it doable the same way?

Erez

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 13, 2004 12:54 AM
To: Struts Users Mailing List
Subject: Re: best way to highlight error form fields

I have done this by extending the struts  tag and using the
stylesheets - its pretty straight forward.

I overrode the getStyleClass() method to do the following:

1) Retrieve the "ActionErrors" from the request
2) Check if there is an error message for the name/property
3) If there is an error - append a suffix to the StyleClass attribute
("Err"
by default")

So I have something like:

   

If "somethingOrOther" is VALID it generates:
   

If "somethingOrOther" is INVALID it generates:
   

All you have to do is set up two styles in your style sheet, the error
style
with an appropriate color.

I have put the source code on my web site:

http://www.niallp.pwp.blueyonder.co.uk

Niall


- Original Message - 
From: "Erez Efrati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 9:48 PM
Subject: best way to highlight error form fields


> Hi all,
>
> I have a form and I am searching for the best way to do the following:
> 1. In case there were errors found in the form fields, highlight those
> fields (using background color of red for example).
> 2. If there are more than 4 fields with errors, show the user one
> compact error saying that he should enter the highlighted fields.
>
> One way I came up with is using  tag for each
> field and changing the style he's using thus highlighting it. Is there
a
> JSTL equivalent way to perform this?
>
> Thanks in advance,
>
> Erez E
>
>
>
>



-
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: best way to highlight error form fields

2004-03-12 Thread Erez Efrati
I totally agree with you, and I am pretty sure I am not the first one to
bump into these issues.


Erez E

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 13, 2004 12:15 AM
To: Struts Users Mailing List
Subject: Re: best way to highlight error form fields

At 11:48 PM +0200 3/12/04, Erez Efrati wrote:
>Hi all,
>
>I have a form and I am searching for the best way to do the following:
>1. In case there were errors found in the form fields, highlight those
>fields (using background color of red for example).
>2. If there are more than 4 fields with errors, show the user one
>compact error saying that he should enter the highlighted fields.
>
>One way I came up with is using  tag for each
>field and changing the style he's using thus highlighting it. Is there
a
>JSTL equivalent way to perform this?

there's no particularly clean way to do that in the JSTL while also 
including the 'property' attribute feature which evaluates not simply 
whether there are  any messages, but whether any of the messages 
apply to a specific property.

I'd say this is just one of those cases where the Struts JSP tags 
aren't obsoleted by the JSTL.

Wasn't there someone a while ago talking about an "html:label" JSP 
tag that was kind of smart about messages and could apply styles 
accordingly?  That seems like it could be pretty handy...

Joe

-- 
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
   "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
 -- Jef Raskin

-
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: best way to highlight error form fields

2004-03-12 Thread Niall Pemberton
I have done this by extending the struts  tag and using the
stylesheets - its pretty straight forward.

I overrode the getStyleClass() method to do the following:

1) Retrieve the "ActionErrors" from the request
2) Check if there is an error message for the name/property
3) If there is an error - append a suffix to the StyleClass attribute ("Err"
by default")

So I have something like:

   

If "somethingOrOther" is VALID it generates:
   

If "somethingOrOther" is INVALID it generates:
   

All you have to do is set up two styles in your style sheet, the error style
with an appropriate color.

I have put the source code on my web site:

http://www.niallp.pwp.blueyonder.co.uk

Niall


- Original Message - 
From: "Erez Efrati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 9:48 PM
Subject: best way to highlight error form fields


> Hi all,
>
> I have a form and I am searching for the best way to do the following:
> 1. In case there were errors found in the form fields, highlight those
> fields (using background color of red for example).
> 2. If there are more than 4 fields with errors, show the user one
> compact error saying that he should enter the highlighted fields.
>
> One way I came up with is using  tag for each
> field and changing the style he's using thus highlighting it. Is there a
> JSTL equivalent way to perform this?
>
> Thanks in advance,
>
> Erez E
>
>
>
>



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



Re: best way to highlight error form fields

2004-03-12 Thread Joe Germuska
At 11:48 PM +0200 3/12/04, Erez Efrati wrote:
Hi all,

I have a form and I am searching for the best way to do the following:
1. In case there were errors found in the form fields, highlight those
fields (using background color of red for example).
2. If there are more than 4 fields with errors, show the user one
compact error saying that he should enter the highlighted fields.
One way I came up with is using  tag for each
field and changing the style he's using thus highlighting it. Is there a
JSTL equivalent way to perform this?
there's no particularly clean way to do that in the JSTL while also 
including the 'property' attribute feature which evaluates not simply 
whether there are  any messages, but whether any of the messages 
apply to a specific property.

I'd say this is just one of those cases where the Struts JSP tags 
aren't obsoleted by the JSTL.

Wasn't there someone a while ago talking about an "html:label" JSP 
tag that was kind of smart about messages and could apply styles 
accordingly?  That seems like it could be pretty handy...

Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

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


best way to highlight error form fields

2004-03-12 Thread Erez Efrati
Hi all, 
 
I have a form and I am searching for the best way to do the following:
1. In case there were errors found in the form fields, highlight those
fields (using background color of red for example).
2. If there are more than 4 fields with errors, show the user one
compact error saying that he should enter the highlighted fields.
 
One way I came up with is using  tag for each
field and changing the style he's using thus highlighting it. Is there a
JSTL equivalent way to perform this?
 
Thanks in advance,
 
Erez E
 
 
 


FW: [Servlet Error]-[No form found under name logonForm, locale e n_US]:

2004-03-12 Thread Adedokun, Bisi
> Good Day,
> 
> I am getting the following errors when the servlet engine tries to load
> the index.jsp of the application I'm working on:
> OS: W2K, Browser: IE 5.50 App Server: WSAD with WAS Version 5 test
> environment
> 
> [3/12/04 13:45:25:115 EST]  f4bf269 WebGroup  E SRVE0026E: [Servlet
> Error]-[No form found under name logonForm, locale en_US]:
> javax.servlet.jsp.JspException: No form found under name logonForm, locale
> en_US
>   at
> org.apache.struts.taglib.html.JavascriptValidatorTag.createDynamicJavascri
> pt(JavascriptValidatorTag.java:420)
>   at
> org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(Java
> scriptValidatorTag.java:382)
>   at
> org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascript
> ValidatorTag.java:354)
>   at org.apache.jsp._index._jspService(_index.java:802)
>   at
> com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:8
> 9)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(J
> spServlet.java:357)
>   at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.j
> ava:675)
>   at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:773
> )
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> Below is how my struts-config.xml looks like:
> 
> 
> type="org.acaosa.registration.web.LogonForm">
> 
> 
> 
> 
> 
> 
> 
> 
>input="/index.jsp" name="logonForm"
> scope="request">
>type="org.acaosa.registration.web.CreateRegistrationAction">
>type="org.acaosa.registration.web.MainMenuAction">
>   
>   
> 
> 
> Below is the index.jsp:
> 
> 
>onsubmit="return validateLoginForm(this);">
>
> 
> 
>   
>:
> maxlength="18" />
>   
>   
> :
>  maxlength="18" redisplay="false" />
>   
>   
> 
> 
> 
> 
>   
>   
>   
>
>  
> 
> 
> The LogonForm class looks like this:
> 
> public class LogonForm extends org.apache.struts.validator.ValidatorForm {
>   private String password = null;
>   private String memberName = null;
> 
>   // with appropriate getter and setter methods
> }
> 
> Lastly, relevant code snippet from the action class looks like this:
> 
>   ActionMessages errors = new ActionMessages();
>   String memberName = (String)
>   PropertyUtils.getSimpleProperty(form, "memberName");
>   String password = (String)
>   PropertyUtils.getSimpleProperty(form, "password");
>   signOn = signOnFacade.authenticate(memberName, password);
>   if (!signOn) {
>   errors.add(ActionMessages.GLOBAL_MESSAGE, new
> ActionMessage("error.password.mismatch"));
>   } else {
>   member = signOnFacade.getMember(memberName);
>   }
>   HttpSession session = request.getSession();
>   session.setAttribute(RegistrationConstants.MEMBER_KEY, member);
> 
> 
> Any assistance in resolving this problem will be appreciated.
> 
> PS: Going through the mail list, I have tried some of the things that were
> suggested there like changing the scope from request to session and vice
> versa. I still get the same errors.
> 
> Bisi
> 
> 
> 
 
This email message is for the sole use of the intended recipient (s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. To reply to our email administrator directly, send
an email to [EMAIL PROTECTED] 
Toys "R" Us, Inc.

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



Re: Regarding Error in Validator - Urgent Help

2004-03-10 Thread Geeta Ramani
Hi Ramachandran:

Here's a suggestion: look at line number 63 of the servlet (in your work directory)
generated by your first.jsp.  See what the code there is and that may give you an idea
of what's going wrong.. (seems like a null pointer somewhere, so try to see what may be
null in that line of code ..)

Regards,
Geeta

Ramachandran wrote:

>
>
> Root cause:
> java.lang.ExceptionInInitializerError
> at
> _0002ffirst_0002ejspfirst_jsp_0._jspService(_0002ffirst_0002ejspfirst_jsp_0.
> java:63)

>
> Caused by: java.lang.NullPointerException
> at
> org.apache.struts.util.MessageResources.getMessageResources(MessageResources
> .java:577)
> at org.apache.struts.taglib.html.HtmlTag.(HtmlTag.java:96)
> ... 16 more




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



Regarding Error in Validator - Urgent Help

2004-03-10 Thread Ramachandran
Hi Friends,

I am using the validator to perform the validations. I am facing the error
while perform such operations. Can anyone please help me regarding this one.

I am having FirstForm conatins phone and email. For that i am
performing the validation using validator.

Please suugest me..



This is the error
Location: /ram1.1/first.jsp
Internal Servlet Error:

javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:536)

Root cause:
java.lang.ExceptionInInitializerError
at
_0002ffirst_0002ejspfirst_jsp_0._jspService(_0002ffirst_0002ejspfirst_jsp_0.
java:63)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:577)
at org.apache.struts.taglib.html.HtmlTag.(HtmlTag.java:96)
... 16 more



This is my FormBean

package com.summit;

import java.io.Serializable;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionError;
import org.apache.struts.validator.ValidatorForm;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;


public final class FirstForm extends ValidatorForm implements Serializable
{
private String sPhone = null;
private String sEmail = null;
public String getPhone() {return sPhone;}
public void setPhone(String sPhone) {this.sPhone = sPhone;}
public String getEmail() {return sEmail;}
public void setEmail(String sEmail) {this.sEmail = sEmail;}

public ActionErrors validate(
ActionMapping mapping,
HttpServletRequest request) {
return super.validate(mapping, request);
}
}

This is my Struts-Config File

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



 















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



Regarding Error in Validator

2004-03-09 Thread Ramachandran
Hi Friends,

I am using the validator to perform the validations. I am facing the error
while perform such operations. Can anyone please help me regarding this one.

I am having LoginForm conatins username and password. For that i am
performing the validation using validator.

Please suugest me..


This is the error

Error: 500
Location: /ecgv1.2/login.jsp
Internal Servlet Error:

javax.servlet.ServletException: (class:
org/apache/struts/validator/ValidatorForm, method: validate signature:
(Lorg/apache/struts/action/ActionMapping;Ljavax/servlet/http/HttpServletRequ
est;)Lorg/apache/struts/action/ActionErrors;) Incompatible object argument
for function call
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:536)

Root cause:
java.lang.VerifyError: (class: org/apache/struts/validator/ValidatorForm,
method: validate signature:
(Lorg/apache/struts/action/ActionMapping;Ljavax/servlet/http/HttpServletRequ
est;)Lorg/apache/struts/action/ActionErrors;) Incompatible object argument
for function call
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
at
_0002flogin_0002ejsplogin_jsp_0._jspService(_0002flogin_0002ejsplogin_jsp_0.
java:118)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:536)


Thanks N Regds

M.Ramachandran
SummitWorks Technologies Pvt Ltd
Voice : 28478601 X 123
www.summitworks.com
[EMAIL PROTECTED]


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



AW: Error in message resources

2004-03-09 Thread Andreas Solarik
Quoting Ted from a forum on JGuru:


Re[2]: More info: Cannot find message resources under key
org.apache.struts.action.MESSAGE
Topic: Struts 
Ted Husted PREMIUM, Feb 10, 2003
Under b3 and later, you may need to specify the messages resources in the
struts-config: 
 

This can go at the very end of the struts-config, after the action-mappings.


HTH, Ted. 


Andreas

-Ursprüngliche Nachricht-
Von: Praveen Reddy Basani [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 09. März 2004 11:04
An: Struts Users Mailing List
Betreff: Error in message resources



Hi all,

I am getting the following error when i tried to run the application.

  "Cannot find message resources under key org.apache.struts.action.MESSAGE"

Can any suggest the solution for it.

regards
praveen

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

Error in message resources

2004-03-09 Thread Praveen Reddy Basani

Hi all,

I am getting the following error when i tried to run the application.

  "Cannot find message resources under key org.apache.struts.action.MESSAGE"

Can any suggest the solution for it.

regards
praveen

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



validator validwhen error

2004-03-08 Thread Betty Koon
Hi,

I got the following validator error, but not sure why.

here is my validator.xml and the exception:


 



test
((actionType != 'x') or (*this* !=
null))
 
 



test
((editAction != 'false') or (*this* !=
null))


datePatternStrict
MM/dd/ HH:mm:ss










*
59:03,863 ERROR [STDERR] line 1:23: expecting ''', found '_'
59:03,863 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
exer.nextToken(ValidWhenLexer.java:228)
19:58:59,637 ERROR [STDERR] at
antlr.TokenBuffer.fill(TokenBuffer.java:69)
19:58:59,637 ERROR [STDERR] at antlr.TokenBuffer.LA(TokenBuffer.java:80)
19:58:59,637 ERROR [STDERR] at antlr.LLkParser.LA(LLkParser.java:52)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.value(ValidWhenParser.java:380)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.comparisonExpression(ValidWhenParser.java:434)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.expr(ValidWhenParser.java:415)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.joinedExpression(ValidWhenParser.java:446)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.expr(ValidWhenParser.java:420)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
enParser.expression(ValidWhenParser.java:406)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.validwhen.ValidWh
en.validateValidWhen(ValidWhen.java:155)
19:58:59,637 ERROR [STDERR] at
sun.reflect.GeneratedMethodAccessor126.invoke
(Unknown Source)
19:58:59,637 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:58:59,637 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:3
24)
19:58:59,637 ERROR [STDERR] at
org.apache.commons.validator.ValidatorAction.
executeValidationMethod(ValidatorAction.java:610)
19:58:59,637 ERROR [STDERR] at
org.apache.commons.validator.Field.validateFo
rRule(Field.java:848)
19:58:59,637 ERROR [STDERR] at
org.apache.commons.validator.Field.validate(F
ield.java:927)
19:58:59,637 ERROR [STDERR] at
org.apache.commons.validator.Form.validate(Fo
rm.java:211)
19:58:59,637 ERROR [STDERR] at
org.apache.commons.validator.Validator.valida
te(Validator.java:407)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.validator.ValidatorForm.val
idate(ValidatorForm.java:151)
19:58:59,637 ERROR [STDERR] at
com.adobe.edc.server.presentation.fw.EDCActio
nForm.validate(EDCActionForm.java:96)
19:58:59,637 ERROR [STDERR] at
com.adobe.edc.server.presentation.policy.Assi
gnPermissionAction.addAnonymous_onClick(AssignPermissionAction.java:252)
19:58:59,637 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
19:58:59,637 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccessorImpl.java:39)
19:58:59,637 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:58:59,637 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:3
24)
19:58:59,637 ERROR [STDERR] at
com.cc.framework.adapter.struts.FWAction.hand
leFormAction(Unknown Source)
19:58:59,637 ERROR [STDERR] at
com.cc.framework.adapter.struts.FWAction.exec
ute(Unknown Source)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.pro
cessActionPerform(RequestProcessor.java:462)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.pro
cess(RequestProcessor.java:267)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.proces
s(ActionServlet.java:1187)
19:58:59,637 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.doPost
(ActionServlet.java:451)
19:58:59,637 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:760)
19:58:59,637 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:853)
19:58:59,637 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:247)
19:58:59,637 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:193)
19:58:59,637 ERROR [STDERR] at
com.adobe.edc.server.presentation.auth.Authen
ticationFilter.doFilter(AuthenticationFilter.java:144)
19:58:59,637 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:213)
19:58:59,637 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain

Multiple Error Pages

2004-03-05 Thread Niel
Hi All,

i wanted to know if it is possible to have multiple error pages in the application, 
where two jsps are using the same action servlet and the form bean. the validation in 
both are seperate ( NOT JAVA SCRIPT VALIDATION ) and i want them to return to two 
different pages in case of errors. that is if there is an error on submitting i want 
the page to return to respective jsp page.

Thanks in advance,
Niel.


RE : RE : validating double causes no error on text entry[RESOLVED]

2004-03-04 Thread thomas Sontheimer
the problem came from the java.lang.Double field of my DynaValidatorForm
which converted first any string in an empty string.
instead I use a java.lang.String field that I convert myself after
validation and it works.

> -Original Message-
> From: thomas Sontheimer [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 04, 2004 9:44 AM
> To: 'Struts Users Mailing List'
> Subject: RE : validating double causes no error on text entry
> 
> 
> the problem is that the string is NOT empty but it validate 
> it as an empty string.
> 
> > -Original Message-
> > From: John Fitzpatrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 03, 2004 6:51 PM
> > To: Struts Users Mailing List
> > Subject: Re: validating double causes no error on text entry
> > 
> > 
> > "Casting" an empty String to a double will give you 0.0.
> > 
> > 
> > On 20040303 12:10 PM, "thomas Sontheimer" 
> <[EMAIL PROTECTED]>
> > wrote:
> > 
> > > when I use the validator on the server side to validate a
> > double the
> > > value is converted to 0.0 an no error is reported. has anyone meet
> > > that problem? I parsed the struts and commons bugzilla lists and 
> > > didn't found anything about.
> > > 
> > > thanks
> > > 
> > > thomas
> > > 
> > > 
> > > 
 


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



RE : validating double causes no error on text entry

2004-03-04 Thread thomas Sontheimer
the problem is that the string is NOT empty but it validate it as an
empty string.

> -Original Message-
> From: John Fitzpatrick [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 03, 2004 6:51 PM
> To: Struts Users Mailing List
> Subject: Re: validating double causes no error on text entry
> 
> 
> "Casting" an empty String to a double will give you 0.0.
> 
> 
> On 20040303 12:10 PM, "thomas Sontheimer" <[EMAIL PROTECTED]>
> wrote:
> 
> > when I use the validator on the server side to validate a 
> double the 
> > value is converted to 0.0 an no error is reported. has anyone meet 
> > that problem? I parsed the struts and commons bugzilla lists and 
> > didn't found anything about.
> > 
> > thanks
> > 
> > thomas
> > 
> > 
> > 
> -
> > 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: validating double causes no error on text entry

2004-03-03 Thread Wendy Smoak
> From: thomas Sontheimer [mailto:[EMAIL PROTECTED] 
> when I use the validator on the server side to validate a double the
> value is converted to 0.0 an no error is reported.
> has anyone meet that problem?

If you use String properties in the ActionForm, you will be able to
detect a blank input field.

-Wendy Smoak


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



Re: validating double causes no error on text entry

2004-03-03 Thread John Fitzpatrick
"Casting" an empty String to a double will give you 0.0.


On 20040303 12:10 PM, "thomas Sontheimer" <[EMAIL PROTECTED]>
wrote:

> when I use the validator on the server side to validate a double the
> value is converted to 0.0 an no error is reported.
> has anyone meet that problem?
> I parsed the struts and commons bugzilla lists and didn't found anything
> about.
> 
> thanks
> 
> thomas
> 
> 
> -
> 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]



validating double causes no error on text entry

2004-03-03 Thread thomas Sontheimer
when I use the validator on the server side to validate a double the
value is converted to 0.0 an no error is reported.
has anyone meet that problem?
I parsed the struts and commons bugzilla lists and didn't found anything
about.

thanks

thomas


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



Best Error Page solution

2004-03-02 Thread Julio Cesar De Salvo
Hi,
 
What would be the best approach for handling the error messages?
- set in very page <%@ page errorPage="error_page.jsp" %>?
- or  to use a global mapping for handling error messages (eg. Session
timeout, db connection broken, etc).
 
 
Thanks for any hint.
 
Julio


Bean:message in attribute causes non-matching extension tags error

2004-02-27 Thread Abhishek Srivastava
Hello All,

I am trying to have text from my property file appear into one of the
attributes of an html select element. The code which I have written is

'; return true"  value =
'<%=destinationType%>'> 
city
  state
  country


However when invoke the jsp I get an exception

"/jsp/WcNoNc/Query.jsp(575): Non-matching extension tags //[ null; Line:
575]
probably occurred due to an error in /jsp/WcNoNc/Query.jsp line 575:
"

What am I doing wrong? How can I get the text from my property file into one
of the html attributes?

Thanks for your help in advance.

Regards,
Abhishek.

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



mapping an error-page to a Struts Action

2004-02-26 Thread Andrew Freeman
I would like to be able to map my 404 errors to a specific Struts Action
versus mapping the error directly to a JSP page.  However, unless I
configure my Struts Action to forward to a Tiles definition I can't seem to
get this to work.  I am working with Tomcat 5.0.19 on Windows XP.

My config files:



404
/404.do









If I call the 404.do directly, the page comes up correctly with with either
struts-config configuration.  If I use the first struts-config
configuration, the 404 page is displayed correctly.  However, if I use the
second struts-config configuration, I get a blank page when a 404 occurs.  I
give... Please tell me what I am doing wrong.

Thanks,
Andy


-
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: validation error in FormBean, where to redirect next?

2004-02-25 Thread Niall Pemberton
Yes
- Original Message - 
From: "Marco Mistroni" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, February 25, 2004 10:51 AM
Subject: validation error in FormBean, where to redirect next?


> Hi all,
> Assume that I have following struts-config.xml
> 
>type=" ReceiveLineAction" 
>   input="/receiveLine.jsp" 
>   name="receiveLineForm" scope="request">
> 
> 
>  path="/receiveHeader.jsp">
> 
>  path="/populateProduct.do">
> 
> 
> 
> Now, I have ALWAYS assumed that if validation fails in the
> ReceiveLIneForm bean, I should be redirected to the input page, which is
> receiveLine.jsp
> 
> Is my assumption correct?
> 
> 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]



validation error in FormBean, where to redirect next?

2004-02-25 Thread Marco Mistroni
Hi all,
Assume that I have following struts-config.xml










Now, I have ALWAYS assumed that if validation fails in the
ReceiveLIneForm bean, I should be redirected to the input page, which is
receiveLine.jsp

Is my assumption correct?

Regards]
Marco



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



error no getter method defined while inside logic:iterate

2004-02-24 Thread [EMAIL PROTECTED]
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:


 



<%= ctr %>







...


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]



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]



Error in join of hibernate

2004-02-20 Thread Paulo Rezende
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

Anybody could help me? Does this work or not?

My config files are in the end of this e-mail.

att, Paulo Marcio


Config files:

hibernate.properties

hibernate.cglib.use_reflection_optimizer=false

hibernate.cgf.xml


http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd";>
 
 
org.firebirdsql.jdbc.FBDriver
jdbc:firebirdsql://localhost/c:/StrutsHibernateExample/db/HIBERNATE.GDB
sysdba
masterkey
5
100
1
12
10
100
1
12
10
net.sf.hibernate.dialect.FirebirdDialect
true
false
 
 
 
 
 


MasterTable.hbm.xml


http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd";>













DetailAndMasterTable.hbm.xml


http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd";>
















DetailTable2.hbm.xml  

http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd";>








 





Servlet Exception Error

2004-02-19 Thread John Martyniak
Hi all,

I am new to the group and new to Struts, working on my first application.  I
am using Struts 1.0, and tomcat 4.1.27.

I get the following error:
org.apache.jasper.JasperException: org/apache/struts/action/ActionForm

With root cause
javax.servlet.ServletException: org/apache/struts/action/ActionForm

I get this error consistently, if I run the struts-example.war it work just
fine, but mine has this problem.

I have been pulling my hair out trying to solve this.

Can anybody point me in the right direction?

Any help would be greatly appreciated.

Thank you,

-John
 


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


Error page problems with Tiles

2004-02-18 Thread Russ Baker
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]



Re: FileUploading Error

2004-02-18 Thread Mark Shifman
I am using Mozilla 1.2.1. via redhat.  How can I see what is passed   
without doing an autopsy on the request handler?
mas

Andrew Hill wrote:

Hmmm. Sounds rather like a browser issue to me. You might want to see what
is actually being passed in that request - if its actually a valid multipart
request or not!
I had a try in IE, but IE's file selector is too smart to allow selection of
a folder as the upload file. Which browser are you using?
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 February 2004 00:13
To: Struts Users Mailing List
Subject: Re: FileUploading Error
At 9:35 AM -0500 2/16/04, Mark Shifman wrote:
 

In trying to bulletproof file uploading I noticed something odd.

If I type some junk in the field for the file name and hit Submit, I get
a file of size 0. I can deal with that.  If I type in a directory name
in my home directory (admittedly a dumb thing to type) nothing seems to
happen and I get this error in my log file.
ERROR 2004-02-13 14:09:18,679
handleRequest(CommonsMultipartRequestHandler.java:241)
Failed to parse multipart request
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Stream ended unexpectedly
...
This error seems to be thrown before it even gets to my UploadAction.
How do I catch this and tell the user the file typed in is invalid?
   

In Javascript, the "value" of the form field is the path to the file;
you might be able to apply a mask validation testing for a reasonable
filename -- this is far from perfect, but may help.  I use this as a
cheap way to get around the lack of support for the "accepts"
attribute -- I test to see if the file has a "right extension" using
the mask validator.
Just one thought...

Joe

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them
the usual way.  This happens to us all the time with computers, and
nobody thinks of complaining."
-- Jef Raskin
-
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]
 



--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]


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


RE: Could not find resource error

2004-02-17 Thread Paul McCulloch
Looks like an ibatis issue to me. How about you RTFM then look for an ibatis
mailing list and search it's archive?

> -Original Message-
> From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> Sent: 17 February 2004 17:29
> To: 'Struts Users Mailing List'
> Subject: RE: Could not find resource error
> 
> 
> Good point! :) The only reason it is struts related is because it's
> happening my struts app. (A pretty weak link I must admit.) I 
> suspect it's
> more of a general java development environment issue. Got any 
> good "java
> development environment issue" mailing lists?
> 
> 
> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 17, 2004 10:26 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Could not find resource error
> 
> And this is struts related how?
> 
> > -Original Message-
> > From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> > Sent: 17 February 2004 17:22
> > To: 'Struts Users Mailing List'
> > Subject: Could not find resource error
> > 
> > 
> > Can't figure out why this code is giving me an error:
> > 
> >  
> > 
> > import java.io.Reader;
> > 
> > import com.ibatis.common.resources.Resources;
> > 
> >  
> > 
> > Reader reader =
> > Resources.getResourceAsReader("properties/sql-map-config.xml");
> > 
> >  
> > 
> >  
> > 
> > The error I'm getting is:
> > 
> >  
> > 
> > java.io.IOException: Could not find resource 
> > properties/sql-map-config.xml
> > at 
> > 
> com.ibatis.common.resources.Resources.getResourceAsStream(Ljava.lang.
> > 
> > String;)Ljava.io.InputStream;(Unknown Source)
> > 
> >  
> > 
> > I verified the file is there, but my app can't find it. Is 
> > there a setting
> > somewhere I have messed up somehow? Any suggestions on things 
> > I can check?
> > 
> >  
> > 
> > Thanks,
> > 
> > Brian Barnett
> > 
> > 
> 
> 
> **
> Axios Email Confidentiality Footer
> Privileged/Confidential Information may be contained in this 
> message. If you
> are not the addressee indicated in this message (or 
> responsible for delivery
> of the message to such person), you may not copy or deliver 
> this message to
> anyone. In such case, you should destroy this message, and notify us
> immediately. If you or your employer does not consent to 
> Internet email
> messages of this kind, please advise us immediately. 
> Opinions, conclusions
> and other information expressed in this message are not given 
> or endorsed by
> my Company or employer unless otherwise indicated by an authorised
> representative independent of this message.
> WARNING:
> While Axios Systems Ltd takes steps to prevent computer 
> viruses from being
> transmitted via electronic mail attachments we cannot guarantee that
> attachments do not contain computer virus code.  You are 
> therefore strongly
> advised to undertake anti virus checks prior to accessing the 
> attachment to
> this electronic mail.  Axios Systems Ltd grants no warranties 
> regarding
> performance use or quality of any attachment and undertakes 
> no liability for
> loss or damage howsoever caused.
> 
> 
> -
> 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: Could not find resource error

2004-02-17 Thread Barnett, Brian W.
Good point! :) The only reason it is struts related is because it's
happening my struts app. (A pretty weak link I must admit.) I suspect it's
more of a general java development environment issue. Got any good "java
development environment issue" mailing lists?


-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 17, 2004 10:26 AM
To: 'Struts Users Mailing List'
Subject: RE: Could not find resource error

And this is struts related how?

> -Original Message-
> From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> Sent: 17 February 2004 17:22
> To: 'Struts Users Mailing List'
> Subject: Could not find resource error
> 
> 
> Can't figure out why this code is giving me an error:
> 
>  
> 
> import java.io.Reader;
> 
> import com.ibatis.common.resources.Resources;
> 
>  
> 
> Reader reader =
> Resources.getResourceAsReader("properties/sql-map-config.xml");
> 
>  
> 
>  
> 
> The error I'm getting is:
> 
>  
> 
> java.io.IOException: Could not find resource 
> properties/sql-map-config.xml
> at 
> com.ibatis.common.resources.Resources.getResourceAsStream(Ljava.lang.
> 
> String;)Ljava.io.InputStream;(Unknown Source)
> 
>  
> 
> I verified the file is there, but my app can't find it. Is 
> there a setting
> somewhere I have messed up somehow? Any suggestions on things 
> I can check?
> 
>  
> 
> Thanks,
> 
> Brian Barnett
> 
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this message (or responsible for delivery
of the message to such person), you may not copy or deliver this message to
anyone. In such case, you should destroy this message, and notify us
immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are therefore strongly
advised to undertake anti virus checks prior to accessing the attachment to
this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for
loss or damage howsoever caused.


-
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: Could not find resource error

2004-02-17 Thread Paul McCulloch
And this is struts related how?

> -Original Message-
> From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> Sent: 17 February 2004 17:22
> To: 'Struts Users Mailing List'
> Subject: Could not find resource error
> 
> 
> Can't figure out why this code is giving me an error:
> 
>  
> 
> import java.io.Reader;
> 
> import com.ibatis.common.resources.Resources;
> 
>  
> 
> Reader reader =
> Resources.getResourceAsReader("properties/sql-map-config.xml");
> 
>  
> 
>  
> 
> The error I'm getting is:
> 
>  
> 
> java.io.IOException: Could not find resource 
> properties/sql-map-config.xml
> at 
> com.ibatis.common.resources.Resources.getResourceAsStream(Ljava.lang.
> 
> String;)Ljava.io.InputStream;(Unknown Source)
> 
>  
> 
> I verified the file is there, but my app can't find it. Is 
> there a setting
> somewhere I have messed up somehow? Any suggestions on things 
> I can check?
> 
>  
> 
> Thanks,
> 
> Brian Barnett
> 
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



Could not find resource error

2004-02-17 Thread Barnett, Brian W.
Can't figure out why this code is giving me an error:

 

import java.io.Reader;

import com.ibatis.common.resources.Resources;

 

Reader reader =
Resources.getResourceAsReader("properties/sql-map-config.xml");

 

 

The error I'm getting is:

 

java.io.IOException: Could not find resource properties/sql-map-config.xml
at com.ibatis.common.resources.Resources.getResourceAsStream(Ljava.lang.

String;)Ljava.io.InputStream;(Unknown Source)

 

I verified the file is there, but my app can't find it. Is there a setting
somewhere I have messed up somehow? Any suggestions on things I can check?

 

Thanks,

Brian Barnett



RE: [SPAM] - [OFFLIST] - Found word(s) list error e-mail in the Text body.

2004-02-17 Thread Gagné Jean-Christian
I tried google, and I found this mailing list's archive :-)

> -Message d'origine-
> De : Oliver Thiel [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 17 février 2004 14:40
> À : 'Struts Users Mailing List'
> Objet : [SPAM] - [OFFLIST] - Found word(s) list error e-mail 
> in the Text
> body.
> 
> 
> Hi JC,
> 
> 
> Here you can finde the Display Taglib:
> http://www.displaytag.org/index.jsp
> This one is quite nice too:
> http://htmltable.yuriy-zubarev.com/jsp/index.jsp 
> I answere you offlist because otherwise their would be too 
> much comments
> Like: try use google.
> 
> 
> Oliver
> 
> -Ursprüngliche Nachricht-
> Von: Gagné Jean-Christian [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 17. Februar 2004 14:09
> An: 'Struts Users Mailing List'
> Betreff: RE: [SPAM] - Display TagLib & Struts - Found word(s) 
> list error
> e-mail in the Text body.
> 
> Sorry to ask this, but where do you get the Display Taglib ?  The url
> mentionned [www.displaytaglib.org] is not found.
> 
> JC
> 
> > -Message d'origine-
> > De : Unmesh Nadkarni [mailto:[EMAIL PROTECTED]
> > Envoyé : mardi 17 février 2004 09:13
> > À : 'Struts Users Mailing List'
> > Objet : [SPAM] - Display TagLib & Struts - Found word(s) list error
> > e-mail in the Text body.
> > 
> > 
> > I have started working successfully on the Display TagLib in Struts.
> > There are no issues except that the export to .xls, .csv 
> format gives
> > following errors in Tomcat. 
> > 
> > Exception:
> > javax.servlet.ServletException:org.apache.commons.collections.
> > IteratorUt
> > ils.arrayIterator
> > 
> > Root cause:
> > java.lang.NoSuchMethodError:org.apache.commons.collections.Ite
> > ratorUtils
> > .arrayIterator
> > 
> > Any leads to the same would be useful.
> > 
> > Thanks and Regards
> > 
> > Unmesh N
> > 
> > -Original Message-
> > From: Oliver Thiel [mailto:[EMAIL PROTECTED] 
> > Sent: Sunday, February 15, 2004 6:00 PM
> > To: Struts Users Mailing List
> > Subject: Re: [OT] Display TagLib & Struts
> > 
> > I allready got it working! But anyway thanks for your replay. 
> > The only thing that does not for for me are the export types
> > - I can (automatically) create the links (XML Excel CVS)
> > But i always get a linke to a *.jsp instead of e.g. an *.xls file.
> > 
> > Have you/someone also experience something like that? If so 
> > how do you solved it?
> > 
> > 
> > Thanks 
> > Oliver 
> > 
> > 
> > > I'm using Display TagLib, now for testing purposes only but ...
> > > 
> > > All you have to do is to prepare list of beans with getter 
> > and setter
> > > method, and then defining columns by property names.
> > > 
> > > Documentation is good, so I don't know what you expecting now.
> > > 
> > > Only one bug i saw till now, if "cell" value has " 
> character in it.
> > But i
> > > will work with that
> > > 
> > > So, what kind of error you have, what you want to do ??
> > > - Original Message -
> > > From: "Oliver Thiel" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Saturday, February 14, 2004 11:38 AM
> > > Subject: [OT] Display TagLib & Struts
> > > 
> > > 
> > > > Hi,
> > > >
> > > >
> > > > did anyone use the Display TagLib [www.displaytaglib.org]?
> > > > And can guide my - BETTER - send me some sample code
> > > > on how to use it with struts! I got the examples running in
> > > > my struts app - using the provided TestList's, but as soon as
> > > > I start creating my one from a resultSet I got some strange
> > > > errors. So it would be nice if someone could send me some
> > > > code how he/she did it!
> > > >
> > > >
> > > > Thanks and have a nice weekend ...
> > > > Oliver
> > > >
> > > > --
> > > > GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99
> > EUR/Monat...)
> > > > jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
> > http://www.gmx.net/derspiegel
> > > +++
> > > >
> > > >
> > > >
> > 
> -
> > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTE

Re: [SPAM] - Display TagLib & Struts - Found word(s) list error e -mail in the Text body.

2004-02-17 Thread Nick Heudecker
http://displaytag.sf.net/


On 2004-Feb-17 14:02, Gagn? Jean-Christian wrote:
> Sorry to ask this, but where do you get the Display Taglib ?  The url
> mentionned [www.displaytaglib.org] is not found.
> 
> JC
> 

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

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



RE: [SPAM] - Display TagLib & Struts - Found word(s) list error e-mail in the Text body.

2004-02-17 Thread David Friedman
Actually, it's www.displaytag.org, not displaytaglib. :)

Regards,
David

-Original Message-
From: Gagné Jean-Christian [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 8:09 AM
To: 'Struts Users Mailing List'
Subject: RE: [SPAM] - Display TagLib & Struts - Found word(s) list error
e-mail in the Text body.


Sorry to ask this, but where do you get the Display Taglib ?  The url
mentionned [www.displaytaglib.org] is not found.

JC

> -Message d'origine-
> De : Unmesh Nadkarni [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 17 février 2004 09:13
> À : 'Struts Users Mailing List'
> Objet : [SPAM] - Display TagLib & Struts - Found word(s) list error
> e-mail in the Text body.
>
>
> I have started working successfully on the Display TagLib in Struts.
> There are no issues except that the export to .xls, .csv format gives
> following errors in Tomcat.
>
> Exception:
> javax.servlet.ServletException:org.apache.commons.collections.
> IteratorUt
> ils.arrayIterator
>
> Root cause:
> java.lang.NoSuchMethodError:org.apache.commons.collections.Ite
> ratorUtils
> .arrayIterator
>
> Any leads to the same would be useful.
>
> Thanks and Regards
>
> Unmesh N
>
> -Original Message-
> From: Oliver Thiel [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 15, 2004 6:00 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Display TagLib & Struts
>
> I allready got it working! But anyway thanks for your replay.
> The only thing that does not for for me are the export types
> - I can (automatically) create the links (XML Excel CVS)
> But i always get a linke to a *.jsp instead of e.g. an *.xls file.
>
> Have you/someone also experience something like that? If so
> how do you solved it?
>
>
> Thanks
> Oliver
>
>
> > I'm using Display TagLib, now for testing purposes only but ...
> >
> > All you have to do is to prepare list of beans with getter
> and setter
> > method, and then defining columns by property names.
> >
> > Documentation is good, so I don't know what you expecting now.
> >
> > Only one bug i saw till now, if "cell" value has " character in it.
> But i
> > will work with that
> >
> > So, what kind of error you have, what you want to do ??
> > - Original Message -
> > From: "Oliver Thiel" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, February 14, 2004 11:38 AM
> > Subject: [OT] Display TagLib & Struts
> >
> >
> > > Hi,
> > >
> > >
> > > did anyone use the Display TagLib [www.displaytaglib.org]?
> > > And can guide my - BETTER - send me some sample code
> > > on how to use it with struts! I got the examples running in
> > > my struts app - using the provided TestList's, but as soon as
> > > I start creating my one from a resultSet I got some strange
> > > errors. So it would be nice if someone could send me some
> > > code how he/she did it!
> > >
> > >
> > > Thanks and have a nice weekend ...
> > > Oliver
> > >
> > > --
> > > GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99
> EUR/Monat...)
> > > jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
> http://www.gmx.net/derspiegel
> > +++
> > >
> > >
> > >
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> > >
> --
> > > Dla tych, co chca sie zaKOCHAC... >>> http://link.interia.pl/f17c0
> > >
> > >
> > >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99
> EUR/Monat...)
> jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
> http://www.gmx.net/derspiegel
> +++
>
>
> -
> 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: [SPAM] - Display TagLib & Struts - Found word(s) list error e -mail in the Text body.

2004-02-17 Thread Gagné Jean-Christian
Sorry to ask this, but where do you get the Display Taglib ?  The url
mentionned [www.displaytaglib.org] is not found.

JC

> -Message d'origine-
> De : Unmesh Nadkarni [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 17 février 2004 09:13
> À : 'Struts Users Mailing List'
> Objet : [SPAM] - Display TagLib & Struts - Found word(s) list error
> e-mail in the Text body.
> 
> 
> I have started working successfully on the Display TagLib in Struts.
> There are no issues except that the export to .xls, .csv format gives
> following errors in Tomcat. 
> 
> Exception:
> javax.servlet.ServletException:org.apache.commons.collections.
> IteratorUt
> ils.arrayIterator
> 
> Root cause:
> java.lang.NoSuchMethodError:org.apache.commons.collections.Ite
> ratorUtils
> .arrayIterator
> 
> Any leads to the same would be useful.
> 
> Thanks and Regards
> 
> Unmesh N
> 
> -Original Message-
> From: Oliver Thiel [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, February 15, 2004 6:00 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Display TagLib & Struts
> 
> I allready got it working! But anyway thanks for your replay. 
> The only thing that does not for for me are the export types
> - I can (automatically) create the links (XML Excel CVS)
> But i always get a linke to a *.jsp instead of e.g. an *.xls file.
> 
> Have you/someone also experience something like that? If so 
> how do you solved it?
> 
> 
> Thanks 
> Oliver 
> 
> 
> > I'm using Display TagLib, now for testing purposes only but ...
> > 
> > All you have to do is to prepare list of beans with getter 
> and setter
> > method, and then defining columns by property names.
> > 
> > Documentation is good, so I don't know what you expecting now.
> > 
> > Only one bug i saw till now, if "cell" value has " character in it.
> But i
> > will work with that
> > 
> > So, what kind of error you have, what you want to do ??
> > - Original Message -
> > From: "Oliver Thiel" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, February 14, 2004 11:38 AM
> > Subject: [OT] Display TagLib & Struts
> > 
> > 
> > > Hi,
> > >
> > >
> > > did anyone use the Display TagLib [www.displaytaglib.org]?
> > > And can guide my - BETTER - send me some sample code
> > > on how to use it with struts! I got the examples running in
> > > my struts app - using the provided TestList's, but as soon as
> > > I start creating my one from a resultSet I got some strange
> > > errors. So it would be nice if someone could send me some
> > > code how he/she did it!
> > >
> > >
> > > Thanks and have a nice weekend ...
> > > Oliver
> > >
> > > --
> > > GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99
> EUR/Monat...)
> > > jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
> http://www.gmx.net/derspiegel
> > +++
> > >
> > >
> > >
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > >
> > >
> --
> > > Dla tych, co chca sie zaKOCHAC... >>> http://link.interia.pl/f17c0
> > >
> > >
> > >
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -- 
> GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 
> EUR/Monat...)
> jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ 
> http://www.gmx.net/derspiegel
> +++
> 
> 
> -
> 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: FileUploading Error

2004-02-16 Thread Andrew Hill
Hmmm. Sounds rather like a browser issue to me. You might want to see what
is actually being passed in that request - if its actually a valid multipart
request or not!

I had a try in IE, but IE's file selector is too smart to allow selection of
a folder as the upload file. Which browser are you using?

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 February 2004 00:13
To: Struts Users Mailing List
Subject: Re: FileUploading Error


At 9:35 AM -0500 2/16/04, Mark Shifman wrote:
>In trying to bulletproof file uploading I noticed something odd.
>
>If I type some junk in the field for the file name and hit Submit, I get
>a file of size 0. I can deal with that.  If I type in a directory name
>in my home directory (admittedly a dumb thing to type) nothing seems to
>happen and I get this error in my log file.
>
>ERROR 2004-02-13 14:09:18,679
>handleRequest(CommonsMultipartRequestHandler.java:241)
>Failed to parse multipart request
>org.apache.commons.fileupload.FileUploadException: Processing of
>multipart/form-data request failed. Stream ended unexpectedly
>...
>
>This error seems to be thrown before it even gets to my UploadAction.
>How do I catch this and tell the user the file typed in is invalid?

In Javascript, the "value" of the form field is the path to the file;
you might be able to apply a mask validation testing for a reasonable
filename -- this is far from perfect, but may help.  I use this as a
cheap way to get around the lack of support for the "accepts"
attribute -- I test to see if the file has a "right extension" using
the mask validator.

Just one thought...

Joe

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
   "Imagine if every Thursday your shoes exploded if you tied them
the usual way.  This happens to us all the time with computers, and
nobody thinks of complaining."
 -- Jef Raskin

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

2004-02-16 Thread Joe Germuska
At 9:35 AM -0500 2/16/04, Mark Shifman wrote:
In trying to bulletproof file uploading I noticed something odd.

If I type some junk in the field for the file name and hit Submit, I get
a file of size 0. I can deal with that.  If I type in a directory name
in my home directory (admittedly a dumb thing to type) nothing seems to
happen and I get this error in my log file.
ERROR 2004-02-13 14:09:18,679 
handleRequest(CommonsMultipartRequestHandler.java:241)
Failed to parse multipart request
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Stream ended unexpectedly
...

This error seems to be thrown before it even gets to my UploadAction.
How do I catch this and tell the user the file typed in is invalid?
In Javascript, the "value" of the form field is the path to the file; 
you might be able to apply a mask validation testing for a reasonable 
filename -- this is far from perfect, but may help.  I use this as a 
cheap way to get around the lack of support for the "accepts" 
attribute -- I test to see if the file has a "right extension" using 
the mask validator.

Just one thought...

Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

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


FileUploading Error

2004-02-16 Thread Mark Shifman
In trying to bulletproof file uploading I noticed something odd.

If I type some junk in the field for the file name and hit Submit, I get
a file of size 0. I can deal with that.  If I type in a directory name
in my home directory (admittedly a dumb thing to type) nothing seems to
happen and I get this error in my log file.
ERROR 2004-02-13 14:09:18,679 handleRequest(CommonsMultipartRequestHandler.java:241)
Failed to parse multipart request
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Stream ended unexpectedly
...
This error seems to be thrown before it even gets to my UploadAction.
How do I catch this and tell the user the file typed in is invalid?
--
  [EMAIL PROTECTED]


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


Reset button not working properly when page contains error

2004-02-16 Thread Marco Mistroni
Hi all,
I have a form which contains a reset button () and
whenever I submit the form and got errors from Action class, it seems
that
the reset button does not work properly, since when I click on it it
does
not reset anything.. no matter if I specify my own custom javascript
method

anyone can help?

Thanx in advance and regards
Marco




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

Error Start Tag Exception

2004-02-15 Thread Betty Koon
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(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.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.Standar

Re: PropertyDescriptor: internal error while merging PDs: with jdk1.4

2004-02-12 Thread Anand Stephen

This error was as one of the classes in the project had a mismatch between
the field type and return for the getter.

What's interesting is that the error was not caused when run with jdk1.3.

thank you,
--a


- Original Message - 
From: "Anand Stephen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Saturday, February 07, 2004 11:36 AM
Subject: Re: PropertyDescriptor: internal error while merging PDs: with
jdk1.4


> Greetings,
> Has anyone had success running web app using struts 1.1 with java version
> "1.4.2_01" and resin 2.1.4
>
> thank you again.
> -- a,
>
>
> - Original Message - 
> From: "Anand Stephen" <[EMAIL PROTECTED]>
> To: "Struts-User" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Friday, February 06, 2004 8:03 PM
> Subject: PropertyDescriptor: internal error while merging PDs: with jdk1.4
>
>
> > Greetings,
> >
> > I get the following error when I run a web app with:
> >
> >
> > java version "1.4.2_01"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
> > Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
> >
> > It works without any problems with:
> >
> > java version "1.3.1_02"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
> > Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
> >
> > OS: Win XP professional.
> > Server: Resin 2.1.4
> >
> >
> > Thank you,
> > --a
> >
> >
> >
> >
> >  Error -
> > 500 Servlet Exception
> > java.lang.Error: PropertyDescriptor: internal error while merging PDs:
> > type mismatch between read and write methods
> > at
> > java.beans.PropertyDescriptor.(PropertyDescriptor.java:343)
> > at
> > java.beans.Introspector.processPropertyDescriptors(Introspector.java:649
> > )
> > at
> > java.beans.Introspector.getTargetPropertyInfo(Introspector.java:572)
> > at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Proper
> > tyUtils.java:949)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Proper
> > tyUtils.java:979)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
> > yUtils.java:887)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUti
> > ls.java:1172)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUti
> > ls.java:772)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.jav
> > a:801)
> > at
> > org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:717)
> > at
> > org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:289)
> > at
> > _admin._site._products._productstab__jsp._jspService(/admin/site/product
> > s/productstab.jsp:173)
> > at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
> > at com.caucho.jsp.Page.subservice(Page.java:485)
> > at
> > com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182
> > )
> > at
> > com.caucho.server.http.Invocation.service(Invocation.java:312)
> > at
> > com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
> > at
> > com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
> > a:213)
> > at
> > com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
> > a:100)
> > at
> > com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
> > a:77)
> > at
> > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
> > a:1033)
> > at
> > org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
> > essor.java:268)
> > at
> > org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
> > ocessor.java:436)
> > at
> > org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
> > RequestProcessor.java:311)
> > at
> > org.apache.struts.action.RequestProcessor.processActionForward(RequestPr
> > ocessor.java:401)
> > at
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> > 279)
> > at
> > org.apache.struts.action.ActionServlet.process(ActionS

Re: No getter method available for property - error

2004-02-12 Thread James Mitchell
Change them to public methods.


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: "Samyukta Akunuru" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 12, 2004 1:21 PM
Subject: No getter method available for property - error


Hi,

My error:
javax.servlet.jsp.JspException: No getter method available for property ids
for bean under name org.apache.struts.taglib.html.BEAN
at
org.apache.struts.taglib.html.MultiboxTag.doEndTag(MultiboxTag.java:247)

I do have a getter in my form bean:
private String[] ids;
private String[] getIds() {
return this.ids;
}

private void setIds(String[] ids) {
this.ids = ids;
}

Let me know

Best Regards,
Samyukta

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



No getter method available for property - error

2004-02-12 Thread Samyukta Akunuru
Hi,

My error:
javax.servlet.jsp.JspException: No getter method available for property ids for bean 
under name org.apache.struts.taglib.html.BEAN
at org.apache.struts.taglib.html.MultiboxTag.doEndTag(MultiboxTag.java:247)

I do have a getter in my form bean:
private String[] ids;
private String[] getIds() {
return this.ids;
}

private void setIds(String[] ids) {
this.ids = ids;
}

Let me know

Best Regards,
Samyukta 

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



Validation Error messages.

2004-02-11 Thread Vijay . Kukreja
Hello All,

I am using validation framework for the validations on the page. 
When i click on submit button, it shows me the validations(required 
messages) which are required, That's what it is suppose to do. But 
unfortunately after clicking on the ok button on the javascript popup 
window. The cursor is not going to the first required field on the 
page(form). Am i missing anything ? Actually cursor is not going anywhere.

Can someone please help.

Thanks in advance,

Vijay.

Tomcat5.0.18 with Struts1.1 example: zip file closed error?

2004-02-09 Thread Steve Hill
Has anyone had problems getting the Struts1.1example to work with Tomcat
5.0.18? I have been getting the following errors (only first 2 lines each
shown here, for abbreviation - entire error message at bottom):

exception:
org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)

root cause:
java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)

Searching previous archives show there was a Sun-confirmed similar bug in an
earlier version with Tomcat 4, but if someone has these two versions
coexisting, then let me know as it is then probably something local that I
need to chase down. The whole error message is below:

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

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
 at java.util.jar.JarFile.getEntry(JarFile.java:181)
 at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96)
 at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
va:108)
 at java.net.URL.openStream(URL.java:798)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:714)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:696)
 at
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass
Loader.java:1202)
 at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown Source)
 at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
 at javax.xml.parsers.FactoryFinder.find(Unknown Source)
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12
9)
 at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:112)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:213)
 at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:229)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



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



Re: PropertyDescriptor: internal error while merging PDs: with jdk1.4

2004-02-07 Thread Anand Stephen
Greetings,
Has anyone had success running web app using struts 1.1 with java version
"1.4.2_01" and resin 2.1.4

thank you again.
-- a,


- Original Message - 
From: "Anand Stephen" <[EMAIL PROTECTED]>
To: "Struts-User" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 8:03 PM
Subject: PropertyDescriptor: internal error while merging PDs: with jdk1.4


> Greetings,
>
> I get the following error when I run a web app with:
>
>
> java version "1.4.2_01"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
> Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
>
> It works without any problems with:
>
> java version "1.3.1_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
> Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
>
> OS: Win XP professional.
> Server: Resin 2.1.4
>
>
> Thank you,
> --a
>
>
>
>
>  Error -
> 500 Servlet Exception
> java.lang.Error: PropertyDescriptor: internal error while merging PDs:
> type mismatch between read and write methods
> at
> java.beans.PropertyDescriptor.(PropertyDescriptor.java:343)
> at
> java.beans.Introspector.processPropertyDescriptors(Introspector.java:649
> )
> at
> java.beans.Introspector.getTargetPropertyInfo(Introspector.java:572)
> at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> at
> org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Proper
> tyUtils.java:949)
> at
> org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Proper
> tyUtils.java:979)
> at
> org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
> yUtils.java:887)
> at
> org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUti
> ls.java:1172)
> at
> org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUti
> ls.java:772)
> at
> org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.jav
> a:801)
> at
> org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:717)
> at
> org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:289)
> at
> _admin._site._products._productstab__jsp._jspService(/admin/site/product
> s/productstab.jsp:173)
> at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
> at com.caucho.jsp.Page.subservice(Page.java:485)
> at
> com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182
> )
> at
> com.caucho.server.http.Invocation.service(Invocation.java:312)
> at
> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
> at
> com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
> a:213)
> at
> com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
> a:100)
> at
> com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
> a:77)
> at
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
> a:1033)
> at
> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
> essor.java:268)
> at
> org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
> ocessor.java:436)
> at
> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
> RequestProcessor.java:311)
> at
> org.apache.struts.action.RequestProcessor.processActionForward(RequestPr
> ocessor.java:401)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 279)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1393)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
> at
> com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.ja
> va:96)
> at
> com.marketlive.admin.logon.AdminAccessFilter.doFilter(AdminAccessFilter.
> java:72)
> at
> com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
> :88)
> at
> com.caucho.server.http.Invocation.service(Invocation.java:312)
> at
> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
> at
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221)
> at
> com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163
> )
> at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
> at java.lang.Thread.run(Thread.java:534)
>
>
>
> -
> 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]



PropertyDescriptor: internal error while merging PDs: with jdk1.4

2004-02-06 Thread Anand Stephen
Greetings,

I get the following error when I run a web app with:


java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)

It works without any problems with:

java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

OS: Win XP professional.
Server: Resin 2.1.4


Thank you,
--a 




 Error -
500 Servlet Exception
java.lang.Error: PropertyDescriptor: internal error while merging PDs:
type mismatch between read and write methods
at
java.beans.PropertyDescriptor.(PropertyDescriptor.java:343)
at
java.beans.Introspector.processPropertyDescriptors(Introspector.java:649
)
at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:572)
at java.beans.Introspector.getBeanInfo(Introspector.java:372)
at java.beans.Introspector.getBeanInfo(Introspector.java:144)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Proper
tyUtils.java:949)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Proper
tyUtils.java:979)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
yUtils.java:887)
at
org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUti
ls.java:1172)
at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUti
ls.java:772)
at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.jav
a:801)
at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:717)
at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:289)
at
_admin._site._products._productstab__jsp._jspService(/admin/site/product
s/productstab.jsp:173)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:485)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182
)
at
com.caucho.server.http.Invocation.service(Invocation.java:312)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
a:213)
at
com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
a:100)
at
com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
a:77)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1033)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
essor.java:268)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:436)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
RequestProcessor.java:311)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestPr
ocessor.java:401)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1393)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.ja
va:96)
at
com.marketlive.admin.logon.AdminAccessFilter.doFilter(AdminAccessFilter.
java:72)
at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
at
com.caucho.server.http.Invocation.service(Invocation.java:312)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:534)



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



[OT] Tomcat 5 + j_security_check + login-error-page

2004-02-06 Thread Ronald Rotteveel
Hello everybody,

I am porting my application from Tomcat 4.1.29 to Tomcat 5.0.18.

I have a Struts ForwardAction mapped to "/Login.do" that produces the page
with login form.
Form based authentication is set with the following fragment of the
deployment descriptor:


FORM

/Login.do
/Login.do?error=true



When the servlet is called with "?error=true" query string it displays
additional warning besides the login form.

It was working perfectly in Tomcat 4.1.29 but it works in Tomcat 5.0.18 only
in half:

When user tries to access protected page he is presented with login page. If
he enters valid login/password then he receives access to the resourse.

But if the user enters invalid login/password then instead of
form-error-page Tomcat displays the right page, but within the uri it says
"j_security_check" instead of /Login.do?error=true.


I have tried to set up AccessLogValve and RequestDumpValve and to set debug
attribute on every element in servlet.xml and my context.xml (where
applicable) in order to try to understand what is going on inside Tomcat 5,
but no luck so far - request damp just shows that 1) there was request to
protected resourse 2) Tomcat returned form-login-page 3) user sent it back
with invalid login/password 4) Tomcat returned to j_security_check.

I had expected that there should be output from Realm between 3) and 4) but
there is not.

So, at the moment the conclusion is that the code that worked perfectly in
Tomcat 4.1.29 doesn 't work in Tomcat 5.0.18 and i don 't know why but i
would
be delighted if somebody will help me to find this out :)

Thanks in advance!


Cheers,

Ronald


-
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 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: Validator-How to put the fields value in the resulting error message?

2004-02-03 Thread hgosper
I think you have to do this in code in your form's validate method.

errors.add(new ActionError("errors.email"), emailAddress);

I could be wrong but this is the way that I do it anyway... I'm not sure 
if the struts validator can do this using an expression like you have 
tried to do. 

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.






"David Erickson" <[EMAIL PROTECTED]>
04/02/2004 10:56 AM
Please respond to "Struts Users Mailing List"

 
To: "Struts Mailing List" <[EMAIL PROTECTED]>
cc: 
Subject:    Validator-How to put the fields value in the resulting error 
message?


Hey all, still new with the validator.. I'm using the emailAddress 
validator
and I just want it to put the value of the field in the error message if 
its
not valid.. ie:
blah!blah.com is not a valid email address.

however I can't seem to make that happen.. here's what I've tried:
















and in my properties file

errors.email={0} is an invalid e-mail address.



Thanks,

David


-
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





Validator-How to put the fields value in the resulting error message?

2004-02-03 Thread David Erickson
Hey all, still new with the validator.. I'm using the emailAddress validator
and I just want it to put the value of the field in the error message if its
not valid.. ie:
blah!blah.com is not a valid email address.

however I can't seem to make that happen.. here's what I've tried:
















and in my properties file

errors.email={0} is an invalid e-mail address.



Thanks,

David


-
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 

error- no getter method for property of bean

2004-02-03 Thread Frank Nguyen
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)


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











  
  




  

  

  



package infolink.users;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.Action;
import org.apache.torque.*;

/**
 * stocktrack.struts.action.NewUserAction class.
 * this class used by Struts Framework process the 
 * stocktrack.struts.form.NewUserForm form.
 * - method invoked by HTTP request is perform()
 * - form name is newUserForm
 * - input page is newUser.jsp
 * - scope name is request
 * - path for this action is /newuser
 *
 * struts-config declaration:
 * 
 *
 * 
 *
 * @see org.apache.struts.action.Action org.apache.struts.action.Action
 * Generated by StrutsWizard.
 */

public class GroupAction extends org.apache.struts.action.Action {
  public ActionForward perform(ActionMapping mapping, ActionForm form, 
   HttpServletRequest request, 
   HttpServletResponse response) 
   throws IOException, ServletException {
  GroupForm gf = (GroupForm) form;
  try {
Group g = Group.findGroupByName(gf.getGroupName());
if (g != null) {
  ActionErrors errors = new ActionErrors();
  errors.add(ActionErrors.GLOBAL_ERROR, 
 new ActionError("group.newgroup.duplicate.group"));
  this.saveErrors(request, errors);
  return mapping.getInputForward();
}
g = new Group();
g.

Re: Problem handling error forwards

2004-02-03 Thread Lukas Österreicher
Am 03.02.2004 10:48:10, schrieb Dirk Markert <[EMAIL PROTECTED]>:

>It's not the action recognizing the error but your addtrackForm.
>Validate is called on forwarding to your action2.

Ah, right. I was half aware of this but now that I thought of this
I found a solution:

at the end of each form validation I have:

if(!errors.isEmpty()) {
logger.debug("There has been an error, setting errors to true");
request.setAttribute("errors", "true");
}

As the equest.setAttribute("errors", "true"); command makes struts
forward to the input page I changed the form to only
validate if no errors were set. This seemed to fix it.

Thanx!

Lukas

>Hello Lukas,
>
>
>***
>
>LÖ> Hello
>
>LÖ> For some time now I have had a problem when dealing with
>LÖ> errors and the resulting different forwards:
>
>LÖ> When action3 generates an error (for instance in the form validator) and forwards
>LÖ> to action2 to deal with it (display it) but this action2 deals with errors and 
>forwards
>LÖ> to action1 then the jsp for action1 is displayed, but not the jsp for action2.
>
>LÖ> (Those three actions are a process sequence, action1 prepares a page
>LÖ> to enter some data, action2 (and form2) check that data and allow entering
>LÖ> additional data and send it to action3 where the data is saved.)
>
>LÖ> Why is this?
>
>LÖ> Here the actions for details:
>
>LÖ> 
>LÖ> LÖ>  
>LÖ> type="net.morkeleb.yarf.action.SpecifySoundDirectoryAction"
>LÖ>   name="addTracksForm"
>LÖ>   scope="request"
>LÖ>   validate="false"
>LÖ>   input=".specifysounddir">
>LÖ>   
>LÖ>   
>LÖ> 
>
>LÖ> 
>LÖ> LÖ>   type="net.morkeleb.yarf.action.ListAddTracksAction"
>LÖ>   name="addTracksForm"
>LÖ>   scope="request"
>LÖ>   validate="true"
>LÖ>   input=".specifysounddir">
>LÖ>   
>LÖ>   
>LÖ> 
>
>LÖ> 
>LÖ> LÖ>   type="net.morkeleb.yarf.action.AddTracksAction"
>LÖ>   name="addTracksForm"
>LÖ>   scope="request"
>LÖ>   validate="true"
>LÖ>   input="/listaddtracks.do">
>LÖ>   
>LÖ>   
>LÖ> 
>LÖ>   
>
>LÖ> As you see action3 (addtracks) forwards to /listaddtracks.do
>LÖ> (it has to be the action because data the avaiable tracks
>LÖ> have to be prepared for display). If it would forward to the
>LÖ> .listaddtracks tile the error would be correctly displayed
>LÖ> in action2 but the avaiable tracks would not be prepared.
>
>LÖ> As addtracks forwards to listaddtracks with an error
>LÖ> (only when it occours ofcourse) listaddtracks somehow
>LÖ> recognizes that existing error and thinks: we have an
>It's not the action recognizing the error but your addtrackForm.
>Validate is called on forwarding to your action2.
>LÖ> error, so I have to forward to .specifysounddir to
>LÖ> display it.
>
>LÖ> Can you help me on this?
>
>LÖ> Regards,
>LÖ> Lukas Österreicher
>
>
>
>LÖ> -
>LÖ> To unsubscribe, e-mail: [EMAIL PROTECTED]
>LÖ> For additional commands, e-mail:
>LÖ> [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]
>
>
>




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



Re: Problem handling error forwards

2004-02-03 Thread Dirk Markert
Hello Lukas,


***

LÖ> Hello

LÖ> For some time now I have had a problem when dealing with
LÖ> errors and the resulting different forwards:

LÖ> When action3 generates an error (for instance in the form validator) and forwards
LÖ> to action2 to deal with it (display it) but this action2 deals with errors and 
forwards
LÖ> to action1 then the jsp for action1 is displayed, but not the jsp for action2.

LÖ> (Those three actions are a process sequence, action1 prepares a page
LÖ> to enter some data, action2 (and form2) check that data and allow entering
LÖ> additional data and send it to action3 where the data is saved.)

LÖ> Why is this?

LÖ> Here the actions for details:

LÖ> 
LÖ>   
LÖ> type="net.morkeleb.yarf.action.SpecifySoundDirectoryAction"
LÖ>   name="addTracksForm"
LÖ>   scope="request"
LÖ>   validate="false"
LÖ>   input=".specifysounddir">
LÖ>   
LÖ>   
LÖ> 

LÖ> 
LÖ>type="net.morkeleb.yarf.action.ListAddTracksAction"
LÖ>   name="addTracksForm"
LÖ>   scope="request"
LÖ>   validate="true"
LÖ>   input=".specifysounddir">
LÖ>   
LÖ>   
LÖ> 

LÖ> 
LÖ>type="net.morkeleb.yarf.action.AddTracksAction"
LÖ>   name="addTracksForm"
LÖ>   scope="request"
LÖ>   validate="true"
LÖ>   input="/listaddtracks.do">
LÖ>   
LÖ>   
LÖ> 
LÖ>   

LÖ> As you see action3 (addtracks) forwards to /listaddtracks.do
LÖ> (it has to be the action because data the avaiable tracks
LÖ> have to be prepared for display). If it would forward to the
LÖ> .listaddtracks tile the error would be correctly displayed
LÖ> in action2 but the avaiable tracks would not be prepared.

LÖ> As addtracks forwards to listaddtracks with an error
LÖ> (only when it occours ofcourse) listaddtracks somehow
LÖ> recognizes that existing error and thinks: we have an
It's not the action recognizing the error but your addtrackForm.
Validate is called on forwarding to your action2.
LÖ> error, so I have to forward to .specifysounddir to
LÖ> display it.

LÖ> Can you help me on this?

LÖ> Regards,
LÖ> Lukas Österreicher



LÖ> -
LÖ> To unsubscribe, e-mail: [EMAIL PROTECTED]
LÖ> For additional commands, e-mail:
LÖ> [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]



Problem handling error forwards

2004-02-03 Thread Lukas Österreicher
Hello

For some time now I have had a problem when dealing with errors and the resulting 
different forwards:

When action3 generates an error (for instance in the form validator) and forwards
to action2 to deal with it (display it) but this action2 deals with errors and forwards
to action1 then the jsp for action1 is displayed, but not the jsp for action2.

(Those three actions are a process sequence, action1 prepares a page
to enter some data, action2 (and form2) check that data and allow entering
additional data and send it to action3 where the data is saved.)

Why is this?

Here the actions for details:



  
  




  
  




  
  

  

As you see action3 (addtracks) forwards to /listaddtracks.do
(it has to be the action because data the avaiable tracks
have to be prepared for display). If it would forward to the
.listaddtracks tile the error would be correctly displayed
in action2 but the avaiable tracks would not be prepared.

As addtracks forwards to listaddtracks with an error
(only when it occours ofcourse) listaddtracks somehow
recognizes that existing error and thinks: we have an
error, so I have to forward to .specifysounddir to
display it.

Can you help me on this?

Regards,
Lukas Österreicher



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



  1   2   3   4   5   6   7   8   9   10   >