RE: ActionForm DB validation

2003-06-26 Thread FrenzyGNX
I think that kind of validation is better to be done
in the business logic layer.

 --- Fedor Smirnoff [EMAIL PROTECTED] wrote: 
Hey,
 
 I wanted to find out if its acceptable to access
 database in the validation stage of SOMEActionForm.
 Basically when a user enters email address to
 subscribe, I need to check if it already exists in
 the
 database, should I do it in SOMEAction or
 SOMEActionForm?
 
 Thank you
 Fedor
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



Re: Connection Pool: JPetStore Database Layer

2003-06-26 Thread FrenzyGNX
So maybe you can help me with the problem? I have
posted the problem in Commons list and here, but have
got no answer so far. Thanks.

And to be precise, the error is not closed
connection, but broken pipe.

 --- Adam Hardy [EMAIL PROTECTED]
wrote:  I just checked the Apache bugzilla and
couldn't find
 any bugs on this (I 
 queried using closed or connection and got 23
 hits). There are 2 bugs 
 about closed connections, but they are both resolved
 -
 

http://issues.apache.org/bugzilla/show_bug.cgi?id=9073
 

http://issues.apache.org/bugzilla/show_bug.cgi?id=8620
 
 I'm using version 1.0 too. Not had any problems with
 it.
 
 I see there was no reply to that message you quote
 either.
 
 Adam
 
 FrenzyGNX wrote:
  There is a bug in DBCP that will return closed
  connections, even if the validation query is set.
  
 

http://www.mail-archive.com/[EMAIL PROTECTED]/msg66565.html
  
  Also due to the very fact that it is removed from
  Struts 1.1rc2, and there were some discussions
  regarding it in this list earlier on.
  
   --- Adam Hardy [EMAIL PROTECTED]
  wrote:  FrenzyGNX wrote:
  
 My personal experience with DBCP is not good. I
 
 would
 
 avoid it in my next project. 
 
 
  From what point of view were you disappointed?
 
 
 Adam
 
 
 
  
 

-
  
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
  __
  Do You Yahoo!?
  Send free SMS from your PC!
  http://sg.sms.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]
  

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



Re: Connection Pool: JPetStore Database Layer

2003-06-26 Thread FrenzyGNX
Thanks. I have submitted a bug report.

 --- Adam Hardy [EMAIL PROTECTED]
wrote:  love to help but how? I searched for a bug in
the
 Commons bugzilla and 
 didn't find one - your best bet would be to
 establish a test case for 
 the problem and post it in bugzilla - you don't need
 to be an Apache 
 developer to search or add bugs to their bugzilla.
 
 FrenzyGNX wrote:
  So maybe you can help me with the problem? I have
  posted the problem in Commons list and here, but
 have
  got no answer so far. Thanks.
  
  And to be precise, the error is not closed
  connection, but broken pipe.
  
   --- Adam Hardy [EMAIL PROTECTED]
  wrote:  I just checked the Apache bugzilla and
  couldn't find
  
 any bugs on this (I 
 queried using closed or connection and got 23
 hits). There are 2 bugs 
 about closed connections, but they are both
 resolved
 -
 
 
  
 

http://issues.apache.org/bugzilla/show_bug.cgi?id=9073
  
 
 

http://issues.apache.org/bugzilla/show_bug.cgi?id=8620
  
 I'm using version 1.0 too. Not had any problems
 with
 it.
 
 I see there was no reply to that message you quote
 either.
 
 Adam
 
 FrenzyGNX wrote:
 
 There is a bug in DBCP that will return closed
 connections, even if the validation query is set.
 
 
 
 

http://www.mail-archive.com/[EMAIL PROTECTED]/msg66565.html
  
 Also due to the very fact that it is removed from
 Struts 1.1rc2, and there were some discussions
 regarding it in this list earlier on.
 
  --- Adam Hardy
 [EMAIL PROTECTED]
 wrote:  FrenzyGNX wrote:
 
 
 My personal experience with DBCP is not good. I
 
 would
 
 
 avoid it in my next project. 
 
 
 From what point of view were you disappointed?
 
 
 Adam
 
 
 
 
 
 

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

__
 Do You Yahoo!?
 Send free SMS from your PC!
 http://sg.sms.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]
  
  
  
  __
  Do You Yahoo!?
  Send free SMS from your PC!
  http://sg.sms.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]
  

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



Re: Connection Pool: JPetStore Database Layer

2003-06-25 Thread FrenzyGNX
There is a bug in DBCP that will return closed
connections, even if the validation query is set.

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

Also due to the very fact that it is removed from
Struts 1.1rc2, and there were some discussions
regarding it in this list earlier on.

 --- Adam Hardy [EMAIL PROTECTED]
wrote:  FrenzyGNX wrote:
  My personal experience with DBCP is not good. I
 would
  avoid it in my next project. 
  
 
  From what point of view were you disappointed?
 
 
 Adam
 
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



RE: Connection Pool: JPetStore Database Layer

2003-06-24 Thread FrenzyGNX
My personal experience with DBCP is not good. I would
avoid it in my next project. 

 --- Yansheng Lin [EMAIL PROTECTED] wrote: 
Found it. But as expected, there is only one real
 connection.
 
 Maybe I can use commons-dbcp package.
 
 
 -Original Message-
 From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
 Sent: June 24, 2003 1:24 PM
 To: 'Struts Users Mailing List'
 Subject: Connection Pool: JPetStore Database Layer
 
 
   
 Ok, for my next personal project(an online language
 translator that displays
 multiple results), I decided to go with ibatis
 database layer(from JPetStore)
 for db access.  And I expect that a lot of people
 are going to use my
 state-of-art system:). So I need (a) connection
 pool(s) so that db access won't
 be the determining factor in my application.  Which
 classes I need to modify in
 the database layer?  Or I have to create a new
 ConnectionPool package and get
 connection from there?
 
 Any help is greatly appreciated!
 
 Yan
 
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



RE: Do u know this bug ?

2003-06-23 Thread FrenzyGNX
Can you tell me the directory structure of your jsp
files and html files?

 --- Tran Nguyen Thanh Bao [EMAIL PROTECTED]
wrote:  
 Thank you, i fixed the bug now.
 However, another problem occurs, the jsp file that i
 forward to is a frame of :
 HTML
   HEAD
   META HTTP-EQUIV=Content-Type
 CONTENT=text/html;CHARSET=Shift_JIS
   META HTTP-EQUIV=Pragma CONTENT=no-cache
   TITLEWebServe/TITLE
   /HEAD
   FRAMESET ROWS=8%,*,0 BORDER=0
   FRAME SRC=menudummy.html NAME=HEADER
 SCROLLING=NO
   FRAME SRC=menuredirect.html NAME=BODY
   FRAME SRC=menudummy.html NAME=FOOTER
 SCROLLING=NO
   /FRAMESETnoframes/noframes
   BODY/BODY
 /HTML
 
 These html file are in the same folder with the jsp
 file. And menuredirect.html will contains a menubody
 jsp :
 But they couldnot be found :(
 
 type Status report
 
 message /menuredirect.html
 
 description The requested resource
 (/menuredirect.html) is not available.
 
 Pls help me to find out the problem, thanks much
 
 
 
 -Original Message-
 From: FrenzyGNX [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 23, 2003 12:39 PM
 To: Struts Users Mailing List
 Subject: Re: Do u know this bug ?
 
 
 It seems that you are doing a forward after
 partially
 populating the response. Below is from Servlet Spec
 2.3, SRV.8.4 - 
 
 If output data exists in the response buffer that
 has
 not been commited, the content must be cleared
 before
 the the target servlet's service method is called.
 If
 the response has been commited, an
 IllegalStateException must be thrown.
 
 That may be relevant. Also search for
 IllegalStateException in the spec may also help.
 
  --- Tran Nguyen Thanh Bao [EMAIL PROTECTED]
 wrote:  
  Dear all,
  Does any one know the following kind of bug:
  After submit and process by Action bean,I print
 the
  ActionForwaed object:  
  forward to:
 

ForwardConfig[name=success,path=/pages/jsp/common/CM-001-SearchConditionInput.jsp,redirect=false,contextRelative=false]
  
  StandardWrapperValve[action]: Servlet.service()
 for
  servlet action threw exception
  java.lang.IllegalStateException: Cannot forward
  after response has been committed
  java.lang.IllegalStateException: Cannot forward
  after response has been committed   at
 

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:367)
  at
 

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
  at
 

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1058)
  at
 

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:451)
  at
 

org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)
  at
 

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
  at
 

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

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
  at
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  at
 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  at
 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at
 

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at
 

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at
 

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
  at
 

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at
 

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at
 

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564

Re: Problem using message resource file

2003-06-23 Thread FrenzyGNX
Have you tried to reload the web application after you
make the changes?

 --- Nikolay Ganev [EMAIL PROTECTED] wrote:  Hi
All,
 
 I use Struts rc1 and JBoss 3.2.0. I have problems
 using message
 resource properite file. Some fileds in that file
 are not accessible!!
 I checked that the file is refreshed in JBoss deploy
 dir.
 If you have any suggestions please write back!
 
 Thx
 
 Nikolay 
 mailto:[EMAIL PROTECTED]
 
 
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



Re: Can I use 2 loggers (e.g. to write to 2 files) in one Action?

2003-06-23 Thread FrenzyGNX
Log4J (and most other logging packages) will log a
message if its level = the defined level. So

log4j.rootLogger=DEBUG, stdout, rolling

will log FATAL, ERROR, INFO, DEBUG into rolling.

 --- Pingili, Madhupal [EMAIL PROTECTED] wrote:
 Hi All,
 Can I use two loggers in one Action?
 I have set the Commons logging to use log4j.
 I need to log error messages in one file and all
 other messages in another
 file.
 In log4j.properties, I have following lines:
 # log4j properties file
 log4j.rootLogger=DEBUG, stdout, rolling
 log4j.logger.pilotErrors=WARN, A2
 
 # Configure the rolling and A2 appenders to be
 FileAppender
 log4j.appender.rolling=org.apache.log4j.FileAppender
 log4j.appender.A2=org.apache.log4j.FileAppender
 ...
 
 In my Action,
  // The Log instance for application's debug
 messages.
  Log log = LogFactory.getLog(this.getClass());
 //supposed to use rootLogger
  // The Log instance for application's error
 messages.
  Log logError = LogFactory.getLog(pilotErrors); 
 //supposed to use
 pilotErrors logger
  log.debug(User[ + userName + ]:  + User has 
 +
invoked initialization action in session
  + session.getId() );
  logError.error(User[' + userName + ']:  + User
 has  +
 invoked initialization action in
 session  +
 session.getId() ); 
 
 Both debug and error messages are written in file
 specified with rolling
 FileAppender. Why?
 
 What am I missing??
 
 Thanks for any ideas,
 
 Reddy
 
 
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



RE: Do u know this bug ?

2003-06-23 Thread FrenzyGNX
I am not exactly sure myself, but I think if you
specify a html:base, it will help. Otherwise, the
web server is looking at root dir of the web appl for
the html file.

 --- Tran Nguyen Thanh Bao [EMAIL PROTECTED]
wrote:  
 My jsp structure:
 + jsp\menu\index.jsp (frame of menudummy and
 menuredirect)
  HTML
   HEAD
   META HTTP-EQUIV=Content-Type
  CONTENT=text/html;CHARSET=Shift_JIS
   META HTTP-EQUIV=Pragma CONTENT=no-cache
   TITLEWebServe/TITLE
   /HEAD
   FRAMESET ROWS=8%,*,0 BORDER=0
   FRAME SRC=menudummy.html NAME=HEADER
  SCROLLING=NO
   FRAME SRC=menuredirect.html NAME=BODY
   FRAME SRC=menudummy.html NAME=FOOTER
  SCROLLING=NO
   /FRAMESETnoframes/noframes
   BODY/BODY
  /HTML
 + jsp\menu\header.html
 + jsp\menu\menudummy.html (empty- no content)
 + jsp\menu\menuredirect.html:
   HTML
   HEAD
   META HTTP-EQUIV=Content-Type
 CONTENT=text/html;CHARSET=Shift_JIS
   META HTTP-EQUIV=Pragma CONTENT=no-cache
   TITLEWebServe/TITLE
   /HEAD
   SCRIPT SRC=../../js/webserve.js/SCRIPT
   Script Language=JavaScript
   parent.HEADER.location.href = header.html;
   parent.BODY.location.href = menubody.jsp;
   /Script
   BODY/BODY
   /HTML
 
 When i forward to the index.jsp (at first time it is
 index.html, but because the tag lib in menubody.jsp
 not be understood, so i tried to change into
 index.jsp and get this error), menudummy and
 menuredirect not be found.
 
 -Original Message-
 From: FrenzyGNX [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 23, 2003 5:20 PM
 To: Struts Users Mailing List
 Subject: RE: Do u know this bug ?
 
 
 Can you tell me the directory structure of your jsp
 files and html files?
 
  --- Tran Nguyen Thanh Bao [EMAIL PROTECTED]
 wrote:  
  Thank you, i fixed the bug now.
  However, another problem occurs, the jsp file that
 i
  forward to is a frame of :
  HTML
  HEAD
  META HTTP-EQUIV=Content-Type
  CONTENT=text/html;CHARSET=Shift_JIS
  META HTTP-EQUIV=Pragma CONTENT=no-cache
  TITLEWebServe/TITLE
  /HEAD
  FRAMESET ROWS=8%,*,0 BORDER=0
  FRAME SRC=menudummy.html NAME=HEADER
  SCROLLING=NO
  FRAME SRC=menuredirect.html NAME=BODY
  FRAME SRC=menudummy.html NAME=FOOTER
  SCROLLING=NO
  /FRAMESETnoframes/noframes
  BODY/BODY
  /HTML
  
  These html file are in the same folder with the
 jsp
  file. And menuredirect.html will contains a
 menubody
  jsp :
  But they couldnot be found :(
  
  type Status report
  
  message /menuredirect.html
  
  description The requested resource
  (/menuredirect.html) is not available.
  
  Pls help me to find out the problem, thanks much
  
  
  
  -Original Message-
  From: FrenzyGNX [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 23, 2003 12:39 PM
  To: Struts Users Mailing List
  Subject: Re: Do u know this bug ?
  
  
  It seems that you are doing a forward after
  partially
  populating the response. Below is from Servlet
 Spec
  2.3, SRV.8.4 - 
  
  If output data exists in the response buffer that
  has
  not been commited, the content must be cleared
  before
  the the target servlet's service method is called.
  If
  the response has been commited, an
  IllegalStateException must be thrown.
  
  That may be relevant. Also search for
  IllegalStateException in the spec may also help.
  
   --- Tran Nguyen Thanh Bao [EMAIL PROTECTED]
  wrote:  
   Dear all,
   Does any one know the following kind of bug:
   After submit and process by Action bean,I print
  the
   ActionForwaed object:  
   forward to:
  
 

ForwardConfig[name=success,path=/pages/jsp/common/CM-001-SearchConditionInput.jsp,redirect=false,contextRelative=false]
   
   StandardWrapperValve[action]: Servlet.service()
  for
   servlet action threw exception
   java.lang.IllegalStateException: Cannot forward
   after response has been committed
   java.lang.IllegalStateException: Cannot forward
   after response has been committed at
  
 

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:367)
 at
  
 

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
 at
  
 

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1058)
 at
  
 

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:451)
 at
  
 

org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)
 at
  
 

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
 at
  
 

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

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
 at
  
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:760

Re: Dynamic number of properties in an ActionForm?

2003-06-22 Thread FrenzyGNX
You can use a Collection or array to hold the data and
use logic:iterate or c:forEach tags to interate
through the collection and display the items.

You can use a Map backed form to send back the values.

 --- Bjorn T Johansen [EMAIL PROTECTED] wrote:  I have
a little question. How do I setup a page with
 a form where I
 don't know the number of properties in the form at
 design time? I have a
 table of rows with a known number of columns but I
 don't know the number
 of rows at design time, so how do I implement this
 using an ActionForm?
 I need to read back the values also, not only
 display them...
 
 
 Regards,
 
 BTJ
 
 

---
 Bjørn T Johansen (BSc,MNIF)
 Executive Manager
 [EMAIL PROTECTED]  Havleik Consulting
 Phone : +47 67 54 15 17 Conradisvei 4
 Fax : +47 67 54 13 91   N-1338 Sandvika
 Cellular : +47 926 93 298  
 http://www.havleik.no

---
 The stickers on the side of the box said Supported
 Platforms: Windows
 98, Windows NT 4.0,
 Windows 2000 or better, so clearly Linux was a
 supported platform.

---
 
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



Re: Do u know this bug ?

2003-06-22 Thread FrenzyGNX
It seems that you are doing a forward after partially
populating the response. Below is from Servlet Spec
2.3, SRV.8.4 - 

If output data exists in the response buffer that has
not been commited, the content must be cleared before
the the target servlet's service method is called. If
the response has been commited, an
IllegalStateException must be thrown.

That may be relevant. Also search for
IllegalStateException in the spec may also help.

 --- Tran Nguyen Thanh Bao [EMAIL PROTECTED]
wrote:  
 Dear all,
 Does any one know the following kind of bug:
 After submit and process by Action bean,I print the
 ActionForwaed object:  
 forward to:

ForwardConfig[name=success,path=/pages/jsp/common/CM-001-SearchConditionInput.jsp,redirect=false,contextRelative=false]
 
 StandardWrapperValve[action]: Servlet.service() for
 servlet action threw exception
 java.lang.IllegalStateException: Cannot forward
 after response has been committed
 java.lang.IllegalStateException: Cannot forward
 after response has been committed at

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:367)
   at

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
   at

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1058)
   at

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:451)
   at

org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)
   at

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
   at

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

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
   at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
   at

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
   at java.lang.Thread.run(Thread.java:484)
 
 
 Thanks for any advices from u,
 TRAN
 
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



RE: [OT] Using different JDK in Eclipse

2003-06-20 Thread FrenzyGNX
Thanks. But this will affect all projects opened
right? I would like to specify different JDK per
project.

 --- Steve Raeburn [EMAIL PROTECTED] wrote:  You can
also change the current default JRE via
 Window/Preferences/Java/Installed JREs.
 
 Eclipse maintains JRE_LIB and JRE_SRC variables
 which always point to the
 current default JRE. This should avoid you having to
 change your project if
 you need to swap between different JREs.
 
 Steve
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]
  Sent: June 19, 2003 11:27 PM
  To: Struts Users Mailing List
  Subject: Re: [OT] Using different JDK in Eclipse
 
 
  You don't specify the jdk path, you choose to
 include a particular jre
  in your project.  This gives you project-level jre
 selection.
 
  Here's something I threw together for you:
  http://www.struts-atlanta.org/help.do
 
 
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  770-822-3359
  AIM:jmitchtx
 
 
 
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



Re: [OT] Using different JDK in Eclipse

2003-06-20 Thread FrenzyGNX
Does that mean the default JRE's javac will always be
invoked when I compile, but the classpath will be
different?  

For example, my default JRE is 1.3.1, but for a
project I want to use 1.4.1, so I change Project
Properties - Java Build Path - Library to point to
1.4.1 libraries as shown in your link. So which javac
will be used now? Does this javac recognizes features
such as assertion?

I see there is a JDK Compliance option under Project
Properties - Java Compiler, if I switch it to 1.4
will it help?

I guess I can try it out, but if anyone already knows
it, it will be great.

 --- James Mitchell [EMAIL PROTECTED] wrote: 
You don't specify the jdk path, you choose to
 include a particular jre
 in your project.  This gives you project-level jre
 selection.
 
 Here's something I threw together for you:
 http://www.struts-atlanta.org/help.do
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 770-822-3359
 AIM:jmitchtx
 
 
 
 - Original Message - 
 From: FrenzyGNX [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Sent: Friday, June 20, 2003 12:57 AM
 Subject: Re: [OT] Using different JDK in Eclipse
 
 
  Thanks. However, I didn't see any place to specify
  different JDK home paths. Can you give more
 details?
 
  Thanks again.
 
   --- David Graham [EMAIL PROTECTED] wrote:
  
   Is there a way to set up different JDK for
   different
   projects in Eclipse 2.1? I have to use a
 different
   version of JDK for certain projects, because of
   dependency on some old packages.
  
   Right click the project  Properties  Java
 Compiler
  
   David
  
   
   Thanks.
   
  
 __
   Do You Yahoo!?
   Send free SMS from your PC!
   http://sg.sms.yahoo.com
   
  
 

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

_
   Protect your PC - get McAfee.com VirusScan
 Online
  
 

http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
  
  
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
 
  __
  Do You Yahoo!?
  Send free SMS from your PC!
  http://sg.sms.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]
  

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



RE: [OT] Using different JDK in Eclipse

2003-06-20 Thread FrenzyGNX
Thanks. I will try that.

 --- [EMAIL PROTECTED] wrote:  That is
not true..U can change from default jre to
 any jre u have installed.
 go to menu item  
 Window/preferences/java/instaledjres.It gives a list
 of all available jres or u can add new ones if u
 want.
 
 But This is applicable to all the projects in the
 workspace.
 So if you want different jre for each project, do as
 follows.
 
 When starting eclipse , you can give -data argument
 as location of the workspace.
 So create a shortcut to eclipse  for each project
 you want to have different jre .And do soemthing as
 follows.
 
 E:\eclipse2.1\eclipse.exe -data
 E:\eclipse\workspace\Prod01_EquatePlus where
 E:\eclipse\workspace\Prod01_EquatePlus points to
 your workspace for project.
 
 And now this will be treated as different eclipse
 installation.So u can specify different jre for each
 project now.
 
 HTH.
 
 regards,
 Shirish.
 -Original Message-
 From: FrenzyGNX [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 20, 2003 11:01 AM
 To: Struts Users Mailing List
 Subject: Re: [OT] Using different JDK in Eclipse
 
 
 Does that mean the default JRE's javac will always
 be
 invoked when I compile, but the classpath will be
 different?  
 
 For example, my default JRE is 1.3.1, but for a
 project I want to use 1.4.1, so I change Project
 Properties - Java Build Path - Library to point to
 1.4.1 libraries as shown in your link. So which
 javac
 will be used now? Does this javac recognizes
 features
 such as assertion?
 
 I see there is a JDK Compliance option under Project
 Properties - Java Compiler, if I switch it to 1.4
 will it help?
 
 I guess I can try it out, but if anyone already
 knows
 it, it will be great.
 
  --- James Mitchell [EMAIL PROTECTED] wrote: 
 You don't specify the jdk path, you choose to
  include a particular jre
  in your project.  This gives you project-level jre
  selection.
  
  Here's something I threw together for you:
  http://www.struts-atlanta.org/help.do
  
  
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  770-822-3359
  AIM:jmitchtx
  
  
  
  - Original Message - 
  From: FrenzyGNX [EMAIL PROTECTED]
  To: Struts Users Mailing List
  [EMAIL PROTECTED]
  Sent: Friday, June 20, 2003 12:57 AM
  Subject: Re: [OT] Using different JDK in Eclipse
  
  
   Thanks. However, I didn't see any place to
 specify
   different JDK home paths. Can you give more
  details?
  
   Thanks again.
  
--- David Graham [EMAIL PROTECTED]
 wrote:
   
Is there a way to set up different JDK for
different
projects in Eclipse 2.1? I have to use a
  different
version of JDK for certain projects, because
 of
dependency on some old packages.
   
Right click the project  Properties  Java
  Compiler
   
David
   

Thanks.

   
 
 __
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

   
  
 

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

   
   
  
 

_
Protect your PC - get McAfee.com VirusScan
  Online
   
  
 

http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
   
   
   
  
 

-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
  
  
 __
   Do You Yahoo!?
   Send free SMS from your PC!
   http://sg.sms.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]
   
 
 __
 Do You Yahoo!?
 Send free SMS from your PC!
 http://sg.sms.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]
  

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



[OT] Using different JDK in Eclipse

2003-06-19 Thread FrenzyGNX
Is there a way to set up different JDK for different
projects in Eclipse 2.1? I have to use a different
version of JDK for certain projects, because of
dependency on some old packages.

Thanks.

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



Re: [OT] Using different JDK in Eclipse

2003-06-19 Thread FrenzyGNX
Thanks. However, I didn't see any place to specify
different JDK home paths. Can you give more details?

Thanks again.

 --- David Graham [EMAIL PROTECTED] wrote:  
 Is there a way to set up different JDK for
 different
 projects in Eclipse 2.1? I have to use a different
 version of JDK for certain projects, because of
 dependency on some old packages.
 
 Right click the project  Properties  Java Compiler
 
 David
 
 
 Thanks.
 
 __
 Do You Yahoo!?
 Send free SMS from your PC!
 http://sg.sms.yahoo.com
 

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

_
 Protect your PC - get McAfee.com VirusScan Online  

http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



RE: question about struts

2003-06-06 Thread FrenzyGNX
I use an initialization servlet to establish db and
EJB server connections. How does it compare to PlugIn
approach?

Thanks.

 --- Andrew Hill [EMAIL PROTECTED]
wrote:  The ActionServlet has a reference to the
servlet
 context which may be
 retrieved using:
 servlet.getServletContext()
 Using the servlet reference passed to your plugins
 init() method.
 
 Your plugin would initialise those objects you want
 stored in the servlet
 context, and then store them there. The plugin
 itself doesnt need to be
 stored as its job is just initialisation.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Friday, 6 June 2003 14:18
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: question about struts
 
 
 Hi David,
   thanx 4 the suggestion...actually i was thinking on
 either use a
 plugin or extending action servlete.
 but i m left out with one issue: where actually do i
 have to write the code
 for storing the plugin in the servlet context?
 struts docs mention
 'The PlugIn interface extends Action and so that
 applications can easily
 hook into the ActionServlet lifecycle.'
 and
 'At runtime, any resource setup by init would be
 accessed by Actions or
 business tier classes'
 
 but how?
 
 all the searchs that i have done shows how to
 configure plugins,...not how
 to use..
 
 can anyone help?
 
 thanx and regards
   marco
 
 
 
 
 
  -Original Message-
  From: ext David Graham
 [mailto:[EMAIL PROTECTED]
  Sent: 05 June, 2003 17:28
  To: [EMAIL PROTECTED]
  Subject: Re: question about struts
 
 
  You can use a Struts PlugIn to initialize your
 components and
  store them in
  the ServletContext.
 
  David
 
  hi all,
 i have been working with JSP model 2 for few
 years, and
  now i want to move
  to struts.
  i am starting to get acquainted with it, and i
 need help to
  face this
  situation.
  in my mvc, i am using 2 components, one to
 connect to R3 and
  the other for
  connecting to DB.
  the lifecycle of those components is the same as
 my servlet,
  since those
  components are not
  user/session/request specific.
  
  in reading docs about struts, i could not figure
 out where
  to put those
  components in the
  struts framework. of course, i can put them in
  ActionServlet, but this will
  require me to modify the
  code of the ActionServlet.
  
  is there any other way to do that other than
 modifying the code of
  ActionServlet?
  
  hope someone can help...
  
  thanx in advance and regards
 marco
  
 

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

_
  MSN 8 helps eliminate e-mail viruses. Get 2 months
 FREE*.
  http://join.msn.com/?page=features/virus
 
 
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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



Re: SOS. How to solve this problem ????

2003-06-05 Thread FrenzyGNX
Maybe you should explain what does your application
do, how did you configure your application, and what
is ze file.

 --- Tran Nguyen Thanh Bao [EMAIL PROTECTED]
wrote:  
 Dear all,
 When I first try my own application with Struts
 (using Tomcat 4.1.18), the errors generated as
 follow:
 
 HTTP Status 500 -
 type Exception report
 message
 description The server encountered an internal error
 () that prevented it from fulfilling this request.
 exception
 org.apache.jasper.JasperException: Cannot read file:
 ze file
 While I deploy an example of Struts, it runs well.
 What should I configure more for my application so
 that it can run ?
 
 

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

__
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com

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