RE: struts application with frames: top, side menus and main screen

2003-11-13 Thread Mike Jasnowski
I'm using frames w/Struts, what specifically do you want to know?  There's
not anything special you have to do with frames and Struts as far as I know.

-Original Message-
From: neso m [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 3:02 PM
To: [EMAIL PROTECTED]
Subject: struts application with frames: top, side menus and main screen




Hi !

Has anyone found sample STRUTS application and/or documentation on the net
that uses frames ? I would like to build the application with top menu, side
menu and main screen.
Thanks !

Neso






-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard


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



RE: struts application with frames: top, side menus and main screen

2003-11-13 Thread David Liles
I am currently working on a site that is frame based for each of the pages that 
are to be displayed I reference the action mapping for each of the src tags.

-Original Message- 
From: neso m [mailto:[EMAIL PROTECTED] 
Sent: Thu 11/13/2003 2:02 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: struts application with frames: top, side menus and main screen





Hi !

Has anyone found sample STRUTS application and/or documentation on the net 
that uses frames ? I would like to build the application with top menu, side menu and 
main screen.
Thanks !

Neso






-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard 

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

RE: struts application with frames: top, side menus and main screen

2003-11-13 Thread neso m
 
 
...I need to put dynamic support for different languages. Display every page in 
English/French, back and forth also top and side menu changes every time I click 
French or English. As I change through my top menu i would like my side menu to 
change, as well as my main page, for example when I click on administration 
administration menu pops up on the left hand side and main page populated with welcome 
to the admin section. Similar thing with publishing section, and any other on topmenu 
etc.I have little prototype with heavu use of JavaScript which I am not very happy 
with. Where tough to maintain. I beleive that there is a better way to do this 
utilizing some Struts tags instead of using bare JavaScript. I was wondering if there 
is anyone with anything to share that would get me going here. 
 
Thanks !
 
Neso

David Liles [EMAIL PROTECTED] wrote:
I am currently working on a site that is frame based for each of the pages that 
are to be displayed I reference the action mapping for each of the src tags.

-Original Message- 
From: neso m [mailto:[EMAIL PROTECTED] 
Sent: Thu 11/13/2003 2:02 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: struts application with frames: top, side menus and main screen





Hi !

Has anyone found sample STRUTS application and/or documentation on the net that uses 
frames ? I would like to build the application with top menu, side menu and main 
screen.
Thanks !

Neso






-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard 

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

-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

RE: struts application with frames: top, side menus and main screen

2003-11-13 Thread David Liles
There are 100 ways to peel an onion one way to peel it is to attach a parameter to 
each of your links and in your action mapping determin which pages should be displayed 
based on the detected parameter
 
As for displaying different pages in your different frame windows... you control that 
with your targets.

-Original Message- 
From: neso m [mailto:[EMAIL PROTECTED] 
Sent: Thu 11/13/2003 2:27 PM 
To: Struts Users Mailing List 
Cc: 
Subject: RE: struts application with frames: top, side menus and main screen





...I need to put dynamic support for different languages. Display every page 
in English/French, back and forth also top and side menu changes every time I click 
French or English. As I change through my top menu i would like my side menu to 
change, as well as my main page, for example when I click on administration 
administration menu pops up on the left hand side and main page populated with welcome 
to the admin section. Similar thing with publishing section, and any other on topmenu 
etc.I have little prototype with heavu use of JavaScript which I am not very happy 
with. Where tough to maintain. I beleive that there is a better way to do this 
utilizing some Struts tags instead of using bare JavaScript. I was wondering if there 
is anyone with anything to share that would get me going here.

Thanks !

Neso

David Liles [EMAIL PROTECTED] wrote:
I am currently working on a site that is frame based for each of the pages 
that are to be displayed I reference the action mapping for each of the src tags.

-Original Message-
From: neso m [mailto:[EMAIL PROTECTED]
Sent: Thu 11/13/2003 2:02 PM
To: [EMAIL PROTECTED]
Cc:
Subject: struts application with frames: top, side menus and main screen





Hi !

Has anyone found sample STRUTS application and/or documentation on the net 
that uses frames ? I would like to build the application with top menu, side menu and 
main screen.
Thanks !

Neso






-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

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

-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard 

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

RE: struts application with frames: top, side menus and main screen

2003-11-13 Thread neso m
Thanks for your answers. Do you have any documents, how to, etc to point me too?
 
Neso

David Liles [EMAIL PROTECTED] wrote:
There are 100 ways to peel an onion one way to peel it is to attach a parameter to 
each of your links and in your action mapping determin which pages should be displayed 
based on the detected parameter

As for displaying different pages in your different frame windows... you control that 
with your targets.

-Original Message- 
From: neso m [mailto:[EMAIL PROTECTED] 
Sent: Thu 11/13/2003 2:27 PM 
To: Struts Users Mailing List 
Cc: 
Subject: RE: struts application with frames: top, side menus and main screen





...I need to put dynamic support for different languages. Display every page in 
English/French, back and forth also top and side menu changes every time I click 
French or English. As I change through my top menu i would like my side menu to 
change, as well as my main page, for example when I click on administration 
administration menu pops up on the left hand side and main page populated with welcome 
to the admin section. Similar thing with publishing section, and any other on topmenu 
etc.I have little prototype with heavu use of JavaScript which I am not very happy 
with. Where tough to maintain. I beleive that there is a better way to do this 
utilizing some Struts tags instead of using bare JavaScript. I was wondering if there 
is anyone with anything to share that would get me going here.

Thanks !

Neso

David Liles wrote:
I am currently working on a site that is frame based for each of the pages that 
are to be displayed I reference the action mapping for each of the src tags.

-Original Message-
From: neso m [mailto:[EMAIL PROTECTED]
Sent: Thu 11/13/2003 2:02 PM
To: [EMAIL PROTECTED]
Cc:
Subject: struts application with frames: top, side menus and main screen





Hi !

Has anyone found sample STRUTS application and/or documentation on the net that uses 
frames ? I would like to build the application with top menu, side menu and main 
screen.
Thanks !

Neso






-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

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

-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard 

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

-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

RE: struts application with frames: top, side menus and main screen

2003-11-13 Thread David Liles
Here is an example frame layout that maps to actions for each of the pages to be 
displayed...
 
frameset rows=80,* cols=* frameborder=no border=0 framespacing=0
frame src=/header.do name=headerFrame scrolling=no noresize
frameset cols=120,* frameborder=no border=0 framespacing=0
frame src=/nav.do name=navFrame scrolling=no noresize
frame src=/main.do name=mainFrame
/frameset
/frameset
 
 
As for href links... I've used the following:
 
html:link page=javascript:nav('parameter');example 1/html:link

 

JavaScript that executes the href notice that the line 
(paraent.mainFrame.location) identifies which frame window to display the returned 
page

// JavaScript Document
function nav(id) {

 var URL = /Display.do?item= + id + site=public
 parent.mainFrame.location = URL;
}

 

Hope this helps

 

-Original Message- 
From: neso m [mailto:[EMAIL PROTECTED] 
Sent: Thu 11/13/2003 2:49 PM 
To: Struts Users Mailing List 
Cc: 
Subject: RE: struts application with frames: top, side menus and main screen



Thanks for your answers. Do you have any documents, how to, etc to point me 
too?

Neso

David Liles [EMAIL PROTECTED] wrote:
There are 100 ways to peel an onion one way to peel it is to attach a 
parameter to each of your links and in your action mapping determin which pages should 
be displayed based on the detected parameter

As for displaying different pages in your different frame windows... you 
control that with your targets.

-Original Message-
From: neso m [mailto:[EMAIL PROTECTED]
Sent: Thu 11/13/2003 2:27 PM
To: Struts Users Mailing List
Cc:
Subject: RE: struts application with frames: top, side menus and main screen





...I need to put dynamic support for different languages. Display every page 
in English/French, back and forth also top and side menu changes every time I click 
French or English. As I change through my top menu i would like my side menu to 
change, as well as my main page, for example when I click on administration 
administration menu pops up on the left hand side and main page populated with welcome 
to the admin section. Similar thing with publishing section, and any other on topmenu 
etc.I have little prototype with heavu use of JavaScript which I am not very happy 
with. Where tough to maintain. I beleive that there is a better way to do this 
utilizing some Struts tags instead of using bare JavaScript. I was wondering if there 
is anyone with anything to share that would get me going here.

Thanks !

Neso

David Liles wrote:
I am currently working on a site that is frame based for each of the pages 
that are to be displayed I reference the action mapping for each of the src tags.

-Original Message-
From: neso m [mailto:[EMAIL PROTECTED]
Sent: Thu 11/13/2003 2:02 PM
To: [EMAIL PROTECTED]
Cc:
Subject: struts application with frames: top, side menus and main screen





Hi !

Has anyone found sample STRUTS application and/or documentation on the net 
that uses frames ? I would like to build the application with top menu, side menu and 
main screen.
Thanks !

Neso






-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

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

-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

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

-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard 

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

Re: struts application and skins

2003-01-22 Thread David Graham
You could setup a filter that checked the requested domain name and set the 
root path to your resources into a ServletContext attribute accordingly.  
You could use that variable in your jsps to generate urls to your skins.

David






From: AJ Scarbrough [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: struts application and skins
Date: Wed, 22 Jan 2003 18:56:01 -0500

I want to create an application that changes the skin of the application
based on the url the application is accessed from.  For example, if a user
accesses the appliation from www.foo.com then i want to use foo.css the CSS
and /image/foo/ for all images on the page.  If a user accesses the
application from www.bar.com then i want to use bar.css for the cSS and
/images/bar/ for all images on the page.  I am fairly new with struts and
haven't had a whole lot of luck coming up with a good design of how to
accomplish this.  Has anyone tried to do something similar?  What would be
the best/a good way of going about this?

Thanks.

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


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



RE: Struts application fails on AIX but not on Windows (boolean getter method problem)

2003-01-20 Thread Pani, Gourav
I don't quite have an answer to why it doesn't work on AIX but if you do
have a problem you could get around it by doing a getNewSession() which
returns the String value of the boolean.  

-Original Message-
From: Soeren Dalby [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 11:48 AM
To: 'Struts Users Mailing List'
Subject: Struts application fails on AIX but not on Windows (boolean
getter method problem) 


I have a strange problem. When I run my application on Windows, my Struts
application works perfect, but when I move it to AIX it fails with a strange
problem:

javax.servlet.ServletException: No getter method for property newSession
of bean sessioninfo

This is a boolean and it appears as if it assumes a getNewSession() method,
but since this is a boolean, this is implemented as isNewSession()

As said: It works under windows but not under AIX. 

Do you have a hint ??

Thanks in advance

Soeren


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




Re: Struts application fails on AIX but not on Windows (boolean getter method problem)

2003-01-20 Thread David M. Karr
 Soeren == Soeren Dalby [EMAIL PROTECTED] writes:

Soeren I have a strange problem. When I run my application on Windows, my Struts 
application works perfect, but when I move it to AIX it fails with a strange problem:
Soeren javax.servlet.ServletException: No getter method for property 
newSession of bean sessioninfo

Soeren This is a boolean and it appears as if it assumes a getNewSession() 
method, but since this is a boolean, this is implemented as isNewSession()

Soeren As said: It works under windows but not under AIX. 

Soeren Do you have a hint ??

What containers and versions are you using on Windows and AIX?

What version of Struts are you using?

Show us your bean class, jsp page, and struts-config.xml files.

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




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




Re: Struts application

2003-01-17 Thread Giri Alwar
Can you post the stack trace? Do you know where the exception occurs
(Servlet, Action, accept.jsp)?

- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 5:18 PM
Subject: Struts application


 I applied struts in the simplest form and received the below error
message.
 This application resides on a Weblogic 6.0 server.

 Scenario:
 It involves two JSP's, two form classes and an action class.  The
Index.jsp
 is loaded first where you key in the username and click the ok submit
 button. It takes you to the other jsp, accept.jsp, which displays the user
 name.

 In the backend, when you click the button on the index.jsp, the value of
 the username is taken to the form bean and in the action class the data
 from the form bean of the index.jsp is retrieved and stored in the form
 bean of the the accept.jsp and the jsp is loaded.  It automatically gets
 the data from the form bean and displays  it on  the accept.jsp.


 Problem:
 The problem I'm having is once I click on the ok button from the index.jsp
 I get the following error message displayed from weblogic:




 Jan 16, 2003 3:46:10 PM EST Error HTTP
 [WebAppServletContext(6821348,wrox-struts,/wrox-struts)] Servlet failed
 with Exception java.lang.NullPointerException





 It's set up in the below structure:






  (Embedded image moved to file: pic04734.gif)








 Can anyone help??

 Thanks.

 CONFIDENTIAL MATERIAL.  This electronic message contains information from
 Princeton eCom Corporation, is confidential and may be privileged.  It is
 intended for the use of the addressee only.  If you are not the addressee
 indicated in this message (or responsible for delivery of the message to
 such person), any disclosure, copy, distribution or use of the contents of
 this message is prohibited.  Please destroy this message and notify us
 immediately if this is the case by sending a reply to this message or by
 sending an e-mail to [EMAIL PROTECTED] and by destroying all
 copies of this message and any attachments. Thank you.  For more
 information about Princeton eCom Corporation, please visit us at
 http://www.princetonecom.com








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


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.435 / Virus Database: 244 - Release Date: 1/2/2003

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




RE: Struts application

2003-01-17 Thread du Plessis, Corneil C
Sounds like the scope on the form you submitted first may be request scope
instead of session scope.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 17 January, 2003 01:18
To: Struts Users Mailing List
Subject: Struts application


I applied struts in the simplest form and received the below error message.
This application resides on a Weblogic 6.0 server.

Scenario:
It involves two JSP's, two form classes and an action class.  The Index.jsp
is loaded first where you key in the username and click the ok submit
button. It takes you to the other jsp, accept.jsp, which displays the user
name.

In the backend, when you click the button on the index.jsp, the value of
the username is taken to the form bean and in the action class the data
from the form bean of the index.jsp is retrieved and stored in the form
bean of the the accept.jsp and the jsp is loaded.  It automatically gets
the data from the form bean and displays  it on  the accept.jsp.


Problem:
The problem I'm having is once I click on the ok button from the index.jsp
I get the following error message displayed from weblogic:




Jan 16, 2003 3:46:10 PM EST Error HTTP
[WebAppServletContext(6821348,wrox-struts,/wrox-struts)] Servlet failed
with Exception java.lang.NullPointerException





It's set up in the below structure:






 (Embedded image moved to file: pic04734.gif)   







Can anyone help??

Thanks.

CONFIDENTIAL MATERIAL.  This electronic message contains information from
Princeton eCom Corporation, is confidential and may be privileged.  It is
intended for the use of the addressee only.  If you are not the addressee
indicated in this message (or responsible for delivery of the message to
such person), any disclosure, copy, distribution or use of the contents of
this message is prohibited.  Please destroy this message and notify us
immediately if this is the case by sending a reply to this message or by
sending an e-mail to [EMAIL PROTECTED] and by destroying all
copies of this message and any attachments. Thank you.  For more
information about Princeton eCom Corporation, please visit us at
http://www.princetonecom.com


__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




Re: Struts application

2003-01-17 Thread Daniel Jaffa
That is a great picture of what you are doing, but your question does not
help anyone help you.

1 Did you do any logging in your action to see where the null pointer is
being generated.  At least put some System.err.println(); in you code to see
where you are failing.
2. Are you sure that it is even getting to you action.
3. Is your manager causing the problem.

I use weblogic 6.1sp2 and use Log4J to log my app, if you are not currently
using it I would suggest that you do.
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 6:18 PM
Subject: Struts application


 I applied struts in the simplest form and received the below error
message.
 This application resides on a Weblogic 6.0 server.

 Scenario:
 It involves two JSP's, two form classes and an action class.  The
Index.jsp
 is loaded first where you key in the username and click the ok submit
 button. It takes you to the other jsp, accept.jsp, which displays the user
 name.

 In the backend, when you click the button on the index.jsp, the value of
 the username is taken to the form bean and in the action class the data
 from the form bean of the index.jsp is retrieved and stored in the form
 bean of the the accept.jsp and the jsp is loaded.  It automatically gets
 the data from the form bean and displays  it on  the accept.jsp.


 Problem:
 The problem I'm having is once I click on the ok button from the index.jsp
 I get the following error message displayed from weblogic:




 Jan 16, 2003 3:46:10 PM EST Error HTTP
 [WebAppServletContext(6821348,wrox-struts,/wrox-struts)] Servlet failed
 with Exception java.lang.NullPointerException





 It's set up in the below structure:







  (Embedded image moved to file: pic04734.gif)







 Can anyone help??

 Thanks.

 CONFIDENTIAL MATERIAL.  This electronic message contains information from
 Princeton eCom Corporation, is confidential and may be privileged.  It is
 intended for the use of the addressee only.  If you are not the addressee
 indicated in this message (or responsible for delivery of the message to
 such person), any disclosure, copy, distribution or use of the contents of
 this message is prohibited.  Please destroy this message and notify us
 immediately if this is the case by sending a reply to this message or by
 sending an e-mail to [EMAIL PROTECTED] and by destroying all
 copies of this message and any attachments. Thank you.  For more
 information about Princeton eCom Corporation, please visit us at
 http://www.princetonecom.com








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




RE: Struts application on jboss/jetty

2003-01-10 Thread Siggelkow, Bill
It looks like JBoss has already loaded an old Digester or you have an old copy of 
Commons in your WEB-INF.

-Original Message-
From: Danilo Luiz Rheinheimer [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 10:26 AM
To: Struts Users Mailing List
Subject: Struts application on jboss/jetty


Hello,

  I have a struts working fine on tomcat standalone.
  But when I try to deploy it to JBoss 3.2 with integrated Jetty it
fails.
  This is the error log :

2003-01-10 12:17:43,595 ERROR [org.apache.struts.action.ActionServlet] Parsing error 
processing resource path /WEB-INF/struts-config.xml
java.lang.NoSuchMethodError: org.apache.commons.digester.Rule: method init()V not 
found
at 
org.apache.struts.config.AddDataSourcePropertyRule.init(ConfigRuleSet.java:286)
at 
org.apache.struts.config.ConfigRuleSet.addRuleInstances(ConfigRuleSet.java:113)
at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1250)
at 
org.apache.struts.action.ActionServlet.initConfigDigester(ActionServlet.java:1211)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:923)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:422)
at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:142)
at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:490)
at 
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
at org.jboss.jetty.Jetty.deploy(Jetty.java:368)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:636)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:600)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy7.deploy(Unknown Source)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:400)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:619)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:472)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:195)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:206)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:185)
2003-01-10 12:17:43,605 INFO  [org.jboss.jbossweb] Stopped 
WebApplicationContext[/SigeaWeb,jar:file:/C:/prg/jboss/server/default/tmp/deploy/server/default/deploy/SigeaWeb.war/46.SigeaWeb.war!/]
2003-01-10 12:17:43,605 INFO  [org.jboss.jbossweb] Deregister 
jboss.web:Jetty=0,JBossWebApplicationContext=2,context=/SigeaWeb
2003-01-10 12:17:43,605 INFO  [org.jboss.jbossweb] Successfully undeployed 
file:/C:/prg/jboss/server/default/tmp/deploy/server/default/deploy/SigeaWeb.war/46.SigeaWeb.war
2003-01-10 12:17:43,605 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.parentTraceEnabled=true
2003-01-10 12:17:43,605 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2003-01-10 12:17:43,605 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2003-01-10 12:17:43,605 ERROR [org.jboss.deployment.MainDeployer] could not start 
deployment: file:/C:/prg/jboss/server/default/deploy/SigeaWeb.war
org.jboss.deployment.DeploymentException: Parsing error processing resource path 
/WEB-INF/struts-config.xml; - nested throwable: (javax.servlet.UnavailableException: 
Parsing error processing resource path /WEB-INF/struts-config.xml)
at org.jboss.jetty.Jetty.deploy(Jetty.java:390)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
at 

Re: Struts application infrastructure choices

2002-12-14 Thread David Graham

It should be fairly easy to implement this and do some performance testing.  
Your DAOs will be the only piece that changes to use RMI.  You might try 
just using straight sockets because RMI is another layer on top of sockets 
which may slow you down.

David





From: Aymeric Alibert [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: \Struts Users Mailing List\ [EMAIL PROTECTED]
Subject: Struts application  infrastructure choices
Date: Sat, 14 Dec 2002 10:38:19 -0600

Hello,

We are successfully running a large struts application. We designed it 
using a 'classic' architecture:
- A Tomcat server running the application in our DMZ.
- Use of Struts for our front-end and implementation of the DAO pattern to 
isolate our Data Access layer. Even if everything runs on the same server.
- Use of DBCP pooling from Tomcat to access our Oracle database.

Looking ahead, I can see needs for JMS connectivity or connection to 
various type of data sources within our company and to communicate with our 
partners.
Also, our security team does not like having a Tomcat server in the DMZ 
accessing more and more internal information systems. We would like to take 
our infrastructure to the next level.

I was thinking of introducing an Application Server within our firewall. It 
will implement our Data Access connectivity and the DAO on the Web Server 
will use RMI to access it.
I am a little afraid of performance degradation by introducing RMI between 
the Web Server and Application Server. Also deployment will probably be 
more complex.
Another solution would be to have both Web Server and App Server running on 
the same box in the DMZ. But that
does not solve my security concerns.

I don't have much experience with application servers and would not need 
the full features of a J2EE app server (at least not right now). Am I on 
the right path?
Does someone have advices or best practices to follow?

Aymeric.


_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



Re: Struts application infrastructure choices

2002-12-14 Thread V. Cekvenich
One way is to integrate via Oracle (or less expensive to operate 
PostgreSQL). What ever you need, you can cache or create an async. 
process to store the needed data in the DB, that is in the secured zone.
Sort of a real time data ware house. So via Oracle create views or pl 
SQL on to other resources.  Like create work tables, that are async. 
synchronized to other resources. This makes it very, very fast for DB 
access, at worst you get a bit stale data at times.
 It is a bit of pick your pain /  gray issue.
To integrate from app server via JMS, you could have performance - 
access time issues, complexity, in addition to other issues.

Also, no reason to run an Web Server, if you have an app. server (since 
any app. server can also server out web pages).

.V

Aymeric Alibert wrote:
Hello,

We are successfully running a large struts application. We designed it using a 'classic' architecture:
- A Tomcat server running the application in our DMZ.
- Use of Struts for our front-end and implementation of the DAO pattern to isolate our Data Access layer. Even if everything runs on the same server.
- Use of DBCP pooling from Tomcat to access our Oracle database.

Looking ahead, I can see needs for JMS connectivity or connection to various type of data sources within our company and to communicate with our partners.
Also, our security team does not like having a Tomcat server in the DMZ accessing more and more internal information systems. We would like to take our infrastructure to the next level.

I was thinking of introducing an Application Server within our firewall. It will implement our Data Access connectivity and the DAO on the Web Server will use RMI to access it. 
I am a little afraid of performance degradation by introducing RMI between the Web Server and Application Server. Also deployment will probably be more complex.
Another solution would be to have both Web Server and App Server running on the same box in the DMZ. But that
does not solve my security concerns.

I don't have much experience with application servers and would not need the full features of a J2EE app server (at least not right now). Am I on the right path?
Does someone have advices or best practices to follow?

Aymeric.





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




Re: Struts application infrastructure choices

2002-12-14 Thread Phil Steitz
David Graham wrote:


It should be fairly easy to implement this and do some performance 
testing.  Your DAOs will be the only piece that changes to use RMI.  You 
might try just using straight sockets because RMI is another layer on 
top of sockets which may slow you down.

David



I would be surprised if RMI per se really turned out to be a significant 
performance bottleneck -- especially compared to a custom sockets 
implementation (which essentially amounts to rewriting application 
server functionality).  The real issue is do you want to introduce EJBs, 
if the application does not already use them.

If you don't want to use EJBs and you do want a physically three-tier 
setup, then you have a basic deployment/integration problem which some 
of us would argue is a strong argument to just use EJBs and RMI and rely 
on the infrastructure provided by J2EE.  Here are a couple of other ways 
to solve this problem that I have seen successfully deployed in 
large-scale applications:

1. Remote HTTP Server
Physically split the HTTP server from the servlet engine, putting the 
combined servlet engine/business object (EJB container, if the business 
objects are EJBs) into a more protected location and leaving only the 
HTTP server exposed.  This configuration is supported by most commerncal 
application servers.  I don't know if you can do this using Apache and 
Tomcat or JBOSS.

The IBM site below is a bit cumbersome to navigate, but it includes a 
fairly comprehensive treatment of the deployment topology alternatives, 
nost of which can be deployed on non-WebSphere app servers:

http://www-106.ibm.com/developerworks/patterns/

More specifically, see

http://www-106.ibm.com/developerworks/patterns/u2b/at2-runtime.html

2. Dual servlet engines
Deploy a front servlet engine that includes the view and controller 
elements (struts would run here) and handle remote communication to a 
model servlet engine via HTTP.  The model engine can run in a more 
secure location. A framework implementing the Command pattern can 
relatively easily be developed using URL objects to make the remoting of 
model elements transparent to the controller.  The advantage of this 
over a custom sockets implementation is that you don't have to worry 
about managing the connections, threads, etc. for the model container. 
 The disadvantage is that you have to develop the marshalling framework.

3. Standalone RMI servers on tier 2
Use standalone RMI servers for the model implementation.  The 
advantage of this is that you don't have to develop any custom 
marshalling machinery.  The disadvantage is that you don't have the 
resource and systems management infrastructure of an application 
server/servlet engine to rely on.

4. Web Services
Like 2., except use web services in place of the custom HTTP-based 
Command framework.  If I were to start a new project with the 
requirements no EJBs+physical 3-tier, I would probably host the model 
components in a remote web container and expose them as web services, 
using Axis.  See
http://xml.apache.org/axis/index.html

Of course, as David suggests, the important thing is to rapidly develop 
marshalling prototypes and benchmark.  My experience has been that all 
of the remote marshalling methods described above can deliver very fast 
performance, as long as your service interfaces are not ridiculous. 
Performance problems almost always trace back to model component 
implementation or back end resource (e.g. RDBMS) response time issues.

-Phil





From: Aymeric Alibert [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: \Struts Users Mailing List\ [EMAIL PROTECTED]
Subject: Struts application  infrastructure choices
Date: Sat, 14 Dec 2002 10:38:19 -0600

Hello,

We are successfully running a large struts application. We designed it 
using a 'classic' architecture:
- A Tomcat server running the application in our DMZ.
- Use of Struts for our front-end and implementation of the DAO 
pattern to isolate our Data Access layer. Even if everything runs on 
the same server.
- Use of DBCP pooling from Tomcat to access our Oracle database.

Looking ahead, I can see needs for JMS connectivity or connection to 
various type of data sources within our company and to communicate 
with our partners.
Also, our security team does not like having a Tomcat server in the 
DMZ accessing more and more internal information systems. We would 
like to take our infrastructure to the next level.

I was thinking of introducing an Application Server within our 
firewall. It will implement our Data Access connectivity and the DAO 
on the Web Server will use RMI to access it.
I am a little afraid of performance degradation by introducing RMI 
between the Web Server and Application Server. Also deployment will 
probably be more complex.
Another solution would be to have both Web Server and App Server 
running on the same box in the DMZ. But that
does not solve my security concerns.

I don't have much 

Re: Struts application infrastructure choices

2002-12-14 Thread David Graham
I don't think RMI will slow you down either.  I was simply saying that it 
can't be faster than using the Socket classes because it's a layer of 
abstraction on top of sockets.

David






From: Phil Steitz [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Struts application  infrastructure choices
Date: Sat, 14 Dec 2002 15:00:38 -0700

David Graham wrote:


It should be fairly easy to implement this and do some performance 
testing.  Your DAOs will be the only piece that changes to use RMI.  You 
might try just using straight sockets because RMI is another layer on top 
of sockets which may slow you down.

David



I would be surprised if RMI per se really turned out to be a significant 
performance bottleneck -- especially compared to a custom sockets 
implementation (which essentially amounts to rewriting application server 
functionality).  The real issue is do you want to introduce EJBs, if the 
application does not already use them.

If you don't want to use EJBs and you do want a physically three-tier 
setup, then you have a basic deployment/integration problem which some of 
us would argue is a strong argument to just use EJBs and RMI and rely on 
the infrastructure provided by J2EE.  Here are a couple of other ways to 
solve this problem that I have seen successfully deployed in large-scale 
applications:

1. Remote HTTP Server
Physically split the HTTP server from the servlet engine, putting the 
combined servlet engine/business object (EJB container, if the business 
objects are EJBs) into a more protected location and leaving only the HTTP 
server exposed.  This configuration is supported by most commerncal 
application servers.  I don't know if you can do this using Apache and 
Tomcat or JBOSS.

The IBM site below is a bit cumbersome to navigate, but it includes a 
fairly comprehensive treatment of the deployment topology alternatives, 
nost of which can be deployed on non-WebSphere app servers:

http://www-106.ibm.com/developerworks/patterns/

More specifically, see

http://www-106.ibm.com/developerworks/patterns/u2b/at2-runtime.html

2. Dual servlet engines
Deploy a front servlet engine that includes the view and controller 
elements (struts would run here) and handle remote communication to a 
model servlet engine via HTTP.  The model engine can run in a more 
secure location. A framework implementing the Command pattern can 
relatively easily be developed using URL objects to make the remoting of 
model elements transparent to the controller.  The advantage of this over a 
custom sockets implementation is that you don't have to worry about 
managing the connections, threads, etc. for the model container.  The 
disadvantage is that you have to develop the marshalling framework.

3. Standalone RMI servers on tier 2
Use standalone RMI servers for the model implementation.  The advantage 
of this is that you don't have to develop any custom marshalling machinery. 
 The disadvantage is that you don't have the resource and systems 
management infrastructure of an application server/servlet engine to rely 
on.

4. Web Services
Like 2., except use web services in place of the custom HTTP-based Command 
framework.  If I were to start a new project with the requirements no 
EJBs+physical 3-tier, I would probably host the model components in a 
remote web container and expose them as web services, using Axis.  See
http://xml.apache.org/axis/index.html

Of course, as David suggests, the important thing is to rapidly develop 
marshalling prototypes and benchmark.  My experience has been that all of 
the remote marshalling methods described above can deliver very fast 
performance, as long as your service interfaces are not ridiculous. 
Performance problems almost always trace back to model component 
implementation or back end resource (e.g. RDBMS) response time issues.

-Phil





From: Aymeric Alibert [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: \Struts Users Mailing List\ [EMAIL PROTECTED]
Subject: Struts application  infrastructure choices
Date: Sat, 14 Dec 2002 10:38:19 -0600

Hello,

We are successfully running a large struts application. We designed it 
using a 'classic' architecture:
- A Tomcat server running the application in our DMZ.
- Use of Struts for our front-end and implementation of the DAO pattern 
to isolate our Data Access layer. Even if everything runs on the same 
server.
- Use of DBCP pooling from Tomcat to access our Oracle database.

Looking ahead, I can see needs for JMS connectivity or connection to 
various type of data sources within our company and to communicate with 
our partners.
Also, our security team does not like having a Tomcat server in the DMZ 
accessing more and more internal information systems. We would like to 
take our infrastructure to the next level.

I was thinking of introducing an Application Server within our firewall. 
It will implement

Re: Struts application infrastructure choices

2002-12-14 Thread Craig R. McClanahan


On Sat, 14 Dec 2002, David Graham wrote:

 Date: Sat, 14 Dec 2002 13:23:40 -0700
 From: David Graham [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Struts application  infrastructure choices


 It should be fairly easy to implement this and do some performance testing.
 Your DAOs will be the only piece that changes to use RMI.  You might try
 just using straight sockets because RMI is another layer on top of sockets
 which may slow you down.


A completely different approach to consider would be running something
like Apache in the DMZ, and put Tomcat behind the firewall as well.  Then,
you could continue to use your existing DAOs without exposing them on the
DMZ machine.

 David

Craig







 From: Aymeric Alibert [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: \Struts Users Mailing List\ [EMAIL PROTECTED]
 Subject: Struts application  infrastructure choices
 Date: Sat, 14 Dec 2002 10:38:19 -0600
 
 Hello,
 
 We are successfully running a large struts application. We designed it
 using a 'classic' architecture:
 - A Tomcat server running the application in our DMZ.
 - Use of Struts for our front-end and implementation of the DAO pattern to
 isolate our Data Access layer. Even if everything runs on the same server.
 - Use of DBCP pooling from Tomcat to access our Oracle database.
 
 Looking ahead, I can see needs for JMS connectivity or connection to
 various type of data sources within our company and to communicate with our
 partners.
 Also, our security team does not like having a Tomcat server in the DMZ
 accessing more and more internal information systems. We would like to take
 our infrastructure to the next level.
 
 I was thinking of introducing an Application Server within our firewall. It
 will implement our Data Access connectivity and the DAO on the Web Server
 will use RMI to access it.
 I am a little afraid of performance degradation by introducing RMI between
 the Web Server and Application Server. Also deployment will probably be
 more complex.
 Another solution would be to have both Web Server and App Server running on
 the same box in the DMZ. But that
 does not solve my security concerns.
 
 I don't have much experience with application servers and would not need
 the full features of a J2EE app server (at least not right now). Am I on
 the right path?
 Does someone have advices or best practices to follow?
 
 Aymeric.


 _
 The new MSN 8: advanced junk mail protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail


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




Re: Struts application infrastructure choices

2002-12-14 Thread Phil Steitz
Craig R. McClanahan wrote:


On Sat, 14 Dec 2002, David Graham wrote:



Date: Sat, 14 Dec 2002 13:23:40 -0700
From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Struts application  infrastructure choices


It should be fairly easy to implement this and do some performance testing.
Your DAOs will be the only piece that changes to use RMI.  You might try
just using straight sockets because RMI is another layer on top of sockets
which may slow you down.




A completely different approach to consider would be running something
like Apache in the DMZ, and put Tomcat behind the firewall as well.  Then,
you could continue to use your existing DAOs without exposing them on the
DMZ machine.


That's what I meant by my option 1. After skimming 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html, I now 
see that Apache-Tomcat does in fact work remotely. Right?  Are there 
problems pushing JK through firewalls?

If this works, it is probably the easiest way to go, requiring the least 
application change, most likely the best performance and also the best 
security, since there's not much exposed on the Apache server.



David



Craig









From: Aymeric Alibert [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: \Struts Users Mailing List\ [EMAIL PROTECTED]
Subject: Struts application  infrastructure choices
Date: Sat, 14 Dec 2002 10:38:19 -0600

Hello,

We are successfully running a large struts application. We designed it
using a 'classic' architecture:
- A Tomcat server running the application in our DMZ.
- Use of Struts for our front-end and implementation of the DAO pattern to
isolate our Data Access layer. Even if everything runs on the same server.
- Use of DBCP pooling from Tomcat to access our Oracle database.

Looking ahead, I can see needs for JMS connectivity or connection to
various type of data sources within our company and to communicate with our
partners.
Also, our security team does not like having a Tomcat server in the DMZ
accessing more and more internal information systems. We would like to take
our infrastructure to the next level.

I was thinking of introducing an Application Server within our firewall. It
will implement our Data Access connectivity and the DAO on the Web Server
will use RMI to access it.
I am a little afraid of performance degradation by introducing RMI between
the Web Server and Application Server. Also deployment will probably be
more complex.
Another solution would be to have both Web Server and App Server running on
the same box in the DMZ. But that
does not solve my security concerns.

I don't have much experience with application servers and would not need
the full features of a J2EE app server (at least not right now). Am I on
the right path?
Does someone have advices or best practices to follow?

Aymeric.



_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


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






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




Re: Struts application infrastructure choices

2002-12-14 Thread Craig R. McClanahan


On Sat, 14 Dec 2002, Phil Steitz wrote:

 Date: Sat, 14 Dec 2002 16:41:13 -0700
 From: Phil Steitz [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Struts application  infrastructure choices

 Craig R. McClanahan wrote:
 
  On Sat, 14 Dec 2002, David Graham wrote:
 
 
 Date: Sat, 14 Dec 2002 13:23:40 -0700
 From: David Graham [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Struts application  infrastructure choices
 
 
 It should be fairly easy to implement this and do some performance testing.
 Your DAOs will be the only piece that changes to use RMI.  You might try
 just using straight sockets because RMI is another layer on top of sockets
 which may slow you down.
 
 
 
  A completely different approach to consider would be running something
  like Apache in the DMZ, and put Tomcat behind the firewall as well.  Then,
  you could continue to use your existing DAOs without exposing them on the
  DMZ machine.
 
 That's what I meant by my option 1. After skimming
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html, I now
 see that Apache-Tomcat does in fact work remotely. Right?

Yes.  Detailed discussion is off topic here -- see the Tomcat docs and/or
ask questions on TOMCAT-USER for more information.

  Are there
 problems pushing JK through firewalls?

You just need to make sure that your firewall configuration allows the
connection from the DMZ machine to the back-end machine, using the port
number you specify.  For additional security, you should configure the
back-end server to *only* accept connections from the appropriate DMZ
server's IP address.

Craig


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




Re: Struts application infrastructure choices

2002-12-14 Thread Aymeric Alibert
Thanks for your inputs. 
I was looking for an alternative solution to the deployment of a full J2EE application 
server.
I particularly like the Apache/Tomcat approach since it is fairly simple to implement.
The IBM documentation is very interesting too. That gives us a lot of options.
You guys are great!

Thanks,
Aymeric.

 [EMAIL PROTECTED] 12/14/02 06:14PM 


On Sat, 14 Dec 2002, Phil Steitz wrote:

 Date: Sat, 14 Dec 2002 16:41:13 -0700
 From: Phil Steitz [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Struts application  infrastructure choices

 Craig R. McClanahan wrote:
 
  On Sat, 14 Dec 2002, David Graham wrote:
 
 
 Date: Sat, 14 Dec 2002 13:23:40 -0700
 From: David Graham [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Struts application  infrastructure choices
 
 
 It should be fairly easy to implement this and do some performance testing.
 Your DAOs will be the only piece that changes to use RMI.  You might try
 just using straight sockets because RMI is another layer on top of sockets
 which may slow you down.
 
 
 
  A completely different approach to consider would be running something
  like Apache in the DMZ, and put Tomcat behind the firewall as well.  Then,
  you could continue to use your existing DAOs without exposing them on the
  DMZ machine.
 
 That's what I meant by my option 1. After skimming
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html, I now
 see that Apache-Tomcat does in fact work remotely. Right?

Yes.  Detailed discussion is off topic here -- see the Tomcat docs and/or
ask questions on TOMCAT-USER for more information.

  Are there
 problems pushing JK through firewalls?

You just need to make sure that your firewall configuration allows the
connection from the DMZ machine to the back-end machine, using the port
number you specify.  For additional security, you should configure the
back-end server to *only* accept connections from the appropriate DMZ
server's IP address.

Craig


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



RE: Struts application initialisation workflow.

2002-07-03 Thread Heligon Sandra

I know the link  http://husted.com/struts/ it is very good, but
I am some difficulties to access information about Struts forum,
and it is painful to see this message through mails like
'[EMAIL PROTECTED]'.
I learn a lot of thinks in the Struts API but I don't think that
it is the best solution to understand a project. And this documentation
is not updated for the struts1.1. For instance the process()
method in the Action class has been depreciated.
I think it is better to have access to the project's model (with class
diagram,
sequence diagram, or collaboration diagram).
Unfortunately I have found only one struts diagram on
http://rollerjm.free.fr/pro/Struts.html,
but it doesn't deal with the Struts application initialisation. 
I am very interested in your diagram.

Thanks in advance
Sandra.
-Original Message-
From: Rajesh Pradhan [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2002 11:34
To: Struts Users Mailing List
Subject: RE: Struts application initialisation workflow.


Hi Heligon,
There are some very good documents at the http://husted.com/struts/ and also
u
can read the Struts API which also would really be useful.

There is also one UML diagram showing the whole flow of struts application.
if u want it .. i will fwd it to u.

bye.

cheers
Rajesh Pradhan



-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 2:37 PM
To: '[EMAIL PROTECTED]'
Subject: Struts application initialisation workflow.



Hi,

Where can I find information about the application start-up sequence
diagram ?
I need to know in which order struts components and servlet classes
are instantiated.
For example if I use ServletContextListener, HttpSessionListener,
and a sub-class of RequestProcessor,
which class is instantiated in first.
Is the order  the same as the classes have been declared in the
web.xml file ?
If the web.xml is configured in order to initialize the controller
servlet when the webapp starts up,
Is the init() method of the ActionServlet responsible of listeners
instantiation? and when is the RequestProcessor
instantiated in the init() too ?
The processPreprocess() method is called for the first time when the
first request associated to an action arrive, is it true ?
It is difficult to understand well the initialisation workflow but
it is important for developers.
Has somebody a documentation about that or the one solution is to
look at the struts source ?
People which can reply to these questions are probably struts
developers, but I don't know if I can post
such questions in the struts-dev mailing list.

Thanks a lot.

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

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




RE: Struts application initialisation workflow.

2002-07-03 Thread Heligon Sandra

Thanks for your information.
I don't remember that the RequestPorcessor must be defined in
the struts-config file.
I read the servlet 2.3 specifications and more precisely sections
which deal with Lifecycle events.
But this section doesn't explain if the container instantiates the
struts controller before the listeners. The controller is defined
in the web.xml too. I want to draw a diagram with ServletContainer(actor), 
ActionServlet, RequestProcessor, ServletContextListener and
HttpSessionListener
in order to explain initialisation(instantiation) and another diagram
with a processRequest.

You said that struts instantiates the RequestPorcessor, is it done in the
init() method of the ActionServlet?
Can you confirm that the processPreprocess() method is called on the
execute() method of 
the ActionServlet. 
 
As I said in a previous mail, I don't think that reading struts API
documentation
is the best solution to understand initialisation or request process.
An UML project model is better.

Thanks.
Sandra
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2002 11:33
To: Struts Users Mailing List
Subject: RE: Struts application initialisation workflow.


Many the questions you ask can be answered by understanding the current
servlet specification.
And as you already mentioned, many of the Struts initialization questions
can be answered by simply
looking at the RequestProcessor methods. I've seen other threads which
discuss in detail the initialization process. You may want to check the
archives.
http://www.mail-archive.com/struts-user%40jakarta.apache.org/

To answer your questions:

ServletContextListeners are defined in web.xml, are instantiated by the
container,
are invoked in the order in which they are defined in web.xml. Struts does
not manage
them. See Section 10.2 Servlet2.3 spec.
http://www.jcp.org/aboutJava/communityprocess/final/jsr053/

HttpSessionListeners are defined in web.xml, are instantiated by the
container, and
are invoked when the container creates or destroys a session and when a
session is invalidated.
Struts does not manage them. See Section 10.2 Servlet2.3 spec.

RequestProcessor subclasses are defined in struts-config.xml, are
instantiated by Struts,
and are invoked upon each request to the Struts framework.
See Struts 1.1 DTD
(http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd)
and RequestProcessor class.

processPreprocess() is always true, unless you override it.
See RequestProcessor class.

HTH,

robert

 -Original Message-
 From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 03, 2002 5:07 AM
 To: '[EMAIL PROTECTED]'
 Subject: Struts application initialisation workflow.



   Hi,

   Where can I find information about the application start-up sequence
 diagram ?
   I need to know in which order struts components and servlet classes
 are instantiated.
   For example if I use ServletContextListener, HttpSessionListener,
 and a sub-class of RequestProcessor,
   which class is instantiated in first.
   Is the order  the same as the classes have been declared in the
 web.xml file ?
   If the web.xml is configured in order to initialize the controller
 servlet when the webapp starts up,
   Is the init() method of the ActionServlet responsible of listeners
 instantiation? and when is the RequestProcessor
   instantiated in the init() too ?
   The processPreprocess() method is called for the first time when the
 first request associated to an action arrive, is it true ?
   It is difficult to understand well the initialisation workflow but
 it is important for developers.
   Has somebody a documentation about that or the one solution is to
 look at the struts source ?
   People which can reply to these questions are probably struts
 developers, but I don't know if I can post
   such questions in the struts-dev mailing list.

   Thanks a lot.

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

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




Re: Struts Application in Production

2002-03-19 Thread Jon Ferguson

Jay,

This is very cool.. Well done!
Unfortunately,  I can't be at Java One... you haven't got an paper out on it do
you?
I would very much like to find out more.

Cheers,
Jon

Jay sissom wrote:

 I'm proud to announce that IU has a new Struts application in production.
 We started developing in Java (and Struts) about 8 months ago and in those
 8 months, a team of 4-5 people built a portal for IU.  There is a guest
 login, so you can look if you like:  http://onestart.iu.edu/

 This used struts as it's UI.  It's running on Websphere 4.0.x on AIX and
 was built with JBuilder 5/6 on Windows.

 If you want more details about how we did it, we will be giving a Birds of
 a Feather talk at JavaOne about how we got started in Java development and
 how we chose our tools.  It will be Monday night, 8:30PM - 9:20PM in the
 Telegraph Hill Sheraton Palace hotel.  The talk is called Migrating to
 the JavaTM 2 Platform, Enterprise Edition (J2EETM): Zero to Sixty in 6.1
 Months.  Hope to see you there.

 Jay Sissom
 Indiana University

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


RE: Struts Application in Production

2002-03-19 Thread Phillips, George H.

Nice looking site. I can't get to JavaOne but I have about a million
questions.  Any other info channels available?  Whitepapers?  Anything?
Thanks!
George Phillips
University of Miami, FL
[EMAIL PROTECTED]

 -Original Message-
 From: Jay sissom [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 18, 2002 10:57 PM
 To: Struts Users Mailing List
 Subject: Struts Application in Production
 
 
 I'm proud to announce that IU has a new Struts application in 
 production.  
 We started developing in Java (and Struts) about 8 months ago 
 and in those 
 8 months, a team of 4-5 people built a portal for IU.  There 
 is a guest 
 login, so you can look if you like:  http://onestart.iu.edu/
 
 This used struts as it's UI.  It's running on Websphere 4.0.x 
 on AIX and 
 was built with JBuilder 5/6 on Windows.
 
 If you want more details about how we did it, we will be 
 giving a Birds of 
 a Feather talk at JavaOne about how we got started in Java 
 development and 
 how we chose our tools.  It will be Monday night, 8:30PM - 
 9:20PM in the 
 Telegraph Hill Sheraton Palace hotel.  The talk is called 
 Migrating to 
 the JavaTM 2 Platform, Enterprise Edition (J2EETM): Zero to 
 Sixty in 6.1 
 Months.  Hope to see you there.
 
 Jay Sissom
 Indiana University
 
 
 
 --
 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]




Re: Struts Application in Production

2002-03-19 Thread Jay sissom

I wasn't on this team but thought people would be interested in seeing it.

Right now, we don't have a white paper on it, but we do have lots of 
PowerPoint presentations about the project at:

http://www.indiana.edu/~myiu

None of them are very technical and some of them are quite outdated.  We
hope to have some technical information soon and when we do, I'll let
everyone know.

Jay

On Tue, 19 Mar 2002, Jon Ferguson wrote:

 Jay,
 
 This is very cool.. Well done!
 Unfortunately,  I can't be at Java One... you haven't got an paper out on it do
 you?
 I would very much like to find out more.
 
 Cheers,
 Jon
 
 Jay sissom wrote:
 
  I'm proud to announce that IU has a new Struts application in production.
  We started developing in Java (and Struts) about 8 months ago and in those
  8 months, a team of 4-5 people built a portal for IU.  There is a guest
  login, so you can look if you like:  http://onestart.iu.edu/
 
  This used struts as it's UI.  It's running on Websphere 4.0.x on AIX and
  was built with JBuilder 5/6 on Windows.
 
  If you want more details about how we did it, we will be giving a Birds of
  a Feather talk at JavaOne about how we got started in Java development and
  how we chose our tools.  It will be Monday night, 8:30PM - 9:20PM in the
  Telegraph Hill Sheraton Palace hotel.  The talk is called Migrating to
  the JavaTM 2 Platform, Enterprise Edition (J2EETM): Zero to Sixty in 6.1
  Months.  Hope to see you there.
 
  Jay Sissom
  Indiana University
 
  --
  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]




RE: Struts-Application in Default Servlet Context

2002-03-03 Thread Jesse Alexander (KADA 12)

Hi,

theoretically you would have to put the struts.jar into the 
---default_context_dir---/WEB-INF/lib and then it should work.

There are messages in the mailing-list archive that show how
using Thread.currentThread().getContextClassLoader() instead
of Class.forName() will allow you to put Struts.jar also into the
default_path. As you have the Struts-sources available you could 
also modify it (make a search for forName( and then change).

About the second problem: just configure correspondently. I do it all
the time...
eg.
!-- start action --
actionpath=/start
   type=com.csg.cs.jst.strutssample.control.StartAction
/action

!-- welcome action --
actionpath=/welcome
   type=com.csg.cs.jst.strutssample.control.WelcomeAction
  forward name=success  path=/home.jsp/
  forward name=problem  path=/homeProblem.jsp/
/action
will have /do/welcome and /do/start route to different action-classes.


hope this helps
Alexander Jesse



by the way: your mail has not come in HTML...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 28. Februar 2002 16:36
To: [EMAIL PROTECTED]
Subject: Struts-Application in Default Servlet Context





Hi,

I want to combine a struts-application with a Vignette Content Management
System.
We are using a WebLogic 5.1, and Vignette puts its JSPs in the default context.

What I want to achieve is to have the struts application integrated with the
default context,
such that I can use a forward to the JSP pages that have been put there by
Vignette.

Is that possible?
I see the problem in incorporating struts.jar in some default_path, which is
discouraged by the documentation.
How can I do that?

Challenge for Level 2: I want to use multiple action-classes with my
application, for
example such that URLs
http:.../servlets/main.do
http:.../servlets/part1.do
http:.../servlets/part2.do
all access different action-classes (and use different form-beans, of course).

Am I on the wrong track here?

Thanks for any help,
-Ronald

P.S. My apologies if this message comes as HTML. In my company I have no
other means to send mail then through Notes.



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