Re: Strange Validator Problem

2003-02-22 Thread Robert Morse
This problem was solved thanks to another lister.  It has nothing to do
with JDK version.  JDK 1.4.1_01 works just fine.  The solution was to
reference a global forward in the input tag of the action.  Struts
versions prior to 1.1 did not require this.  Perhaps a bug?



On Mon, 2003-02-10 at 12:39, Robert Morse wrote:
 Hello,
 I have a very strange validator problem with 1.1-b3.  
 
 I have a simple logon form (ValidatorForm) that accepts a userid and
 password.  In my validation.xml file I'm specifying that the fields are
 required.  The struts-config.xml file has the validate=true.  When I
 execute this, I get the logon.jsp page successfully displayed, but if I
 leave the fields blank and submit, no errors occur, but a blank white
 display shows up in the browser.
 
 Now the strange part, if I change validate=false, check for
 non-existent password or userid in the Action, and use errors.add() to
 add the appropriate errors; this time when I submit with the fields
 blank, I get the form re-displayed with errors.  The 'input' key remains
 the same between both versions.
 
 If I set up a log4.properties file with the level set to DEBUG, I can
 see that the resource keys for the error messages are being loaded, and
 I get a message saying that the validation failed -- so I know the
 validator is being called.  The last message I get tells me:  Validation
 failed, returning to '/logon/logon.jsp'.  But all I get after that is a
 blank white page, yet the '/logon/logon.jsp' is the correct path and
 works when validate='false'.
 
 Any ideas?
 
 Thanks!
 
 -robert.
 -- 
 All motion is not progress, and all movement is not forward (anon)
 Key ID:  F0533BB6
 Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
All motion is not progress, and all movement is not forward (anon)
Key ID:  F0533BB6
Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6



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



Re: Strange Validator Problem

2003-02-11 Thread Robert Morse
It was 1.4.1_01, but I have switched to 1.4.0_03-b04 and the problem is
still present.  I appreciate your help; do you have any other
suggestion?  Thanks!



On Tue, 2003-02-11 at 02:09, Iris wrote:
 What is your version of java ?
 I had the same problem with j2sdk1.4.1_01 but I work fine with j2sdk1.4.0.
 
 Iris
 
 Robert Morse wrote:
 
 Hello,
 I have a very strange validator problem with 1.1-b3.  
 
 I have a simple logon form (ValidatorForm) that accepts a userid and
 password.  In my validation.xml file I'm specifying that the fields are
 required.  The struts-config.xml file has the validate=true.  When I
 execute this, I get the logon.jsp page successfully displayed, but if I
 leave the fields blank and submit, no errors occur, but a blank white
 display shows up in the browser.
 
 Now the strange part, if I change validate=false, check for
 non-existent password or userid in the Action, and use errors.add() to
 add the appropriate errors; this time when I submit with the fields
 blank, I get the form re-displayed with errors.  The 'input' key remains
 the same between both versions.
 
 If I set up a log4.properties file with the level set to DEBUG, I can
 see that the resource keys for the error messages are being loaded, and
 I get a message saying that the validation failed -- so I know the
 validator is being called.  The last message I get tells me:  Validation
 failed, returning to '/logon/logon.jsp'.  But all I get after that is a
 blank white page, yet the '/logon/logon.jsp' is the correct path and
 works when validate='false'.
 
 Any ideas?
 
 Thanks!
 
 -robert.
   
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
All motion is not progress, and all movement is not forward (anon)
Key ID:  F0533BB6
Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6



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




RE: RE: Validator won't kick-in

2003-02-10 Thread Robert Morse
Have you gotten anywhere with this?
I'm seeing the exact problem, and I'm not using a DynaValidatorForm.  No
errors are displayed, no exceptions thrown.  It's as though the
validator just isn't getting invoked.


On Wed, 2003-02-05 at 07:57, otisg wrote:
 Yes, I have that, too:
 
 plug-in
 className=org.apache.struts.validator.ValidatorPlugIn
 set-property property=pathnames
  
 value=/WEB-INF/validator-rules.xml,
 
 /WEB-INF/validator-rules-amp.xml,
 
 /WEB-INF/validation-amp.xml/
 /plug-in
 
 
 And these files really are included in the WAR:
 
   3380 Tue Feb 04 19:33:00 EST 2003
 WEB-INF/struts-config-amp.xml
  39699 Tue Feb 04 16:19:22 EST 2003
 WEB-INF/validator-rules.xml
   3048 Tue Feb 04 18:58:30 EST 2003
 WEB-INF/validation-amp.xml
   1261 Tue Feb 04 16:19:22 EST 2003
 WEB-INF/validator-rules-amp.xml
 
 
 Could it be the indentation? (I know, would
 be crazy, but...)
 
 Thanks,
 Otis
 
 
  On Wed, 5 Feb 2003, Pani, Gourav
 ([EMAIL PROTECTED]) wrote:
 
  I had this strange issue where the plugin
 had to be initialized at the
  bottom of the struts-config.xml to get it
 to work.
  
plug-in
 className=org.apache.struts.validator.ValidatorPlugIn
  set-property property=pathnames
 value=/WEB-INF/validator-rules.xml,
  /WEB-INF/validation.xml/
/plug-in  
  
  
  -Original Message-
  From: otisg [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 05, 2003 10:04 AM
  To: Stuart Jameson; Struts Users Mailing List
  Subject: RE: RE: Validator won't kick-in
  
  
  Hello,
  
  No, I don't have that.
  I jut added it and tried it, but it didn't
  change anything - Validator still didn't
  kick in.
  I have not seen this mentioned in any docs.
  
  Any help would be appreciated.
  
  Thank you,
  Otis
  
  
  
  
   On Wed, 5 Feb 2003, Stuart Jameson
  ([EMAIL PROTECTED]) wrote:
  
   In web xml there is the following is it
  set for you?
   
   init-param
  param-namevalidate/param-name
  param-valuetrue/param-value
   /init-param
   
   
-Original Message-
From: otisg [mailto:[EMAIL PROTECTED]] 
Sent: 04 February 2003 23:00
To: Tennent, Erik
Subject: Re: RE: Validator won't kick-in


Yes I did :)
My original email actually shows that my
'loginForm' is of type
  org.apache.struts.validator.DynaValidatorForm

I am also using input=... in the action
mapping.

Here is the action mapping in question:

action path=  /Login
type= 
com.example.action.LoginAction
scope= request
validate=  true
name=  loginForm
input=
/WEB-INF/shell/login.jsp
forward name= success  
path=/WEB-INF/shell/home.jsp/
forward name= failure  
path=/WEB-INF/shell/login.jsp/
/action


Thanks,
Otis


 On Tue, 4 Feb 2003, Tennent, Erik
([EMAIL PROTECTED]) wrote:

 Did you remember to extend ValidatorForm
or ValidatorActionForm? 
 
 On a side note, with the ValidatorForm,
you also have to define an
 input=/SomeAction.do inside of your
action.. tag so struts knows where
 to forward to if there is an error. The
input can also refer to a jsp page
 or a tiles def.
 
 action path=/HotelSave
type=hotel.HotelSaveAction
  name=HotelForm
 validate=true scope=request
input=hotelEdit
  forward name=hotelDisplay
path=hotelDisplay redirect=false /
 /action
 
 -ET
 
  -Original Message-
  From: otisg [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 04, 2003
 3:16 PM
  To: [EMAIL PROTECTED]
  Subject: Validator won't kick-in
  
  
  Hello,
  
  I am trying to use Commons Validator
  with
  Struts, but I can't get it to 'kick
  in'.  I
  am using the CVS HEAD version of
  Struts and
  Taglibs, and Validator I just built
  from CVS
  the other day.
  
  My Struts config has a 'loginForm'
defined as:
  
  form-bean name=loginForm

 
   
 
 type=org.apache.struts.validator.DynaValidatorForm
  form-property
  name=username
  type=java.lang.String/
  form-property
  name=password 
  type=java.lang.String/
  /form-bean
  
  
  The 2 Validator's files are defined
  properly
  in Struts config via plugin.
  
  IN Struts config I have /Login
  action tied
  to the loginForm form.  I also have
  validate=true set in the action
  mapping
  (is this needed?).
  
  
  In my JSP that contains this
 loginForm I
  have action=/Login in the HTML form.
   Fields
  are 'username' and 'password'.
  
  
  My validation.xml contains:
 

Strange Validator Problem

2003-02-10 Thread Robert Morse
Hello,
I have a very strange validator problem with 1.1-b3.  

I have a simple logon form (ValidatorForm) that accepts a userid and
password.  In my validation.xml file I'm specifying that the fields are
required.  The struts-config.xml file has the validate=true.  When I
execute this, I get the logon.jsp page successfully displayed, but if I
leave the fields blank and submit, no errors occur, but a blank white
display shows up in the browser.

Now the strange part, if I change validate=false, check for
non-existent password or userid in the Action, and use errors.add() to
add the appropriate errors; this time when I submit with the fields
blank, I get the form re-displayed with errors.  The 'input' key remains
the same between both versions.

If I set up a log4.properties file with the level set to DEBUG, I can
see that the resource keys for the error messages are being loaded, and
I get a message saying that the validation failed -- so I know the
validator is being called.  The last message I get tells me:  Validation
failed, returning to '/logon/logon.jsp'.  But all I get after that is a
blank white page, yet the '/logon/logon.jsp' is the correct path and
works when validate='false'.

Any ideas?

Thanks!

-robert.
-- 
All motion is not progress, and all movement is not forward (anon)
Key ID:  F0533BB6
Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6



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




RE: Struts Persistence

2002-08-09 Thread Robert Morse

Man walks upright
...
8 Floppies
Pertec D3000 (5 Mb fixed, 5 Mb removable)
MITS Altair S-100 Bus (I still have this!)
...
Wheel Invented!
...
IMSAI
Link-8
Alpha-Micro
...
Industrial Revolution begins!
...
360-30
...
Man takes flight!
...
Every PDP-XX
Every DG computer known to man (I'm still in therapy because of this)
VAX
...
Motorola 68000 Exormacs
More PCs than I can remember
Sequent
And even more PCs

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 9:24 AM
To: Struts Users Mailing List
Subject: RE: Struts  Persistence




On Fri, 9 Aug 2002, James Mitchell wrote:

 Date: Fri, 9 Aug 2002 11:43:58 -0400
 From: James Mitchell [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: Struts  Persistence

 HAHAHAYes, and that's fine if you're not trying to backup 17
 Gigsheesh.


Friday Alert

I'm old enough to remember being absolutely giddy over the
amount of space available on my first hard disk drive -- ten whole
*mega*bytes!  Whatever would I do with all of that space?

/Friday Alert

Craig


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




  -Original Message-
  From: Eddie Bush [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 09, 2002 11:37 AM
  To: Struts Users Mailing List
  Subject: Re: Struts  Persistence
 
 
  James Mitchell wrote:
 
  (James) Get that Linux box up?!  :-)
  
  LOL..no I started consolidating my Laptop HD and noticed
  that I didn't
  have enough room on my file server to backup what I had.  So I'll have
to
  either get another 80 Gig or take the time to go through and
  delete all that
  Free Software I seem to keep collecting.
  
  Hey, I wonder what 'format c:\' does.  Oh SHI#!!!  STOP STOP STO
  
  Ever heard of CD-R/CD-RW?  They really are quite handy :-)  ... and
  CD-R/Ws (disks and writers too) are really quite cheap!
 
 
 
  --
  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]


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




RE: Wow

2002-07-02 Thread Robert Morse

Care to share a little more detail so others can benefit from your effort?


--Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 7:45 AM
To: [EMAIL PROTECTED]
Subject: Wow



I got Dynaforms, Validator, Tiles, DynaBeans, a nice display tag library
for table display, a nice DAO layer and a few other things all working
in Struts.  It took awhile to get everything working right but I am
amazed at how little code it is taking now to do each part and how
robust the application is!

I highly recommend to anyone starting out like myself to add these into
your library and spend time looking in the beanutils, etc...

Excellent stuff!

Thanks to all who helped me on this path and to the struts team




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




NotSerializableException and strange JBuilder 7 problem

2002-06-10 Thread Robert Morse

I have seen this question posted before, but no resolution.

Environment:  JBuilder 7 Enterprise, Struts 1.0-b1, Tiles, Validator, Torque
3.0

When I execute my Struts web app from the JBuilder 7 environment, I always
get:
Cannot serialize session attribute logonForm for session [session number
follows]
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JCategoryLog

It seems benign, but does anyone know of a fix?

The next problem is strange.  Periodically, when I execute the application
in the JBuilder 7 environment, I get an Application Resources not loaded
error.  If I delete all of the .class files, delete any work files from
Tomcat, re-compile and run, it works fine!  Anyone ever see this one?


---
Robert D. Morse
[EMAIL PROTECTED]
PGP Finger Print:  B003 AF67 6D75 4BEE 1B15  0DB3 D8A9 9BE0 CE11 A734


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




Problem creating Validator Form in Action

2002-06-02 Thread Robert Morse

This is a very strange problem for me, and I'm guessing that the solution is
simple, but I'm just not making the connection.

My environment is Struts 1.1 beta, using Tiles and Validator for the same
distribution.

I have a series of forms that get populated as a user navigates through the
application.  Data entered on one form, may appear on others.  This causes
me to instantiate and pre-populate the form beans during a preceding action.
So, the first form displays and the user enters some information and submits
the form.  The data is validated by the validation package, and the Action
for that form is finally called.  During that action, I create a new form
bean for the next form, and save it by request.setAttribute(formname,
form).  Note:  I've also tried session.setAttribute with the same results.
At the end of this action, I then return (mapping.findForward(success)).

Tiles, inserts the appropriate jsp files, but the next form complains that
the getter methods for the form bean that I created in the prior action are
null.

I've looked through examples, and archives, but can't seem to find something
similar to this.  Any ideas?


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




RE: Problem creating Validator Form in Action -- NEVERMIND

2002-06-02 Thread Robert Morse

Nevermind.  Sorry for the noise.

-Original Message-
From: Robert Morse [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 02, 2002 7:27 AM
To: Struts Users Mailing List
Subject: Problem creating Validator Form in Action


This is a very strange problem for me, and I'm guessing that the solution is
simple, but I'm just not making the connection.

My environment is Struts 1.1 beta, using Tiles and Validator for the same
distribution.

I have a series of forms that get populated as a user navigates through the
application.  Data entered on one form, may appear on others.  This causes
me to instantiate and pre-populate the form beans during a preceding action.
So, the first form displays and the user enters some information and submits
the form.  The data is validated by the validation package, and the Action
for that form is finally called.  During that action, I create a new form
bean for the next form, and save it by request.setAttribute(formname,
form).  Note:  I've also tried session.setAttribute with the same results.
At the end of this action, I then return (mapping.findForward(success)).

Tiles, inserts the appropriate jsp files, but the next form complains that
the getter methods for the form bean that I created in the prior action are
null.

I've looked through examples, and archives, but can't seem to find something
similar to this.  Any ideas?


--
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: [ANNOUCE] stxx 0.9.5 is available

2002-05-05 Thread Robert Morse

Any idea when you will support Struts 1.1-b1 and later?

-Original Message-
From: Jeff Pennal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 6:51 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: [ANNOUCE] stxx 0.9.5 is available


The latest update to stxx is available at

http://www.openroad.ca/opencode/

The biggest change in this version is the ability to have your transform
tags do xsl:fo transformations (for example to PDF or SVG).

There are also bug fixes and updates to the examples.



stxx - 0.9.5
By Jeff Pennal

Struts for transforming XML with XSL (stxx) is an extension of the
struts framework to support XML and XSL without changing the
functionality of struts .

stxx sit's on top of struts, extending it's existing functionality to
allow Action classes to return XML that will be transformed by an XSL file.

The idea of stxx is to remove the need to be use JSP and TagLibs for the
presentation layer of this framework. However, stxx does not force you
to go the XML/XSL route, both technologies will work side by side.


--
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: [ANN] Struts1.1 UML Class diagrams Struts Wizard for JBUILDER (beta)

2002-04-24 Thread Robert Morse

Emmanuel,
Seems to work just fine under JBuilder 6.  Some suggestions (probably
nothing that you don't know):

1. Add the reset() method to the generated ActionForm.
2. I would extend the Struts ValidatorForm and use its validation support
rather than writing my own.  You may get broader acceptance if you do this.
3. Add additional types other than 'string'.

In the mean time, I'll be using it.  Thanks!

-robert.

-Original Message-
From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 1:42 AM
To: Struts Users Mailing List
Subject: [ANN] Struts1.1 UML Class diagrams  Struts Wizard for JBUILDER
(beta)



Hello,
You can find on my homepage some UML diagrams representing main class from
Struts 1.1 Framework, also showing depreciation from Strut 1.0. You can also
download the complete Struts 1.1 UML diagram for Rational Rose.
And a JBuilder opentool Struts Wizard for ActionForm, Action and Jsp input
page creation. Tested on JB5 and JB6.
- link with a JBuilder web application
- Forms, Actions can derive directly from Struts framework or your framework
based on Struts.
- struts-config.xml and web.xml are not yet updated. Coming in next release.
url : http://www.mycgiserver.com/~eboudrant/

Regards,
Emmanuel Boudrant
Cross-Systems



-
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !


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




Struts and Torque commons-collection incompatibility

2002-04-23 Thread Robert Morse

The Struts 1.1 beta and the latest Torque use a different version of
commons-collection.jar.  You'll get a class not found exception for
StringStack if you use the version that comes with Struts.  I copied the
version that comes with Torque, and Struts seems to behave properly.

---
Robert D. Morse
[EMAIL PROTECTED]
PGP Key:  D9C4AA6A
PGP Finger Print:  ED56 DEEA 95CF AC99 C2B0  77D4 7D92 ACCA D9C4 AA6A


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




RE: Weird problem with tiles and struts forward.

2002-04-01 Thread Robert Morse
 to do
 with the DOCTYPE. I had
servlet 2.2 before and changed it to servlet
 2.3 a few days ago.
   
-Original Message-
From: Robert Morse
 [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 7:24 PM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and
 struts forward.
   
   
Yes.  In fact, I changed all of the references
 to Tiles definitions.
  I'm
using the 02/05/2002 nightly.
   
-Original Message-
From: Wellie W. Chao
 [mailto:[EMAIL PROTECTED]]

=== message truncated ===


__
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.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: Weird problem with tiles and struts forward.

2002-03-30 Thread Robert Morse

Using path = register.success is perfectly fine.  When I had this problem,
I think the issue was the version of Tiles being used with Struts 1.1.  Try
getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
web site.  There, I think he specifically points to versions that operate
with each other.

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 5:13 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


I don't think you can use a tiles definition in forward path={xxx}/. You
need to specify a context-relative path to an action -- in other words, a
URL. You could say forward path=/register.success.jsp/, then include the
following in /register.success.jsp:

%@ taglib uri=/WEB-INF/tiles.tld prefix=tiles %
tiles:insert definition=register.success/

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 8:40 PM
To: [EMAIL PROTECTED]
Subject: Weird problem with tiles and struts forward.


Subject: Weird problem with tiles and struts forward.
From: Jack Gao [EMAIL PROTECTED]
 ===
Hi, List

I'm new with this struts and tiles issues.

My problem is: when define a jsp page in struts-config.xml to forward to if
success or failed, it works fine. But if I jump to tiles, and forward to a
definition, I keep to get servlet exception.

My definition xml file has a declare like this:

  definition name=register.success extends=mainLayout
put name=body   value=/success.jsp /
  /definition


And in my struts-config.xml I delcare like this:

actionpath=/register
   type=xxx.xxx.xxx.RegisterAction
   name=registerForm
  scope=request
   validate=false
  forward name=success  path=register.success/
  forward name=failure  path=register.failure/
/action

The mainLayout works fine, and I got exception when it forward to next page.

java.lang.IllegalArgumentException: Path register.success does not start
with a / character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
Context.java:570)
at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
cationContextFacade.java:174)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
5)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
170)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at

RE: Weird problem with tiles and struts forward.

2002-03-30 Thread Robert Morse

Yes.  In fact, I changed all of the references to Tiles definitions.  I'm
using the 02/05/2002 nightly.

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 7:41 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


Are you saying you tried it and got it to work? I saw it in the docs, but I
never could get it to work with struts 1.1 beta, so I assumed it was a
desired feature that hasn't yet been implemented. What version of Struts are
you using?

-Original Message-
From: Robert Morse [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 9:11 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


Using path = register.success is perfectly fine.  When I had this problem,
I think the issue was the version of Tiles being used with Struts 1.1.  Try
getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
web site.  There, I think he specifically points to versions that operate
with each other.

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 5:13 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


I don't think you can use a tiles definition in forward path={xxx}/. You
need to specify a context-relative path to an action -- in other words, a
URL. You could say forward path=/register.success.jsp/, then include the
following in /register.success.jsp:

%@ taglib uri=/WEB-INF/tiles.tld prefix=tiles %
tiles:insert definition=register.success/

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 8:40 PM
To: [EMAIL PROTECTED]
Subject: Weird problem with tiles and struts forward.


Subject: Weird problem with tiles and struts forward.
From: Jack Gao [EMAIL PROTECTED]
 ===
Hi, List

I'm new with this struts and tiles issues.

My problem is: when define a jsp page in struts-config.xml to forward to if
success or failed, it works fine. But if I jump to tiles, and forward to a
definition, I keep to get servlet exception.

My definition xml file has a declare like this:

  definition name=register.success extends=mainLayout
put name=body   value=/success.jsp /
  /definition


And in my struts-config.xml I delcare like this:

actionpath=/register
   type=xxx.xxx.xxx.RegisterAction
   name=registerForm
  scope=request
   validate=false
  forward name=success  path=register.success/
  forward name=failure  path=register.failure/
/action

The mainLayout works fine, and I got exception when it forward to next page.

java.lang.IllegalArgumentException: Path register.success does not start
with a / character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
Context.java:570)
at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
cationContextFacade.java:174)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
5)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
170)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343

RE: Weird problem with tiles and struts forward.

2002-03-30 Thread Robert Morse

It's 1.1.  I had to wait for Cedric to make changes to the Tiles stuff to
work with 1.1 (which was early February).  I don't know if the Nightlies are
given names, but it is definitely 1.1.  I'll grab the latest nightly, and
let you know if I have any problems.  Are you able to get the examples to
work?  Get those going before your own stuff.

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 5:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Weird problem with tiles and struts forward.


Subject: Re: Weird problem with tiles and struts forward.
From: Jack Gao [EMAIL PROTECTED]
 ===
Well, I tried to get nightly build from apache, earlest one 20020316 and
latest one 20020330. Both of them doesn't work for me.
20020316 has same problem, 20020330 even can not found MESSAGE resources!

I cannot found 20020205 build, but I think that's before struts 1.1. Are you
using 1.1 beta? or struts 1.02?

Thanks

Jack

Robert Morse [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Yes.  In fact, I changed all of the references to Tiles definitions.  I'm
 using the 02/05/2002 nightly.

 -Original Message-
 From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, March 30, 2002 7:41 AM
 To: Struts Users Mailing List
 Subject: RE: Weird problem with tiles and struts forward.


 Are you saying you tried it and got it to work? I saw it in the docs, but
I
 never could get it to work with struts 1.1 beta, so I assumed it was a
 desired feature that hasn't yet been implemented. What version of Struts
are
 you using?

 -Original Message-
 From: Robert Morse [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, March 30, 2002 9:11 AM
 To: Struts Users Mailing List
 Subject: RE: Weird problem with tiles and struts forward.


 Using path = register.success is perfectly fine.  When I had this
problem,
 I think the issue was the version of Tiles being used with Struts 1.1.
Try
 getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
 web site.  There, I think he specifically points to versions that operate
 with each other.

 -Original Message-
 From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, March 30, 2002 5:13 AM
 To: Struts Users Mailing List
 Subject: RE: Weird problem with tiles and struts forward.


 I don't think you can use a tiles definition in forward path={xxx}/.
You
 need to specify a context-relative path to an action -- in other words, a
 URL. You could say forward path=/register.success.jsp/, then include
the
 following in /register.success.jsp:

 %@ taglib uri=/WEB-INF/tiles.tld prefix=tiles %
 tiles:insert definition=register.success/

 -Original Message-
 From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
 Sent: Friday, March 29, 2002 8:40 PM
 To: [EMAIL PROTECTED]
 Subject: Weird problem with tiles and struts forward.


 Subject: Weird problem with tiles and struts forward.
 From: Jack Gao [EMAIL PROTECTED]
  ===
 Hi, List

 I'm new with this struts and tiles issues.

 My problem is: when define a jsp page in struts-config.xml to forward to
if
 success or failed, it works fine. But if I jump to tiles, and forward to a
 definition, I keep to get servlet exception.

 My definition xml file has a declare like this:

   definition name=register.success extends=mainLayout
 put name=body   value=/success.jsp /
   /definition


 And in my struts-config.xml I delcare like this:

 actionpath=/register
type=xxx.xxx.xxx.RegisterAction
name=registerForm
   scope=request
validate=false
   forward name=success  path=register.success/
   forward name=failure  path=register.failure/
 /action

 The mainLayout works fine, and I got exception when it forward to next
page.

 java.lang.IllegalArgumentException: Path register.success does not start
 with a / character
 at

org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
 Context.java:570)
 at

org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
 cationContextFacade.java:174)
 at

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

org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
 sor.java:408)
 at

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

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

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

filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
 170

RE: torque struts

2002-03-27 Thread Robert Morse

Yes, and using it in production.  What questions do you have?

-Original Message-
From: Oliver Kießler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 12:36 AM
To: Struts Users Mailing List
Subject: torque  struts


hello,
has anybody successfully combined torque with struts? i think it would a
be really nice level of abstraction not having to deal with SQL
Statements in an struts app anymore...

bye, oli


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

2002-03-27 Thread Robert Morse

Torque is from the 2/25/2002 nightly, and the database is Oracle 9i (9.0.1).

-Original Message-
From: James A. Hillyerd [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 2:19 PM
To: Struts Users Mailing List
Subject: RE: torque  struts


What version of Torque are you using in production?  And with what
database, if I may ask?

Thanks.

-james

On Wed, 2002-03-27 at 05:18, Robert Morse wrote:
 Yes, and using it in production.  What questions do you have?


--
[]  James A. Hillyerd [EMAIL PROTECTED] - Java Developer
[]  PGP 1024D/D31BC40D F87B 7906 C0DA 32E8 B8F6 DE23 FBF6 4712 D31B C40D


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

2002-03-27 Thread Robert Morse

Just Torque, but it has a connection pool mechanism.

-Original Message-
From: Hoang, Hai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 2:46 PM
To: 'Struts Users Mailing List'
Subject: RE: torque  struts


Do you use Fulcrum along with Torque? I think Fulcrum has lots of services
available such as caching, pool, and etc...I want to use Fulcrum but I don't
know how to set it up to work with Tomcat

-Original Message-
From: Robert Morse [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 4:42 PM
To: Struts Users Mailing List
Subject: RE: torque  struts

Torque is from the 2/25/2002 nightly, and the database is Oracle 9i (9.0.1).

-Original Message-
From: James A. Hillyerd [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 2:19 PM
To: Struts Users Mailing List
Subject: RE: torque  struts


What version of Torque are you using in production?  And with what
database, if I may ask?

Thanks.

-james

On Wed, 2002-03-27 at 05:18, Robert Morse wrote:
 Yes, and using it in production.  What questions do you have?


--
[]  James A. Hillyerd [EMAIL PROTECTED] - Java Developer
[]  PGP 1024D/D31BC40D F87B 7906 C0DA 32E8 B8F6 DE23 FBF6 4712 D31B C40D


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


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