RE: Newbie Question:XML parsing

2003-06-05 Thread shirishchandra.sakhare
If you want to just read the file and validate it against some rules, then may be you 
need to write a dtd/schema for the file and just read teh file using xerces or some 
other parser while setting the validate feature true...That is simple and easy..Apart 
from writting the xml schema /dtd part..:-))

But if you need to populate java objects from the xml file contents, have a look at 
Castor.It eliminates the need to know jaxp at all..

If you need any more help,let me know.

regards,
Shirish

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 6:25 AM
To: Struts Users Mailing List
Subject: RE: Newbie Question:XML parsing


Nah, thats really a job for your parser.
Struts does come with a marvellous thing called Digester (which is part of
the commons project) but thats used for creating objects (usually for
configuration (its used in struts to process struts-config)) so is probably
not applicable to what your trying to do. (Digester itself uses whatever
parser is available to do the underlying xml parsing)

btw: Try and use the jaxp api if you can, then you wont be tying yourself to
any particular parser implementation so if you later decide to use a
different parser than xerces you can.

-Original Message-
From: Sushil Jain [mailto:[EMAIL PROTECTED]
Sent: Sunday, 5 June 1994 12:08
To: Struts Users Mailing List
Subject: Newbie Question:XML parsing


I am new to Struts. I am buiding an application in which I need to
explicitily read an XML file as Input , and then validate the file itself
and the fields of the record in it against some rules . Wanted to know if
Struts provide some mechanism for it or there need to use some parser like
xerces for it.
Thanks
Sushil

Disclaimer :
This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
information is strictly prohibited.



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


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


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



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


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


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


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



Internationalization support

2003-06-05 Thread Alen Ribic
Hi all

What is the best way to handle internationalization in your system when
using Struts framework?

Basically, I would like to use human language specific resource bundles that
would need to be used in session specific manner.

Example:
Croatian user logs on and MyAppResources_hr.properties resource file is used
for her/his duration of session.
English (default) user logs on and MyAppResources.properties  file is used
for her/his duration of session.

Thanks
--Alen


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



Handling ServletException

2003-06-05 Thread Eirik Kjølsrud
Hi.

I've followed everyones advice and written a custom Exception handler. The
exceptionhandler is set up in struts-config to catch all exceptions :

!-- Global Exceptions --

global-exceptions

exception

handler=mypackage.strutsextensions.CustomizedExceptionHandler

key=global.error.message

scope=request

type=java.lang.Exception/

/global-exceptions

This works great, but my problem is that sometimes there occures a
SerlvetException which is just presented on screen and is not caught by my
CustomizedExceptionHandler. I believe that this is because the
ServletException is thrown by the container ?? Anyhow, I would like to catch
these exceptions as well, and preferably route them to my custom Error
handler.

Does anyone have some advice on how to handle ServletExceptions to give the
user better information ?

Best Regards

Eirik Kjølsrud, Norway




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



RE: RE: Submitting value with Graphical Buttons

2003-06-05 Thread Manuel Lenz

Hi,
I have seen some examples like the one below,
but no one works with struts. I don´t know how to address the form beans
field. And I habe to specify the param´s name I´d like to save.
I tried this code, but it doesn´t work:

a href=#  style=text-decoration:none;
onClick=javascript:document.testForm.fieldname.value
='page.jsp';
  document.testForm.submit()

Where is the error?
How do I save a value in an FormBean by clicking a button?

Manuel



|-+
| ||
| ||
| ||
| |Rochak Sethi  |
| |[EMAIL PROTECTED]  |
| |05.06.2003 08:56|
| |Bitte antworten an Struts  |
| |Users Mailing List |
| ||
|-+
  
|
  |
|
  | An:  Struts Users Mailing List [EMAIL PROTECTED]   
   |
  | Kopie: 
|
  | Thema:   RE: Submitting value with Graphical Buttons   
|
  
|





hi ,
 a graphical button can be put inside a hyperlink tag and
onclick() function can be called
eg.
 a href=something img src=something onclick=fnSubmitForm
()/a

and in javascript u can make this function :

 fnSubmitForm()
{
 document.formname.submit();
}
i am not too sure if i am tellng u something u dont know but i guess this
shud work.


tc




-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 12:20 PM
To: Struts Users Mailing List
Subject: Submitting value with Graphical Buttons




Hi to all,
I still have problems with submitting values by clicking graphical buttons.
By using javascript there must be an function named on click  which
sets a value into a FormBean by pressing a graphical button.
To get a forwarding page a submit must be initialized too. A link to this
page might also work.
The value must be a constant one to identiy the page from which the user
has submitted.

Has anybody an idea how this works?

Greetings,
Manuel



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


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







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



RE: Action Form Bean required ???

2003-06-05 Thread Tran Nguyen Thanh Bao

Dear Andrew,
Could u please send me your struts-config.xml file that you configure for some of your 
screens not to use form bean ??? I tried many times but not successful :(
Thanks and Best Regards,
TRANBAONGUYEN

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 6:42 PM
To: Struts Users Mailing List
Subject: RE: Action Form Bean required ???


I am doing this for some of my screens - these being the listview screens -
where Im not taking in much in the way of info from the user, and hadnt
bothered to create an actionForm but just grabbed what I needed straight
from the request. Your probably better off having an action form however -
in most cases David's criticism is valid.

One 'gotcha' with not using an actionform is when you are using multipart
forms. Struts is nice enough to wrap multipart requests in a
MultipartRequestWrapper with the POSTed parameters available *but* it
populates this wrapper from the same method that populates the actionForm.
No action form means no MultipartRequestWrapper population, which means
request.getParameter will return null for all except those parameters
appended to the url to which the form was submitted. Of course that only
affects multipart forms which yourd only be using if that page needs file
upload...

-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 19:20
To: Struts Users Mailing List
Subject: Re: Action Form Bean required ???


You could access all of the form properties in your Action with
request.getParameter(paramName); but why would you ever do that? Using
the rest of the framework without FormBeans is like pushing your car
down the street instead of just starting the engine

Tran Nguyen Thanh Bao wrote:

Dear all,

I'm a new user of Struts. If I dont have Action Form Bean for each form in
my application, is there any problem ? I've already tried to test with no
Action Form Bean (basing on Struts examples, just remove Action Form Bean),
but not successful.
Can I do that in some way ? Pls give me some advises from you, experienced
users :)

Best Regards,
TRANBAONGUYEN


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









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


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



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



RE: Action Form Bean required ???

2003-06-05 Thread Andrew Hill
Well they look a little something like:

action path=/fooListView type=com.something.FooListAction
/action

We might be able to help a bit more if you clarified what you mean by 'not
successful'.

-Original Message-
From: Tran Nguyen Thanh Bao [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 16:40
To: Struts Users Mailing List
Subject: RE: Action Form Bean required ???



Dear Andrew,
Could u please send me your struts-config.xml file that you configure for
some of your screens not to use form bean ??? I tried many times but not
successful :(
Thanks and Best Regards,
TRANBAONGUYEN

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 6:42 PM
To: Struts Users Mailing List
Subject: RE: Action Form Bean required ???


I am doing this for some of my screens - these being the listview screens -
where Im not taking in much in the way of info from the user, and hadnt
bothered to create an actionForm but just grabbed what I needed straight
from the request. Your probably better off having an action form however -
in most cases David's criticism is valid.

One 'gotcha' with not using an actionform is when you are using multipart
forms. Struts is nice enough to wrap multipart requests in a
MultipartRequestWrapper with the POSTed parameters available *but* it
populates this wrapper from the same method that populates the actionForm.
No action form means no MultipartRequestWrapper population, which means
request.getParameter will return null for all except those parameters
appended to the url to which the form was submitted. Of course that only
affects multipart forms which yourd only be using if that page needs file
upload...

-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 19:20
To: Struts Users Mailing List
Subject: Re: Action Form Bean required ???


You could access all of the form properties in your Action with
request.getParameter(paramName); but why would you ever do that? Using
the rest of the framework without FormBeans is like pushing your car
down the street instead of just starting the engine

Tran Nguyen Thanh Bao wrote:

Dear all,

I'm a new user of Struts. If I dont have Action Form Bean for each form in
my application, is there any problem ? I've already tried to test with no
Action Form Bean (basing on Struts examples, just remove Action Form Bean),
but not successful.
Can I do that in some way ? Pls give me some advises from you, experienced
users :)

Best Regards,
TRANBAONGUYEN


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









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


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



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


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



RE: RE: Submitting value with Graphical Buttons

2003-06-05 Thread Vijay Pawar
Hi,

why does ur following code contain DEFANGED_

Is this in ur actual code also? if it is then scripts will not work.

try removing all instances of DEFANGED_

cheers !

Vijay



 Hi,
 I have seen some examples like the one below,
 but no one works with struts. I don´t know how to address the form beans
 field. And I habe to specify the param´s name I´d like to save.
 I tried this code, but it doesn´t work:

 a href=#  DEFANGED_STYLE=text-decoration:none;
 DEFANGED_OnClick=DEFANGED_javascript:document.testForm.fieldname.value
 ='page.jsp';
   document.testForm.submit()

 Where is the error?
 How do I save a value in an FormBean by clicking a button?

 Manuel



 |-+
 | ||
 | ||
 | ||
 | |Rochak Sethi  |
 | |[EMAIL PROTECTED]  |
 | |05.06.2003 08:56|
 | |Bitte antworten an Struts  |
 | |Users Mailing List |
 | ||
 |-+
   
 |
   |
 |
   | An:  Struts Users Mailing List
 [EMAIL PROTECTED]
  |
   | Kopie:
 |
   | Thema:   RE: Submitting value with Graphical Buttons
 |
   
 |





 hi ,
  a graphical button can be put inside a hyperlink tag and
 DEFANGED_Onclick() function can be called
 eg.
  a href=something img src=something
 DEFANGED_Onclick=fnSubmitForm
 ()/a

 and in javascript u can make this function :

  fnSubmitForm()
 {
  document.formname.submit();
 }
 i am not too sure if i am tellng u something u dont know but i guess this
 shud work.


 tc




 -Original Message-
 From: Manuel Lenz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 12:20 PM
 To: Struts Users Mailing List
 Subject: Submitting value with Graphical Buttons




 Hi to all,
 I still have problems with submitting values by clicking graphical
 buttons.
 By using javascript there must be an function named on click  which
 sets a value into a FormBean by pressing a graphical button.
 To get a forwarding page a submit must be initialized too. A link to this
 page might also work.
 The value must be a constant one to identiy the page from which the user
 has submitted.

 Has anybody an idea how this works?

 Greetings,
 Manuel



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


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







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




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



RE: RE: Submitting value with Graphical Buttons

2003-06-05 Thread graghupathy
try this one ...

input src=path to image  type=image name=somename value=somevalue


Regards
guru

-Original Message-
From: Vijay Pawar [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 10:05
To: Struts Users Mailing List
Subject: RE: RE: Submitting value with Graphical Buttons


Hi,

why does ur following code contain DEFANGED_

Is this in ur actual code also? if it is then scripts will not work.

try removing all instances of DEFANGED_

cheers !

Vijay



 Hi,
 I have seen some examples like the one below,
 but no one works with struts. I don´t know how to address the form beans
 field. And I habe to specify the param´s name I´d like to save.
 I tried this code, but it doesn´t work:

 a href=#  DEFANGED_STYLE=text-decoration:none;
 DEFANGED_OnClick=DEFANGED_javascript:document.testForm.fieldname.value
 ='page.jsp';
   document.testForm.submit()

 Where is the error?
 How do I save a value in an FormBean by clicking a button?

 Manuel



 |-+
 | ||
 | ||
 | ||
 | |Rochak Sethi  |
 | |[EMAIL PROTECTED]  |
 | |05.06.2003 08:56|
 | |Bitte antworten an Struts  |
 | |Users Mailing List |
 | ||
 |-+

---
-|
   |
 |
   | An:  Struts Users Mailing List
 [EMAIL PROTECTED]
  |
   | Kopie:
 |
   | Thema:   RE: Submitting value with Graphical Buttons
 |

---
-|





 hi ,
  a graphical button can be put inside a hyperlink tag and
 DEFANGED_Onclick() function can be called
 eg.
  a href=something img src=something
 DEFANGED_Onclick=fnSubmitForm
 ()/a

 and in javascript u can make this function :

  fnSubmitForm()
 {
  document.formname.submit();
 }
 i am not too sure if i am tellng u something u dont know but i guess this
 shud work.


 tc




 -Original Message-
 From: Manuel Lenz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 12:20 PM
 To: Struts Users Mailing List
 Subject: Submitting value with Graphical Buttons




 Hi to all,
 I still have problems with submitting values by clicking graphical
 buttons.
 By using javascript there must be an function named on click  which
 sets a value into a FormBean by pressing a graphical button.
 To get a forwarding page a submit must be initialized too. A link to this
 page might also work.
 The value must be a constant one to identiy the page from which the user
 has submitted.

 Has anybody an idea how this works?

 Greetings,
 Manuel



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


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







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




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

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



log4j in struts application

2003-06-05 Thread harm
Hi all,

I'm trying to use the Log4J package in my webapplication. 
Therefore I placed the file log4j.properties in WEB-INF/classes which 
looks like this:

log4j.rootLogger = DEBUG, stdout, rolling
log4j.appender.stdout = ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=/var/ordermanager/log/ordermanager.log
log4j.appender.rolling.MaxFileSize=100KB
log4j.appender.rolling.MaxBackupIndex=1
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{ABSOLUTE} - %p %c - 
%m%n


I also have a file commons-logging.properties which contains:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategoryLog

(B.t.w. I also tried to remove this file (commons-logging.properties) 
which has no effect).


In my Actions I have code like this:

Log log = LogFactory.getLog(BasicAction.class);
 
if (log.isInfoEnabled()) {
log.info(Log test!);
}

I'm using JBoss with integrated Tomcat 4.1 (on linux). In the JBoss log I 
see:

09:51:52,853 INFO  [OrdermanagerBaseAction] OrderManagerBaseAction called!

But, nothing appears in /var/ordermanager/log/ordermanager.log

Permissions, etc are all okay

What could be wrong here?

Many thanks,

Harm de Laat
Informatiefabriek
The Netherlands

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



Antwort: RE: RE: Submitting value with Graphical Buttons

2003-06-05 Thread Manuel Lenz

Hi,
DEFANGED_ was added by the e-mail client I use,
it´s not in the original code.
My code is that:

a href=#  style=text-decoration:none;
onclick=javascript:document.testForm.fieldname.value='page.jsp';
document.testForm.submit()

Still the same question: Where is the error?  How do I save a value in an
FormBean by clicking a button?

Manuel




|-+
| ||
| ||
| ||
| |Vijay Pawar   |
| |[EMAIL PROTECTED]|
| |05.06.2003 11:04|
| |Bitte antworten an Struts  |
| |Users Mailing List |
| ||
|-+
  
|
  |
|
  | An:  Struts Users Mailing List [EMAIL PROTECTED]   
   |
  | Kopie: 
|
  | Thema:   RE: RE: Submitting value with Graphical Buttons   
|
  
|




Hi,

why does ur following code contain DEFANGED_

Is this in ur actual code also? if it is then scripts will not work.

try removing all instances of DEFANGED_

cheers !

Vijay



 Hi,
 I have seen some examples like the one below,
 but no one works with struts. I don´t know how to address the form beans
 field. And I habe to specify the param´s name I´d like to save.
 I tried this code, but it doesn´t work:

 a href=#  DEFANGED_STYLE=text-decoration:none;
 DEFANGED_OnClick=DEFANGED_javascript:document.testForm.fieldname.value
 ='page.jsp';
   document.testForm.submit()

 Where is the error?
 How do I save a value in an FormBean by clicking a button?

 Manuel



 |-+
 | ||
 | ||
 | ||
 | |Rochak Sethi  |
 | |[EMAIL PROTECTED]  |
 | |05.06.2003 08:56|
 | |Bitte antworten an Struts  |
 | |Users Mailing List |
 | ||
 |-+
   
|

   |
 |
   | An:  Struts Users Mailing List
 [EMAIL PROTECTED]
  |
   | Kopie:
 |
   | Thema:   RE: Submitting value with Graphical Buttons
 |
   
|






 hi ,
  a graphical button can be put inside a hyperlink tag and
 DEFANGED_Onclick() function can be called
 eg.
  a href=something img src=something
 DEFANGED_Onclick=fnSubmitForm
 ()/a

 and in javascript u can make this function :

  fnSubmitForm()
 {
  document.formname.submit();
 }
 i am not too sure if i am tellng u something u dont know but i guess this
 shud work.


 tc




 -Original Message-
 From: Manuel Lenz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 12:20 PM
 To: Struts Users Mailing List
 Subject: Submitting value with Graphical Buttons




 Hi to all,
 I still have problems with submitting values by clicking graphical
 buttons.
 By using javascript there must be an function named on click  which
 sets a value into a FormBean by pressing a graphical button.
 To get a forwarding page a submit must be initialized too. A link to this
 page might also work.
 The value must be a constant one to identiy the page from which the user
 has submitted.

 Has anybody an idea how this works?

 Greetings,
 Manuel



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


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







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




-
To unsubscribe, 

RE: RE: Submitting value with Graphical Buttons

2003-06-05 Thread Dirk Markert
Hello Manuel,

using a page like:

/HEAD

BODY BGCOLOR=#FDF5E6
H2 ALIGN=CENTERTest/H2

FORM Name=testForm ACTION=http://localhost:8088/SomeProgram;
Field 1:
INPUT TYPE=TEXT NAME=field1BR
INPUT TYPE=SUBMIT
/FORM

a href=#  style=text-decoration:none;
onClick=javascript:document.testForm.field1.value='page.jsp';
 document.testForm.submit()
 
 Test/a

/BODY
/HTML
---

my server received:

=
Here is the request line and request headers sent by your browser:
GET /SomeProgram?field1=page.jsp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*
Accept-Language: de
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
Host: localhost:8088
Connection: Keep-Alive
=

I think thats exactly what you are expecting. I think your error is on
the server side. Maybe your actionform?

Thursday, June 5, 2003, 10:04:18 AM, you wrote:


ML Hi,
ML I have seen some examples like the one below,
ML but no one works with struts. I don´t know how to address the form beans
ML field. And I habe to specify the param´s name I´d like to save.
ML I tried this code, but it doesn´t work:

ML a href=#  style=text-decoration:none;
ML onClick=javascript:document.testForm.fieldname.value
ML ='page.jsp';
ML   document.testForm.submit()

ML Where is the error?
ML How do I save a value in an FormBean by clicking a button?

ML Manuel



ML |-+
ML | ||
ML | ||
ML | ||
ML | |Rochak Sethi  |
ML | |[EMAIL PROTECTED]  |
ML | |05.06.2003 08:56|
ML | |Bitte antworten an Struts  |
ML | |Users Mailing List |
ML | ||
ML |-+
ML  
ML 
|
ML   |   
ML   | An:  Struts Users Mailing List [EMAIL PROTECTED] 
ML   | Kopie:
ML   | Thema:   RE: Submitting value with Graphical Buttons  
ML  
ML 
|





ML hi ,
ML  a graphical button can be put inside a hyperlink tag and
ML onclick() function can be called
ML eg.
ML  a href=something img src=something onclick=fnSubmitForm
()/a

ML and in javascript u can make this function :

ML  fnSubmitForm()
ML {
ML  document.formname.submit();
ML }
ML i am not too sure if i am tellng u something u dont know but i guess this
ML shud work.


ML tc




ML -Original Message-
ML From: Manuel Lenz [mailto:[EMAIL PROTECTED]
ML Sent: Thursday, June 05, 2003 12:20 PM
ML To: Struts Users Mailing List
ML Subject: Submitting value with Graphical Buttons




ML Hi to all,
ML I still have problems with submitting values by clicking graphical buttons.
ML By using javascript there must be an function named on click  which
ML sets a value into a FormBean by pressing a graphical button.
ML To get a forwarding page a submit must be initialized too. A link to this
ML page might also work.
ML The value must be a constant one to identiy the page from which the user
ML has submitted.

ML Has anybody an idea how this works?

ML Greetings,
ML Manuel



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


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







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



-- 
Best regards,
Dirk


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



Re: struts validator

2003-06-05 Thread Ted Husted
Mark Galbreath wrote:
 You know, I just don't get it. I think Validator was a great idea that
 simply proved wrong in implementation.  And I know I am not alone it
 this assessment.
I've been using the Validator for about two and half years now, and I 
have to agree, that it does seem to be finicky to setup at first, 
especially when I move from one implementation to another.

One problem may be confusion between the two Validator classes. (One 
uses the mapping attribute and the other uses the mapping path.)

But, once it is in, it works like a charm. It works particularly well 
with DynaActionForms, since you can then define both the ActionForm 
properties and their validations in XML.

In fact, the only problem is that it doesn't go far enough. What would 
be truly useful would being able to define both the ValidatorForm 
attributes and the DynaProperties as part of the same element. For extra 
credit, you could throw in an attribute to define what type of UI 
control the form is suppose to use. From there, it's not hard to imagine 
a tag that could look at this MetaForm and actually write a simple 
form for you. Update the MetaForm element, and the controls are added 
and subtracted ... as if by magic =:0)

-Ted.

--
Ted Husted,
Struts in Action http://husted.com/struts/book.html


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


Re: log4j in struts application

2003-06-05 Thread Gemes Tibor
[EMAIL PROTECTED] rta:

I'm using JBoss with integrated Tomcat 4.1 (on linux). In the JBoss log I 
see:
 

Jboss has its own log4j config file. It is used container-wise, so you 
should configure that.
It is checked every minute, and reloaded the logging if changed.

I cannot remember the name, maybe log4j-config.xml in the conf dir.

Tib



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


Antwort: RE: RE: Submitting value with Graphical Buttons

2003-06-05 Thread Manuel Lenz



Hi Dirk,
you are right with your statement, but this is not exactly what I want to
do.
You are filling an input field in the html-page and submit this value.
Id like to fill directly an field in a specified FormBean on the server.
But how do I address this field in the expected FormBean?

Idont like to use your solution, because the browser caches the
input-values of the form.
If an user takes the back-button to go to the last form, the field will be
still filled in. This causes some following problems.

Is there a possibility to save the value directly in the server-FormBean?

Manuel



|-+
| ||
| ||
| ||
| |Dirk Markert|
| |[EMAIL PROTECTED]|
| |05.06.2003 11:10|
| |Bitte antworten an Struts  |
| |Users Mailing List |
| ||
|-+
  
|
  |
|
  | An:  Struts Users Mailing List [EMAIL PROTECTED] 
   |
  | Kopie: 
|
  | Thema:   RE: RE: Submitting value with Graphical Buttons   
|
  
|




Hello Manuel,

using a page like:

/HEAD

BODY BGCOLOR=#FDF5E6
H2 ALIGN=CENTERTest/H2

FORM Name=testForm ACTION=http://localhost:8088/SomeProgram;
Field 1:
INPUT TYPE=TEXT NAME=field1BR
INPUT TYPE=SUBMIT
/FORM

a href=#  style=text-decoration:none;
onClick=javascript:document.testForm.field1.value='page.jsp';
 document.testForm.submit()

 Test/a

/BODY
/HTML
---

my server received:

=
Here is the request line and request headers sent by your browser:
GET /SomeProgram?field1=page.jsp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword, */*
Accept-Language: de
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
Host: localhost:8088
Connection: Keep-Alive
=

I think thats exactly what you are expecting. I think your error is on
the server side. Maybe your actionform?

Thursday, June 5, 2003, 10:04:18 AM, you wrote:


ML Hi,
ML I have seen some examples like the one below,
ML but no one works with struts. I dont know how to address the form
beans
ML field. And I habe to specify the params name Id like to save.
ML I tried this code, but it doesnt work:

ML a href=#  style=text-decoration:none;
ML onClick=javascript:document.testForm.fieldname.value
ML ='page.jsp';
ML   document.testForm.submit()

ML Where is the error?
ML How do I save a value in an FormBean by clicking a button?

ML Manuel



ML |-+
ML | ||
ML | ||
ML | ||
ML | |Rochak Sethi  |
ML | |[EMAIL PROTECTED]  |
ML | |05.06.2003 08:56|
ML | |Bitte antworten an Struts  |
ML | |Users Mailing List |
ML | ||
ML |-+
ML
ML 
|

ML   |

ML   | An:  Struts Users Mailing List
[EMAIL PROTECTED]
ML   | Kopie:

ML   | Thema:   RE: Submitting value with Graphical Buttons

ML
ML 
|






ML hi ,
ML  a graphical button can be put inside a hyperlink tag and
ML onclick() function can be called
ML eg.
ML  a href=something img src=something
onclick=fnSubmitForm
()/a

ML and in javascript u can make this function :

ML  fnSubmitForm()
ML {
ML  document.formname.submit();
ML }
ML i am not too sure if i am tellng u something u dont know but i guess
this
ML shud work.


ML tc




ML -Original Message-
ML From: Manuel Lenz [mailto:[EMAIL PROTECTED]
ML Sent: Thursday, June 05, 2003 12:20 PM
ML To: Struts Users Mailing List
ML Subject: Submitting value with Graphical Buttons




ML Hi to all,

Antwort: RE: RE: Submitting value with Graphical Buttons

2003-06-05 Thread Manuel Lenz

The value is only submitted in Netscape-based-Browsers like Mozilla.
Internet Explorer doesn´t submit this value-Tag in http-post.

Cheers,
Manuel


|-+
| ||
| ||
| ||
| |[EMAIL PROTECTED]   |
| |05.06.2003 11:04|
| |Bitte antworten an Struts  |
| |Users Mailing List |
| ||
|-+
  
|
  |
|
  | An:  [EMAIL PROTECTED] 
   |
  | Kopie: 
|
  | Thema:   RE: RE: Submitting value with Graphical Buttons   
|
  
|




try this one ...

input src=path to image  type=image name=somename value=somevalue


Regards
guru

-Original Message-
From: Vijay Pawar [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 10:05
To: Struts Users Mailing List
Subject: RE: RE: Submitting value with Graphical Buttons


Hi,

why does ur following code contain DEFANGED_

Is this in ur actual code also? if it is then scripts will not work.

try removing all instances of DEFANGED_

cheers !

Vijay



 Hi,
 I have seen some examples like the one below,
 but no one works with struts. I don´t know how to address the form beans
 field. And I habe to specify the param´s name I´d like to save.
 I tried this code, but it doesn´t work:

 a href=#  DEFANGED_STYLE=text-decoration:none;
 DEFANGED_OnClick=DEFANGED_javascript:document.testForm.fieldname.value
 ='page.jsp';
   document.testForm.submit()

 Where is the error?
 How do I save a value in an FormBean by clicking a button?

 Manuel



 |-+
 | ||
 | ||
 | ||
 | |Rochak Sethi  |
 | |[EMAIL PROTECTED]  |
 | |05.06.2003 08:56|
 | |Bitte antworten an Struts  |
 | |Users Mailing List |
 | ||
 |-+


---
-|
   |
 |
   | An:  Struts Users Mailing List
 [EMAIL PROTECTED]
  |
   | Kopie:
 |
   | Thema:   RE: Submitting value with Graphical Buttons
 |


---
-|





 hi ,
  a graphical button can be put inside a hyperlink tag and
 DEFANGED_Onclick() function can be called
 eg.
  a href=something img src=something
 DEFANGED_Onclick=fnSubmitForm
 ()/a

 and in javascript u can make this function :

  fnSubmitForm()
 {
  document.formname.submit();
 }
 i am not too sure if i am tellng u something u dont know but i guess this
 shud work.


 tc




 -Original Message-
 From: Manuel Lenz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 12:20 PM
 To: Struts Users Mailing List
 Subject: Submitting value with Graphical Buttons




 Hi to all,
 I still have problems with submitting values by clicking graphical
 buttons.
 By using javascript there must be an function named on click  which
 sets a value into a FormBean by pressing a graphical button.
 To get a forwarding page a submit must be initialized too. A link to this
 page might also work.
 The value must be a constant one to identiy the page from which the user
 has submitted.

 Has anybody an idea how this works?

 Greetings,
 Manuel



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


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







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





RE: Antwort: RE: RE: Submitting value with Graphical Buttons

2003-06-05 Thread Andrew Hill
You could use a GET request with the value for that field appended as a
query parameter. These are treated the same as POSTed parameters when the
form is populated. (Dont forget to rewrite the url to preserve session for
cookie haters).

-Of course you will lose the values for all the other fields when you get
back to the form from the server trip unless you do something tricky to
avoid reloading the page - such as fire the request in a hidden iframe (of
course if you to go to another page after this then thats probably a moot
point)

-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 17:23
To: Struts Users Mailing List
Subject: Antwort: RE: RE: Submitting value with Graphical Buttons





Hi Dirk,
you are right with your statement, but this is not exactly what I want to
do.
You are filling an input field in the html-page and submit this value.
Id like to fill directly an field in a specified FormBean on the server.
But how do I address this field in the expected FormBean?

Idont like to use your solution, because the browser caches the
input-values of the form.
If an user takes the back-button to go to the last form, the field will be
still filled in. This causes some following problems.

Is there a possibility to save the value directly in the server-FormBean?

Manuel



|-+
| ||
| ||
| ||
| |Dirk Markert|
| |[EMAIL PROTECTED]|
| |05.06.2003 11:10|
| |Bitte antworten an Struts  |
| |Users Mailing List |
| ||
|-+

---
-|
  |
|
  | An:  Struts Users Mailing List [EMAIL PROTECTED]
|
  | Kopie:
|
  | Thema:   RE: RE: Submitting value with Graphical Buttons
|

---
-|




Hello Manuel,

using a page like:

/HEAD

BODY BGCOLOR=#FDF5E6
H2 ALIGN=CENTERTest/H2

FORM Name=testForm ACTION=http://localhost:8088/SomeProgram;
Field 1:
INPUT TYPE=TEXT NAME=field1BR
INPUT TYPE=SUBMIT
/FORM

a href=#  style=text-decoration:none;
onClick=javascript:document.testForm.field1.value='page.jsp';
 document.testForm.submit()

 Test/a

/BODY
/HTML
---

my server received:

=
Here is the request line and request headers sent by your browser:
GET /SomeProgram?field1=page.jsp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword, */*
Accept-Language: de
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
Host: localhost:8088
Connection: Keep-Alive
=

I think thats exactly what you are expecting. I think your error is on
the server side. Maybe your actionform?

Thursday, June 5, 2003, 10:04:18 AM, you wrote:


ML Hi,
ML I have seen some examples like the one below,
ML but no one works with struts. I dont know how to address the form
beans
ML field. And I habe to specify the params name Id like to save.
ML I tried this code, but it doesnt work:

ML a href=#  style=text-decoration:none;
ML onClick=javascript:document.testForm.fieldname.value
ML ='page.jsp';
ML   document.testForm.submit()

ML Where is the error?
ML How do I save a value in an FormBean by clicking a button?

ML Manuel



ML |-+
ML | ||
ML | ||
ML | ||
ML | |Rochak Sethi  |
ML | |[EMAIL PROTECTED]  |
ML | |05.06.2003 08:56|
ML | |Bitte antworten an Struts  |
ML | |Users Mailing List |
ML | ||
ML |-+
ML
ML 

|

ML   |

ML   | An:  Struts Users Mailing List
[EMAIL PROTECTED]
ML   | Kopie:

ML   | Thema:   RE: Submitting value with Graphical Buttons

ML
ML 

|






ML hi ,
ML  a graphical button can be put inside a hyperlink tag and
ML onclick() function can be called
ML eg.
ML  a href=something img src=something
onclick=fnSubmitForm
()/a

ML and in javascript u can make this function :

ML  fnSubmitForm()

Re: Antwort: RE: RE: Submitting value with Graphical Buttons

2003-06-05 Thread Dirk Markert
Manuel,

are you preparing your form data with an action? Then simply use
something like

  actionForm.setXyProp()

Struts will populate your jsp with the data from your action form.





ML Hi Dirk,
ML you are right with your statement, but this is not exactly what I want to
ML do.
ML You are filling an input field in the html-page and submit this value.
ML Id like to fill directly an field in a specified FormBean on the server.
ML But how do I address this field in the expected FormBean?

ML Idont like to use your solution, because the browser caches the
ML input-values of the form.
ML If an user takes the back-button to go to the last form, the field will be
ML still filled in. This causes some following problems.

ML Is there a possibility to save the value directly in the server-FormBean?

ML Manuel



ML |-+
ML | ||
ML | ||
ML | ||
ML | |Dirk Markert|
ML | |[EMAIL PROTECTED]|
ML | |05.06.2003 11:10|
ML | |Bitte antworten an Struts  |
ML | |Users Mailing List |
ML | ||
ML |-+
ML   
|
ML   |
|
ML   | An:  Struts Users Mailing List [EMAIL PROTECTED] 
   |
ML   | Kopie: 
|
ML   | Thema:   RE: RE: Submitting value with Graphical Buttons   
|
ML   
|




ML Hello Manuel,

ML using a page like:
ML 
ML /HEAD

ML BODY BGCOLOR=#FDF5E6
ML H2 ALIGN=CENTERTest/H2

ML FORM Name=testForm ACTION=http://localhost:8088/SomeProgram;
ML Field 1:
ML INPUT TYPE=TEXT NAME=field1BR
ML INPUT TYPE=SUBMIT
ML /FORM

ML a href=#  style=text-decoration:none;
ML onClick=javascript:document.testForm.field1.value='page.jsp';
ML  document.testForm.submit()

ML  Test/a

ML /BODY
ML /HTML
ML ---

ML my server received:

ML =
ML Here is the request line and request headers sent by your browser:
ML GET /SomeProgram?field1=page.jsp HTTP/1.1
ML Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
ML application/vnd.ms-powerpoint, application/vnd.ms-excel,
ML application/msword, */*
ML Accept-Language: de
ML Accept-Encoding: gzip, deflate
ML User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
ML Host: localhost:8088
ML Connection: Keep-Alive
ML =

ML I think thats exactly what you are expecting. I think your error is on
ML the server side. Maybe your actionform?

ML Thursday, June 5, 2003, 10:04:18 AM, you wrote:


ML Hi,
ML I have seen some examples like the one below,
ML but no one works with struts. I dont know how to address the form
ML beans
ML field. And I habe to specify the params name Id like to save.
ML I tried this code, but it doesnt work:

ML a href=#  style=text-decoration:none;
ML onClick=javascript:document.testForm.fieldname.value
ML ='page.jsp';
ML   document.testForm.submit()

ML Where is the error?
ML How do I save a value in an FormBean by clicking a button?

ML Manuel



ML |-+
ML | ||
ML | ||
ML | ||
ML | |Rochak Sethi  |
ML | |[EMAIL PROTECTED]  |
ML | |05.06.2003 08:56|
ML | |Bitte antworten an Struts  |
ML | |Users Mailing List |
ML | ||
ML |-+
ML
ML 
ML 
|

ML   |

ML   | An:  Struts Users Mailing List
ML [EMAIL PROTECTED]
ML   | Kopie:

ML   | Thema:   RE: Submitting value with Graphical Buttons

ML
ML 
ML 
|






ML hi ,
ML  a graphical button can be put inside a hyperlink tag and
ML onclick() function can be called
ML eg.
ML  a href=something img src=something
ML onclick=fnSubmitForm
()/a

ML and in javascript u can make this function :

ML  fnSubmitForm()

Re: Using nested tags

2003-06-05 Thread lcl
I need online tutorial :-)
Mark Galbreath [EMAIL PROTECTED]
:[EMAIL PROTECTED]
 you didn't. would you like lessons?

 -Original Message-
 From: lcl [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 11:55 PM

 Hi Dan,

 Sorry for post it to your email directly.




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



Re: struts validator

2003-06-05 Thread Brian McSweeney
I had initial trouble setting up the validator, mainly to do with it not
working when you try to validate the dtd with a machine not connected
to the net. It didn't give a good error explaining this. However, once I
realised this was the problem, and set up the validator properly, it works
really well. Especially, if, like me, you are new to javascript!
Brian

- Original Message -
From: Mark Galbreath [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 5:18 AM
Subject: RE: struts validator


 You know, I just don't get it. I think Validator was a great idea that
 simply proved wrong in implementation.  And I know I am not alone it this
 assessment.

 Mark

 -Original Message-
 From: Jeff Kyser [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 12:03 AM
 To: Struts Users Mailing List
 Subject: Re: struts validator


 Like I said, I dont use client-side, and its been pretty smooth sailing
for
 me. Sorry your experience was different, but personally, I like it.
 Especially defining constants for validation masks and using them over and
 over on lots of different forms in different projects even. And the
 requiredif has been pretty handy for a number of cases to boot

 Of course, there are still cases where I need to go to
 validate() methods in the actions, but they are less
 and less, just as I use actual FormBeans less and less,
 now that i halfway grok DynaValidatorForms...

 cheers,

 -jeff

 On Wednesday, June 4, 2003, at 10:40  PM, Mark Galbreath wrote:

  yeah, well, DUH!  When are you guys going to realize that Validator
  should
  never have come out here even in beta. It sucks.
 
  Mark
 
  -Original Message-
  From: Jeff Kyser [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 04, 2003 9:25 PM
  To: Struts Users Mailing List
  Subject: Re: struts validator
 
 
  I only did server-side validations, using v1.1b3, until I saw lots of
  people
  complaining that v1.1rc1 wasn;t working for client-side validations.
 
  I tried it (rc1) and it didn't work for me either. I haven't messed
  with the nightly builds - just went back to 1.1b3. Its probably been
  fixed in the
  latest, but since 1.1rc2 is coming out soon, figure I'll wait until
  then to
  check it out again.
 
  -jeff
 
  On Wednesday, June 4, 2003, at 08:18  PM, Mark Galbreath wrote:
 
  Beats me, dude.  I struggled with it for 3 days and said enough is
  enough, and wrote my own validations in my Action classes.  If you
  look through the
  mail archive, you'll see right off that this is what happens to the
  majority
  of people trying to get Validator to work.
 
  Good luck,
  Mark
 
  -Original Message-
  From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 04, 2003 8:55 PM
  To: Struts Users Mailing List; Mark Galbreath
  Subject: Re: struts validator
 
 
  how can i fix it?
 
  On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote:
  That's because the Validator works by magic and you obviously have a
  hex in your machine.
 
  (sometimes I kill myself)
  Mark
 
  -Original Message-
  From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 30, 2003 2:49 AM
  To: [EMAIL PROTECTED]
  Subject: struts validator
 
 
  struts validator (client side validation) example is not working in
  my pc, even the struts example. but it is working with the other pcs
  in our office.
 
  i noticed that when i view the page source there is no javascript
  generated unlike in the other pc. is there still i have to configure
  or what? im using
 
  struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server
  and sometimes JBOSS 3.0.6
 
  --
  Frances Aleah Z. De Guzman
  SA/Programmer
  Ingenium Technology, Inc.
  http://www.ingenium.com.ph
 
  Disclaimer :
  This message is intended only for the named recipient. If you are not
  the intended recipient you are notified that disclosing, copying,
  distributing
  or taking any action in reliance on the contents of this information
  is
  strictly prohibited.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



 

Validating a double

2003-06-05 Thread Brian McSweeney
Hi all,

I'd like to validate a double using the validator. However, 
does this mean that the field in the ValidatorForm should 
be a double (primary data type) or a java.lang.Double. 
Or perhaps I should take the field in as a string and try 
to validate it as a double? I only say this because I glanced 
at a mail the other day which said:

*there should be a big warning saying all fields in your forms 
should be strings*

any help is much appreciated,
cheers,
Brian

RE: struts validator

2003-06-05 Thread graghupathy
hi, 
Can you please let me know of how do you get rid of this issuse ( i
mean setting up the validator so that i need not be 
connected to the net ) ... 

Thanks 
Guru

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 10:50
To: Struts Users Mailing List
Subject: Re: struts validator


I had initial trouble setting up the validator, mainly to do with it not
working when you try to validate the dtd with a machine not connected
to the net. It didn't give a good error explaining this. However, once I
realised this was the problem, and set up the validator properly, it works
really well. Especially, if, like me, you are new to javascript!
Brian

- Original Message -
From: Mark Galbreath [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 5:18 AM
Subject: RE: struts validator


 You know, I just don't get it. I think Validator was a great idea that
 simply proved wrong in implementation.  And I know I am not alone it this
 assessment.

 Mark

 -Original Message-
 From: Jeff Kyser [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 12:03 AM
 To: Struts Users Mailing List
 Subject: Re: struts validator


 Like I said, I dont use client-side, and its been pretty smooth sailing
for
 me. Sorry your experience was different, but personally, I like it.
 Especially defining constants for validation masks and using them over and
 over on lots of different forms in different projects even. And the
 requiredif has been pretty handy for a number of cases to boot

 Of course, there are still cases where I need to go to
 validate() methods in the actions, but they are less
 and less, just as I use actual FormBeans less and less,
 now that i halfway grok DynaValidatorForms...

 cheers,

 -jeff

 On Wednesday, June 4, 2003, at 10:40  PM, Mark Galbreath wrote:

  yeah, well, DUH!  When are you guys going to realize that Validator
  should
  never have come out here even in beta. It sucks.
 
  Mark
 
  -Original Message-
  From: Jeff Kyser [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 04, 2003 9:25 PM
  To: Struts Users Mailing List
  Subject: Re: struts validator
 
 
  I only did server-side validations, using v1.1b3, until I saw lots of
  people
  complaining that v1.1rc1 wasn;t working for client-side validations.
 
  I tried it (rc1) and it didn't work for me either. I haven't messed
  with the nightly builds - just went back to 1.1b3. Its probably been
  fixed in the
  latest, but since 1.1rc2 is coming out soon, figure I'll wait until
  then to
  check it out again.
 
  -jeff
 
  On Wednesday, June 4, 2003, at 08:18  PM, Mark Galbreath wrote:
 
  Beats me, dude.  I struggled with it for 3 days and said enough is
  enough, and wrote my own validations in my Action classes.  If you
  look through the
  mail archive, you'll see right off that this is what happens to the
  majority
  of people trying to get Validator to work.
 
  Good luck,
  Mark
 
  -Original Message-
  From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 04, 2003 8:55 PM
  To: Struts Users Mailing List; Mark Galbreath
  Subject: Re: struts validator
 
 
  how can i fix it?
 
  On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote:
  That's because the Validator works by magic and you obviously have a
  hex in your machine.
 
  (sometimes I kill myself)
  Mark
 
  -Original Message-
  From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 30, 2003 2:49 AM
  To: [EMAIL PROTECTED]
  Subject: struts validator
 
 
  struts validator (client side validation) example is not working in
  my pc, even the struts example. but it is working with the other pcs
  in our office.
 
  i noticed that when i view the page source there is no javascript
  generated unlike in the other pc. is there still i have to configure
  or what? im using
 
  struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server
  and sometimes JBOSS 3.0.6
 
  --
  Frances Aleah Z. De Guzman
  SA/Programmer
  Ingenium Technology, Inc.
  http://www.ingenium.com.ph
 
  Disclaimer :
  This message is intended only for the named recipient. If you are not
  the intended recipient you are notified that disclosing, copying,
  distributing
  or taking any action in reliance on the contents of this information
  is
  strictly prohibited.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  

Re: struts validator

2003-06-05 Thread Frances Aleah Z. de Guzman
but my pc is connected to the net. but i have this compilation error no route 
to host the url of the validation dtd...but my struts-config.dtd works 
fine.

On Thursday 05 June 2003 05:49 pm, Brian McSweeney wrote:
 I had initial trouble setting up the validator, mainly to do with it not
 working when you try to validate the dtd with a machine not connected
 to the net. It didn't give a good error explaining this. However, once I
 realised this was the problem, and set up the validator properly, it works
 really well. Especially, if, like me, you are new to javascript!
 Brian

 - Original Message -
 From: Mark Galbreath [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 5:18 AM
 Subject: RE: struts validator

  You know, I just don't get it. I think Validator was a great idea that
  simply proved wrong in implementation.  And I know I am not alone it this
  assessment.
 
  Mark
 
  -Original Message-
  From: Jeff Kyser [mailto:[EMAIL PROTECTED]
  Sent: Thursday, June 05, 2003 12:03 AM
  To: Struts Users Mailing List
  Subject: Re: struts validator
 
 
  Like I said, I dont use client-side, and its been pretty smooth sailing

 for

  me. Sorry your experience was different, but personally, I like it.
  Especially defining constants for validation masks and using them over
  and over on lots of different forms in different projects even. And the
  requiredif has been pretty handy for a number of cases to boot
 
  Of course, there are still cases where I need to go to
  validate() methods in the actions, but they are less
  and less, just as I use actual FormBeans less and less,
  now that i halfway grok DynaValidatorForms...
 
  cheers,
 
  -jeff
 
  On Wednesday, June 4, 2003, at 10:40  PM, Mark Galbreath wrote:
   yeah, well, DUH!  When are you guys going to realize that Validator
   should
   never have come out here even in beta. It sucks.
  
   Mark
  
   -Original Message-
   From: Jeff Kyser [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, June 04, 2003 9:25 PM
   To: Struts Users Mailing List
   Subject: Re: struts validator
  
  
   I only did server-side validations, using v1.1b3, until I saw lots of
   people
   complaining that v1.1rc1 wasn;t working for client-side validations.
  
   I tried it (rc1) and it didn't work for me either. I haven't messed
   with the nightly builds - just went back to 1.1b3. Its probably been
   fixed in the
   latest, but since 1.1rc2 is coming out soon, figure I'll wait until
   then to
   check it out again.
  
   -jeff
  
   On Wednesday, June 4, 2003, at 08:18  PM, Mark Galbreath wrote:
   Beats me, dude.  I struggled with it for 3 days and said enough is
   enough, and wrote my own validations in my Action classes.  If you
   look through the
   mail archive, you'll see right off that this is what happens to the
   majority
   of people trying to get Validator to work.
  
   Good luck,
   Mark
  
   -Original Message-
   From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, June 04, 2003 8:55 PM
   To: Struts Users Mailing List; Mark Galbreath
   Subject: Re: struts validator
  
  
   how can i fix it?
  
   On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote:
   That's because the Validator works by magic and you obviously have a
   hex in your machine.
  
   (sometimes I kill myself)
   Mark
  
   -Original Message-
   From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
   Sent: Friday, May 30, 2003 2:49 AM
   To: [EMAIL PROTECTED]
   Subject: struts validator
  
  
   struts validator (client side validation) example is not working in
   my pc, even the struts example. but it is working with the other pcs
   in our office.
  
   i noticed that when i view the page source there is no javascript
   generated unlike in the other pc. is there still i have to configure
   or what? im using
  
   struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server
   and sometimes JBOSS 3.0.6
  
   --
   Frances Aleah Z. De Guzman
   SA/Programmer
   Ingenium Technology, Inc.
   http://www.ingenium.com.ph
  
   Disclaimer :
   This message is intended only for the named recipient. If you are not
   the intended recipient you are notified that disclosing, copying,
   distributing
   or taking any action in reliance on the contents of this information
   is
   strictly prohibited.
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   

Re: struts validator

2003-06-05 Thread Brian McSweeney
I use xdoclet to generate my validator stuff. There is a tag in the
strutsvalidationxml/ that allows you to use the dtd or not. I
set it there. Not sure how it actually works under the hood though.
Sorry :-( Anyone else know?
Brian

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 11:00 AM
Subject: RE: struts validator


 hi,
 Can you please let me know of how do you get rid of this issuse ( i
 mean setting up the validator so that i need not be
 connected to the net ) ...

 Thanks
 Guru

 -Original Message-
 From: Brian McSweeney [mailto:[EMAIL PROTECTED]
 Sent: 05 June 2003 10:50
 To: Struts Users Mailing List
 Subject: Re: struts validator


 I had initial trouble setting up the validator, mainly to do with it not
 working when you try to validate the dtd with a machine not connected
 to the net. It didn't give a good error explaining this. However, once I
 realised this was the problem, and set up the validator properly, it works
 really well. Especially, if, like me, you are new to javascript!
 Brian

 - Original Message -
 From: Mark Galbreath [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 5:18 AM
 Subject: RE: struts validator


  You know, I just don't get it. I think Validator was a great idea that
  simply proved wrong in implementation.  And I know I am not alone it
this
  assessment.
 
  Mark
 
  -Original Message-
  From: Jeff Kyser [mailto:[EMAIL PROTECTED]
  Sent: Thursday, June 05, 2003 12:03 AM
  To: Struts Users Mailing List
  Subject: Re: struts validator
 
 
  Like I said, I dont use client-side, and its been pretty smooth sailing
 for
  me. Sorry your experience was different, but personally, I like it.
  Especially defining constants for validation masks and using them over
and
  over on lots of different forms in different projects even. And the
  requiredif has been pretty handy for a number of cases to boot
 
  Of course, there are still cases where I need to go to
  validate() methods in the actions, but they are less
  and less, just as I use actual FormBeans less and less,
  now that i halfway grok DynaValidatorForms...
 
  cheers,
 
  -jeff
 
  On Wednesday, June 4, 2003, at 10:40  PM, Mark Galbreath wrote:
 
   yeah, well, DUH!  When are you guys going to realize that Validator
   should
   never have come out here even in beta. It sucks.
  
   Mark
  
   -Original Message-
   From: Jeff Kyser [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, June 04, 2003 9:25 PM
   To: Struts Users Mailing List
   Subject: Re: struts validator
  
  
   I only did server-side validations, using v1.1b3, until I saw lots of
   people
   complaining that v1.1rc1 wasn;t working for client-side validations.
  
   I tried it (rc1) and it didn't work for me either. I haven't messed
   with the nightly builds - just went back to 1.1b3. Its probably been
   fixed in the
   latest, but since 1.1rc2 is coming out soon, figure I'll wait until
   then to
   check it out again.
  
   -jeff
  
   On Wednesday, June 4, 2003, at 08:18  PM, Mark Galbreath wrote:
  
   Beats me, dude.  I struggled with it for 3 days and said enough is
   enough, and wrote my own validations in my Action classes.  If you
   look through the
   mail archive, you'll see right off that this is what happens to the
   majority
   of people trying to get Validator to work.
  
   Good luck,
   Mark
  
   -Original Message-
   From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, June 04, 2003 8:55 PM
   To: Struts Users Mailing List; Mark Galbreath
   Subject: Re: struts validator
  
  
   how can i fix it?
  
   On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote:
   That's because the Validator works by magic and you obviously have a
   hex in your machine.
  
   (sometimes I kill myself)
   Mark
  
   -Original Message-
   From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
   Sent: Friday, May 30, 2003 2:49 AM
   To: [EMAIL PROTECTED]
   Subject: struts validator
  
  
   struts validator (client side validation) example is not working in
   my pc, even the struts example. but it is working with the other pcs
   in our office.
  
   i noticed that when i view the page source there is no javascript
   generated unlike in the other pc. is there still i have to configure
   or what? im using
  
   struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server
   and sometimes JBOSS 3.0.6
  
   --
   Frances Aleah Z. De Guzman
   SA/Programmer
   Ingenium Technology, Inc.
   http://www.ingenium.com.ph
  
   Disclaimer :
   This message is intended only for the named recipient. If you are not
   the intended recipient you are notified that disclosing, copying,
   distributing
   or taking any action in reliance on the contents of this information
   is
   strictly prohibited.
  
  
  
   

Re: [OT] Newbie Question:XML parsing

2003-06-05 Thread Max Cooper
I'll third the recommendation to use Digester. I needed to parse an XML
file for the securityfilter project, and I had not done any XML parsing
before so I was expecting it to be a fair amount of work to do. Then I
recieved a contributed solution from a member of this list that used
Digester. It only took me a few minutes of looking at the code to understand
how it worked. Digester is great for the kind of config-file parsing that my
project needed. Here's a link to the class that uses Digester to parse the
securityfilter config file (see the loadConfig() method for the Digester
part):
http://tinyurl.com/dj54

Having struggled with some software that used XML for configuration but had
no DTD before (what the heck can I specify, and how?), I decided to write a
DTD for the config file for my project. I used XML Spy to create the DTD
pretty quickly, despite not having any experience with authoring DTDs
before. The DTD language has some annoying limitations (which seems to
explain why many projects/products don't use a DTD for their config files),
but I was able to come up with a DTD that worked for my needs. Now that I
had a DTD, Digester could validate it during the parse. Digester also allows
you (as the developer of the software that reads the XML file) to register a
local copy of the DTD for validation, rather than retrieving it from the
internet. You can also turn validation on or off, a feature you may want to
allow the users of your project to control.

-Max

- Original Message - 
From: Navjot Singh [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 11:55 PM
Subject: RE: Newbie Question:XML parsing


 you may wish to see apache digester.

 |-Original Message-
 |From: Sushil Jain [mailto:[EMAIL PROTECTED]
 |Sent: Sunday, June 05, 1994 9:38 AM
 |To: Struts Users Mailing List
 |Subject: Newbie Question:XML parsing
 |
 |
 |I am new to Struts. I am buiding an application in which I need to
 |explicitily read an XML file as Input , and then validate the file itself
 |and the fields of the record in it against some rules . Wanted to know if
 |Struts provide some mechanism for it or there need to use some parser
like
 |xerces for it.
 |Thanks
 |Sushil
 |
 |Disclaimer :
 |This message is intended only for the named recipient. If you are not
 |the intended recipient you are notified that disclosing, copying,
 |distributing or taking any action in reliance on the contents of this
 |information is strictly prohibited.
 |
 |
 |
 |-
 |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]
 |
 |
 |_
 |The new MSN 8: smart spam protection and 2 months FREE*
 |http://join.msn.com/?page=features/junkmail
 |
 |
 |-
 |To unsubscribe, e-mail: [EMAIL PROTECTED]
 |For additional commands, e-mail: [EMAIL PROTECTED]
 |
 |
 |
 |-
 |To unsubscribe, e-mail: [EMAIL PROTECTED]
 |For additional commands, e-mail: [EMAIL PROTECTED]
 |
 |
 |-
 |To unsubscribe, e-mail: [EMAIL PROTECTED]
 |For additional commands, e-mail: [EMAIL PROTECTED]
 |
 |

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





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



logic:redirect question

2003-06-05 Thread harm
Hi all,

In my struts application I verify if a user is valid, and if so I store 
the user information in the Session object. 
I use an object called 'user'.

In the rest of my JSP's I check if this 'user' object is present, and if 
not I redirect the user to the login-screen.

I use this code:

logic:notPresent name=user
logic:redirect href=http://wonen.dev.mediatoolbox.nl/
/logic:notPresent

As you can see, I hard-coded the redirection URL into the JSP. But I don't 
want hardcode this URL.
Are there any possibilities to maybe get this from a properties file?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands


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



passing parameters or object from one action to other

2003-06-05 Thread meissa . Sakho

hi all,

I have an action1 whose forward is another action2.

I need to pass some parameters or object from action1
to action2

I don't want to put them(parameters or object) in the session.

Is there a solution for doing that.

thanks in advance

Meissa 

L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is 
prohibited.
If you are not the intended recipient of this message, then please delete it and 
notify the sender.

RE: passing parameters or object from one action to other

2003-06-05 Thread Andrew Hill
You can put them in the request as attributes and use a non-redirecting
forward *but* then you are 'action chaining'.

(Action chains are bad. n'kay)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 19:25
To: [EMAIL PROTECTED]
Subject: passing parameters or object from one action to other



hi all,

I have an action1 whose forward is another action2.

I need to pass some parameters or object from action1
to action2

I don't want to put them(parameters or object) in the session.

Is there a solution for doing that.

thanks in advance

Meissa

L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or
dissemination is prohibited.
If you are not the intended recipient of this message, then please delete it
and
notify the sender.


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



Re: struts validator

2003-06-05 Thread Mark Lowe
Not sure all this talk of validator is that justifiable. I've had no  
issues generating both the client side and server side validation, and  
its saved me a lot of work.

Like others i think it would be nice to define form beans and  
validation rules in the same place but I like it as it is, unless  
anybody has any alternatives?

Thats my 2 pence..

Mark

On Thursday, Jun 5, 2003, at 05:24 Europe/London, Jeff Kyser wrote:

So jump in and help David fix it. Otherwise, you're likely to
wake up and find a large block of cheddar in your bed. :)
On Wednesday, June 4, 2003, at 11:18  PM, Mark Galbreath wrote:

You know, I just don't get it. I think Validator was a great idea that
simply proved wrong in implementation.  And I know I am not alone it  
this
assessment.

Mark

-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 12:03 AM
To: Struts Users Mailing List
Subject: Re: struts validator
Like I said, I dont use client-side, and its been pretty smooth  
sailing for
me. Sorry your experience was different, but personally, I like it.
Especially defining constants for validation masks and using them  
over and
over on lots of different forms in different projects even. And the
requiredif has been pretty handy for a number of cases to boot

Of course, there are still cases where I need to go to
validate() methods in the actions, but they are less
and less, just as I use actual FormBeans less and less,
now that i halfway grok DynaValidatorForms...
cheers,

-jeff

On Wednesday, June 4, 2003, at 10:40  PM, Mark Galbreath wrote:

yeah, well, DUH!  When are you guys going to realize that Validator
should
never have come out here even in beta. It sucks.
Mark

-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:25 PM
To: Struts Users Mailing List
Subject: Re: struts validator
I only did server-side validations, using v1.1b3, until I saw lots of
people
complaining that v1.1rc1 wasn;t working for client-side validations.
I tried it (rc1) and it didn't work for me either. I haven't messed
with the nightly builds - just went back to 1.1b3. Its probably been
fixed in the
latest, but since 1.1rc2 is coming out soon, figure I'll wait until
then to
check it out again.
-jeff

On Wednesday, June 4, 2003, at 08:18  PM, Mark Galbreath wrote:

Beats me, dude.  I struggled with it for 3 days and said enough is
enough, and wrote my own validations in my Action classes.  If you
look through the
mail archive, you'll see right off that this is what happens to the
majority
of people trying to get Validator to work.
Good luck,
Mark
-Original Message-
From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 8:55 PM
To: Struts Users Mailing List; Mark Galbreath
Subject: Re: struts validator
how can i fix it?

On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote:
That's because the Validator works by magic and you obviously have  
a
hex in your machine.

(sometimes I kill myself)
Mark
-Original Message-
From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 2:49 AM
To: [EMAIL PROTECTED]
Subject: struts validator
struts validator (client side validation) example is not working in
my pc, even the struts example. but it is working with the other  
pcs
in our office.

i noticed that when i view the page source there is no javascript
generated unlike in the other pc. is there still i have to  
configure
or what? im using

struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server
and sometimes JBOSS 3.0.6
--
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph
Disclaimer :
This message is intended only for the named recipient. If you are  
not
the intended recipient you are notified that disclosing, copying,
distributing
or taking any action in reliance on the contents of this information
is
strictly prohibited.



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



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



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


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


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


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



RE: passing parameters or object from one action to other

2003-06-05 Thread Andrew Hill
(Oops. Hit send too soon. Try again!)

You can put them in the request as attributes and use a non-redirecting
forward *but* then you are 'action chaining'.

(Action chains are bad. n'kay)

The other alternative - suitable for string parameters - is to make them
request parameters by appending to the url.
To do this you create a new forward based on the existing forward. ie in
your action:

ActionForward forward = mapping.findForward(myforward);
forward = new
ctionForward( addParameterToUrl(forward.getPath(),foo,bar),
forward.getRedirect() );
return forward;

where addParameterToUrl does something like:

  private String addParameterToURL(String url, String parameter, String
value)
  {
return url + ( (url.indexOf(?)==-1) ? ? :  ) + parameter + = +
value;
  }

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 19:25
To: [EMAIL PROTECTED]
Subject: passing parameters or object from one action to other



hi all,

I have an action1 whose forward is another action2.

I need to pass some parameters or object from action1
to action2

I don't want to put them(parameters or object) in the session.

Is there a solution for doing that.

thanks in advance

Meissa

L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or
dissemination is prohibited.
If you are not the intended recipient of this message, then please delete it
and
notify the sender.


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



RES: struts validator

2003-06-05 Thread Julio Cesar C Neto
Hi,

Just point the dtd reference to a file in your disk:

FROM:
!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration
1.1//EN
  http://jakarta.apache.org/struts/dtds/validator_1_0.dtd;

TO:
!DOCTYPE form-validation PUBLIC
  -//Apache Software Foundation//DTD Commons Validator Rules
Configuration 1.0//EN
  file:/your/path/to/validator_1_0.dtd

Julio Cesar


-Mensagem original-
De: Brian McSweeney [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 5 de junho de 2003 07:03
Para: Struts Users Mailing List
Assunto: Re: struts validator

I use xdoclet to generate my validator stuff. There is a tag in the
strutsvalidationxml/ that allows you to use the dtd or not. I
set it there. Not sure how it actually works under the hood though.
Sorry :-( Anyone else know?
Brian

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 11:00 AM
Subject: RE: struts validator


 hi,
 Can you please let me know of how do you get rid of this issuse ( i
 mean setting up the validator so that i need not be
 connected to the net ) ...

 Thanks
 Guru

 -Original Message-
 From: Brian McSweeney [mailto:[EMAIL PROTECTED]
 Sent: 05 June 2003 10:50
 To: Struts Users Mailing List
 Subject: Re: struts validator


 I had initial trouble setting up the validator, mainly to do with it
not
 working when you try to validate the dtd with a machine not connected
 to the net. It didn't give a good error explaining this. However, once
I
 realised this was the problem, and set up the validator properly, it
works
 really well. Especially, if, like me, you are new to javascript!
 Brian

 - Original Message -
 From: Mark Galbreath [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 5:18 AM
 Subject: RE: struts validator


  You know, I just don't get it. I think Validator was a great idea
that
  simply proved wrong in implementation.  And I know I am not alone it
this
  assessment.
 
  Mark
 
  -Original Message-
  From: Jeff Kyser [mailto:[EMAIL PROTECTED]
  Sent: Thursday, June 05, 2003 12:03 AM
  To: Struts Users Mailing List
  Subject: Re: struts validator
 
 
  Like I said, I dont use client-side, and its been pretty smooth
sailing
 for
  me. Sorry your experience was different, but personally, I like it.
  Especially defining constants for validation masks and using them
over
and
  over on lots of different forms in different projects even. And the
  requiredif has been pretty handy for a number of cases to boot
 
  Of course, there are still cases where I need to go to
  validate() methods in the actions, but they are less
  and less, just as I use actual FormBeans less and less,
  now that i halfway grok DynaValidatorForms...
 
  cheers,
 
  -jeff
 
  On Wednesday, June 4, 2003, at 10:40  PM, Mark Galbreath wrote:
 
   yeah, well, DUH!  When are you guys going to realize that
Validator
   should
   never have come out here even in beta. It sucks.
  
   Mark
  
   -Original Message-
   From: Jeff Kyser [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, June 04, 2003 9:25 PM
   To: Struts Users Mailing List
   Subject: Re: struts validator
  
  
   I only did server-side validations, using v1.1b3, until I saw lots
of
   people
   complaining that v1.1rc1 wasn;t working for client-side
validations.
  
   I tried it (rc1) and it didn't work for me either. I haven't
messed
   with the nightly builds - just went back to 1.1b3. Its probably
been
   fixed in the
   latest, but since 1.1rc2 is coming out soon, figure I'll wait
until
   then to
   check it out again.
  
   -jeff
  
   On Wednesday, June 4, 2003, at 08:18  PM, Mark Galbreath wrote:
  
   Beats me, dude.  I struggled with it for 3 days and said enough
is
   enough, and wrote my own validations in my Action classes.  If
you
   look through the
   mail archive, you'll see right off that this is what happens to
the
   majority
   of people trying to get Validator to work.
  
   Good luck,
   Mark
  
   -Original Message-
   From: Frances Aleah Z. de Guzman
[mailto:[EMAIL PROTECTED]
   Sent: Wednesday, June 04, 2003 8:55 PM
   To: Struts Users Mailing List; Mark Galbreath
   Subject: Re: struts validator
  
  
   how can i fix it?
  
   On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote:
   That's because the Validator works by magic and you obviously
have a
   hex in your machine.
  
   (sometimes I kill myself)
   Mark
  
   -Original Message-
   From: Frances Aleah Z. de Guzman
[mailto:[EMAIL PROTECTED]
   Sent: Friday, May 30, 2003 2:49 AM
   To: [EMAIL PROTECTED]
   Subject: struts validator
  
  
   struts validator (client side validation) example is not working
in
   my pc, even the struts example. but it is working with the other
pcs
   in our office.
  
   i noticed that when i view the page source there is no
javascript
   generated unlike in the other pc. is there 

Nested indexed reference problem

2003-06-05 Thread Jean-Marc Gabriel
Hi all ! 

My jsp contain the following code :

nested:form action=/admin.gp?ACTION=getGroups 
type=gaston.project.struts.user.AdminAction name=SESSIONUSER
 nested:nest property=groups 
nested:write property=root.name/br   (A)
nested:iterate property=childs[1] (B)
  nested:write property=name/br
  /nested:iterate
 /nested:nest
/nested:form

the error related to the line (B) is : 
javax.servlet.ServletException: No getter method for property groups.childs[1][0].name 
of bean SESSIONUSER
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
 
I've several hypothesis according to this but nevertheless I can't go further :-(

for info, the following code works well :

logic:iterate id=thegroups name=SESSIONUSER property=groups.childs[1]
bean:write name=thegroups property=name/
br
/logic:iterate

and ... I need nested tags for recursion and I don't want to change the implementation 
of my bean wich uses an hashtable to record the child node/parent node relations

... and an another simple related question (wich, I guess, doesn't need a new thread 
for it) : how do I write childs[id] instead of childs[1] ? ...  
property=%='child['+id+']'% doesn't work and I don't know how to manage this with 
nested:define's tag

thanks for help

JM

ps : I've already take a look at www.keyboardmonkey.com ;-)

tiles and tiles controllers

2003-06-05 Thread teknokrat
I have a page definition that uses a tiles controller. This works fine. 
However, i now want to defines several pages that extend the first page 
but i do not want them using the controller ( or any controller). can 
this be done? leaving urlController blank gives errors.

thanks



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


Réf. : RE: passing parameters or object from oneaction to other

2003-06-05 Thread meissa . Sakho

why do you say 'Action chains are bad'.
Is there another solution then.

Meissa




Andrew Hill [EMAIL PROTECTED]
05/06/2003 13:28
Veuillez répondre à Struts Users Mailing List


Pour :  Struts Users Mailing List [EMAIL PROTECTED]
cc :
Objet : RE: passing parameters or object from one action to other


You can put them in the request as attributes and use a non-redirecting
forward *but* then you are 'action chaining'.

(Action chains are bad. n'kay)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 19:25
To: [EMAIL PROTECTED]
Subject: passing parameters or object from one action to other



hi all,

I have an action1 whose forward is another action2.

I need to pass some parameters or object from action1
to action2

I don't want to put them(parameters or object) in the session.

Is there a solution for doing that.

thanks in advance

Meissa

L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or
dissemination is prohibited.
If you are not the intended recipient of this message, then please delete
it
and
notify the sender.


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





L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is 
prohibited.
If you are not the intended recipient of this message, then please delete it and
notify the sender.

RE: [OT] Reach out and touch someone?

2003-06-05 Thread Mark Galbreath
My apologies to all.  This is why I created the #struts-user on darkmyst.
No doubt most of us have high-stress jobs and blowing off steam in an
irreverent humorous way comes entirely natural to hackers.  I even remember
Craig making a joke (once) on the list sometime during the summer of 2002.
We don't take ourselves too seriously because down that path lies arrogance.

Mark

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2003 1:03 AM
To: Struts Users Mailing List
Subject: RE: [OT] Reach out and touch someone?


Mark (and others)

OK guys ... I'm glad you've had your fun ... but an [OT] subject doesn't
excuse the absolute and total garbage that has been going on the last few
weeeks on this list.

There is a line between having an open community that likes to have fun, and
a mailing list where the amount of off-topic stuff (even if marked with
[OT]) encourages people not to participate any longer.  I believe that the
struts-user list has gone over that line in the last month.  And the trend
line is that it's getting worse, not better.

If people want to argue about what beer is good, or ribbing each other, or
whining because you are still working late at night or on weekends, or
ragging each other, or complaining about any other off-topic subject, that
is fine ... but please do it elsewhere.  I'm not interested.  Neither are
the vast majority of subscribers to this list.

Please take the [OT] posts elsewhere.  And, unless the [Friday] posts start
to get at least semi-relavant to the Struts community, they are going to be
reduced/restricted as well.

Craig McClanahan

On Wed, 4 Jun 2003, Mark Galbreath wrote:

 Date: Wed, 4 Jun 2003 23:46:40 -0400
 From: Mark Galbreath [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 Subject: RE: [OT] Reach out and touch someone?

 reach out and touch somebody at irc.darkmyst.org 6667 and flame the 
 hell out of me at #struts-user, you LISP fag.  If you even know how to 
 get around in a Unix environment on the Net.  You are probably so full 
 of Foster piss, you can't even type your way out of a virtual paper 
 bag.

 Mark

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 11:35 PM
 To: Struts Users Mailing List
 Subject: RE: [OT] Reach out and touch someone?


 I dont drink fost.. oh! you mean Mark!  ;-

 -Original Message-
 From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 5 June 2003 01:43
 To: Struts Users Mailing List
 Subject: RE: [OT] Reach out and touch someone?


 Well, don't be telling everyone ... or he'll turn into a bitter and 
 cynical foster's beer drinking grouch  like someone we all know! 
 ;-)

 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 12:40 PM
 To: 'Struts Users Mailing List'
 Subject: [OT] Reach out and touch someone?
 
 
 heh heh...Brandon is flirting with Becky on irc.darkmyst.org 6667 
 right now
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 1:23 PM
 
 The quickest way to reach me is with AIM.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


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




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



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




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



RE: Storing the Output of a Servlet to Database

2003-06-05 Thread Rajesh P
Thanks Craig, for the input. I was able to capture the output using servlet filter and 
the response wrapper classes.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:39 AM
To: Struts Users Mailing List
Subject: RE: Storing the Output of a Servlet to Database




On Tue, 3 Jun 2003, Rajesh P wrote:

 Date: Tue, 3 Jun 2003 19:53:39 +0530
 From: Rajesh P [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: Storing the Output of a Servlet to Database

 Hi,

 I am aware of how to store the contents to the database. What i am
 really interested is how to capture the output of the servlet. Forget
 PDF, assume that the Servlet is just serving a normal html content.
 After the servlet has given this to the response, how to capture this as
 a byte stream is my real question.

In a Servlet 2.3 environment, you can easily create a Filter that wraps
the response and copies the output into a buffer to write to your
database, as well as sends it back on to the client.  There have been
articles written describing this sort of thing that a Google search ought
to find for you.

 Thanks, Rajesh


Craig

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


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



Re: Illegal target of jump or branch

2003-06-05 Thread mmolinar
Ok! you're right! Thank you a lot! Marco

Scrive [EMAIL PROTECTED]:

 Hi, I'm  using a b3 version of Struts everything works fine my problem occurs
 
 when I try to use a lot of tags in the same page,about 120 ( many of them are
 
 img tag...)
 The page that generetes the error is included with tiles in another page.
 BTW I'm coding all with Pramati Studio.
 
 Thanks a lot.
 Marco.
 
 This is how the error looks like:
 
  java.lang.VerifyError: (class: 
 com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
 _jspService signature: 
 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
 ;)V) Illegal target of jump or branch
   at java.lang.Class.newInstance0(Native Method)
   at java.lang.Class.newInstance(Class.java:232)
   at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet
 (PramatiServletFactory.java:220)
   at com.pramati.web.servlet.core.PramatiServletFactory.getServlet
 (PramatiServletFactory.java:317)
   at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
 (PramatiRequestDispatcher.java:169)
   at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
 (TilesUtilStrutsModulesImpl.java:124)
 Unhandled Error/ exception thrown from service method 
 of org.apache.struts.action.ActionServlet. Error is: (class: 
 com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
 _jspService signature: 
 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
 ;)V) Illegal target of jump or branch
   at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
   at org.apache.struts.taglib.tiles.InsertTag.doInclude
 (InsertTag.java:703)
   at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
 (InsertTag.java:818)
   at org.apache.struts.taglib.tiles.InsertTag.doEndTag
 (InsertTag.java:467)
   at com.pramati.jsp.generated.layout_eLeafLayout_pmt_0._jspService
 (layout_eLeafLayout_pmt_0.java:662)
   at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
 (PramatiRequestDispatcher.java:172)
   at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
 (TilesUtilStrutsModulesImpl.java:124)
   at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
   at org.apache.struts.taglib.tiles.InsertTag.doInclude
 (InsertTag.java:703)
   at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
 (InsertTag.java:818)
   at org.apache.struts.taglib.tiles.InsertTag.doEndTag
 (InsertTag.java:467)
   at 
 com.pramati.jsp.generated.webboard_message_page_message_pmt_0._jspService
 (webboard_message_page_message_pmt_0.java:76)
   at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward
 (PramatiRequestDispatcher.java:105)
   at org.apache.struts.action.RequestProcessor.doForward
 (RequestProcessor.java:1033)
   at org.apache.struts.tiles.TilesRequestProcessor.doForward
 (TilesRequestProcessor.java:269)
   at org.apache.struts.action.RequestProcessor.processForwardConfig
 (RequestProcessor.java:436)
   at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
 (TilesRequestProcessor.java:312)
   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:1422)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run
 (ServiceInterceptor.java:294)
   at com.pramati.security.util.JAASSecurityHelper.doAs
 (JAASSecurityHelper.java:145)
   at java.lang.reflect.Method.invoke(Native Method)
   at com.pramati.services.security.spi.SecurityHelper.doAs
 (SecurityHelper.java:130)
   at com.pramati.web.interceptors.ServiceInterceptor.preProcess
 (ServiceInterceptor.java:141)
   at com.pramati.web.interceptors.core.DefaultInterceptor.process
 (DefaultInterceptor.java:47)
   at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
 (InterceptorChainImpl.java:48)
   at com.pramati.web.interceptors.FilterInterceptor.process
 (FilterInterceptor.java:92)
   at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
 (InterceptorChainImpl.java:48)
   at com.pramati.web.interceptors.core.DefaultInterceptor.process
 (DefaultInterceptor.java:48)
   at 

RE: tiles and tiles controllers

2003-06-05 Thread Mike Jasnowski
I suppose one possibility is to have a noop controller, noop.jsp,   or use
the controller attribute on each tile rather than the definition, which I
think is less desireable than having it at the def level.

-Original Message-
From: teknokrat [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 8:14 AM
To: [EMAIL PROTECTED]
Subject: tiles and tiles controllers


I have a page definition that uses a tiles controller. This works fine.
However, i now want to defines several pages that extend the first page
but i do not want them using the controller ( or any controller). can
this be done? leaving urlController blank gives errors.

thanks



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



[OT] Readers' Choice Awards - only remotely related to Struts and without humor

2003-06-05 Thread Mark Galbreath
As per James' SEX SEX SEX post yesterday (which WAS funny):

The results of 2003 JDJ Readers' Choice Awards will be announced on October
31, 2003. The special awards issue of Java Developer's Journal will be on
newsstands worldwide on November 4, 2003.


HERE IS A LIST OF PRODUCTS YOU NOMINATED AS THE BEST PRODUCT OF THE YEAR IN
EACH CATEGORY:


Best Book: Thinking in Java, 3rd Edition

Best Database Tool or Driver: No Nominee

Best Enterprise Database: Oracle9i Database

Best Java Application: BEA WebLogic Server 7.0

Best Java Application Monitoring Tool: No Nominee

Best Java Application Server: BEA WebLogic Server

Best Java Class Library: JFreeChart

Best Java Component: No Nominee

Best Java Data Access Tool: No Nominee

Best Java Debugging Tool: Oracle9emi/em JDeveloper

Best Java IDE Environment: Oracle9i Jdeveloper

Best Java Installation Tool: No Nominee

Best Java Messaging Tool: No Nominee

Best Java Persistence Architecture: No Nominee

Best Java Producer Platform: BEA WebLogic Workshop

Best Java Profiling / Testing Tool: JProbe

Best Java Reporting Tool Machine: ReportMill

Best Java Training Program: No Nominee

Best Java Virtual Machine: IBM Developer Kit, Java 2 Technology Edition,
Version 1.4.0

Best Java Web Service Toolkit: Oracle9i Jdeveloper

Best J2EE Application Development Framework: Oracle9emi/em JDeveloper -
BC4J

Best Mobile Database: PointBase Micro 4.5

Best Team Development Tool: No Nominee

Best Wireless Application: No Nominee

Most Innovative Java Product: Eclipse



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



Multiple Message Resource Files

2003-06-05 Thread Natalie D Rassmann
Hi,

My requirement is to have multiple message resource files not based on
Locale but based on the user's project.  For example,
I need to create a message bundle for Project A and another one for
Project B.

MessageResources_ProjectA.properties looks like this:

label.first = First Name
label.last = Last Name

MessageResources_ProjectB properties lookes like this:

label.first = First Initial
label.last = Last Initial

My question is how do I do this?  I believe it works similar to the
Struts Internationaliztion capablity where you can set a locale.
Is there some kind of variable I can set to distinguish what Project to
use?

Can anyone point me in the right direction?

Thanks in advance,

Natalie

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

RE: Using nested tags

2003-06-05 Thread Phillip Qin
visit keyboardmonkey.com

-Original Message-
From: lcl [mailto:[EMAIL PROTECTED] 
Sent: June 5, 2003 5:34 AM
To: [EMAIL PROTECTED]
Subject: Re: Using nested tags

I need online tutorial :-)
Mark Galbreath [EMAIL PROTECTED]
:[EMAIL PROTECTED]
 you didn't. would you like lessons?

 -Original Message-
 From: lcl [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 11:55 PM

 Hi Dan,

 Sorry for post it to your email directly.




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


Re: Multiple Message Resource Files

2003-06-05 Thread David Chelimsky
I know that if you're using the jstl tags you can define the bundle in 
the tags. So instead of:

bean:message key=some.label/

you'd write:

fmt:message bundle=${currentBundle} key=some.label/

Then you can set the value of currentBundle in your Action based on the 
current project, or store it in the session when the user selects that 
project. In any case, I'm not sure if there's an equivalent in the 
struts bean tags. If not, I'd recommend using the JTSL tags.

David

Natalie D Rassmann wrote:

Hi,

My requirement is to have multiple message resource files not based on
Locale but based on the user's project.  For example,
I need to create a message bundle for Project A and another one for
Project B.
MessageResources_ProjectA.properties looks like this:

label.first = First Name
label.last = Last Name
MessageResources_ProjectB properties lookes like this:

label.first = First Initial
label.last = Last Initial
My question is how do I do this?  I believe it works similar to the
Struts Internationaliztion capablity where you can set a locale.
Is there some kind of variable I can set to distinguish what Project to
use?
Can anyone point me in the right direction?

Thanks in advance,

Natalie

 



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


SOS. How to solve this problem ????

2003-06-05 Thread Tran Nguyen Thanh Bao

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
at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)
at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
at org.apache.jasper.compiler.JspReader.pushFile2(JspReader.java:167)
at org.apache.jasper.compiler.JspReader.(JspReader.java:207)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:196)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:484)

Apache Tomcat/4.1.18

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]



RE: Appending params to the URL of ActionForward

2003-06-05 Thread Andrew Hill
You can create a new action forward and return that.

The code below creates a new actionforward based on the path in an existing
one and appending some parameter:

ActionForward forward = mapping.findForward(myforward);
forward = new
ActionForward( addParameterToUrl(forward.getPath(),foo,bar),
forward.getRedirect() );
return forward;

where addParameterToUrl does something like:

  private String addParameterToURL(String url, String parameter, String
value)
  {
return url + ( (url.indexOf(?)==-1) ? ? :  ) + parameter + = +
value;
  }


-Original Message-
From: DurgaPrasad Guduguntla [mailto:[EMAIL PROTECTED]
Sent: Friday, 6 June 2003 08:31
To: [EMAIL PROTECTED]
Subject: Appending params to the URL of ActionForward


Hi,

I am new to struts and would like to know the solution to the following:

When the request is submitted to the action class, the action class will
evaluate and constructs the request parameters which needs to be
appended to URL of the View component mentioned in the forward target.

action path=/process type=SomeAction
 forward name = success path=jsp/content.jsp/
 forward name = failure path=jsp/failure.jsp/
/action

Depending upon the logic inside action class, there might be different
request parameters are obtained and the path of the url for the
success target should go like this:

 path = jsp/content.jsp?param1=val1param2=val2 (OR)
path=jsp/content.jsp?param3=val3param4=val4

Can we set the path for ActionForward by using
ActionForward.setPath()before returning inside Action class?  What could
be better approach to this problem?

Thanks,

Durgaprasad

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


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



RE: OT FRIDAY: Is it Friday yet? Monkeys are cool.

2003-06-05 Thread Andrew Hill
I thought friday had been cancelled?

We really need a friday newsgroup/mailing list.
Realtime chat groups, IRC arent much good for those of us in other timezones
who want to join the fun...


-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent: Friday, 6 June 2003 10:19
To: [EMAIL PROTECTED]
Subject: OT FRIDAY: Is it Friday yet? Monkeys are cool.


This even has a monkey. ( note to self:  get monkey to talk to formBean )
 A monkey basket says ...  . That's sweet. I smell you.
We need what? Teamwork!

http://www.campchaos.com/cartoons/ttoo/ttoo02.html


.V

ps: was it irc?



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


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



RE: Action Form Bean required ???

2003-06-05 Thread Tran Nguyen Thanh Bao

Dear Andrew,
Thanx for ur answer. In fact, i didnot try to write my own code to test, just run the 
samples of Struts, I removed all Action Form Beans and Action classes of the example 
and modify struts-config.xml so that the screens just go forward as its logical flow, 
with no processing inside (by Action classes). I just want to build a correct flow of 
screens before insert processing code. But the error is sth like  ...action form null 
 i dont remember exactly (i removed the modified apps, so cannot run again). Now 
I tried to write my own app and do as you said, but another error happens as in my 
mail with subject: SOS. How to solve this problem 
Pls help me if you have any experience ab this.
Thanks
TRan


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 3:52 PM
To: Struts Users Mailing List
Subject: RE: Action Form Bean required ???


Well they look a little something like:

action path=/fooListView type=com.something.FooListAction
/action

We might be able to help a bit more if you clarified what you mean by 'not
successful'.

-Original Message-
From: Tran Nguyen Thanh Bao [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 16:40
To: Struts Users Mailing List
Subject: RE: Action Form Bean required ???



Dear Andrew,
Could u please send me your struts-config.xml file that you configure for
some of your screens not to use form bean ??? I tried many times but not
successful :(
Thanks and Best Regards,
TRANBAONGUYEN

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 6:42 PM
To: Struts Users Mailing List
Subject: RE: Action Form Bean required ???


I am doing this for some of my screens - these being the listview screens -
where Im not taking in much in the way of info from the user, and hadnt
bothered to create an actionForm but just grabbed what I needed straight
from the request. Your probably better off having an action form however -
in most cases David's criticism is valid.

One 'gotcha' with not using an actionform is when you are using multipart
forms. Struts is nice enough to wrap multipart requests in a
MultipartRequestWrapper with the POSTed parameters available *but* it
populates this wrapper from the same method that populates the actionForm.
No action form means no MultipartRequestWrapper population, which means
request.getParameter will return null for all except those parameters
appended to the url to which the form was submitted. Of course that only
affects multipart forms which yourd only be using if that page needs file
upload...

-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 19:20
To: Struts Users Mailing List
Subject: Re: Action Form Bean required ???


You could access all of the form properties in your Action with
request.getParameter(paramName); but why would you ever do that? Using
the rest of the framework without FormBeans is like pushing your car
down the street instead of just starting the engine

Tran Nguyen Thanh Bao wrote:

Dear all,

I'm a new user of Struts. If I dont have Action Form Bean for each form in
my application, is there any problem ? I've already tried to test with no
Action Form Bean (basing on Struts examples, just remove Action Form Bean),
but not successful.
Can I do that in some way ? Pls give me some advises from you, experienced
users :)

Best Regards,
TRANBAONGUYEN


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









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


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



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


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



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



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



access old application from struts?

2003-06-05 Thread Misc
Hi,

I'm migrating webapplication to Weblogic5.1 from my old web application which has a 
lot of servlets into Struts application.
Before completely migrating the whole application, I want struts still be able to 
access the old application.
Both should share the same session id.

But I'm facing with the session problem as the new struts application and my old 
application creates different session id.
How to solve this?

Secondly:

I need to create this application to be the default application instead of using its 
application name.
As exampe:
the application name is: fx.war
so if I deploy it, the URL will look like : www.mydomainname.com/fx

How can I change it into www.mydomainname.com instead?

thanks,
harris.

RE: Submit issue for new form with struts

2003-06-05 Thread raghu_c
Ya , this works 

however, the params are displayed in the url as request parameters + are editable 
(if u do a Ctrl-N on the popup window)
No, i do not want to disable a ctrl-N or anything

what i was looking for is a way to 
push the params into my Form Bean using their property methods (setters)
and then just submit the form (open the popup)

The form bean of the other jsp can then get the parameters - all happening on server 
side

is that possible?
Raghu

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 8:09 PM
To: Struts Users Mailing List
Subject: Re: Submit issue for new form with struts


Ok, I think I've got what you were looking for.

This script uses a link to set hidden fields which are submitted to your
customized window (hidden toolbar, etc).

You can copy and paste this as a simple jsp to test.  I've added some
debugging (snoop) stuff at the bottom just to verify that the params were
passed correctly.

Let me know if this helps or if you need more help tweaking it.

--
form name=frm2 action=? method=GET
table border=1
 tr
  td
   a href=# onclick=fnOpenDetails(1, 'IS41')Sample Data 1/a
  /td
  td
   more stuff
  /td
 /tr
 tr
  td
   a href=# onclick=fnOpenDetails(2, 'IS41')Sample Data 2/a
  /td
  td
   more stuff
  /td
 /tr
/table
input type=submit name=sbmt value=Submit
input type=hidden name=intRecordCount value=xxx
input type=hidden name=strMessageCategory value=xxx

/form

script
function fnOpenDetails(RecNum, msgCategory){
 var newWindow;
 newWindow = window.open(, 'Detailswindow',
'width=700,height=600,toolbar=no,scrollbars=yes,resizable=no');

//window.open(MinEsnDetailsGeneral.do,'Detailswindow','width=700,height=60
0');
 document.forms[0].target='Detailswindow';
 document.forms[0].elements[intRecordCount].value = RecNum;
 document.forms[0].elements[strMessageCategory].value = msgCategory;
 document.forms[0].submit();
 return false;
}

/script



pre
%

java.util.Enumeration enum = null;
ServletContext context = getServletContext();

try{
 out.println(h3Servlet init parameters/h3);
 enum = getInitParameterNames();
 while (enum.hasMoreElements()) {
  String key = (String)enum.nextElement();
  String value = getInitParameter(key);
  out.println(+ key +  =  + value);
 }
}
catch(Exception e){
  //continue
}

try{
 out.println(h3Context init parameters/h3);
 enum = context.getInitParameterNames();
 while (enum.hasMoreElements()) {
  String key = (String)enum.nextElement();
  Object value = context.getInitParameter(key);
  out.println(+ key +  =  + value);
 }
}
catch(Exception e){
  //continue
}

try{
 out.println(h3Context attributes/h3);
 enum = context.getAttributeNames();
 while (enum.hasMoreElements()) {
  String key = (String)enum.nextElement();
  Object value = context.getAttribute(key);
  out.println(+ key +  =  + value);
 }
}
catch(Exception e){
  //continue
}

try{
 out.println(Request attributes:);
 enum = request.getAttributeNames();
 while (enum.hasMoreElements()) {
  String key = (String)enum.nextElement();
  Object value = request.getAttribute(key);
  out.println(+ key +  =  + value);
 }
}
catch(Exception e){
  //continue
}


try{
 //java.util.Enumeration
 enum = request.getHeaderNames();
 while (enum.hasMoreElements()) {
  String key = (String)enum.nextElement();
  String value = request.getHeader(key);
  out.println(   b + key + /b:  + value);
 }
}
catch(Exception e){
  //continue
}


out.println(Servlet Name:  + getServletName());
out.println(Protocol:  + request.getProtocol().trim());
out.println(Scheme:  + request.getScheme());
out.println(Server Name:  + request.getServerName());
out.println(Server Port:  + request.getServerPort());
out.println(Server Info:  + getServletContext().getServerInfo());
out.println(Remote Addr:  + request.getRemoteAddr());
out.println(Remote Host:  + request.getRemoteHost());
out.println(Character Encoding:  + request.getCharacterEncoding());
out.println(Content Length:  + request.getContentLength());
out.println(Content Type: + request.getContentType());
out.println(Locale: + request.getLocale());
out.println(Default Response Buffer: + response.getBufferSize());
out.println(Request Is Secure:  + request.isSecure());
out.println(Auth Type:  + request.getAuthType());
out.println(HTTP Method:  + request.getMethod());
out.println(Remote User:  + request.getRemoteUser());
out.println(Request URI:  + request.getRequestURI());
out.println(Context Path:  + request.getContextPath());
out.println(Servlet Path:  + request.getServletPath());
out.println(Path Info:  + request.getPathInfo());
out.println(Path Trans:  + request.getPathTranslated());
out.println(Query String:  + request.getQueryString());


try{
 out.println(Parameter names in this request:);
 //java.util.Enumeration
 enum = request.getParameterNames();
 while (enum.hasMoreElements()) {
  String key = (String)enum.nextElement();
  String[] values = 

Re: [OT] What layer does an XSL transform belong to

2003-06-05 Thread Jeff Kyser
Very nice - thanks! putting it to the test here now

-jeff

On Wednesday, June 4, 2003, at 07:44  AM, Kris Schneider wrote:

Nope, your XSL should stay the same. The only functional difference of  
the code
I posted is that it doesn't do the doc.trim().length()  0 test. The  
JSTL
empty operator will test for an empty string, but it won't  
implicitly trim it
first.

Quoting Jeff Kyser [EMAIL PROTECTED]:

And none of the markup in the xsl file would have to change?
I must say, I do like the tag-based approach better than the
scriptlet. I just couldn't get past the problem using the xsl/xerces
libraries before.
thanks, might have to give that a shot :)

-jeff

On Wednesday, June 4, 2003, at 07:21  AM, Kris Schneider wrote:

Perhaps JSTL can help make that a bit cleaner:

%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
%@ taglib prefix=html
uri=http://jakarta.apache.org/struts/tags-html; %
%@ taglib prefix=nested
uri=http://jakarta.apache.org/struts/tags-nested; %
%@ taglib prefix=x uri=http://java.sun.com/jstl/xml; %
html:form action=/cart/ShoppingCartAction
  html:hidden property=method value=process/
  nested:define id=doc property=xmlDoc type=java.lang.String/
  c:if test=${not empty doc}
c:import var=xslt url=/xsl/PrintShoppingCart.xsl/
x:transform xml=${doc} xslt=${xslt}/
  /c:if
/html:form
Quoting Jeff Kyser [EMAIL PROTECTED]:

Thanks Simon.

One of the first difficulties I encountered was with the xsl  
transform
itself. I posted this (below) earlier, and didn't get any bites. See
EARLIER POST.../EARLIER POST below.  I kept getting
handlePageException in PageContextImpl in later versions of
Tomcat/Resin and could only make the following work instead.
(It of course worked fine under Tomcat 4.1.10 and Struts 1.0 and
whatever else is in the production environment, but I needed to
upgrade...
And that (new stuff) started to look a lot like code that did not
belong on a JSP,
hence my question...

-jeff

(what I have working now)

html:form action=/cart/ShoppingCartAction?method=process
nested:define id=doc property=xmlDoc type=java.lang.String/
%
String xslFile = getServletContext().getRealPath() +
/xsl/PrintShoppingCart.xsl;
if (doc != null  doc.trim().length()  0) {
TransformerFactory tFactory =
TransformerFactory.newInstance();
Transformer transformer =
tFactory.newTransformer(new StreamSource(xslFile));
transformer.transform(new StreamSource(new
StringReader(doc)),
new StreamResult(out));
}
%
/html:form
EARLIER POST
Sorry, as I know this is off-topic, but been banging on
it most of the day and can't find much on the web either.
Have experienced the same basic problem on:

Tomcat 4.1.24
Resin 2.1.6,8,9
Can take an XML document, apply an XSL stylesheet to
it using command-line java tool:
java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT
foo.html
that works great.

Now, I take the same libraries - xalan.jar, xml-apis.jar, put them  
in
my web app, and when I hit the jsp that does the same thing, I get:

- Root Cause -
javax.servlet.ServletException:  
org/apache/xalan/xslt/XSLTInputSource
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCo 
nt
ex
tImpl.java:536)
 at
org.apache.jsp.BrowseCatalog_jsp._jspService(BrowseCatalog_jsp.java: 
13
0)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Now, from what I can tell, XSLTInputSource is deprecated from an
earlier
version of xalan.jar
So, I take the xalan.jar file from a Tomcat 4.1.10 install that  
*does*
work, and
I get another lovely exception, failing to find
org.apache.xalan.xslt.Process.getDefaultLiaison.
(or something like that...)

Can't seem to isolate this.

anybody seen this, or have any suggestions?

TIA,

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



--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.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]


--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.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 

RE: [OT] Components and package

2003-06-05 Thread ruben
Well, i think that components are an interface linking with an
implementation, and I access the component through the interface. I
think package it's more a group of components or a group of classes that
have some similar characteristic. I have some dudes, but I think that
should be some similar of that  
What do you think could be components of the framework struts 

-Mensaje original-
De: Andrew Hill [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 04 de junio de 2003 13:44
Para: Struts Users Mailing List
Asunto: RE: [OT] Components and package

u... guess I slept through that lecture back in comsci 101
can you define what you mean by 'component' and 'package', as I fear my
understanding of those terms is subtly different.

-Original Message-
From: ruben [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 19:27
To: [EMAIL PROTECTED]
Subject: [OT] Components and package


Hi everybody, i'm doing a design documentation of an application based
on struts and I want to know, if someone can help me, which elements of
the framework are components (like EJB are components of the model), and
which elements are package inside the framework
Thanks a lot and best regards.


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



Struts View (JSP's -vs-Servlets)

2003-06-05 Thread sjones
I am writing an application that will Access an LDAP Directory Server

The directory has many, many attributes and an attribute may be a single
element
or an array of elements.

Using an entry of the type- employee we have this example.

Example:  A phone number attribute will store as many phone numbers as
needed.
Cost Center element will always have just a single value.


My problem is this.  I can create a java class for each attribute that i
need to use
and my class can have a method such as writeHTML() which returns HTML text
to display the attribute on a web page.

In doing this, I don't have to code the HTML tag for this on every page in
my
web app that needs to display this attribute.  I can simply call the
writeHTML method
from the class and have the same code throught the APP.

It would seem to me that a servlet is a better choice for implmenting a
view.

Question 1.  if my writeHTML() method returns HTML with struts tags will,
the struts
   tags be evaluated properly.

Question 2  can u do this in a JSP page:

 %=
 html:text property=\  + fld_nme + \ 
+   value=\ + fld_val + \;
 %




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



Re: Struts View (JSP's -vs-Servlets)

2003-06-05 Thread Vic Cekvenich
This is not a Struts or MVC question, try the Servlet mail list.

(If you used a MVC framework, you would create a Bean (that you unit 
test) that had a DAO (that talked to LDAP. Then you can use any View you 
wanted)

.V

sjones wrote:

I am writing an application that will Access an LDAP Directory Server

The directory has many, many attributes and an attribute may be a single
element
or an array of elements.
Using an entry of the type- employee we have this example.

Example:  A phone number attribute will store as many phone numbers as
needed.
   Cost Center element will always have just a single value.
My problem is this.  I can create a java class for each attribute that i
need to use
and my class can have a method such as writeHTML() which returns HTML text
to display the attribute on a web page.
In doing this, I don't have to code the HTML tag for this on every page in
my
web app that needs to display this attribute.  I can simply call the
writeHTML method
from the class and have the same code throught the APP.
It would seem to me that a servlet is a better choice for implmenting a
view.
Question 1.  if my writeHTML() method returns HTML with struts tags will,
the struts
  tags be evaluated properly.
Question 2  can u do this in a JSP page:

%=
html:text property=\  + fld_nme + \ 
+   value=\ + fld_val + \;
%
 

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced a href =baseBeans.comStruts Training/a and project recovery in North 
East.
Open Source a href =baseBeans.comContent Management/a  basicPortal sofware
Best practicea href =baseBeans.comStruts Support/a v.1.1 helper ScafflodingXPress


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


RE: Struts View (JSP's -vs-Servlets)

2003-06-05 Thread Andrew Hill
snip
Question 1.  if my writeHTML() method returns HTML with struts tags will,
the struts tags be evaluated properly.
/snip

No of course not.

snip
My problem is this.  I can create a java class for each attribute that i
need to use and my class can have a method such as writeHTML() which
returns HTML text
to display the attribute on a web page.
/snip

Create a bean for each. Use taglibs and iteration etc... to display.
If this results in a complicated tag structure needed to output the stuff
then write your own tag that does what you would have done in writeHtml(),
or alternatively look into using the tile extension.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of sjones
Sent: Wednesday, 4 June 2003 21:16
To: [EMAIL PROTECTED]
Subject: Struts View (JSP's -vs-Servlets)


I am writing an application that will Access an LDAP Directory Server

The directory has many, many attributes and an attribute may be a single
element
or an array of elements.

Using an entry of the type- employee we have this example.

Example:  A phone number attribute will store as many phone numbers as
needed.
Cost Center element will always have just a single value.


My problem is this.  I can create a java class for each attribute that i
need to use
and my class can have a method such as writeHTML() which returns HTML text
to display the attribute on a web page.

In doing this, I don't have to code the HTML tag for this on every page in
my
web app that needs to display this attribute.  I can simply call the
writeHTML method
from the class and have the same code throught the APP.

It would seem to me that a servlet is a better choice for implmenting a
view.

Question 1.  if my writeHTML() method returns HTML with struts tags will,
the struts
   tags be evaluated properly.

Question 2  can u do this in a JSP page:

 %=
 html:text property=\  + fld_nme + \ 
+   value=\ + fld_val + \;
 %




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


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



Re: [OT] Release Manager

2003-06-05 Thread Max Cooper
Are you looking for how-to info about doing releases of your project/product
as source code?

If so, one source of info is to look at mature open-source projects,
including the fine projects available from Apache. SourceForge would be
another place to look. What to deliver and how to do (automate) the
packaging are the two main areas of interest. For Java projects, the open
source examples usually come with Ant build scripts that do the packaging.

For more Ant info, I like the book Java Development with Ant by Hatcher and
Loughran from Manning. It doesn't have specific info on how to structure a
source release, but it covers the Ant tasks and build techniques well by
going through many practical examples relevant to Java projects.

-Max

- Original Message - 
From: Tumi Mathibedi [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:38 AM
Subject: [OT] Release Manager


HI,

Can anyone recommend source release management books?

regards,
Tumi
This e-mail is sent on the Terms and Conditions that can be accessed by
Clicking on this link http://www.vodacom.net/legal/email.asp 

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




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



Re: Submit issue for new form with struts

2003-06-05 Thread James Mitchell
Please describe further

Grid of textboxes?  Grid of static text?
What are you submitting? The whole page of data or the row that was dbl
clicked?

What do you mean by do a lot of actions?

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


- Original Message - 
From: raghu_c [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:35 AM
Subject: Submit issue for new form with struts


hi,

I am a newbie to struts, got this problem...

We got a jsp that displays a grid of records; on dbl click of any record,
I need to submit the form into a pop up window - and do a lot of actions
besides using the form bean of the originating page as well as the form bean
of the popup page. So i got an action class / delegate etc defined for the
popup.

trouble is, I am unable to submit the form on the dbl click itself -
the popup page opens if I use a html:rewrite tag or even plain html but the
action method (execute) is not called.

Any pointers will be highly appreciated,

Thanx,
Raghu







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


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



Re: CAM - Removing User Principal

2003-06-05 Thread Max Cooper
The details of configuring single-sign on will depend on what server you are
using. It is pretty easy with Tomcat.

The forthcoming 1.4 version of the J2EE spec adds a logout() method to the
request interface that sounds like it could be used to achieve the
cross-context logout functionality you require.

In the mean time, it may be possible to use session listeners in all of your
apps that talk to some central session management system (that you'll need
to create). Perhaps the manager could live in the root context and make
itself available to the other contexts via JNDI. Then when a user
invalidates their session in one context, the cental manager could be
notified (via a call from the listener that is present in that context) and
it would invalidate all the sessions that belong to the same user (same user
name, or perhaps the same Principal object if it is indeed the same one
across the contexts). I am not 100% sure this is possible, but it might help
give you some ideas for a solution.

-Max

- Original Message - 
From: Dave Mulligan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:16 AM
Subject: CAM - Removing User Principal


 I'm creating a number of completely separate applications that sit on the
 same server. The
 only thing they have in common between them is single sign-on. I have the
 Controller app
 'http://localhost:8080/' where the user logs in. Once logged in, the user
 can access any of
 the other application /app1, /app2 etc.

 I'm using container managed authentication. I *believe* once the user logs
 into the '/' context
 path, the user principal will be available to all application under that
 context path. i.e. '/app1'
 Correct?

 This all works fine for me but for one problem. Logging out!
 I'm able to invalidate the session, but how do I remove the user principal
 from the request?





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





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



Re: ActionErrror messages from relational database

2003-06-05 Thread James Mitchell
This was implemented last year and released on the sf.net struts site:
http://sourceforge.net/projects/struts 

Look for MessageResources Impls


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


- Original Message - 
From: Yves Sy [EMAIL PROTECTED]
To: Struts Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 7:39 AM
Subject: ActionErrror messages from relational database


 Anybody know how I can use error messages with ActionErrors that come
 from the database and not from the properties file?
 

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



Validation question

2003-06-05 Thread Hurdle, Robert H, PERSCOM
I am trying to set up the Struts validator to have two required fields on my
input form; userid and acesloccd.  When the input form should display I get
an error msg:

 

Error Message: No getter method for property acesloccd of bean
org.apache.struts.taglib.html.BEAN

 

The input form never displays so it never gets submitted.  I would have
expected to get something like this on submitting the form.

 

I have a get method for acesloccd in the ActionForm associated with
submitting input.  Any guidance on what I'm doing wrong will be greatly
appreciated.

 

Robert Hurdle



Re: Illegal target of jump or branch

2003-06-05 Thread James Mitchell
Please search the archives, this is discussed at least once a month here.


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 7:55 AM
Subject: Illegal target of jump or branch


 Hi, I'm  using a b3 version of Struts everything works fine my problem
occurs
 when I try to use a lot of tags in the same page,about 120 ( many of them
are
 img tag...)
 The page that generetes the error is included with tiles in another page.
 BTW I'm coding all with Pramati Studio.

 Thanks a lot.
 Marco.

 This is how the error looks like:

  java.lang.VerifyError: (class:
 com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method:
 _jspService signature:

(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse
 ;)V) Illegal target of jump or branch
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:232)
 at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet
 (PramatiServletFactory.java:220)
 at com.pramati.web.servlet.core.PramatiServletFactory.getServlet
 (PramatiServletFactory.java:317)
 at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
 (PramatiRequestDispatcher.java:169)
 at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
 (TilesUtilStrutsModulesImpl.java:124)
 Unhandled Error/ exception thrown from service method
 of org.apache.struts.action.ActionServlet. Error is: (class:
 com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method:
 _jspService signature:

(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse
 ;)V) Illegal target of jump or branch
 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
 at org.apache.struts.taglib.tiles.InsertTag.doInclude
 (InsertTag.java:703)
 at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
 (InsertTag.java:818)
 at org.apache.struts.taglib.tiles.InsertTag.doEndTag
 (InsertTag.java:467)
 at com.pramati.jsp.generated.layout_eLeafLayout_pmt_0._jspService
 (layout_eLeafLayout_pmt_0.java:662)
 at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
 (PramatiRequestDispatcher.java:172)
 at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
 (TilesUtilStrutsModulesImpl.java:124)
 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
 at org.apache.struts.taglib.tiles.InsertTag.doInclude
 (InsertTag.java:703)
 at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
 (InsertTag.java:818)
 at org.apache.struts.taglib.tiles.InsertTag.doEndTag
 (InsertTag.java:467)
 at
 com.pramati.jsp.generated.webboard_message_page_message_pmt_0._jspService
 (webboard_message_page_message_pmt_0.java:76)
 at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward
 (PramatiRequestDispatcher.java:105)
 at org.apache.struts.action.RequestProcessor.doForward
 (RequestProcessor.java:1033)
 at org.apache.struts.tiles.TilesRequestProcessor.doForward
 (TilesRequestProcessor.java:269)
 at org.apache.struts.action.RequestProcessor.processForwardConfig
 (RequestProcessor.java:436)
 at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
 (TilesRequestProcessor.java:312)
 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:1422)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run
 (ServiceInterceptor.java:294)
 at com.pramati.security.util.JAASSecurityHelper.doAs
 (JAASSecurityHelper.java:145)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.pramati.services.security.spi.SecurityHelper.doAs
 (SecurityHelper.java:130)
 at com.pramati.web.interceptors.ServiceInterceptor.preProcess
 (ServiceInterceptor.java:141)
 at com.pramati.web.interceptors.core.DefaultInterceptor.process
 (DefaultInterceptor.java:47)
 at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
 (InterceptorChainImpl.java:48)
 at com.pramati.web.interceptors.FilterInterceptor.process
 (FilterInterceptor.java:92)
 at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
 (InterceptorChainImpl.java:48)
 at com.pramati.web.interceptors.core.DefaultInterceptor.process
 (DefaultInterceptor.java:48)
 at 

RE: Submit issue for new form with struts

2003-06-05 Thread raghu_c
essentially a table of values (list of records) retrieved from the db - on the action 
of the first jsp
on dbl clicking the list,
i have a javascript function that captures the record index
and tries opening another window(a popup type) that queries the db for 
further data based on the record dbl clicked, 

As of now, I am able to configure the submit by giving the action=/popupdetails.do
instead of plain action=popupdetails (w/o the '.do')
this somehow calls the execute method of the corresponding action class!!

now, i have a different issue  :(
i want to pass the record index into the popupdetails jsp 
and i do not want to construct a url with a request parameter since that makes the url 
editable and all.

i thought i will use a property of the originating jsp formbean to hold the record 
index 
(of the dblclicked record - hidden variable and all)
my doubt is : how can one set a property in the bean on dblclick of the record?

Or is there an alternative?

Thanx in Advance,
Raghu

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 7:13 PM
To: Struts Users Mailing List
Subject: Re: Submit issue for new form with struts


Please describe further

Grid of textboxes?  Grid of static text?
What are you submitting? The whole page of data or the row that was dbl
clicked?

What do you mean by do a lot of actions?

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


- Original Message - 
From: raghu_c [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:35 AM
Subject: Submit issue for new form with struts


hi,

I am a newbie to struts, got this problem...

We got a jsp that displays a grid of records; on dbl click of any record,
I need to submit the form into a pop up window - and do a lot of actions
besides using the form bean of the originating page as well as the form bean
of the popup page. So i got an action class / delegate etc defined for the
popup.

trouble is, I am unable to submit the form on the dbl click itself -
the popup page opens if I use a html:rewrite tag or even plain html but the
action method (execute) is not called.

Any pointers will be highly appreciated,

Thanx,
Raghu







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


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


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



RE: Coarse-grained DynaValidatorForm

2003-06-05 Thread Bailey, Shane C.

You'll notice there are 4 types of Validator form beans. 2 of the Dyna
variety and 2 of the original variety.  The ones with Action in their name
names like ValidatorActionForm and DynaValidatorActionForm should be
extended when you want validation based on (triggered by) an action received
by the struts processor.  The other validator form beans are for when a
particular form bean is used in an action.

So in the validation.xml file the form name=  can have either an
action name (you better extend one of the validation action forms to work)
or a form name (you better extend one of the other validator form types).

That is about as clear as I can make it.  


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 6:42 PM
To: 'Struts Users Mailing List'
Subject: RE: Coarse-grained DynaValidatorForm

Ted wrote:
 The Struts Validator actually keys on the ActionMapping attribute. By 
 default this is set to be the FormBean name, but you can set a different 
 attribute on the ActionMapping.
 So, on the ActionMapping, set a different attribute for each case, and 
 then specify a corresponding validator form using the same token.

I was going to say:
Override validate() and only call super.validate() when you want validation
to happen.

But Ted's idea sounds better, except that I haven't a clue what he's talking
about.

Is this anything like setting the parameter attribute of the action tag
for DynaValidatorForm, so it knows which method to call based on a request
parameter?

What attribute, other than validate=true, do you set on the action tag
to tell it which section of validation.xml to use?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

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



RE: Struts View (JSP's -vs-Servlets)

2003-06-05 Thread Mark Galbreath
1.  No; this is just output and it will be ignored by the browser as
undefined tags.

2.  No; but you can do this:

html:text property=%= fld_nme % value=%= fld_val %/


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of sjones
Sent: Wednesday, June 04, 2003 9:16 AM

Question 1.  if my writeHTML() method returns HTML with struts tags will,
the struts
   tags be evaluated properly.

Question 2  can u do this in a JSP page:

 %=
 html:text property=\  + fld_nme + \ 
+   value=\ + fld_val + \;



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



RE: [OT] Release Manager

2003-06-05 Thread Tumi Mathibedi
thanks Max, that answered my concern.

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: 04 June 2003 03:41
To: Struts Users Mailing List
Subject: Re: [OT] Release Manager


Are you looking for how-to info about doing releases of your project/product
as source code?

If so, one source of info is to look at mature open-source projects,
including the fine projects available from Apache. SourceForge would be
another place to look. What to deliver and how to do (automate) the
packaging are the two main areas of interest. For Java projects, the open
source examples usually come with Ant build scripts that do the packaging.

For more Ant info, I like the book Java Development with Ant by Hatcher and
Loughran from Manning. It doesn't have specific info on how to structure a
source release, but it covers the Ant tasks and build techniques well by
going through many practical examples relevant to Java projects.

-Max

- Original Message - 
From: Tumi Mathibedi [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:38 AM
Subject: [OT] Release Manager


HI,

Can anyone recommend source release management books?

regards,
Tumi
This e-mail is sent on the Terms and Conditions that can be accessed by
Clicking on this link http://www.vodacom.net/legal/email.asp 

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

“This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on 
this link http://www.vodacom.net/legal/email.asp 

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



Internationalization advice [OT]

2003-06-05 Thread Brian McSweeney
Hi all,

I've got internationalization working nicely using 
the html:html tags and using the setLocale method.

However, from this very knowledgeable group perhaps 
i could get a bit of advice. If I want my database to 
be able to store some characters in a non ASCII languages
like chinese, should I be wary of this before I start?

I've heard of needs to set the database to unicode somehow.
Obviously I know this will depend on the database used, but 
I haven't made my database choice yet, so any advice/experience 
with this topic, with any database, would be very helpful.

sorry for the off-topic post,
Brian


Validation question

2003-06-05 Thread Hurdle, Robert H, PERSCOM
Never mind.  Next time I'll search the archive before asking the question.
The answer came from Craig McClanahan.

 

Struts uses the naming design patterns of the JavaBeans

specification.  Therefore, if you have a property named foo, it looks for
methods getFoo() and setFoo(), while a method fooBar would get translated
to getFooBar() and setFooBar().  You can also override these method names
by providing a BeanInfo class for your bean -- see the JavaBeans spec for
more information.

 



Mutil URL access to a struts application

2003-06-05 Thread Laurent Garcia
Hi all,

I just finished my struts 1.0 application, and now I would like to access to my 
application through several URL :

My root context is APP and I want to access to my application with, 
for example :

http://localhost:9080/APP/init.do
http://localhost:9080/APP/foo/init.do
http://localhost:9080/APP/foo2/init.do

and depend on the url context I want to have a different behaviour in my application

But I don't want to change anything in my struts-config.xml file (perhaps in the jsp).

I have something like that :

servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
in my web.xml, I try  to add url-pattern/foo/*.do/url-pattern with no success.

Thanks,


Laurent






Re: Mutil URL access to a struts application

2003-06-05 Thread jbaker
One approach is to create separate action mappings for
/init
/foo/init
/foo/init2

all of which forward to the same action class, and then decode the mapping 
in the action to determine what to do. E.g.,

String path = mapping.getPath();
if (path.equals(/init.do) {
} else { 

Joe Baker
Director of Internet Communications
Amnesty International USA
http://amnestyusa.org
[EMAIL PROTECTED]




Laurent Garcia [EMAIL PROTECTED]
06/04/03 11:03 AM
Please respond to Struts Users Mailing List

 
To: [EMAIL PROTECTED]
cc: 
Subject:Mutil URL access to a struts application


Hi all,

I just finished my struts 1.0 application, and now I would like to access 
to my application through several URL :

My root context is APP and I want to access to my application with, 
for example :

http://localhost:9080/APP/init.do
http://localhost:9080/APP/foo/init.do
http://localhost:9080/APP/foo2/init.do

and depend on the url context I want to have a different behaviour in my 
application

But I don't want to change anything in my struts-config.xml file (perhaps 
in the jsp).

I have something like that :

servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
in my web.xml, I try  to add url-pattern/foo/*.do/url-pattern with no 
success.

Thanks,


Laurent








RE: Mutil URL access to a struts application

2003-06-05 Thread Bailey, Shane C.

I looked at that the other day because I wanted to do something like:

servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping

and in my controller (which would be a subclass of ActionServlet) I would
disallow *.jsp and throw to a page and then process *.do normally. I noticed
that all my actions where then generated (in my JSP) as html:form
action=/login.jsp  instead of action=login.do  so I looked at the
struts source and saw that only one pattern could be specified and so it
fills that pattern with the last one entered in the web.xml.

Unless I was just tired and was seeing things. :-)  That is how I determined
it works.


-Original Message-
From: Laurent Garcia [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 11:04 AM
To: [EMAIL PROTECTED]
Subject: Mutil URL access to a struts application

Hi all,

I just finished my struts 1.0 application, and now I would like to access to
my application through several URL :

My root context is APP and I want to access to my application with, 
for example :

http://localhost:9080/APP/init.do
http://localhost:9080/APP/foo/init.do
http://localhost:9080/APP/foo2/init.do

and depend on the url context I want to have a different behaviour in my
application

But I don't want to change anything in my struts-config.xml file (perhaps in
the jsp).

I have something like that :

servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
in my web.xml, I try  to add url-pattern/foo/*.do/url-pattern with no
success.

Thanks,


Laurent





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



validator: how to validate if either of two fields is present andvalid

2003-06-05 Thread Doug Bryant
we have a form we are displaying to the user.  depending on the
permissions the user has, they are required to either fill out a
requiredDeliveryDate or daysAro

Depending on what permissions you have, you must fill out one or the
other and you must fill in either a date or an integer value depending
on the field.

We are currently using validator for the rest of the app (1.1 rc1).

How can we achive this validation using validator?  

Writing a custom validate method does not seem to be a good solution
because you can only validate one field at a time.

We thought about extending
org.apache.struts.validator.DynaValidatorForm, overriding the validate
method,  validating everything we can using validator and coding the
rest, but it seems far from ideal.

Does anyone have any suggestions or has anyone ever run across this type
of problems before.

Thanks for any suggestions.

Doug


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



Struts redirection problem

2003-06-05 Thread J, Sadhasivam (Cognizant)
Hi,
We are doing a portal in which we have a News Channel in the pages across the 
site. 
assume its just a corner html display area in the Site which frameless site.
with respect to site updation and new arrivals this content should be picked and 
display the top 10 records.

For better control i have wrote a wrapper to the struts action in which 
perform method is implemented by having my own abstract method. for more control i 
have created postPerform and prePerform event methods which gets executed before 
perform.

  Problem statement:
Since news item should be executed each and every page.
  i have hooked the News Action to postPerform or prePerform and set the form data 
in request scope. The problem is
when there is form validation and input attribute is jsp the control won;t go to the 
action level and bombs. right now we did most of our validation are done in form with 
input attirbute point to action element which is wrong 

Is there any way to implement a channel kind of portal behivour in struts ??

Thx in advance
sadhasivam.j

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


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

Re: Submit issue for new form with struts

2003-06-05 Thread James Mitchell
- Original Message - 
From: raghu_c [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 10:05 AM
Subject: RE: Submit issue for new form with struts


 essentially a table of values (list of records) retrieved from the
 db - on the action of the first jsp
 on dbl clicking the list,

That still doesn't answer the question about text or text boxes, so for now
I'll assume this is text.

 i have a javascript function that captures the record index
 and tries opening another window(a popup type) that queries the db for
 further data based on the record dbl clicked,

ok.


 As of now, I am able to configure the submit by giving the
action=/popupdetails.do
 instead of plain action=popupdetails (w/o the '.do')
 this somehow calls the execute method of the corresponding action class!!

So you've hard-coded .do on your page?


 now, i have a different issue  :(
 i want to pass the record index into the popupdetails jsp
 and i do not want to construct a url with a request parameter since that
makes the url editable and all.

 i thought i will use a property of the originating jsp formbean to hold
the record index
 (of the dblclicked record - hidden variable and all)
 my doubt is : how can one set a property in the bean on dblclick of the
record?

I posted some sample html yesterday that (almost) demonstrates how to do
this:

form name=frm action=?same-page method=GET
input type=hidden name=action value=/
input type=checkbox name=users value=Test1Test1br
input type=checkbox name=users value=Test2Test2br
input type=checkbox name=users value=Test3Test3br
input type=checkbox name=users value=Test4Test4br
input type=checkbox name=users value=Test5Test5br

br
a href=JavaScript:doForm('users.actions.add')Add/a |
a href=JavaScript:doForm('users.actions.delete')Remove/a
/form

script
function doForm(action){
  document.forms['frm'].elements['action'].value=action;
  document.forms['frm'].submit()
}

/script


...modify this to work for your situation:
- add target=_new to the form
 or
- open your new window (with params) from the doForm function



 Or is there an alternative?

 Thanx in Advance,
 Raghu



HTH

--
James Mitchell
Software Developer/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]



RE: Struts redirection problem

2003-06-05 Thread Andrew Hill
Make the input attribute in the mapping point at the action (the one it goes
through before forwarding to that view if its different).


-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 23:38
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Struts redirection problem


Hi,
We are doing a portal in which we have a News Channel in the pages across
the site.
assume its just a corner html display area in the Site which frameless site.
with respect to site updation and new arrivals this content should be picked
and display the top 10 records.

For better control i have wrote a wrapper to the struts action in which
perform method is implemented by having my own abstract method. for more
control i have created postPerform and prePerform event methods which gets
executed before perform.

  Problem statement:
Since news item should be executed each and every page.
  i have hooked the News Action to postPerform or prePerform and set the
form data in request scope. The problem is
when there is form validation and input attribute is jsp the control won;t
go to the action level and bombs. right now we did most of our validation
are done in form with input attirbute point to action element which is wrong

Is there any way to implement a channel kind of portal behivour in struts ??

Thx in advance
sadhasivam.j


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



RE: Struts redirection problem

2003-06-05 Thread J, Sadhasivam (Cognizant)
in the problem statement i have mentioned that we are doing that but its not the right 
way to do as per my assumption.
because do the formvalidation if its invalid instead of going to the action.perform 
redirect to jsp directly
is the struts thumb rule and design. 

Ideally is it good to over look that and 
hypotheically if the user knows that action then get the view without doing form 
validation.. i don't think struts will allow this even thought its a good work around.



-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:13 PM
To: Struts Users Mailing List
Subject: RE: Struts redirection problem


Make the input attribute in the mapping point at the action (the one it goes
through before forwarding to that view if its different).


-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 23:38
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Struts redirection problem


Hi,
We are doing a portal in which we have a News Channel in the pages across
the site.
assume its just a corner html display area in the Site which frameless site.
with respect to site updation and new arrivals this content should be picked
and display the top 10 records.

For better control i have wrote a wrapper to the struts action in which
perform method is implemented by having my own abstract method. for more
control i have created postPerform and prePerform event methods which gets
executed before perform.

  Problem statement:
Since news item should be executed each and every page.
  i have hooked the News Action to postPerform or prePerform and set the
form data in request scope. The problem is
when there is form validation and input attribute is jsp the control won;t
go to the action level and bombs. right now we did most of our validation
are done in form with input attirbute point to action element which is wrong

Is there any way to implement a channel kind of portal behivour in struts ??

Thx in advance
sadhasivam.j


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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


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

problem with reset button in DynaActionForm

2003-06-05 Thread Kommana, Sridhar
   Iam using Struts 1.1 beta 2 version.
   I have one zipcode search page.it has search criteria fields and search results 
table.

case:1
   If i enter search criteria and click on reset button it works fine.

case:2
   If i enter search criteria and click on search -- iam calling action where iam type 
casting as like: 
ZipForm form = (ZipForm) frm;
once search is performed.now if i click on reset button the search criteria values are 
not resetting to null.
   

ActionForm looks like:
public class ZipForm extends org.apache.struts.action.DynaActionForm {
private String searchZipCodeCity;

public void reset(ActionMapping mapping, HttpServletRequest request) {

searchZipCodeCity = null;
}
}

struts-config looks like:
form-bean name=zipform type=com.test.ZipForm
  form-property name=searchZipCodeCity type=java.lang.String /
/form-bean

Where iam doing wrong?

Thanks,

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



how to put a bean:write in a href=

2003-06-05 Thread António Santos

Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a html:link tag with a string concatenated with a
bean:write...?
I mean, I want to do something like this:

html:link href=getorg.do?id=bean:write name=orglist
property=id/bean:write name=orglist property=id//html:link

Of course, this doesn't work.

I want href to have the string getorg.do?id= concatenated with the output
from bean:write name=orglist property=id/

I suppose this must be done with a scriptlet. By the way, the orglist bean
comes from a logic:iterate over a vector of Beans (named orglistview).

Anyone?

Thanks,

Antonio Santos


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



RE: problem with reset button in DynaActionForm

2003-06-05 Thread Chen, Gin
Reset only resets back to the default values (it renders as an HTML submit)
Since struts puts the values into the html fields (value=blah) that is
picked up as the default values.
Therefore, reset will reset back to what the screen looked like when you
first came in before doing any posts.
-Tim

-Original Message-
From: Kommana, Sridhar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 11:52 AM
To: Struts Users Mailing List
Subject: problem with reset button in DynaActionForm


   Iam using Struts 1.1 beta 2 version.
   I have one zipcode search page.it has search criteria fields and search
results table.

case:1
   If i enter search criteria and click on reset button it works fine.

case:2
   If i enter search criteria and click on search -- iam calling action
where iam type casting as like: 
ZipForm form = (ZipForm) frm;
once search is performed.now if i click on reset button the search criteria
values are not resetting to null.
   

ActionForm looks like:
public class ZipForm extends org.apache.struts.action.DynaActionForm {
private String searchZipCodeCity;

public void reset(ActionMapping mapping, HttpServletRequest request) {

searchZipCodeCity = null;
}
}

struts-config looks like:
form-bean name=zipform type=com.test.ZipForm
  form-property name=searchZipCodeCity type=java.lang.String /
/form-bean

Where iam doing wrong?

Thanks,

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

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



RE: problem with reset button in DynaActionForm

2003-06-05 Thread Andrew Hill
I never use the Reset button myself, but afaik its just an html reset button
(the clicking of which resets form properties to the values they started
with when the browser loaded the page (doesnt cause a hit on the server))
and thus has no relation with the actionforms reset() method.

-Original Message-
From: Kommana, Sridhar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 23:52
To: Struts Users Mailing List
Subject: problem with reset button in DynaActionForm


   Iam using Struts 1.1 beta 2 version.
   I have one zipcode search page.it has search criteria fields and search
results table.

case:1
   If i enter search criteria and click on reset button it works fine.

case:2
   If i enter search criteria and click on search -- iam calling action
where iam type casting as like:
ZipForm form = (ZipForm) frm;
once search is performed.now if i click on reset button the search criteria
values are not resetting to null.


ActionForm looks like:
public class ZipForm extends org.apache.struts.action.DynaActionForm {
private String searchZipCodeCity;

public void reset(ActionMapping mapping, HttpServletRequest request) {

searchZipCodeCity = null;
}
}

struts-config looks like:
form-bean name=zipform type=com.test.ZipForm
  form-property name=searchZipCodeCity type=java.lang.String /
/form-bean

Where iam doing wrong?

Thanks,

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


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



RE: how to put a bean:write in a href=

2003-06-05 Thread Chen, Gin
2 possibilities without using scriplets:

1) Struts-EL:
html-el:link href=/getorg.do?id=${orglist.id}/

2) JSTL:
c:url value=/getorg.do
   c:param name=id value=${orglist.id}/
/c:url

-Tim

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 12:54 PM
To: [EMAIL PROTECTED]
Subject: how to put a bean:write in a href=



Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a html:link tag with a string concatenated with a
bean:write...?
I mean, I want to do something like this:

html:link href=getorg.do?id=bean:write name=orglist
property=id/bean:write name=orglist property=id//html:link

Of course, this doesn't work.

I want href to have the string getorg.do?id= concatenated with the output
from bean:write name=orglist property=id/

I suppose this must be done with a scriptlet. By the way, the orglist bean
comes from a logic:iterate over a vector of Beans (named orglistview).

Anyone?

Thanks,

Antonio Santos


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

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



RE: how to put a bean:write in a href=

2003-06-05 Thread Varun Garg
Do this

html:link href=getorg.do  paramId=id paramName=orglist
paramProperty=id 

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: how to put a bean:write in a href=



Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a html:link tag with a string concatenated
with a bean:write...? I mean, I want to do something like this:

html:link href=getorg.do?id=bean:write name=orglist
property=id/bean:write name=orglist property=id//html:link

Of course, this doesn't work.

I want href to have the string getorg.do?id= concatenated with the
output from bean:write name=orglist property=id/

I suppose this must be done with a scriptlet. By the way, the orglist
bean comes from a logic:iterate over a vector of Beans (named
orglistview).

Anyone?

Thanks,

Antonio Santos


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



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



Re: how to put a bean:write in a href=

2003-06-05 Thread Mark Lowe
I hate dollar signs :o)

I'd do this

html:link page=/gtorg.do
paramId=id
paramName=orglist
paramProperty=id
I Love Sparrows!!!
/html:link
Mark

On Wednesday, Jun 4, 2003, at 17:03 Europe/London, Chen, Gin wrote:

2 possibilities without using scriplets:

1) Struts-EL:
html-el:link href=/getorg.do?id=${orglist.id}/
2) JSTL:
c:url value=/getorg.do
   c:param name=id value=${orglist.id}/
/c:url
-Tim

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 12:54 PM
To: [EMAIL PROTECTED]
Subject: how to put a bean:write in a href=


Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a html:link tag with a string concatenated 
with a
bean:write...?
I mean, I want to do something like this:

html:link href=getorg.do?id=bean:write name=orglist
property=id/bean:write name=orglist property=id//html:link
Of course, this doesn't work.

I want href to have the string getorg.do?id= concatenated with the 
output
from bean:write name=orglist property=id/

I suppose this must be done with a scriptlet. By the way, the 
orglist bean
comes from a logic:iterate over a vector of Beans (named 
orglistview).

Anyone?

Thanks,

Antonio Santos

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


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


Re: Exception handling question

2003-06-05 Thread David Graham
How do you get access to the exception that was thrown when your action is 
called by the container (i.e. from the error-page directive in web.xml)?  
for example: a custom tag throws an exception, it is caught by the 
container and the container forwards to my action. so where is the 
exception object stored now so that my action can log it? For sure I can 
log that there *was* an exception, but how do I know what it was?
After looking back at my app...I'm actually not logging exceptions thrown in 
JSPs.  I use Tiles controllers to load all of my JSP data and I catch and 
log any exceptions thrown by my controllers.  The JSPs only display data so 
there is little chance of them throwing an exception (unless I've coded the 
page wrong but I find those errors during development).

The Servlet 2.3 spec (section 9.9) doesn't say that the exception is 
accessible to the error page, neither does Sun's servlet tutorial:
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets4.html#64301
There is a standard request attribute name that the exception is stored 
under.  I can't recall the exact name but it's defined in the Servlet spec.  
I'm assuming that if you map an Action to an error-page definition in 
web.xml it will have access to that request attribute but I have never tried 
it.

David

And if it *is* available somehow to the action specified in the error-page 
directive in the web.xml, then what would be the reason to use an 
ExceptionHandler in struts as well, even if it shares the same 
error-handling code?

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


RE: Tiles menuLayout.jsp extending in the tiles-def.xml?

2003-06-05 Thread Gary D Ashley Jr.
Personally, I found doing menu layouts via tiles was to complicated and
definitely wan't as clean as I'd like.  My approach was to create my own
custom xml file like:

tab-menu   name=facilityBasicTabMenu
images
selected   preImage=../images/preTab_b.gif
postImage=../images/postTab_b.gif
style=selectedTab/

unselected preImage=../images/preTab_y.gif
postImage=../images/postTab_y.gif
style=unselectedTab/
/images
tabs
tabname=facilityTab
display=Facility
action=/basicInfoPage.3mv
paramId=facilityOid
paramName=facility
paramProperty=facilityOid
paramScope=request
markAsJump=false
/tab
...
tab-menu

Since it was my own xml, I could create it in any fashion that met my needs.

Then, I created a struts plugin to load this file, use digester to parse it
into a set of config object (much like struts does in many other places),
and then created a custom tag to generate the html for my custom menu using
the configuration information that was loaded into the servletContext via
the plugin.

Finally, I use tiles decide which tabMenu I want to use, and which tab on
that menu to highlight.

Here is the tiles snip:
definition name=displayAddAddressForm extends=masterEditorPage
put name=tabMenu value=facilityBasicTabMenu /
put name=tab value=addressTab /
put name=formAction  value=/addAddress.3mv/
put name=button  value=add/
put name=messageKey value=title.addAddress/
put name=header  
value=/jsps/facility/facilitySummaryView.jsp/
put name=header2 value=/jsps/facility/facilityIndex.jsp/
put name=formvalue=/jsps/common/addressEdit.jsp/
put name=listViewvalue=/jsps/facility/addressList.jsp/
/definition

Here is the jsp snip:
...
  tiles:useAttribute name=tabMenu classname=java.lang.String /
  tiles:useAttribute name=tab classname=java.lang.String /
...
  %-- TabLayout Menu--%
  threemv:tabMenu name=%=tabMenu% tab=%=tab%/
...



This allowed me to configure my menus separately from the pages the menus
were used on, and did away with a combersome xml speak around it.  The major
objective was that I could create a handful (ended up with 4) master
pages/tiles that all other tiles extended.  This allows my team to
concentrate on the smaller pieces and not the general look and feel.  They
simple create a new tiles definition as above for each new page, and define
the menu and menu items that they wish to be highlighted.

Not sure what your goals are, but there is one perspective.  Hope it helps.

Thanks.

Gary

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 11:00 AM
To: [EMAIL PROTECTED]
Subject: Tiles menuLayout.jsp extending in the tiles-def.xml?


I need help with extending the menuLayout.jsp and menu.jsp i the
tiles-def.xml.

I need to know if there is a cleaner way to do this:


tiles-def.xml:
===
!-- ===  --
!-- Menus definitions 
   --
!-- ===  --

!-- Menu bar definition
This definition describe a bar of menu stacked verticaly.
Each menu is describe elsewhere.
Add new entry in the list to add new menu.
--
definition name=.default.navigation.layout
path=/WEB-INF/default/navigationLayout.jsp 
putList name=list add value=.member.navigation //putList
putList name=list add value=.medical.navigation //putList
putList name=list add value=.location.navigation //putList
putList name=list add value=.contact.navigation //putList
putList name=list add value=.alert.navigation //putList
/definition

definition name=.member.navigation.layout
extends=.default.navigation.layout 
putList name=list add value=.member.navigation.on
//putList
putList name=list add value=.medical.navigation //putList
putList name=list add value=.location.navigation //putList
putList name=list add value=.contact.navigation //putList
putList name=list add value=.alert.navigation //putList
/definition

definition name=.medical.navigation.layout
extends=.default.navigation.layout 
putList name=list add value=.member.navigation //putList
putList name=list add 

Showing errors on forms

2003-06-05 Thread Aaron Robinson
Struts 1.1 offers the ability to show a list of errors at the top of a form 
based on the errors from the ActionErrors class.

Is there a way of getting struts to highlight the fields in error in any 
way?

TIA

_
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger

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


RE: Showing errors on forms

2003-06-05 Thread Mark Galbreath
Add the property attribute to html:errors/, where property=field_name
and place the tag where you want it (usually beside or above the field to be
validated).

Mark

-Original Message-
From: Aaron Robinson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 12:39 PM
To: [EMAIL PROTECTED]
Subject: Showing errors on forms


Struts 1.1 offers the ability to show a list of errors at the top of a form 
based on the errors from the ActionErrors class.

Is there a way of getting struts to highlight the fields in error in any 
way?

TIA

_
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger


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



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



RE: Message Resource Bundle utilities?

2003-06-05 Thread Gary D Ashley Jr.
There is an extension in the sandbox, I believe, that will allow you to
maintain resource bundles in a database versus .properties file.



-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 12:02 PM
To: [EMAIL PROTECTED]
Subject: Message Resource Bundle utilities?


Does anyone have any ResourceBundle utilities, like a macro for Excel or
someothing to help me maintain the ResourceBundle?

---
Thanks...
Mick Knutson
---

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


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



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



RE: Intelligent Refresh/Reloading

2003-06-05 Thread Marcos Oliva

Jason, 

I did this with Jboss - MDB (message driver beans) -- applet/javascript 

The applet is a non-displayable applet that sits on the client web page
and listens to the publisher (MDB bean) and whenever new info hits the
server then the MDB publish a message, the servlet receives it and by
means of javascript reloads the page(the reload can be also dhtml).

I did this for a messaging project that I was working, tracking down
jboss JMS capabilities, and displaying the messages on the HTML page.

The applet does not have to display and it is a tiny applet, its only
function is to listen for updates.

My two cents

Marcos oliva


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 8:27 PM
To: Struts Users Mailing List
Subject: RE: Intelligent Refresh/Reloading

No.

The webserver has no way of notifying the client that it needs to load
the
page again.

Struts doesnt provide anything to help with this.

Some attempted solutions Ive seen include the good old polling method
(js
causes the page to reaload every minute or so) which is inefficient and
inelegant, and 'pushlets' which are an evil hack where the server doesnt
close the connection to the client (tying up a socket), and can write
lines
of javascript to the connection occasionally causing the client to do
stuff.
Neither are very robust.

One might also consider the idea of an applet that maintains its own
connection with the server but Ive not implemented such a thing myself.

-Original Message-
From: Jason Meredith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 19:49
To: Struts Users Mailing List
Subject: Intelligent Refresh/Reloading



Chaps

I have a list of records that are displayed on a web page, the database
receives new records periodically, is there a way to determine when a
new
record is loaded into the dB and then using Struts reload that page when
a
new record is added?

Regards

Jason



***
The e-mail and any attachments are confidential. They may contain
privileged information and are intended for the named addressee(s)
only. If you are not the intended recipient, please notify us
immediately and do not disclose, distribute, or retain this e-mail
or any part of it.

Unless expressly stated, opinions in this e-mail are those of the
individual sender and not of the FIMAT Group. We believe but do not
warrant that this e-mail and any attachments are virus free.
You must therefore take full responsibility for virus checking.
The FIMAT Group reserve the right to monitor e-mail communications
through its networks.

Where this communication constitutes a financial promotion it is issued
and approved by Fimat International Banque S.A. (UK Branch) and is
only intended for persons of a kind described in article 19(5) of the
Financial Services and Markets Act 2000 (Financial Promotion) Order
2001.  This information is not intended to be distributed to UK Private
Customers (as defined by the Financial Services Authority).

Fimat International Banque S.A. (UK Branch) whose registered branch
in England is at SG House, 41 Tower Hill, London EC3N 4SG is authorised
by the Commission Bancaire in France and by the UK Financial Services
Authority; regulated by the Financial Services Authority for the conduct
of
UK Business and is entered in the Financial Services Authority's
register
(Register Number 183415), access to which can be gained via the
following
link: www.fsa.gov.uk/register/

Member and a SETS Participant of the London Stock Exchange (LSE).
Where this communication is confirming an on exchange transaction
(as defined by the LSE),the transaction is subject to the rules of the
LSE.
Any information, opinions, estimates and forecasts contained in this
document have been arrived at or obtained from public sources believed
to be reliable and in good faith which has not been independently
verified and no warranty, express or implied, is made as to their
accuracy,
completeness or correctness.

This document is not an offer to sell or a solicitation to acquire or
dispose
of an interest in financial instruments.

If you have received this transmission in error, please telephone
+44 020 7676 8999 immediately so that we can arrange for its return.
***


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


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


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



RE: Struts redirection problem

2003-06-05 Thread J, Sadhasivam (Cognizant)
The doubt is can implement portal channel kind of behivour where in channels are 
dropped in my dynamic contents
and in the content area requalr CRUD operation will be followed.

-Original Message-
From: J, Sadhasivam (Cognizant) 
Sent: Wednesday, June 04, 2003 9:22 PM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: Struts redirection problem


in the problem statement i have mentioned that we are doing that but its not the right 
way to do as per my assumption.
because do the formvalidation if its invalid instead of going to the action.perform 
redirect to jsp directly
is the struts thumb rule and design. 

Ideally is it good to over look that and 
hypotheically if the user knows that action then get the view without doing form 
validation.. i don't think struts will allow this even thought its a good work around.



-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:13 PM
To: Struts Users Mailing List
Subject: RE: Struts redirection problem


Make the input attribute in the mapping point at the action (the one it goes
through before forwarding to that view if its different).


-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 23:38
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Struts redirection problem


Hi,
We are doing a portal in which we have a News Channel in the pages across
the site.
assume its just a corner html display area in the Site which frameless site.
with respect to site updation and new arrivals this content should be picked
and display the top 10 records.

For better control i have wrote a wrapper to the struts action in which
perform method is implemented by having my own abstract method. for more
control i have created postPerform and prePerform event methods which gets
executed before perform.

  Problem statement:
Since news item should be executed each and every page.
  i have hooked the News Action to postPerform or prePerform and set the
form data in request scope. The problem is
when there is form validation and input attribute is jsp the control won;t
go to the action level and bombs. right now we did most of our validation
are done in form with input attirbute point to action element which is wrong

Is there any way to implement a channel kind of portal behivour in struts ??

Thx in advance
sadhasivam.j


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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


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

quick: action input= parameter question.

2003-06-05 Thread Mick Knutson
I am wondering if the default, if I omit the input=/action.do, what it 
will default to?
I have all of mine the same as the name of my actions, and really don't want 
to keep adding the parameter each action as I feel it may be redundant.

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

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


RE: Message Resource Bundle utilities?

2003-06-05 Thread Mick Knutson
Which sandbox? I know Ted had one he created, but it used Hybernate. I am 
_only_ using EJB's and do not want to add Hybernate into our system.
Or do you mean the commons sandbox?

---
Thanks...
Mick Knutson
---




From: Gary D Ashley Jr. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Message Resource Bundle utilities?
Date: Wed, 4 Jun 2003 11:42:30 -0700
There is an extension in the sandbox, I believe, that will allow you to
maintain resource bundles in a database versus .properties file.


-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 12:02 PM
To: [EMAIL PROTECTED]
Subject: Message Resource Bundle utilities?
Does anyone have any ResourceBundle utilities, like a macro for Excel or
someothing to help me maintain the ResourceBundle?
---
Thanks...
Mick Knutson
---
_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-
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]
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: Message Resource Bundle utilities?

2003-06-05 Thread James Mitchell
There is a database implementation of MessageResources on SourceForge.net.

Go to:
http://sourceforge.net/projects/struts

Look for MessageResources Impls

It consists of 3 classes, very simple.  I've even included a modified
version of the struts-example to demonstrate.  The default setup uses MySql,
but you can customize to anything you want (or at least what OJB supports,
which is almost every vendor).

Good luck and let me know if you need help.  The quickest way to reach me is
with AIM.


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:17 PM
Subject: RE: Message Resource Bundle utilities?


 Which sandbox? I know Ted had one he created, but it used Hybernate. I am
 _only_ using EJB's and do not want to add Hybernate into our system.
 Or do you mean the commons sandbox?

 ---
 Thanks...
 Mick Knutson
 ---





 From: Gary D Ashley Jr. [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: Message Resource Bundle utilities?
 Date: Wed, 4 Jun 2003 11:42:30 -0700
 
 There is an extension in the sandbox, I believe, that will allow you to
 maintain resource bundles in a database versus .properties file.
 
 
 
 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 03, 2003 12:02 PM
 To: [EMAIL PROTECTED]
 Subject: Message Resource Bundle utilities?
 
 
 Does anyone have any ResourceBundle utilities, like a macro for Excel or
 someothing to help me maintain the ResourceBundle?
 
 ---
 Thanks...
 Mick Knutson
 ---
 
 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail
 
 
 -
 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]
 

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


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


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



Re: Message Resource Bundle utilities?

2003-06-05 Thread Mick Knutson
I did see this before, but this will force me to use OJB instead of a more 
generic means by SQL, or allowing me to change this to use CMP 2.0.

1st Question, does anyone have an EJB implementation of this that puts the 
entire bundle into memory so each call for resources does not mean an SQL 
query?

2nd question; Does anyone have an MS Excel macro or sheet that makes 
importing and exporting = seperated values easier to maintain?

---
Thanks...
Mick Knutson
---




From: James Mitchell [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Message Resource Bundle utilities?
Date: Wed, 4 Jun 2003 13:22:51 -0400
There is a database implementation of MessageResources on SourceForge.net.

Go to:
http://sourceforge.net/projects/struts
Look for MessageResources Impls

It consists of 3 classes, very simple.  I've even included a modified
version of the struts-example to demonstrate.  The default setup uses 
MySql,
but you can customize to anything you want (or at least what OJB supports,
which is almost every vendor).

Good luck and let me know if you need help.  The quickest way to reach me 
is
with AIM.

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx
- Original Message -
From: Mick Knutson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:17 PM
Subject: RE: Message Resource Bundle utilities?
 Which sandbox? I know Ted had one he created, but it used Hybernate. I 
am
 _only_ using EJB's and do not want to add Hybernate into our system.
 Or do you mean the commons sandbox?

 ---
 Thanks...
 Mick Knutson
 ---





 From: Gary D Ashley Jr. [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: Message Resource Bundle utilities?
 Date: Wed, 4 Jun 2003 11:42:30 -0700
 
 There is an extension in the sandbox, I believe, that will allow you to
 maintain resource bundles in a database versus .properties file.
 
 
 
 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 03, 2003 12:02 PM
 To: [EMAIL PROTECTED]
 Subject: Message Resource Bundle utilities?
 
 
 Does anyone have any ResourceBundle utilities, like a macro for Excel 
or
 someothing to help me maintain the ResourceBundle?
 
 ---
 Thanks...
 Mick Knutson
 ---
 
 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail
 
 
 -
 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]
 

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


 -
 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]
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: [OT] Release Manager

2003-06-05 Thread Erik Price


Tumi Mathibedi wrote:
thanks Max, that answered my concern.
Also there is a very good (but more high-level than the Java Development 
with Ant book) chapter on packaging source code in Agile Software 
Development: Patterns, Principles, and Practices by Robert Martin.  The 
chapter is length and in-depth and discusses some of the pitfalls to be 
avoided and patterns that can help in managing dependencies in source code.

Erik

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


limit on length of message in ResourceBundel?

2003-06-05 Thread Mick Knutson
Is there a limit on length of message in ResourceBundel?

Such as:

form.description = Some really, really long 500 character description here 
in the RB.

---
Thanks...
Mick Knutson
---
_
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]


Re: Posted again: sendind data to the View (using XML)

2003-06-05 Thread Erik Price


António Santos wrote:

Can some of you please tell me if sending data to the View in an XML formatted
string as an attribute in the HTTP Request is a good practice? This will force
the JSP to do XML parsing, but I think this is a fairly good idea in order to
send lots of data (example: several rows of a DB) to the View.
Is there any other better approach (using Beans, for example)?
Isn't it easier to just call a bunch of setMethods on a bean and pass 
that to the view?  Not that there's anything wrong with your approach, 
but then you have to encode/decode the XML.  Plus, you can always add a 
behavior to your bean sometime down the road (or read-only properties 
dynamically generated from bean fields), which you can't really do with 
a mini-XML document.  And JSP already has the facilities needed to 
display bean properties, whereas you'd have to write extra code to pull 
out data from the XML string.

Just seems like extra work, but perhaps I don't know what you're really 
asking.



Erik

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


[OT] Reach out and touch someone?

2003-06-05 Thread Mark Galbreath
heh heh...Brandon is flirting with Becky on irc.darkmyst.org 6667 right
now

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 1:23 PM

The quickest way to reach me is with AIM.



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



RE: [OT] Reach out and touch someone?

2003-06-05 Thread Chappell, Simon P
Well, don't be telling everyone ... or he'll turn into a bitter and cynical foster's 
beer drinking grouch  like someone we all know! ;-)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 12:40 PM
To: 'Struts Users Mailing List'
Subject: [OT] Reach out and touch someone?


heh heh...Brandon is flirting with Becky on irc.darkmyst.org 6667 right
now

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 1:23 PM

The quickest way to reach me is with AIM.



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



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



Re: Exception handling question

2003-06-05 Thread Bradley M. Handy
Here are the request scope attributes you need to worry about (page 64 of 
the Servlet 2.3 spec):

javax.servlet.error.status_code java.lang.Integer
javax.servlet.error.exception_type  java.lang.Class
javax.servlet.error.message java.lang.String
javax.servlet.error.exception   java.lang.Throwable
javax.servlet.error.request_uri java.lang.String
javax.servlet.error.servlet_namejava.lang.String


At 12:25 PM 6/4/2003, you wrote:
How do you get access to the exception that was thrown when your action 
is called by the container (i.e. from the error-page directive in web.xml)?
for example: a custom tag throws an exception, it is caught by the 
container and the container forwards to my action. so where is the 
exception object stored now so that my action can log it? For sure I can 
log that there *was* an exception, but how do I know what it was?
After looking back at my app...I'm actually not logging exceptions thrown 
in JSPs.  I use Tiles controllers to load all of my JSP data and I catch 
and log any exceptions thrown by my controllers.  The JSPs only display 
data so there is little chance of them throwing an exception (unless I've 
coded the page wrong but I find those errors during development).

The Servlet 2.3 spec (section 9.9) doesn't say that the exception is 
accessible to the error page, neither does Sun's servlet tutorial:
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets4.html#64301
There is a standard request attribute name that the exception is stored 
under.  I can't recall the exact name but it's defined in the Servlet spec.
I'm assuming that if you map an Action to an error-page definition in 
web.xml it will have access to that request attribute but I have never 
tried it.

David

And if it *is* available somehow to the action specified in the 
error-page directive in the web.xml, then what would be the reason to use 
an ExceptionHandler in struts as well, even if it shares the same 
error-handling code?

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Newbie Question: Tiles and html:link how to make it work.

2003-06-05 Thread Davidson, Glenn
I am new to Struts and Tiles and am trying to make it work. I have written a
simple web site that uses the html:link forward=some forward name ... and
this works well.  The some forward name is currently defined in the
global forwards section of the struts-config.xml I have looked at the
documentation on line and it is a little shy on this. I also have Ted
Husted's book which is really great but I am still having a problem. Can
anyone get me some guidance here? 

Thanks

Glenn Davidson


RE: validator: how to validate if either of two fields is presentandvalid

2003-06-05 Thread Doug Bryant
Perfect!  Thanks James.  That's exactly what I was looking for.

Doug

On Wed, 2003-06-04 at 14:16, James Turner wrote:
 Check out the requiredif validation.  It's even in the newbie FAQ now.
 
 James
 
  -Original Message-
  From: Doug Bryant [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, June 04, 2003 11:35 AM
  To: Struts Users Mailing List
  Subject: validator: how to validate if either of two fields 
  is present andvalid
  
  
  we have a form we are displaying to the user.  depending on 
  the permissions the user has, they are required to either 
  fill out a requiredDeliveryDate or daysAro
  
  Depending on what permissions you have, you must fill out one 
  or the other and you must fill in either a date or an integer 
  value depending on the field.
  
  We are currently using validator for the rest of the app (1.1 rc1).
  
  How can we achive this validation using validator?  
  
  Writing a custom validate method does not seem to be a good 
  solution because you can only validate one field at a time.
  
  We thought about extending 
  org.apache.struts.validator.DynaValidatorForm, overriding the 
  validate method,  validating everything we can using 
  validator and coding the rest, but it seems far from ideal.
  
  Does anyone have any suggestions or has anyone ever run 
  across this type of problems before.
  
  Thanks for any suggestions.
  
  Doug
  
  
-- 
Doug Bryant
ICF Consulting
Software Engineer

phone: 843.760.3635
  fax: 843.207.5444
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


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



Re: [ANNOUNCE] Struts Presentation @ JavaOne

2003-06-05 Thread Craig R. McClanahan


On Tue, 3 Jun 2003, James Holmes wrote:

 Date: Tue, 3 Jun 2003 20:41:18 -0400
 From: James Holmes [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users List [EMAIL PROTECTED]
 Subject: [ANNOUNCE] Struts Presentation @ JavaOne

 I'm going to be giving a presentation on Struts @ JavaOne next week for
 anyone that's interested.  The presentation is going to be held in the
 Oracle Guru Theatre, booth 639 on Tuesday @ 2pm.  Here's the abstract
 for the presentation:

 Developing Struts Applications with Oracle JDeveloper 9i
 This presentation aims to be an introduction to developing Struts
 applications with Oracle JDeveloper 9i, covering the most salient points
 including: setting up a Struts application in JDeveloper, coding the
 application in JDeveloper and debugging the application with JDeveloper.

 For more details visit:

 http://otn.oracle.com/events/javaone03/JavaOneGuruTheatre.html


Rats ,,, I'm going to be busy then presenting session TS-2301 on
JavaServer Faces :-).

 Thanks,

 James Holmes
 [EMAIL PROTECTED]
 http://www.jamesholmes.com/struts/


Craig


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



  1   2   >