Hello

2004-02-03 Thread matt


[Filename: message.zip, Content-Type: application/octet-stream]
The file that was attached to this message has been removed by the mail gateway filter 
because it is not permitted by the security policy or may contain a virus.

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

Hello .. Struts examples

2003-11-20 Thread tim duch
Hello ,

I am very new to the struts, Where can i find very
simple examples on struts, 

any pointer will be very helpful..

-Tim

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



Re: Hello .. Struts examples

2003-11-20 Thread Sergey Smirnov
This is a good start point:
http://jakarta.apache.org/struts/resources/tutorials.html

tim duch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello ,

 I am very new to the struts, Where can i find very
 simple examples on struts,

 any pointer will be very helpful..

 -Tim

 __
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now
 http://companion.yahoo.com/




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



Re: Hello World gone wrong

2003-11-17 Thread Adam Hardy
Hi Richard,
simply put, struts is not initializing the message resources until you 
call an action mapping. Since you go straight to hello.jsp direct, 
struts bean taglib doesn't have the resource bundle available.

See the output log below that comes at the point when I call 'hello.do', 
an action forward I configured in the struts-config to forward via 
struts action servlet to hello.jsp.

  action-mappings
actionpath=/hello
forward=/helloworld.jsp
/action
  /action-mappings
You can see from the output log that struts is setting up the bundles 
for itself and for your app when you go through struts for the first time.

HTH
Adam
PS you need at least commons-beanutils and commons-digester in your lib 
as well as struts.jar.

On 11/15/2003 09:12 AM Richard Morris wrote:
I have tried a couple of other things trying to figure out why I can't 
get this simple application to work correctly.  As you have generously 
asked, I have attached the application in a jar file and the server.xml 
file I have used.
 
Here is the exception from the log that I am receiving under the Tomcat 
5 configuration:
 
javax.servlet.jsp.JspException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
 at 
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103)
 at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
 at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.init(): 
Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.init(): 
Initializing, config='org.apache.struts.action.ActionResources', 
returnNull=true
FINE 11:49:13 org.apache.struts.action.ActionServlet.initServlet(): 
Scanning web.xml for controller servlet mapping
FINE 11:49:13 
org.apache.struts.action.ActionServlet.addServletMapping(): Process 
servletName=action, urlPattern=*.do
FINE 11:49:13 org.apache.struts.action.ActionServlet.initServlet(): 
Mapping for servlet 'action' = '*.do'
FINE 11:49:13 org.apache.struts.action.ActionServlet.initModuleConfig(): 
Initializing module path '' configuration from '/WEB-INF/struts-config.xml'
FINE 11:49:13 
org.apache.struts.action.ActionServlet.initModuleMessageResources(): 
Initializing module path '' message resources from 
'HelloWorldMessageResources'
INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.init(): 
Initializing, config='HelloWorldMessageResources', returnNull=true
FINE 11:49:13 
org.apache.struts.action.ActionServlet.initModuleDataSources(): 
Initializing module path '' data sources
FINE 11:49:13 
org.apache.struts.action.ActionServlet.initModulePlugIns(): Initializing 
module path '' plug ins
FINE 11:49:13 org.apache.struts.util.RequestUtils.getModuleName(): Get 
module name for path /hello.do
FINE 11:49:13 org.apache.struts.util.RequestUtils.getModuleName(): 
Module name found: default
FINE 11:49:13 org.apache.struts.action.RequestProcessor.process(): 
Processing a 'GET' for path '/hello'
FINE 11:49:13 
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(): 
 Delegating via forward to '/hello.jsp'
INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.init(): 
Initializing, config='org.apache.struts.taglib.html.LocalStrings', 
returnNull=true
INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.init(): 
Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.init(): 
Initializing, config='org.apache.struts.taglib.bean.LocalStrings', 
returnNull=true
FINE 11:49:13 
org.apache.struts.util.PropertyMessageResources.getMessage(): 
getMessage(en,title.helloworld)
FINEST 11:49:13 
org.apache.struts.util.PropertyMessageResources.loadLocale(): loadLocale(en)
FINEST 11:49:13 
org.apache.struts.util.PropertyMessageResources.loadLocale():   Loading 
resource 'HelloWorldMessageResources_en.properties'
FINEST 11:49:14 
org.apache.struts.util.PropertyMessageResources.loadLocale():   Loading 
resource completed
FINEST 11:49:14 
org.apache.struts.util.PropertyMessageResources.loadLocale(): 
loadLocale(en_US)
FINEST 11:49:14 
org.apache.struts.util.PropertyMessageResources.loadLocale():   Loading 
resource 'HelloWorldMessageResources_en_US.properties'
FINEST 11:49:14 
org.apache.struts.util.PropertyMessageResources.loadLocale():   Loading 
resource completed
FINEST 11:49:14 
org.apache.struts.util.PropertyMessageResources.loadLocale(): loadLocale()
FINEST 11:49:14 
org.apache.struts.util.PropertyMessageResources.loadLocale():   Loading 
resource 'HelloWorldMessageResources.properties'
FINEST 11:49:14 
org.apache.struts.util.PropertyMessageResources.loadLocale():   Loading 
resource completed
FINEST 11:49:14 
org.apache.struts.util.PropertyMessageResources.loadLocale():   Saving 
message key '.title.helloworld
FINEST 11:49:14

Hello Basic Question.

2003-11-14 Thread tim duch
Hello ,

I want to try out a very samll example of Struts 
I tried some stuff but seems not working ..

can any Struts Guru point out wat are the basic req.
to develope the web application using Struts ..


How the directory arraged.
and what all will be the req. 

please let me know ..

regards
-Tim80

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



RE: Hello Basic Question.

2003-11-14 Thread Nguyen, Hien
Tim,

There is an examples.war application that comes with Tomcat and a
struts-blank.war that comes with Struts that you can play with.  Drop those
.war files in the webapps directory of tomcat and they will be deployed.
You'll see the exploded directory structure of each .war app.

If you just want to see what's in side the .war file without deploying it, I
think you can do 'jar -tvf struts-blank.war'.

Have fun!
--Hien

-Original Message-
From: tim duch [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 14, 2003 8:01 AM
To: [EMAIL PROTECTED]
Subject: Hello Basic Question.


Hello ,

I want to try out a very samll example of Struts 
I tried some stuff but seems not working ..

can any Struts Guru point out wat are the basic req.
to develope the web application using Struts ..


How the directory arraged.
and what all will be the req. 

please let me know ..

regards
-Tim80

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-
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: Hello Basic Question.

2003-11-14 Thread Ramadoss Chinnakuzhandai
Hi Tim,
 Following are the easy steps to develop web app using Struts

You also might want to try out my newbie walk throughs 
at http://www.reumann.net/do/struts/main

I created those lessons because when I was learning nothing was out 
there like it (baby step by step stuff:). Let me know if you find 
them helpful.

-Million Tnx to Rick Reumann

Hope this help you,

-Ram



-Original Message-
From: tim duch [mailto:[EMAIL PROTECTED]
Sent: Friday, November 14, 2003 8:01 AM
To: [EMAIL PROTECTED]
Subject: Hello Basic Question.


Hello ,

I want to try out a very samll example of Struts 
I tried some stuff but seems not working ..

can any Struts Guru point out wat are the basic req.
to develope the web application using Struts ..


How the directory arraged.
and what all will be the req. 

please let me know ..

regards
-Tim80

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-
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: Hello World gone wrong

2003-11-12 Thread Adam Hardy
On 11/12/2003 02:50 AM Richard Morris wrote:
Adam,

The struts.jar is located in the /WEB-INF/lib folder.  I know the struts.jar
file is working because I can use the html tags (i.e. html:html,
html:base/, etc.) without error.
I just don't know what the problem could be.  I am sure it is something
stupid but with such a simple application, you think it would be noticeable.
Anyway, thanks for the help.
If you send me the app in a JAR file and the server.xml I'll try it out 
on my machine if you like.

Adam
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hello World gone wrong

2003-11-11 Thread Adam Hardy
I also think you need to check that the struts.jar is in your WEB-INF 
directory...

On 11/11/2003 01:27 AM Yee, Richard K,,DMDCWEST wrote:
Richard,
Try using forward slashes in your docbase instead of '\'
docBase=E:/Projects/HelloWorld /
Java might otherwise interpret it as an escape char.

-Richard

-Original Message-
From: Richard Morris [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2003 4:03 PM
To: Struts Users Mailing List
Subject: Re: Hello World gone wrong

Hi Adam,

The HelloWorldMessageResources.properties file is where you have stated.  I
also tried your comment style in the properties file as well as removing all
comments and it didn't change anything.  I have also removed the application
init-param from the web.xml file.
As for the webapp DTD version, you are right about that.  I had the wrong
DTD in there and so modified it.  Here are the DTDs I am using for both the
web.xml and struts-config.xml files:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
 http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
?xml version=1.0 encoding=UTF-8?
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 1.1//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;

As for the versions of tomcat and struts, I am using struts 1.1 (the one
currently available for download from their web site).  As for the tomcat
versions, I have tried to run them under the following configurations:
   Tomcat Version: Apache Tomcat/4.1.29
   JVM Version: 1.4.2_02-b03
   JVM Vendor: Sun Microsystems Inc.
   OS Name: Windows XP (Pro)
   OS Version: 5.1
   OS Architecture: x86
and
   Tomcat Version: Apache Tomcat/4.1.27
   JVM Version: 1.4.2_01-b06
   JVM Vendor: Sun Microsystems Inc.
   OS Name: Linux (Red Hat 9)
   OS Version: 2.4.20-8smp
   OS Architecture: i386
You are right about it being a simple app.  I started with just a JSP page
with plain html, then I added the html taglib.  Everything worked fine but
when I tried to use the bean taglib to use resource bundles, that's when I
got this error.
Would there be any changes that I would need to make to the tomcat
server.xml configuration file to get this to work?  I am just using the
default configuration file with the added Context path=/HelloWorld
reloadable=true docBase=E:\Projects\HelloWorld /.
Anyway, thanks for whatever help you can send my way.

Richard Morris
[EMAIL PROTECTED]
- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 10, 2003 2:01 PM
Subject: Re: Hello World gone wrong



Hi Richard, you don't need to package it. I have never packaged a 
resources file or put it in a jar seperately. According to your 
config, it's in the right place, something like

e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties

right? The error must lie elsewhere.

I can't see why. Your app is so simple, it's got to be a gotcha.

Perhaps the comments in the file are not allowed - I always use
/* comment */
Also, that action servlet parameter 'application' is deprecated, I 
think.

You could put this in the struts-config message-resources node:

factory=org.apache.struts.util.PropertyMessageResourcesFactory

BTW what version of struts and tomcat are you using? I see you've got 
a reference to the webapp_2.2 dtd in your web.xml. I don't suppose you 
can upgrade to at least have a servlet 2.3 container?

Adam

On 11/10/2003 09:49 PM Richard Morris wrote:

I do have the properties file located in the /WEB-INF/classes 
directory. When I couldn't get it to work using this method, I tried 
putting the properties into a package and then jar'ed it and put the 
jar in the /WEB-INF/lib directory.  It still couldn't find the 
properties file.

I am using the default tomcat configuration with the following
server.xml

addition:
Context path=/HelloWorld reloadable=true 
docBase=E:\Projects\HelloWorld /

- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
On 11/10/2003 04:48 AM Richard Morris wrote:

org.apache.jasper.JasperException:
Cannot find message resources under key
org.apache.struts.action.MESSAGE

Here is the struts-config.xml file:
struts-config
message-resources parameter=HelloWorldMessageResources
null=false/

/struts-config

---
--
Here is the web.xml file:
servlet
  servlet-namehelloworld/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class

  init-param
param-nameapplication/param-name
param-valueHelloWorldMessageResources/param-value
  /init-param
  init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
  /init-param
/servlet
---
--
Here is the HelloWorldMessageResources.properties file:
# Page Titles
title.helloworld=Hello World

Re: Hello World gone wrong

2003-11-11 Thread Richard Morris
Adam,

The struts.jar is located in the /WEB-INF/lib folder.  I know the struts.jar
file is working because I can use the html tags (i.e. html:html,
html:base/, etc.) without error.

I just don't know what the problem could be.  I am sure it is something
stupid but with such a simple application, you think it would be noticeable.

Anyway, thanks for the help.

Richard Morris
[EMAIL PROTECTED]


- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 4:28 AM
Subject: Re: Hello World gone wrong


 I also think you need to check that the struts.jar is in your WEB-INF
 directory...

 On 11/11/2003 01:27 AM Yee, Richard K,,DMDCWEST wrote:
  Richard,
  Try using forward slashes in your docbase instead of '\'
  docBase=E:/Projects/HelloWorld /
 
  Java might otherwise interpret it as an escape char.
 
  -Richard
 
 
  -Original Message-
  From: Richard Morris [mailto:[EMAIL PROTECTED]
  Sent: Monday, November 10, 2003 4:03 PM
  To: Struts Users Mailing List
  Subject: Re: Hello World gone wrong
 
 
  Hi Adam,
 
  The HelloWorldMessageResources.properties file is where you have stated.
I
  also tried your comment style in the properties file as well as removing
all
  comments and it didn't change anything.  I have also removed the
application
  init-param from the web.xml file.
 
  As for the webapp DTD version, you are right about that.  I had the
wrong
  DTD in there and so modified it.  Here are the DTDs I am using for both
the
  web.xml and struts-config.xml files:
 
  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
  2.3//EN
 
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
 
  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD
Struts
  Configuration 1.1//EN
 
  http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
 
  As for the versions of tomcat and struts, I am using struts 1.1 (the one
  currently available for download from their web site).  As for the
tomcat
  versions, I have tried to run them under the following configurations:
 
 Tomcat Version: Apache Tomcat/4.1.29
 JVM Version: 1.4.2_02-b03
 JVM Vendor: Sun Microsystems Inc.
 OS Name: Windows XP (Pro)
 OS Version: 5.1
 OS Architecture: x86
  and
 Tomcat Version: Apache Tomcat/4.1.27
 JVM Version: 1.4.2_01-b06
 JVM Vendor: Sun Microsystems Inc.
 OS Name: Linux (Red Hat 9)
 OS Version: 2.4.20-8smp
 OS Architecture: i386
 
  You are right about it being a simple app.  I started with just a JSP
page
  with plain html, then I added the html taglib.  Everything worked fine
but
  when I tried to use the bean taglib to use resource bundles, that's when
I
  got this error.
 
  Would there be any changes that I would need to make to the tomcat
  server.xml configuration file to get this to work?  I am just using the
  default configuration file with the added Context path=/HelloWorld
  reloadable=true docBase=E:\Projects\HelloWorld /.
 
  Anyway, thanks for whatever help you can send my way.
 
  Richard Morris
  [EMAIL PROTECTED]
 
 
  - Original Message - 
  From: Adam Hardy [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Monday, November 10, 2003 2:01 PM
  Subject: Re: Hello World gone wrong
 
 
 
 Hi Richard, you don't need to package it. I have never packaged a
 resources file or put it in a jar seperately. According to your
 config, it's in the right place, something like
 
 
 
e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties
 
 right? The error must lie elsewhere.
 
 I can't see why. Your app is so simple, it's got to be a gotcha.
 
 Perhaps the comments in the file are not allowed - I always use
 /* comment */
 
 Also, that action servlet parameter 'application' is deprecated, I
 think.
 
 You could put this in the struts-config message-resources node:
 
 factory=org.apache.struts.util.PropertyMessageResourcesFactory
 
 BTW what version of struts and tomcat are you using? I see you've got
 a reference to the webapp_2.2 dtd in your web.xml. I don't suppose you
 can upgrade to at least have a servlet 2.3 container?
 
 
 Adam
 
 
 On 11/10/2003 09:49 PM Richard Morris wrote:
 
 I do have the properties file located in the /WEB-INF/classes
 directory. When I couldn't get it to work using this method, I tried
 putting the properties into a package and then jar'ed it and put the
 jar in the /WEB-INF/lib directory.  It still couldn't find the
 properties file.
 
 I am using the default tomcat configuration with the following
 
  server.xml
 
 addition:
 Context path=/HelloWorld reloadable=true
 docBase=E:\Projects\HelloWorld /
 
 - Original Message -
 From: Adam Hardy [EMAIL PROTECTED]
 
 On 11/10/2003 04:48 AM Richard Morris wrote:
 
 org.apache.jasper.JasperException:
 Cannot find message resources under key

Re: Hello World gone wrong

2003-11-10 Thread Adam Hardy
On 11/10/2003 04:48 AM Richard Morris wrote:
org.apache.jasper.JasperException:
Cannot find message resources under key org.apache.struts.action.MESSAGE
Here is the struts-config.xml file:
struts-config
  message-resources parameter=HelloWorldMessageResources null=false/
/struts-config
-
Here is the web.xml file:
  servlet
servlet-namehelloworld/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueHelloWorldMessageResources/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
  /servlet
-
Here is the HelloWorldMessageResources.properties file:
# Page Titles
title.helloworld=Hello World
# Labels
label.helloworld=Hello World!
Have you got your HelloWorldMessageResources.properties file deployed in 
the WEB-INF/classes directory? That is where you have specified that it 
is, since you have given no path to such as org.myapp.HelloWorldMess...

HTH
Adam
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hello World gone wrong

2003-11-10 Thread Richard Morris
Adam,

I do have the properties file located in the /WEB-INF/classes directory.
When I couldn't get it to work using this method, I tried putting the
properties into a package and then jar'ed it and put the jar in the
/WEB-INF/lib directory.  It still couldn't find the properties file.

I am using the default tomcat configuration with the following server.xml
addition:
Context path=/HelloWorld reloadable=true
docBase=E:\Projects\HelloWorld /

Richard Morris
[EMAIL PROTECTED]


- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 10, 2003 3:47 AM
Subject: Re: Hello World gone wrong


 On 11/10/2003 04:48 AM Richard Morris wrote:
  org.apache.jasper.JasperException:
  Cannot find message resources under key org.apache.struts.action.MESSAGE
 
  Here is the struts-config.xml file:
  struts-config
message-resources parameter=HelloWorldMessageResources
null=false/
  /struts-config
 
  -
  Here is the web.xml file:
servlet
  servlet-namehelloworld/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
param-nameapplication/param-name
param-valueHelloWorldMessageResources/param-value
  /init-param
  init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
  /init-param
/servlet
 
  -
  Here is the HelloWorldMessageResources.properties file:
  # Page Titles
  title.helloworld=Hello World
 
  # Labels
  label.helloworld=Hello World!

 Have you got your HelloWorldMessageResources.properties file deployed in
 the WEB-INF/classes directory? That is where you have specified that it
 is, since you have given no path to such as org.myapp.HelloWorldMess...

 HTH
 Adam

 -- 
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9


 -
 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: Hello World gone wrong

2003-11-10 Thread Adam Hardy
Hi Richard, you don't need to package it. I have never packaged a 
resources file or put it in a jar seperately. According to your config, 
it's in the right place, something like 
e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties 
right? The error must lie elsewhere.

I can't see why. Your app is so simple, it's got to be a gotcha.

Perhaps the comments in the file are not allowed - I always use
/* comment */
Also, that action servlet parameter 'application' is deprecated, I think.

You could put this in the struts-config message-resources node:

factory=org.apache.struts.util.PropertyMessageResourcesFactory

BTW what version of struts and tomcat are you using? I see you've got a 
reference to the webapp_2.2 dtd in your web.xml. I don't suppose you can 
upgrade to at least have a servlet 2.3 container?

Adam

On 11/10/2003 09:49 PM Richard Morris wrote:
I do have the properties file located in the /WEB-INF/classes directory.
When I couldn't get it to work using this method, I tried putting the
properties into a package and then jar'ed it and put the jar in the
/WEB-INF/lib directory.  It still couldn't find the properties file.
I am using the default tomcat configuration with the following server.xml
addition:
Context path=/HelloWorld reloadable=true
docBase=E:\Projects\HelloWorld /
- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
On 11/10/2003 04:48 AM Richard Morris wrote:
org.apache.jasper.JasperException:
Cannot find message resources under key org.apache.struts.action.MESSAGE
Here is the struts-config.xml file:
struts-config
 message-resources parameter=HelloWorldMessageResources
null=false/
/struts-config

-
Here is the web.xml file:
 servlet
   servlet-namehelloworld/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class

   init-param
 param-nameapplication/param-name
 param-valueHelloWorldMessageResources/param-value
   /init-param
   init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
   /init-param
 /servlet
-
Here is the HelloWorldMessageResources.properties file:
# Page Titles
title.helloworld=Hello World
# Labels
label.helloworld=Hello World!
Have you got your HelloWorldMessageResources.properties file deployed in
the WEB-INF/classes directory? That is where you have specified that it
is, since you have given no path to such as org.myapp.HelloWorldMess...


--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hello World gone wrong

2003-11-10 Thread Richard Morris
Hi Adam,

The HelloWorldMessageResources.properties file is where you have stated.  I
also tried your comment style in the properties file as well as removing all
comments and it didn't change anything.  I have also removed the application
init-param from the web.xml file.

As for the webapp DTD version, you are right about that.  I had the wrong
DTD in there and so modified it.  Here are the DTDs I am using for both the
web.xml and struts-config.xml files:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
 http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

?xml version=1.0 encoding=UTF-8?
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 1.1//EN

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

As for the versions of tomcat and struts, I am using struts 1.1 (the one
currently available for download from their web site).  As for the tomcat
versions, I have tried to run them under the following configurations:

   Tomcat Version: Apache Tomcat/4.1.29
   JVM Version: 1.4.2_02-b03
   JVM Vendor: Sun Microsystems Inc.
   OS Name: Windows XP (Pro)
   OS Version: 5.1
   OS Architecture: x86
and
   Tomcat Version: Apache Tomcat/4.1.27
   JVM Version: 1.4.2_01-b06
   JVM Vendor: Sun Microsystems Inc.
   OS Name: Linux (Red Hat 9)
   OS Version: 2.4.20-8smp
   OS Architecture: i386

You are right about it being a simple app.  I started with just a JSP page
with plain html, then I added the html taglib.  Everything worked fine but
when I tried to use the bean taglib to use resource bundles, that's when I
got this error.

Would there be any changes that I would need to make to the tomcat
server.xml configuration file to get this to work?  I am just using the
default configuration file with the added Context path=/HelloWorld
reloadable=true docBase=E:\Projects\HelloWorld /.

Anyway, thanks for whatever help you can send my way.

Richard Morris
[EMAIL PROTECTED]


- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 10, 2003 2:01 PM
Subject: Re: Hello World gone wrong


 Hi Richard, you don't need to package it. I have never packaged a
 resources file or put it in a jar seperately. According to your config,
 it's in the right place, something like

e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties
 right? The error must lie elsewhere.

 I can't see why. Your app is so simple, it's got to be a gotcha.

 Perhaps the comments in the file are not allowed - I always use
 /* comment */

 Also, that action servlet parameter 'application' is deprecated, I think.

 You could put this in the struts-config message-resources node:

 factory=org.apache.struts.util.PropertyMessageResourcesFactory

 BTW what version of struts and tomcat are you using? I see you've got a
 reference to the webapp_2.2 dtd in your web.xml. I don't suppose you can
 upgrade to at least have a servlet 2.3 container?


 Adam


 On 11/10/2003 09:49 PM Richard Morris wrote:
  I do have the properties file located in the /WEB-INF/classes directory.
  When I couldn't get it to work using this method, I tried putting the
  properties into a package and then jar'ed it and put the jar in the
  /WEB-INF/lib directory.  It still couldn't find the properties file.
 
  I am using the default tomcat configuration with the following
server.xml
  addition:
  Context path=/HelloWorld reloadable=true
  docBase=E:\Projects\HelloWorld /
 
  - Original Message - 
  From: Adam Hardy [EMAIL PROTECTED]
 On 11/10/2003 04:48 AM Richard Morris wrote:
 org.apache.jasper.JasperException:
 Cannot find message resources under key
org.apache.struts.action.MESSAGE
 
 Here is the struts-config.xml file:
 struts-config
   message-resources parameter=HelloWorldMessageResources
  null=false/
 /struts-config
 
 -
 Here is the web.xml file:
   servlet
 servlet-namehelloworld/servlet-name
 
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 
 init-param
   param-nameapplication/param-name
   param-valueHelloWorldMessageResources/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
   /servlet
 
 -
 Here is the HelloWorldMessageResources.properties file:
 # Page Titles
 title.helloworld=Hello World
 
 # Labels
 label.helloworld=Hello World!
 
 Have you got your HelloWorldMessageResources.properties file deployed in
 the WEB-INF/classes directory? That is where you have specified that it
 is, since you have given no path to such as org.myapp.HelloWorldMess...


 -- 
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9

RE: Hello World gone wrong

2003-11-10 Thread Yee, Richard K,,DMDCWEST
Richard,
Try using forward slashes in your docbase instead of '\'
docBase=E:/Projects/HelloWorld /

Java might otherwise interpret it as an escape char.

-Richard


-Original Message-
From: Richard Morris [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2003 4:03 PM
To: Struts Users Mailing List
Subject: Re: Hello World gone wrong


Hi Adam,

The HelloWorldMessageResources.properties file is where you have stated.  I
also tried your comment style in the properties file as well as removing all
comments and it didn't change anything.  I have also removed the application
init-param from the web.xml file.

As for the webapp DTD version, you are right about that.  I had the wrong
DTD in there and so modified it.  Here are the DTDs I am using for both the
web.xml and struts-config.xml files:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
 http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

?xml version=1.0 encoding=UTF-8?
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 1.1//EN

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

As for the versions of tomcat and struts, I am using struts 1.1 (the one
currently available for download from their web site).  As for the tomcat
versions, I have tried to run them under the following configurations:

   Tomcat Version: Apache Tomcat/4.1.29
   JVM Version: 1.4.2_02-b03
   JVM Vendor: Sun Microsystems Inc.
   OS Name: Windows XP (Pro)
   OS Version: 5.1
   OS Architecture: x86
and
   Tomcat Version: Apache Tomcat/4.1.27
   JVM Version: 1.4.2_01-b06
   JVM Vendor: Sun Microsystems Inc.
   OS Name: Linux (Red Hat 9)
   OS Version: 2.4.20-8smp
   OS Architecture: i386

You are right about it being a simple app.  I started with just a JSP page
with plain html, then I added the html taglib.  Everything worked fine but
when I tried to use the bean taglib to use resource bundles, that's when I
got this error.

Would there be any changes that I would need to make to the tomcat
server.xml configuration file to get this to work?  I am just using the
default configuration file with the added Context path=/HelloWorld
reloadable=true docBase=E:\Projects\HelloWorld /.

Anyway, thanks for whatever help you can send my way.

Richard Morris
[EMAIL PROTECTED]


- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 10, 2003 2:01 PM
Subject: Re: Hello World gone wrong


 Hi Richard, you don't need to package it. I have never packaged a 
 resources file or put it in a jar seperately. According to your 
 config, it's in the right place, something like

e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties
 right? The error must lie elsewhere.

 I can't see why. Your app is so simple, it's got to be a gotcha.

 Perhaps the comments in the file are not allowed - I always use
 /* comment */

 Also, that action servlet parameter 'application' is deprecated, I 
 think.

 You could put this in the struts-config message-resources node:

 factory=org.apache.struts.util.PropertyMessageResourcesFactory

 BTW what version of struts and tomcat are you using? I see you've got 
 a reference to the webapp_2.2 dtd in your web.xml. I don't suppose you 
 can upgrade to at least have a servlet 2.3 container?


 Adam


 On 11/10/2003 09:49 PM Richard Morris wrote:
  I do have the properties file located in the /WEB-INF/classes 
  directory. When I couldn't get it to work using this method, I tried 
  putting the properties into a package and then jar'ed it and put the 
  jar in the /WEB-INF/lib directory.  It still couldn't find the 
  properties file.
 
  I am using the default tomcat configuration with the following
server.xml
  addition:
  Context path=/HelloWorld reloadable=true 
  docBase=E:\Projects\HelloWorld /
 
  - Original Message -
  From: Adam Hardy [EMAIL PROTECTED]
 On 11/10/2003 04:48 AM Richard Morris wrote:
 org.apache.jasper.JasperException:
 Cannot find message resources under key
org.apache.struts.action.MESSAGE
 
 Here is the struts-config.xml file:
 struts-config
   message-resources parameter=HelloWorldMessageResources
  null=false/
 /struts-config
 
 ---
 --
 Here is the web.xml file:
   servlet
 servlet-namehelloworld/servlet-name
 
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  
 
 init-param
   param-nameapplication/param-name
   param-valueHelloWorldMessageResources/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
   /servlet
 
 ---
 --
 Here is the HelloWorldMessageResources.properties file:
 # Page Titles
 title.helloworld=Hello World
 
 # Labels

Hello World gone wrong

2003-11-09 Thread Richard Morris
Hi,

I was wondering if someone could help me with this problem that I have.
I am trying to get a simple Hello World struts application to run and I
keep getting this error:

org.apache.jasper.JasperException:
Cannot find message resources under key org.apache.struts.action.MESSAGE

I have tried running the web application under these two configurations:
   Tomcat Version: Apache Tomcat/4.1.29
   JVM Version: 1.4.2_02-b03
   JVM Vendor: Sun Microsystems Inc.
   OS Name: Windows XP (Pro)
   OS Versin: 5.1
   OS Architecture: x86
and
   Tomcat Version: Apache Tomcat/4.1.27
   JVM Version: 1.4.2_01-b06
   JVM Vendor: Sun Microsystems Inc.
   OS Name: Linux (Red Hat 9)
   OS Versin: 2.4.20-8smp
   OS Architecture: i386

I get the same error message under both versions.  I have tried searching
the Internet for reasons as to why this would occur.  I have tried putting
the properties file in a package and jar'ing it up and using that to
reference the resource bundle, and I received the same error message.

If I don't use the bean:message to output the keys of the resource
bundle and simply use the html:html and html:base, the output works fine.
The minute I try to use a resource bundle, then I get the error message.
It is almost as though the bean can't find the resource bundle at all.

If anyone can help me or see something that I am missing, I would
really appreciate it.

Thanks.

-
Here is the directory structure of the web application:
/hello.jsp
/WEB-INF/web.xml
/WEB-INF/struts-config.xml
/WEB-INF/classes/HelloWorldMessageResources.properties
/WEB-INF/lib/struts.jar
/WEB-INF/tlds/struts-bean.tld
/WEB-INF/tlds/struts-html.tld

-
Here is the hello.jsp file:
%@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/tlds/struts-bean.tld prefix=bean %

html:html
  head
titlebean:message key=title.helloworld//title
html:base/
  /head
  body
h1bean:message key=label.helloworld//h1
  /body
/html:html

-
Here is the struts-config.xml file:
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts-config
PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;

struts-config
  message-resources parameter=HelloWorldMessageResources null=false/
/struts-config

-
Here is the web.xml file:
?xml version=1.0?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
  display-nameHello World Application/display-name
  
  description
This application simply displays the phrase Hello World!
  /description
  
  servlet
servlet-namehelloworld/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueHelloWorldMessageResources/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
  /servlet
  
  welcome-file-list
welcome-filehello.jsp/welcome-file
  /welcome-file-list
  
  taglib
taglib-uri/WEB-INF/tlds/struts-html.tld/taglib-uri
taglib-location/WEB-INF/tlds/struts-html.tld/taglib-location
  /taglib
  taglib
taglib-uri/WEB-INF/tlds/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/tlds/struts-bean.tld/taglib-location
  /taglib
/web-app

-
Here is the HelloWorldMessageResources.properties file:
# Page Titles
title.helloworld=Hello World

# Labels
label.helloworld=Hello World!


Richard Morris
[EMAIL PROTECTED]



Hello

2003-08-14 Thread lknur Elmac

Hi Everybody,

I am new in Struts. I must learn much quickly the Struts. So do you have
example or sample about Struct which explain base architecture of
Struct.


Thanks very much for your helps.


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



Re: Hello - Digester Issue

2003-08-14 Thread Raj Atchutuni
I am using Struts w/ WSAD 5.0 for development.
 
At the start up of the home page on Orion on Unix (after deployment) 
i see enormous (could be Digester messages) debug statements,on the 
console, which causing 5-10 mins delay in displaying the page.
I dont see this problem when i am running the application in WSAD on my 
local.
 
Can i switch off these messages so that i can see the first page 
quickly ?
Thanks
Raj


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Hello

2003-08-14 Thread Mike Jasnowski
http://jakarta.apache.org/struts/userGuide/index.html 

Is a good place to start.



-Original Message-
From: Ilknur Elmaci [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 9:48 AM
To: 'Struts Users Mailing List'
Subject: Hello



Hi Everybody,

I am new in Struts. I must learn much quickly the Struts. So do you have
example or sample about Struct which explain base architecture of
Struct.


Thanks very much for your helps.


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

2003-08-14 Thread Frat TRYAK
Hi lknur,

I suggest you to visit the below url ;

http://jakarta.apache.org/struts/resources/tutorials.html

and we have a site in Turkey if you like to read turkish documents. The site
is created by struts. Wish to see you there. The link is below

http://www.j-tr.net

F.


- Original Message -
From: lknur Elmac [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, August 11, 2003 4:47 PM
Subject: Hello



 Hi Everybody,

 I am new in Struts. I must learn much quickly the Struts. So do you have
 example or sample about Struct which explain base architecture of
 Struct.


 Thanks very much for your helps.


 -
 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: Hello - Digester Issue is solved.

2003-08-14 Thread Raj Atchutuni
I need to start my Orion in -quite mode, which solved the problem.
Thanks for your attention.
Raj


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Hello

2003-08-14 Thread Bradley Handy
http://www.reumann.net/do/struts/main

Here is another good place to start.



 -Original Message-
 From: Ilknur Elmaci [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 11, 2003 9:48 AM
 To: 'Struts Users Mailing List'
 Subject: Hello
 
 
 Hi Everybody,
 
 I am new in Struts. I must learn much quickly the Struts. So do you
have
 example or sample about Struct which explain base architecture of
 Struct.
 
 
 Thanks very much for your helps.
 
 
 -
 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]



Newbie: Hello World ActionForward returns nothing

2003-03-11 Thread Simen Brekken
(NOTE: If this is reposted, I appoligize.)

It's a drop dead simple Hello World! example but after almost two days
trying to get it working I'm giving up helping some of you can make sense
out of this nightmare :)

- Jetty 4.2.8
- Struts 1.0.2
- All config files (web.xml, jetty.xml and struts.xml) have been validated
against DTDs.
- Debug and detail set to 2 in web.xml
- commons-logging in WEB-INF/classes set to one line
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog

Struts is working, as I have tried a HelloWorldStatic (using a simple
action path=/helloWorldStatic forward=/hello.jsp /) and it prints
Hello Word!

struts.xml defines a simple action with only one possible forward.

-- WEB-INF/struts.xml --
?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE struts-config PUBLIC
   -//Apache Software Foundation//DTD Struts Configuration 1.1//EN
   http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
struts-config
 action-mapping
  action path=/helloWorld type=org.foo.hellobirdy.HelloBirdyAction
   forward name=hello path=/hello.jsp /
  /action
 /action-mapping
/struts-config
-- END --

-- WEB-INF/src/org/foo/hellobirdy/HelloBirdyAction.java --
package org.foo.hellobirdy;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public final class HelloBirdyAction extends Action
{
 public ActionForward execute(
  ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws Exception
 {
  ActionForward forward = null;
  Log log = LogFactory.getLog(HelloBirdyAction.class);

  forward = mapping.findForward(hello);

  log.error(mapping: +mapping.toString());
  log.error(found forward: +forward);

  return forward;
 }
}
-- END --

Now it compiles like a charm, jsp works by putting in URL manually but:

- I get nothing in the browser
- Nothing in the container logs
- Nothing except Processing a GET for /helloWorld in STDOUT.

Hope I explained things good enough for someone to assist me, I'm going
insneee :)

___
SIMEN BREKKEN / in his prime

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



Re: Newbie: Hello World ActionForward returns nothing

2003-03-11 Thread Ashish Kulkarni
How do u call this action class??
are u loading it from jsp or html??
http://localhost:8080/yourapplicationname/helloWorld.do
should call it i guess???
Correct me if i am wrong
--- Simen Brekken [EMAIL PROTECTED] wrote:
 (NOTE: If this is reposted, I appoligize.)
 
 It's a drop dead simple Hello World! example but
 after almost two days
 trying to get it working I'm giving up helping some
 of you can make sense
 out of this nightmare :)
 
 - Jetty 4.2.8
 - Struts 1.0.2
 - All config files (web.xml, jetty.xml and
 struts.xml) have been validated
 against DTDs.
 - Debug and detail set to 2 in web.xml
 - commons-logging in WEB-INF/classes set to one line

org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
 
 Struts is working, as I have tried a
 HelloWorldStatic (using a simple
 action path=/helloWorldStatic
 forward=/hello.jsp /) and it prints
 Hello Word!
 
 struts.xml defines a simple action with only one
 possible forward.
 
 -- WEB-INF/struts.xml --
 ?xml version=1.0 encoding=ISO-8859-1 ?
  !DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts
 Configuration 1.1//EN
   

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
 struts-config
  action-mapping
   action path=/helloWorld
 type=org.foo.hellobirdy.HelloBirdyAction
forward name=hello path=/hello.jsp /
   /action
  /action-mapping
 /struts-config
 -- END --
 
 --
 WEB-INF/src/org/foo/hellobirdy/HelloBirdyAction.java
 --
 package org.foo.hellobirdy;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.struts.action.Action;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionForward;
 import org.apache.struts.action.ActionMapping;
 
 public final class HelloBirdyAction extends Action
 {
  public ActionForward execute(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws Exception
  {
   ActionForward forward = null;
   Log log =
 LogFactory.getLog(HelloBirdyAction.class);
 
   forward = mapping.findForward(hello);
 
   log.error(mapping: +mapping.toString());
   log.error(found forward: +forward);
 
   return forward;
  }
 }
 -- END --
 
 Now it compiles like a charm, jsp works by putting
 in URL manually but:
 
 - I get nothing in the browser
 - Nothing in the container logs
 - Nothing except Processing a GET for /helloWorld
 in STDOUT.
 
 Hope I explained things good enough for someone to
 assist me, I'm going
 insneee :)
 
 ___
 SIMEN BREKKEN / in his prime
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



Re: Newbie: Hello World ActionForward returns nothing

2003-03-11 Thread Simen Brekken
Yes, with that syntax naturally

- Original Message -
From: Ashish Kulkarni [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 10:39 PM
Subject: Re: Newbie: Hello World ActionForward returns nothing


 How do u call this action class??
 are u loading it from jsp or html??
 http://localhost:8080/yourapplicationname/helloWorld.do
 should call it i guess???
 Correct me if i am wrong
 --- Simen Brekken [EMAIL PROTECTED] wrote:
  (NOTE: If this is reposted, I appoligize.)
 
  It's a drop dead simple Hello World! example but
  after almost two days
  trying to get it working I'm giving up helping some
  of you can make sense
  out of this nightmare :)
 
  - Jetty 4.2.8
  - Struts 1.0.2
  - All config files (web.xml, jetty.xml and
  struts.xml) have been validated
  against DTDs.
  - Debug and detail set to 2 in web.xml
  - commons-logging in WEB-INF/classes set to one line
 
 org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
 
  Struts is working, as I have tried a
  HelloWorldStatic (using a simple
  action path=/helloWorldStatic
  forward=/hello.jsp /) and it prints
  Hello Word!
 
  struts.xml defines a simple action with only one
  possible forward.
 
  -- WEB-INF/struts.xml --
  ?xml version=1.0 encoding=ISO-8859-1 ?
   !DOCTYPE struts-config PUBLIC
 -//Apache Software Foundation//DTD Struts
  Configuration 1.1//EN
 
 
 http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
  struts-config
   action-mapping
action path=/helloWorld
  type=org.foo.hellobirdy.HelloBirdyAction
 forward name=hello path=/hello.jsp /
/action
   /action-mapping
  /struts-config
  -- END --
 
  --
  WEB-INF/src/org/foo/hellobirdy/HelloBirdyAction.java
  --
  package org.foo.hellobirdy;
 
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
 
  import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;
  import org.apache.struts.action.Action;
  import org.apache.struts.action.ActionForm;
  import org.apache.struts.action.ActionForward;
  import org.apache.struts.action.ActionMapping;
 
  public final class HelloBirdyAction extends Action
  {
   public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
   {
ActionForward forward = null;
Log log =
  LogFactory.getLog(HelloBirdyAction.class);
 
forward = mapping.findForward(hello);
 
log.error(mapping: +mapping.toString());
log.error(found forward: +forward);
 
return forward;
   }
  }
  -- END --
 
  Now it compiles like a charm, jsp works by putting
  in URL manually but:
 
  - I get nothing in the browser
  - Nothing in the container logs
  - Nothing except Processing a GET for /helloWorld
  in STDOUT.
 
  Hope I explained things good enough for someone to
  assist me, I'm going
  insneee :)
 
  ___
  SIMEN BREKKEN / in his prime
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 


 =
 A$HI$H

 __
 Do you Yahoo!?
 Yahoo! Web Hosting - establish your business online
 http://webhosting.yahoo.com

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




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



Re: Newbie: Hello World ActionForward returns nothing

2003-03-11 Thread Simen Brekken
Found the problem, I was reading docs for 1.1RC1 the class uses execute()
which sadly isn't present in 1.0.2 which I was developing for.

D O H.


- Original Message -
From: Simen Brekken [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 11:00 PM
Subject: Re: Newbie: Hello World ActionForward returns nothing


 Yes, with that syntax naturally

 - Original Message -
 From: Ashish Kulkarni [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 10:39 PM
 Subject: Re: Newbie: Hello World ActionForward returns nothing


  How do u call this action class??
  are u loading it from jsp or html??
  http://localhost:8080/yourapplicationname/helloWorld.do
  should call it i guess???
  Correct me if i am wrong
  --- Simen Brekken [EMAIL PROTECTED] wrote:
   (NOTE: If this is reposted, I appoligize.)
  
   It's a drop dead simple Hello World! example but
   after almost two days
   trying to get it working I'm giving up helping some
   of you can make sense
   out of this nightmare :)
  
   - Jetty 4.2.8
   - Struts 1.0.2
   - All config files (web.xml, jetty.xml and
   struts.xml) have been validated
   against DTDs.
   - Debug and detail set to 2 in web.xml
   - commons-logging in WEB-INF/classes set to one line
  
 
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
  
   Struts is working, as I have tried a
   HelloWorldStatic (using a simple
   action path=/helloWorldStatic
   forward=/hello.jsp /) and it prints
   Hello Word!
  
   struts.xml defines a simple action with only one
   possible forward.
  
   -- WEB-INF/struts.xml --
   ?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts
   Configuration 1.1//EN
  
  
  http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
   struts-config
action-mapping
 action path=/helloWorld
   type=org.foo.hellobirdy.HelloBirdyAction
  forward name=hello path=/hello.jsp /
 /action
/action-mapping
   /struts-config
   -- END --
  
   --
   WEB-INF/src/org/foo/hellobirdy/HelloBirdyAction.java
   --
   package org.foo.hellobirdy;
  
   import javax.servlet.http.HttpServletRequest;
   import javax.servlet.http.HttpServletResponse;
  
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.apache.struts.action.Action;
   import org.apache.struts.action.ActionForm;
   import org.apache.struts.action.ActionForward;
   import org.apache.struts.action.ActionMapping;
  
   public final class HelloBirdyAction extends Action
   {
public ActionForward execute(
 ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
 throws Exception
{
 ActionForward forward = null;
 Log log =
   LogFactory.getLog(HelloBirdyAction.class);
  
 forward = mapping.findForward(hello);
  
 log.error(mapping: +mapping.toString());
 log.error(found forward: +forward);
  
 return forward;
}
   }
   -- END --
  
   Now it compiles like a charm, jsp works by putting
   in URL manually but:
  
   - I get nothing in the browser
   - Nothing in the container logs
   - Nothing except Processing a GET for /helloWorld
   in STDOUT.
  
   Hope I explained things good enough for someone to
   assist me, I'm going
   insneee :)
  
   ___
   SIMEN BREKKEN / in his prime
  
  
  -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
 
 
  =
  A$HI$H
 
  __
  Do you Yahoo!?
  Yahoo! Web Hosting - establish your business online
  http://webhosting.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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




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



RE: Simple Struts Hello World application gets NPE in ProxyDirConte xt.cacheLoad() when adding Validator

2002-08-15 Thread Karr, David

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 7:43 PM
 To: Struts Users Mailing List
 Subject: RE: Simple Struts Hello World application gets NPE in
 ProxyDirConte xt.cacheLoad() when adding Validator
 
 The first thing I notice is that you have a global forward 
 named main and
 an action mapping named main.
 
 Did you mean to do this.  I'm not sure it would make a big 
 difference given
 order of precedence in finding actions/forwards, but you 
 might consider
 changing one to something like 'main-menu'.

Perhaps I wasn't clear, but this application was working fine in Tomcat and
JDeveloper until I added validation.  I'll change the action names,
nonetheless.  They are slightly misnamed.

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




RE: Simple Struts Hello World application gets NPE in ProxyDirC onte xt.cacheLoad() when adding Validator

2002-08-15 Thread Karr, David

 -Original Message-
 From: Karr, David [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 8:46 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Simple Struts Hello World application gets NPE in
 ProxyDirC onte xt.cacheLoad() when adding Validator
 
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 14, 2002 7:43 PM
  To: Struts Users Mailing List
  Subject: RE: Simple Struts Hello World application gets NPE in
  ProxyDirConte xt.cacheLoad() when adding Validator
  
  The first thing I notice is that you have a global forward 
  named main and
  an action mapping named main.
  
  Did you mean to do this.  I'm not sure it would make a big 
  difference given
  order of precedence in finding actions/forwards, but you 
  might consider
  changing one to something like 'main-menu'.
 
 Perhaps I wasn't clear, but this application was working fine 
 in Tomcat and
 JDeveloper until I added validation.  I'll change the action names,
 nonetheless.  They are slightly misnamed.

Now I'm really confused.  I changed the action names slightly, but now it
seems as if the app is failing to find the ValidatorForm class (NCDFE),
which is clearly in the struts.jar in WEB-INF/lib.  Is there some
classloader problem here?  I don't think I was getting this error before.

Here is a portion of the server console output:
---
Aug 15, 2002 9:17:10 AM org.apache.struts.util.RequestUtils createActionForm
SEVERE: Error creating form bean of class mainForm
java.lang.NoClassDefFoundError: org.apache.struts.validator.ValidatorForm
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
at java.lang.Class.getConstructor0(Class.java:1748)
at java.lang.Class.newInstance0(Class.java:266)
at java.lang.Class.newInstance(Class.java:249)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:21
9)
at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:625)
at
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor
.java:351)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:245)
---

Is there some problem with using more than one PlugIn, or both Tiles and
Validator?  I'm having no problem with the sample struts-validator
application.

I'll include inline my struts-config.xml.

?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration 1.1/EN
  struts-config_1_1.dtd
struts-config
 form-beans
  form-bean name=mainForm
 type=com.attws.bsa.scoop.felix.web.forms.MainActionForm/
 /form-beans
 global-forwards
  forward name=main path=setupMain.do redirect=false/
 /global-forwards
 action-mappings
  action path=/setupMain
  type=com.attws.bsa.scoop.felix.web.actions.MainAction
  name=mainForm scope=session validate=false
   forward name=success path=main.layout/
  /action
  action path=/submitMain
  type=com.attws.bsa.scoop.felix.web.actions.SubmitMainAction
  name=mainForm scope=session validate=true
input=main.layout
   forward name=success path=main.layout/
  /action 
 /action-mappings
 controller debug=99/
 message-resources parameter=felix
key=org.apache.struts.action.MESSAGE/
 plug-in className=org.apache.struts.tiles.TilesPlugin
  set-property property=definitions-config 
value=/WEB-INF/tiles-defs.xml /
  set-property property=definitions-debug value=0 /
  set-property property=definitions-parser-details value=0 /
  set-property property=definitions-parser-validate value=true /
 /plug-in
 plug-in className=org.apache.struts.validator.ValidatorPlugIn
  set-property property=pathnames
 
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
 /plug-in
/struts-config


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




RE: Simple Struts Hello World application gets NPE in ProxyDirC onte xt.cacheLoad() when adding Validator

2002-08-15 Thread Karr, David

 -Original Message-
 From: Karr, David [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 9:30 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Simple Struts Hello World application gets NPE in
 ProxyDirC onte xt.cacheLoad() when adding Validator
 
 Now I'm really confused.  I changed the action names 
 slightly, but now it
 seems as if the app is failing to find the ValidatorForm 
 class (NCDFE),
 which is clearly in the struts.jar in WEB-INF/lib.  Is there some
 classloader problem here?  I don't think I was getting this 
 error before.
 
 Here is a portion of the server console output:
 ---
 Aug 15, 2002 9:17:10 AM org.apache.struts.util.RequestUtils 
 createActionForm
 SEVERE: Error creating form bean of class mainForm
 java.lang.NoClassDefFoundError: 
 org.apache.struts.validator.ValidatorForm
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at 
 java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
 at java.lang.Class.getConstructor0(Class.java:1748)

I'm finding that this behaves differently every time I shutdown and
startup Tomcat.  I changed my Tomcat startup script to use
-verbose:class on start, so I can see when or whether it tries to load
this class.

Every other time that I do a startup and run my test so that I get this
failure, if I scan through the server output, up to the last Starting
service Tomcat-Standalone, I don't see a Loaded message for this class,
nor does it seem to load any of the classes from my application.

If I then use shutdown.sh and then startup.sh and then retest, it
doesn't get this symptom, but it still behaves oddly.  My opening page comes
up, and I can submit it, but it doesn't seem to go anywhere (my print
statements in the submitting action don't show up).  When I try to trace
through the Loaded messages in the current session, I find the entry for
ValidatorForm, and near it, the entries for my application's classes.

I guess this is becoming a Tomcat problem, but it seems as if it's related
to Struts and Validator, or Struts PlugIns.

While I've been tracking this, I noticed the slight error in how this
exception error is reported, as it prints mainForm instead of the name of
my Form class.  I've since patched my copy of 1.1b2 with a fix to this
(along with the bug report) and verified that it is really my derived
ActionForm class that is being reported there, even though it's the base
class (ValidatorForm) that it can't load.

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




Simple Struts Hello World application gets NPE in ProxyDirContext.cacheLoad() when adding Validator

2002-08-14 Thread Karr, David

I have a relatively simple Hello World Struts application, using a single
form bean, two actions, and a few boilerplate tiles.  I'm using Struts1.1b2.
I decided to try adding the Validator for client-side validation.

I copied validator-rules.xml and created a simple validation.xml file (to
validate a date field).  I changed my ActionForm to inherit from
ValidatorForm.  I added the Validator plugin to my struts-config.xml file.

I added a html:javascript tag to the end of my mainBody.jsp file
(referenced from a tiles template), along with a script tag right after
it.  I copied that almost directly from the struts-validator example.  I
copied the staticJavascript.jsp file from that example also.

I compiled the Java code and assembled the WAR, and deployed it to Tomcat
4.0.4 (and JDeveloper9i's embedded OC4J).

When I run the application in Tomcat, I see the following on the server
console (some stack entries elided):

-
SEVERE: No action instance for path /main could be created
java.lang.NullPointerException
at
org.apache.naming.resources.ProxyDirContext.cacheLoad(ProxyDirContext.java:1
468)
at
org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java
:1350)
at
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:257)
at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas
sLoader.java:1691)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1582)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:937)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1372)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1254)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:193)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:21
9)
at
org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess
or.java:316)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
-

When I ran the application in JDeveloper, it also failed at a similar point,
although I didn't see an exception stack trace (JDeveloper is a little
deficient on showing those, apparently).

Unfortunately, my debugger isn't set up at this point to debug Tomcat, or I
would trace through this.

Just in case, I'll attach my struts-config.xml and validation.xml files.




struts-config.xml
Description: Binary data


validation.xml
Description: Binary data

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


RE: Simple Struts Hello World application gets NPE in ProxyDirConte xt.cacheLoad() when adding Validator

2002-08-14 Thread Karr, David
Title: RE: Simple Struts Hello World application gets NPE in ProxyDirConte xt.cacheLoad() when adding Validator





 -Original Message-
 From: Karr, David [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 4:12 PM
 To: '[EMAIL PROTECTED]'
 Subject: Simple Struts Hello World application gets NPE in
 ProxyDirConte xt.cacheLoad() when adding Validator


 Just in case, I'll attach my struts-config.xml and 
 validation.xml files.


Sheesh. MCShield is paranoid about XML attachments. Hopefully it will accept a zip attachment.







xmlfiles.zip
Description: Binary data

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


RE: Simple Struts Hello World application gets NPE in ProxyDirConte xt.cacheLoad() when adding Validator

2002-08-14 Thread James Mitchell

The first thing I notice is that you have a global forward named main and
an action mapping named main.

Did you mean to do this.  I'm not sure it would make a big difference given
order of precedence in finding actions/forwards, but you might consider
changing one to something like 'main-menu'.

Just my $0.02

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta



-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 7:15 PM
To: 'Struts Users Mailing List'
Subject: RE: Simple Struts Hello World application gets NPE in
ProxyDirConte xt.cacheLoad() when adding Validator


 -Original Message-
 From: Karr, David [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 4:12 PM
 To: '[EMAIL PROTECTED]'
 Subject: Simple Struts Hello World application gets NPE in
 ProxyDirConte xt.cacheLoad() when adding Validator
 Just in case, I'll attach my struts-config.xml and
 validation.xml files.
Sheesh. MCShield is paranoid about XML attachments.  Hopefully it will
accept a zip attachment.



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




hello

2002-06-25 Thread Rai, Nandkishore

I am new to sturts and  i want to know some thing about   ActionForm and
ActionServlet.
   i mean what does ActionForm will do, and what ActionServlet.

 thanks for your reply







RE: hello

2002-06-25 Thread Dan Cancro

Check these out:

http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_model.html#act
ionform
http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_controller.htm
l#action_classes
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg31442.html

 -Original Message-
 From: Rai, Nandkishore [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 25, 2002 10:41 AM
 To: '[EMAIL PROTECTED]'
 Subject: hello
 
 
 I am new to sturts and  i want to know some thing about   
 ActionForm and
 ActionServlet.
i mean what does ActionForm will do, and what ActionServlet.
 
  thanks for your reply
 
 
 
 
 

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




RE: hello

2002-06-25 Thread Christian Velez

Check the Struts Main website. They have bundles of information.

Christian
-Original Message-
From: Rai, Nandkishore [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 1:41 PM
To: [EMAIL PROTECTED]
Subject: hello
Importance: Low


I am new to sturts and  i want to know some thing about   ActionForm and
ActionServlet.
   i mean what does ActionForm will do, and what ActionServlet.

 thanks for your reply







Re: hello

2002-06-25 Thread Mete Kural

Hi,
Please check out these references for information on
how to use Struts in general:
http://jakarta.apache.org/struts/resources/tutorials.html
Good luck learning Struts,
Mete

--- Rai, Nandkishore [EMAIL PROTECTED] wrote:
 I am new to sturts and  i want to know some thing
 about   ActionForm and
 ActionServlet.
i mean what does ActionForm will do, and what
 ActionServlet.
 
  thanks for your reply
 
 
 
 
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: hello

2002-06-25 Thread James Mitchell

I personally recommend reading all of Chuck's Books.

He really knows his stuff!!!



James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://struts-atlanta.open-tools.org

P.S. Chuck, you know where to send the endorsement checks right???
;)



 -Original Message-
 From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 25, 2002 2:06 PM
 To: Struts Users Mailing List
 Subject: Re: hello
 
 
 Tooting my own horn, read my posted chapters at: 
 http://www.theserverside.com/resources/strutsreview.jsp
 
 Chuck
 
 At 01:40 PM 6/25/2002 -0400, you wrote:
 I am new to sturts and  i want to know some thing about   ActionForm and
 ActionServlet.
 i mean what does ActionForm will do, and what ActionServlet.
 
   thanks for your reply
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




Hello..

2001-09-14 Thread Rathikindi, Venkata

Hi Marcel,

This is Venkat,I got you mail id from the Struts user subscription.
I need some help regarding startus tutorials.
I just started working on Struts framework.I a trying to find out a tutorial
for this frame work.I couldn't find it out.
If you have any idea could you plese help me how/where to find out the
tutorials.


Thanks,
Venkat




Re: Hello..

2001-09-14 Thread Ted Husted

http://husted.com/about/struts/resources.htm#tutorials

Rathikindi, Venkata wrote:
 
 Hi Marcel,
 
 This is Venkat,I got you mail id from the Struts user subscription.
 I need some help regarding startus tutorials.
 I just started working on Struts framework.I a trying to find out a tutorial
 for this frame work.I couldn't find it out.
 If you have any idea could you plese help me how/where to find out the
 tutorials.
 
 Thanks,
 Venkat

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/



Hello all

2001-09-04 Thread Shea Kelly



Hi,

I am 
currently setting up my development environment in order to use struts. 
Doesanyone have arecommendation on how I structure my code? 
Obviously I am starting with the struts-blank.war file and it internal directory 
structory, however I would like to use ItelliJ as my IDE and tomcat as my 
servlet container and am wondering if it is possible to usea debugger with 
struts??

Please 
help with any configuration ideas that you think are useful
cya
Shea Kelly 
Consultant Software 
EngineerObject Oriented Pty LtdPO Box 528, North Sydney NSW 2059Phone: 
+61 2 9957-1092Direct: +61 2 9459-3335Fax: +61 2 9956-5089 
Mobile: 0416 110 
499Email: 
[EMAIL PROTECTED]Web: http://www.oopl.com.au 



Hello Best Practises Question

2001-07-18 Thread Emaho, Ghoot

Hi,
 
I have a question regarding what the community would consider to be Best
Practises when using Struts. I am doing an internal review of our own
usage of Struts within our products, and I have constructed an example
application to highlight my question(s) and talk around. I would
appreciate any feedback, insight or help that the community can offer.
 
I appreciate that this question requires a bit of effort on the readers
part ! Hopefully I have explained the context in enough detail to
solicit decent responses, but not so detailed as to tire you out !
 
Most Web Applications perform similar tasks which could be considered
generic regardless of domain. I have taken some of these tasks and
bundled them into this simple example. The example is a simplification
of an application I am building at the moment - a Struts based Wiki
called 'ChiKi'. For those who are not aware of what a wiki is, refer to
http://www.c2.com/cgi/wiki?WikiWikiWeb
http://www.c2.com/cgi/wiki?WikiWikiWeb  for details.
 
Given an object that is to manipulated, core tasks that could be
performed on that object would include

*   View
*   Edit
*   Save
*   Create [not considered in example]
*   Delete [not considered in example]

In this example, we have the object is called 'Page' which has 'id' and
'content' as string attributes. I wish to be able to View, Edit, Save,
Create and Delete 'Pages'.
 
So here are some of my questions  - all implementation details can be
found at the end of the email:

*   given the details of the components and the xml configuration at
the end of this email, how does this implementation compare to how you
would do it ? i.e. what other ways would people 'configure' to achieve
the same end result ?
*   are there any given Best Practises that could apply ?
*   other areas to consider could include:

*   separation: save and edit could be encapsualted in the same
action, would you ?
*   Page  EditForm: essentially the same, how would people avoid
duplication ? or would they bother ?
*   usage of request scope
*   ...

I appreciate that this is a simple example, but I would like to get a
feel for how people would do this, and ascertain if there are differing
strategies - and the various pros/cons of each strategy.
 
It is my intention to offer up the full blown ChiKi as an example app
for Struts development once it is ready, and I would like to be able to
take feedback from this post into account. This will hopefully be useful
for developers using Struts - it's always helpful to have other ex
amples ! and it will certainly be used internally for my developers
training/introduction to Struts - as well as actually being used within
our development team as a tool - wiki's are great :)
 
[We are about to release v1.0 of our current Struts based application -
a large enterprise application globally deployed for a large
multinational. I will post more details about this as I'm sure there is
interest in Real World developments. Of particular interest may be the
results from our Performance testing, the overall Architecture and so
on. This may be one of the largest and certainly most complex Struts
based applications to go into production, and I would like to share the
experience with the community. More details to follow shortly]
 
So thank you for making it this far, and if you have any feedback at
all, please let me know. 
 
Many thanks
 
Ghoot Emaho
Development Team Leader
Petrotechnics Ltd http://www.petrotechnics.co.uk/ 

 

In the implementation, I have the following components:

*   Page.java

*   simple bean with accessor methods for 'id' and 'content'
attributes

*   ChikiService.java

*   provides methods getPage(String pageId) and setPage(Page p) to
be used by the Actions

*   View.java

*   extends Action
*   accepts 1 request parameter 'pageId' which uniqely identifies
the page
*   requests Page 'pageId' from ChikiService
*   puts the returned Page object into the request
*   returns a forward to View.jsp


*   View.jsp

*   displays the Page object in the request, using:

*   bean:write name=page property=id scope=request/
*   bean:write name=page property=content scope=request/

*   provides a hyperlink to 'Edit' this page:

*   html:link  page=/chiki/edit paramID=pageId paramName=page
paramProperty=id Edit/html:link


*   EditForm.java

*   simple bean with accessor methods for 'id' and 'content'
attributes
*   identical to the 'Page' object, except it extends ActionForm

*   Edit.java

*   extends Action

*   accepts 1 request parameter 'pageId' which uniqely identifies
the page
*   requests Page 'pageId' from ChikiService
*   populates EditForm with values from the returned Page Object
*   returns a forward to Edit.jsp


*   Edit.jsp

*   displays the page to be edited. 'id' attribute is a text label
and the