RE: URGENT - PLS HELP

2002-06-14 Thread Stephen . Thompson

Hello,

Have you tried the following:

companyHome = (CompanyHome)PortableRemoteObject.narrow(tmpObj,
com.mortgagehub.ejb.CompanyHome.class);

That usually works for me.

Regards,

Stephen.


-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2002 22:15
To: Struts Group (E-mail)
Subject: URGENT - PLS HELP


I know this is not a stutus question, but itz very urgent. Pls help!!

I am  moving EJBs from Visual Age for Java 4.0 to Websphere 4.0 AES. One
servlet contains the following piece of code:
InitialContext ic = getInitialContext();
java.lang.Object tmpObj = ic.lookup(Company);
companyHome =
(CompanyHome)PortableRemoteObject.narrow((org.omg.CORBA.Object)tmpObj,
com.mortgagehub.ejb.CompanyHome.class);
if(companyHome != null)
{
company = companyHome.findByPrimaryKey(key);
}

I am getting the following error in logins.log when I try to login: Thu
Jun 13 11:15:43 EDT
2002|member||pinfad81|FAILURE|org.omg.CORBA.BAD_PARAM:
org.omg.CORBA.BAD_PARAM: Servant is not of the expected type.  minor code:
0 completed: No|

All of a sudden the above error has disappeared and I get the following
error:
Thu Jun 13 17:07:16 EDT
2002|member||pinfad81|FAILURE|java.lang.ClassCastException:
java.lang.ClassCastException: com.mortgagehub.ejb._CompanyHome_Stub|

Can you please tell me what could be the reason for the above two errors?

Thanks,
Bhaskar







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


---

Copyright material and/or confidential and/or privileged information may be contained 
in this e-mail and any attached documents.  The material and information is intended 
for the use of the intended addressee only.  If you are not the intended addressee, or 
the person responsible for delivering it to the intended addressee, you may not copy, 
disclose, distribute, disseminate or deliver it to anyone else or use it in any 
unauthorised manner or take or omit to take any action in reliance on it. To do so is 
prohibited and may be unlawful.   The views expressed in this e-mail may not be 
official policy but the personal views of the originator.  If you receive this e-mail 
in error, please advise the sender immediately by using the reply facility in your 
e-mail software, or contact [EMAIL PROTECTED]  Please also delete this e-mail and 
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--

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




select dropdown with a nested name-attribute doesnt work in any browser - sends wrong value in request

2002-06-14 Thread adam . hardy

Neither Mozilla nor IE are handling my HTML produced from nested tags.
They ignore any selection I make in a select dropdown when I submit. The
incoming parameters at the server show that the original value is always
sent. 

My HTML:

select name=operationList[0].locationIdString
option value=0 selected=selected-- please select --/option
option value=1Strange Location/option
option value=2Up a tree/option
option value=3Kebabhouse/option
/select

In my debug logging, I see all the other parameters with correct values,
but I get operation[0].locationIdString=0 no matter what I select.

Is anybody successfully using nested dropdowns / select boxes? Why does
this affect both browsers? Am I going mad?

Adam

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




Re: workflow example explaination.

2002-06-14 Thread Matthias Bauer

The values are checked before the code of your actions you derive from 
GenericAction is executed, thus preventing the user from executing an action he 
is not allowed to execute right now.

If you are looking for the exact locations, where the values are used, you can 
always do a grep on all the source files of the Workflow Extension.

--- Matthias


Anjali Jain wrote:
 Hi,
 
 I was looking at the getter setters in ApplicationMapping.java
 where will the values of these variable(nextState, etc) be used...??
 how is the value assignment to these affect the flow of pages...??
 
 -anjali
 
 
 -Original Message-
 From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 13, 2002 3:15 PM
 To: [EMAIL PROTECTED]
 Subject: RE: workflow example explaination.
 
 
 
 Struts 1.1b1 give us a chance to customize an ActionMapping in a per action 
 basis rather than doing it for the whole app in web.xml. Just place in your 
 action definition in struts-config something like:
 
 action   path=/
   type=..
   name=
 ..
 className=com.mapfre.general.upload.YourNewActionMapping/
 
 Adolfo
 
 
From: Anjali Jain [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: workflow example explaination.
Date: Thu, 13 Jun 2002 14:35:48 +0530

thanx a lot Matthias.
I will now try to implement it.

-Original Message-
From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 1:31 PM
To: Struts Users Mailing List
Subject: Re: workflow example explaination.



But when I serached for the methods like setPrimaryWorkflow,

setNewState(),

and setNextState() in SuccessAction class or GenericAction class,
I couldn't.
where are these methods  data members defined.

It is the class ApplicationMapping, these methods are defined in. You also
need
to tell the Struts Servlet to use this mapping instead of the standard
action
mapping by this entry in web.xml (see the test application that is provided
with
the workflow extension package):

 init-param
   param-namemapping/param-name
   param-valuecom.livinglogic.struts.workflow.ApplicationMapping
  /param-value
 /init-param

Please note: this works for Struts 1.0.x only, because the action mappings
are
defined differently in Struts 1.1.


I'm not able to map actually.

In the struts-config.xml,
set-property property=primaryWorkflow value=login /
 set-property property=newState value=1 /
 set-property property=nextState value=2 /
 forward name=success path=/login.jspp /

what does value 1 signify for property newState...?
does it efine some kind of sequence...??

What it says is:

- newState: when this action is executed set the state of the login
workflow
to 1 and
- nextState: any action that is following must belong to the workflow
login
and must set this workflow's state to 2 (otherwise a control flow exception
is
encountered)


Please explain comprehensively with the progression of screens..

Please look at the test application and work through it thoroughly. This
should
demonstrate the ideas behind the workflow package pretty well.

--- Matthias


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

Power your enterprise with custom solutions in eLearning and Knowledge
Management from NIIT - Knowledge Solutions. For details visit our website
http://www.ksb.niit.com

___NOTICE
This electronic mail transmission contains confidential information 
intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of NIIT shall be
understood to be neither given nor endorsed by NIIT When addressed to NIIT
clients, any information contained in this e-mail is subject to the terms
and conditions in the governing client contract.

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 
 
 
 
 
 HTML
   HEAD
  TITLEAdolfo's signature/TITLE
   /HEAD
   BODY
  centerbemAdolfo Rodriguez Miguelez/emb/center
 
   /BODY
   /HTML
 
 
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail. 
 http://www.hotmail.com
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 Power your enterprise with custom solutions in eLearning and Knowledge
 Management from NIIT - Knowledge Solutions. For details visit our website
 

RE: select dropdown with a nested name-attribute doesnt work in any browser - sends wrong value in request

2002-06-14 Thread SATISH.T

Hi I have tried out nested:select in both IE and netscape and it works
fine. The property bandList is the one I set in my nested beans which is
a collection (Arraylist ) of label Value beans(name-value pairs).
This is the syntax I use and the values are returned properly.
nested:define id=Y property=bandList/
 nested:select property=bandName
onchange=%=\trial(\+counter+\)\% 
html:options collection=Y property=label
labelProperty=value/
 /nested:select   


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Friday, June 14, 2002 2:21 PM
To: Struts Users Mailing List
Subject: select dropdown with a nested name-attribute doesnt work in any
browser - sends wrong value in request

Neither Mozilla nor IE are handling my HTML produced from nested tags.
They ignore any selection I make in a select dropdown when I submit. The
incoming parameters at the server show that the original value is always
sent. 

My HTML:

select name=operationList[0].locationIdString
option value=0 selected=selected-- please select --/option
option value=1Strange Location/option
option value=2Up a tree/option
option value=3Kebabhouse/option
/select

In my debug logging, I see all the other parameters with correct values,
but I get operation[0].locationIdString=0 no matter what I select.

Is anybody successfully using nested dropdowns / select boxes? Why does
this affect both browsers? Am I going mad?

Adam

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



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


Re: Nested Tags question

2002-06-14 Thread Arron Bates

 As far as the problem goes concerning setting against valid indices, 
 my code does that simply enough using a check against ArrayList.size() 
 and the index from the request parameter - if the size is too small, I 
 just add new objects - 3 lines of code. This is all in a for loop, 
 which could recurse - presumably what your commons wrapper does. Guess 
 I'll find out. 



That's pretty much what it does.
Only thing is it's tackled at the collection level so that you only need 
to use the properties which return and set the collection itself. You 
have to provide one of these to the iterate tags anyways. Means you 
don't have to manage the collections yourself.

It's all of a muchness, so I'll just say it's less to be concerned with 
on a regular basis as a wrapper  :)


Arron.


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




File Upload/Download Issues

2002-06-14 Thread Daniel J. D'Cotta

Hi,

I have 3 Questions for you all:


1. First, I have a concern for memory usage while uploading a huge (100+Mb)
file. How does Struts handle uploading the file? Or is this purely a Web
Server issue.

Also, I am using the org.apache.struts.upload.FormFile class to read it.
Does it matter if I use getInputStream() read batch-by-batch or
getFileData()?


2. Next, when I pre-set the value, it does not show in the input field.

  input type=file id=file name=file size=50 value=temp.txt/

I read somewhere that that is a html thing. Is that true, and any way to get
around it?


3. Finally, How do you let users download a file with Struts? The file
cannot be outside WEB-INF.

(Could not find any documentation on this part, if you ask me to RTFM,
please direct me to which part of the manual).


Thanks in advance.


PS: Anybody have examples that have file uploads/downloads?


Regards,
Daniel D'Cotta
Struts Newbie


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




Re: pager taglib !!

2002-06-14 Thread Mark Nichols


- Original Message -
From: [EMAIL PROTECTED]



 anyone using pager tag library from JSPTags.com , i have a few doubts
 regarding the same, could some help me out


I have used, and continue to use the JSPTags pager tag to great success.
What are your concerns?

/mark

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




Re: select dropdown with a nested name-attribute doesnt work in anybrowser - sends wrong value in request

2002-06-14 Thread Adam Hardy

Oh! It's a mystery to me then why my HTML doesn't work. Can you send the 
HTML that these tags produce? Does that nested:define produce html? What 
role does it play?

thanks
Adam

SATISH.T wrote:

Hi I have tried out nested:select in both IE and netscape and it works
fine. The property bandList is the one I set in my nested beans which is
a collection (Arraylist ) of label Value beans(name-value pairs).
This is the syntax I use and the values are returned properly.
nested:define id=Y property=bandList/
nested:select property=bandName
onchange=%=\trial(\+counter+\)\% 
   html:options collection=Y property=label
labelProperty=value/
 /nested:select  


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Friday, June 14, 2002 2:21 PM
To: Struts Users Mailing List
Subject: select dropdown with a nested name-attribute doesnt work in any
browser - sends wrong value in request

Neither Mozilla nor IE are handling my HTML produced from nested tags.
They ignore any selection I make in a select dropdown when I submit. The
incoming parameters at the server show that the original value is always
sent. 

My HTML:

select name=operationList[0].locationIdString
option value=0 selected=selected-- please select --/option
option value=1Strange Location/option
option value=2Up a tree/option
option value=3Kebabhouse/option
/select

In my debug logging, I see all the other parameters with correct values,
but I get operation[0].locationIdString=0 no matter what I select.

Is anybody successfully using nested dropdowns / select boxes? Why does
this affect both browsers? Am I going mad?

Adam

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

  



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

  



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




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




Re: Is there a way to reverse engineer a WAR file for a struts app?

2002-06-14 Thread Mark Nichols


- Original Message -
From: [EMAIL PROTECTED]
 In other words is there a way to 'reverse
 engineer' a WAR file into an application that can be debugged?

Did you include the source when you originally created your WAR file? If so
I think you should be able to load the WAR into WSAD and then set
breakpoints/debug it.

Or I could be wrong.

/mark

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




RE: Is there a way to reverse engineer a WAR file for a struts app?

2002-06-14 Thread andre . powroznik

A war file is simply a zip file. You can unzip it with any zip program. You can also 
unzip jars. And you can decompile classes using some Java decompiler also (mocha...).

-Original Message-
From: Mark Nichols [mailto:[EMAIL PROTECTED]]
Sent: 14 June 2002 15:01
To: Struts Users Mailing List
Subject: Re: Is there a way to reverse engineer a WAR file for a struts
app?



- Original Message -
From: [EMAIL PROTECTED]
 In other words is there a way to 'reverse
 engineer' a WAR file into an application that can be debugged?

Did you include the source when you originally created your WAR file? If so
I think you should be able to load the WAR into WSAD and then set
breakpoints/debug it.

Or I could be wrong.

/mark

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

 DISCLAIMER  
This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation.


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




RE: Pros and Cons of Struts

2002-06-14 Thread Maris Orbidans


We use Struts in our project.

it's very good

Pros:
+ you can apply your OOP skills and build large class hierarchies of form beans and 
+action classes


Maris

 -Original Message-
 From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 03, 2002 10:55 PM
 To: [EMAIL PROTECTED]
 Subject: Pros and Cons of Struts
 
 
 Subject: Pros and Cons of Struts
 From: Sanjib Islam [EMAIL PROTECTED]
  ===
 I am presently evaluating struts as a presentation framework for our
 upcoming project.
 Could anyone please provide a list of some of the pros and 
 cons that they
 might have experienced in their projects?
 
 Thanks.
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




DataSource problem

2002-06-14 Thread Maarten Roosendaal

Hi,

I'm trying to create a simple DataBase app. using Struts. Right now i have a problem 
with getting the DataSource out of the InitialContext and i'm not sure what i'm doing 
wrong or maybe it has something to do with the Struts Servlet.

In configured the server.xml as follows:
 Resource name=test auth=CONTAINER
  type=javax.sql.DataSource/

 ResourceParams name=test
   parameter  nameuser/name   valueroot/value
  /parameter
   parameter  namepassword/namevalue/value   
/parameter
   parameter  namedriverClassName/name  
valueorg.gjt.mm.mysql.Driver/value /parameter
   parameter  namedriverName/name  
valuejdbc:mysql://localhost/test/value /parameter
  /ResourceParams

and my web.xml includes the following:
resource-ref
res-ref-nametest/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authCONTAINER/res-auth
/resource-ref

In an Action-class i do this:
Context env = (Context) new InitialContext().lookup(java:comp/env);
DataSource ds = (DataSource) env.lookup(test);
Here the DataSource keeps ending up as NULL. When i do this:
Connection con = DriverManager.getConnection(Commands.DB_TEST_URL, 
Commands.DB_TEST_USERNAME, );
things are working fine but i have no idea where to look. The Context does seem to 
have a reference to the 'test' reference but nothing more.
Does this have something to do with Struts or did i forget something? I don't want to 
use the struts.xml for a database-connection. One of the reasons is that i keep 
getting the message that it can't find the driver, while it is included in the 
CLASSPATH.

Hope someone can help,
Maarten




RE: html:messages

2002-06-14 Thread wbchmura


Hey that worked...  (Needed to do both parts)

I was thinking the html:message tag would function alot like the 
html:errors tag.  Why would it not work the same?



-Original Message-
From: maillist [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 8:07 PM
To: struts-user
Subject: Re: html:messages



On Thursday, June 13, 2002, 6:22:54 PM, [EMAIL PROTECTED] 
wrote:

wEBc ACTION CODE---
wEBc ActionMessages amsgs = new ActionMessages();
wEBc ActionMessage am = new 
ActionMessage(drilldown.results.nomatches);
wEBc amsgs.add(ActionMessages.GLOBAL_MESSAGE,am);
wEBc request.setAttribute(Action.MESSAGE_KEY, amsgs); 
wEBc return (mapping.findForward(continue));

  Try--
  replacing
   request.setAttribute(Action.MESSAGE_KEY, amsgs);
  with:
   saveMessages( request, amsgs );

 If the above doesn't help then try in the jsp page:

html:messages id=message message=true
bean:write name=message/BR
/html:messages  

I'm new to using the messages myself, so probably someone else can
help out more, but I know the above works for me.


--

Rick

mailto:[EMAIL PROTECTED]

As the light changed from red to green to yellow and back to red
again, I sat there thinking about life. Was it nothing more than a
bunch of honking and yelling? Sometimes it seemed that way.
  -Jack Handey


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



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




RE: html:messages

2002-06-14 Thread wbchmura

One other note on the difference...

If I use the bean:write to get the output it does some lovely transforms 
on the text so that it spits out valid HTML...

lt;LIgt;I found [70] matches for your search.BR

I did really want the LI in there so that it would do a bullet 
point...


-Original Message-
From: maillist [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 8:07 PM
To: struts-user
Subject: Re: html:messages



On Thursday, June 13, 2002, 6:22:54 PM, [EMAIL PROTECTED] 
wrote:

wEBc ACTION CODE---
wEBc ActionMessages amsgs = new ActionMessages();
wEBc ActionMessage am = new 
ActionMessage(drilldown.results.nomatches);
wEBc amsgs.add(ActionMessages.GLOBAL_MESSAGE,am);
wEBc request.setAttribute(Action.MESSAGE_KEY, amsgs); 
wEBc return (mapping.findForward(continue));

  Try--
  replacing
   request.setAttribute(Action.MESSAGE_KEY, amsgs);
  with:
   saveMessages( request, amsgs );

 If the above doesn't help then try in the jsp page:

html:messages id=message message=true
bean:write name=message/BR
/html:messages  

I'm new to using the messages myself, so probably someone else can
help out more, but I know the above works for me.


--

Rick

mailto:[EMAIL PROTECTED]

As the light changed from red to green to yellow and back to red
again, I sat there thinking about life. Was it nothing more than a
bunch of honking and yelling? Sometimes it seemed that way.
  -Jack Handey


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



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




MessageResources configuration line to struts-config.xml ?

2002-06-14 Thread Barbara Post

I have been reading (really...  lol) this thread :
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg33807.html
but according to struts-config.xml's dtd dunno where to put the tag, and
which tag, to indicate the location (class) of my MessageResources
.properties file !

The message told to do so :
1. Define the Resource bundle in the struts-config.xml file. If you have a
resource
bundle by name
FormErrorResources.properties, then define it as follows:
message-resources parameter=com.myDomain.FormErrorResources /



Thanks for any clue.

Barbara

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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




Re: DataSource problem

2002-06-14 Thread rainer juenger

Hi Maarten,

join the club! There are some more guys having exactliy the same problem as
you.
To me your configuration looks all right. I saw some samples :

parameter  namedriverName/name
valuejdbc:mysql://localhost/test/value /parameter

where the parameter name is not driverName but url. I tried both without
luck.

Are you using Tomcat 4.x without DBCP from the Jakarta Commons to get the
JNDI DB Connection?

Please follow the thread Connection pooling dowsn't work for me ... Help
!!
Hopefully there is someone arround giving us a tip how to get it run

Good luck to all of us ;)
Rainer

- Original Message -
From: Maarten Roosendaal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 3:42 PM
Subject: DataSource problem


Hi,

I'm trying to create a simple DataBase app. using Struts. Right now i have a
problem with getting the DataSource out of the InitialContext and i'm not
sure what i'm doing wrong or maybe it has something to do with the Struts
Servlet.

In configured the server.xml as follows:
 Resource name=test auth=CONTAINER
  type=javax.sql.DataSource/

 ResourceParams name=test
   parameter  nameuser/name
valueroot/value  /parameter
   parameter  namepassword/namevalue/value
/parameter
   parameter  namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value /parameter
   parameter  namedriverName/name
valuejdbc:mysql://localhost/test/value /parameter
  /ResourceParams

and my web.xml includes the following:
resource-ref
res-ref-nametest/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authCONTAINER/res-auth
/resource-ref

In an Action-class i do this:
Context env = (Context) new
InitialContext().lookup(java:comp/env);
DataSource ds = (DataSource) env.lookup(test);
Here the DataSource keeps ending up as NULL. When i do this:
Connection con = DriverManager.getConnection(Commands.DB_TEST_URL,
Commands.DB_TEST_USERNAME, );
things are working fine but i have no idea where to look. The Context
does seem to have a reference to the 'test' reference but nothing more.
Does this have something to do with Struts or did i forget something? I
don't want to use the struts.xml for a database-connection. One of the
reasons is that i keep getting the message that it can't find the driver,
while it is included in the CLASSPATH.

Hope someone can help,
Maarten




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




Re: MessageResources configuration line to struts-config.xml ?

2002-06-14 Thread James Holmes

If you use the Struts Console to edit your config file
it will properly place the message-resources tag in
your file to comply with the DTD.

Struts Console:
http://www.jamesholmes.com/struts/

The thread you mention below explains what value to
set based on what you name your properties file and
what hierarchy it's in.

-james
[EMAIL PROTECTED]


--- Barbara Post [EMAIL PROTECTED] wrote:
 I have been reading (really...  lol) this thread :

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg33807.html
 but according to struts-config.xml's dtd dunno where
 to put the tag, and
 which tag, to indicate the location (class) of my
 MessageResources
 .properties file !
 
 The message told to do so :
 1. Define the Resource bundle in the
 struts-config.xml file. If you have a
 resource
 bundle by name
 FormErrorResources.properties, then define it as
 follows:
 message-resources
 parameter=com.myDomain.FormErrorResources /
 
 
 
 Thanks for any clue.
 
 Barbara
 
  

__
 ifrance.com, l'email gratuit le plus complet de
 l'Internet !
 vos emails depuis un navigateur, en POP3, sur
 Minitel, sur le WAP...
 http://www.ifrance.com/_reloc/email.emailif
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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

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




Error messages: other colo of input field label

2002-06-14 Thread hans albers

Hi there,

the error message at the top of the page about the fields
which are wrong is nice, but

is it possible to change the label color of the input fields
where the user made a wrong input, i've seen this on many
pages in the internet, can i do this with struts?

thanks

hans



_
Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden: 
http://messenger.msn.com


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




Re: MessageResources configuration line to struts-config.xml ?

2002-06-14 Thread James Holmes

Oops, sorry for the confusion.  The
message-resources tag is new in 1.1 and thus is only
available in Struts 1.1b.

Here are links to both the 1.0 and 1.1 DTDS:
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- Barbara Post [EMAIL PROTECTED] wrote:
 Hi James, thanks for this, gotta give a try.
 
 Can you point me to the right tag in the DTD ? guess
 that I cannot see it
 because I have printed it out in black :-p
 
 I use Struts 1.0.2, should I move to 1.1b ? Gotta
 see if it's out of beta
 state...
 
 Barbara
 - Original Message -
 From: James Holmes [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Sent: Friday, June 14, 2002 4:02 PM
 Subject: Re: MessageResources configuration line to
 struts-config.xml ?
 
 
  If you use the Struts Console to edit your config
 file
  it will properly place the message-resources tag
 in
  your file to comply with the DTD.
 
  Struts Console:
  http://www.jamesholmes.com/struts/
 
  The thread you mention below explains what value
 to
  set based on what you name your properties file
 and
  what hierarchy it's in.
 
  -james
  [EMAIL PROTECTED]
 
 
  --- Barbara Post [EMAIL PROTECTED] wrote:
   I have been reading (really...  lol) this thread
 :
  
 

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg33807.html
   but according to struts-config.xml's dtd dunno
 where
   to put the tag, and
   which tag, to indicate the location (class) of
 my
   MessageResources
   .properties file !
  
   The message told to do so :
   1. Define the Resource bundle in the
   struts-config.xml file. If you have a
   resource
   bundle by name
   FormErrorResources.properties, then define
 it as
   follows:
   message-resources
   parameter=com.myDomain.FormErrorResources /
  
  
  
   Thanks for any clue.
  
   Barbara
  
  
  
 


 __
   ifrance.com, l'email gratuit le plus complet de
   l'Internet !
   vos emails depuis un navigateur, en POP3, sur
   Minitel, sur le WAP...
   http://www.ifrance.com/_reloc/email.emailif
  
  
  
   --
   To unsubscribe, e-mail:
  
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
 
  __
  Do You Yahoo!?
  Yahoo! - Official partner of 2002 FIFA World Cup
  http://fifaworldcup.yahoo.com
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
  

__
 ifrance.com, l'email gratuit le plus complet de
 l'Internet !
 vos emails depuis un navigateur, en POP3, sur
 Minitel, sur le WAP...
 http://www.ifrance.com/_reloc/email.emailif
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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

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




Re[2]: html:messages

2002-06-14 Thread Rick Reumann

On Friday, June 14, 2002, 9:55:20 AM, wbchmura wrote:

wEBc I was thinking the html:message tag would function alot like the 
wEBc html:errors tag.  Why would it not work the same?

  I'm not sure actually. I'm guessing if I looked at the source of
  the errors tag it would be doing more 'stuff' than it's super
  class the message tag. I just followed the example in the user's
  guide for setting up the messages, so don't know much more than
  that:).


-- 

Rick
mailto:[EMAIL PROTECTED]

The face of a child can say it all, especially the mouth part of the
face. 
  -Jack Handey


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




Re: MessageResources configuration line to struts-config.xml ?

2002-06-14 Thread Barbara Post

ok, this solved my question by telling me to upgrade :-)

Prior to that I passed an init-paramapplication... parameter to my servlet
but the associated ActionForm could not use it then.

Thank you very much :-)

Barbara
- Original Message -
From: James Holmes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 4:09 PM
Subject: Re: MessageResources configuration line to struts-config.xml ?


 Oops, sorry for the confusion.  The
 message-resources tag is new in 1.1 and thus is only
 available in Struts 1.1b.

 Here are links to both the 1.0 and 1.1 DTDS:
 http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd
 http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

 -james
 [EMAIL PROTECTED]
 http://www.jamesholmes.com/struts/


 --- Barbara Post [EMAIL PROTECTED] wrote:
  Hi James, thanks for this, gotta give a try.
 
  Can you point me to the right tag in the DTD ? guess
  that I cannot see it
  because I have printed it out in black :-p
 
  I use Struts 1.0.2, should I move to 1.1b ? Gotta
  see if it's out of beta
  state...
 
  Barbara
  - Original Message -
  From: James Holmes [EMAIL PROTECTED]
  To: Struts Users Mailing List
  [EMAIL PROTECTED]
  Sent: Friday, June 14, 2002 4:02 PM
  Subject: Re: MessageResources configuration line to
  struts-config.xml ?
 
 
   If you use the Struts Console to edit your config
  file
   it will properly place the message-resources tag
  in
   your file to comply with the DTD.
  
   Struts Console:
   http://www.jamesholmes.com/struts/
  
   The thread you mention below explains what value
  to
   set based on what you name your properties file
  and
   what hierarchy it's in.
  
   -james
   [EMAIL PROTECTED]
  
  
   --- Barbara Post [EMAIL PROTECTED] wrote:
I have been reading (really...  lol) this thread
  :
   
  
 
 http://www.mail-archive.com/struts-user@jakarta.apache.org/msg33807.html
but according to struts-config.xml's dtd dunno
  where
to put the tag, and
which tag, to indicate the location (class) of
  my
MessageResources
.properties file !
   
The message told to do so :
1. Define the Resource bundle in the
struts-config.xml file. If you have a
resource
bundle by name
FormErrorResources.properties, then define
  it as
follows:
message-resources
parameter=com.myDomain.FormErrorResources /
   
   
   
Thanks for any clue.
   
Barbara
   
   
   
  
 


  __
ifrance.com, l'email gratuit le plus complet de
l'Internet !
vos emails depuis un navigateur, en POP3, sur
Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
   
   
   
--
To unsubscribe, e-mail:
   
  mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
  
  
   __
   Do You Yahoo!?
   Yahoo! - Official partner of 2002 FIFA World Cup
   http://fifaworldcup.yahoo.com
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 


__
  ifrance.com, l'email gratuit le plus complet de
  l'Internet !
  vos emails depuis un navigateur, en POP3, sur
  Minitel, sur le WAP...
  http://www.ifrance.com/_reloc/email.emailif
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


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

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


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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




ActionServlet.getResources() Method alternative ??

2002-06-14 Thread Soomar, Muki (R.)

Can anyone tell me how I can access the Message Resources from an ActionForm
sub-class, now that the ActionServlet.getResouces() method is deprecated. 

Thanks.

Muki Soomar


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




RE: Preselected option in dropdown

2002-06-14 Thread Yaman Kumar

If your select box property is existing in your Action Form bean
and its value matches with any of its option values , struts would
select that item by default.

ex:
html:select property='myname'
html:options collection=mynames labelProperty=userVisible
property=hiddenfromuser/
/html:select

and if u have method with name getMyname() ( set method also )in your action
form
and if getMyname() returns a value(X) and if collection(mynames) has X in it
then
X would be selected by default, but user could c only labelproperty of X.

If you are looking for dynamic control generation and dynamic selection for
each row
then  struts 1.0.2 do not support.

HTH
yaman

-Original Message-
From: Vijay Kumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, 14 June 2002 7:10 PM
To: [EMAIL PROTECTED]
Subject: Preselected option in dropdown


Hi,
   Is there any way to show preselected option in dropdown. Its like my
search returns arraylist and i need to show show particular value in drop
down.
  Thanks in advance

Cheers
vkvk





_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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


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




RE: Please help clarify or confirm -- HttpSession

2002-06-14 Thread Jerry Jalenak

Craig,

Maybe single sign-on is the wrong term to use.  We are essentially trying to
create a single 'point of entry' into our client website that will
authenticate/authorize a user to those webapps that they are allowed to
access.  Within this desire, I also need to maintain a distinct separation
between my lines of business, even though a user can have access to webapp1
in business 1, webapp1 in business2, etc.  In my authentication procedure, I
build a set of nested beans for the user, something along the lines of

user
 +--- business --- business --- business
 +webapp  +webapp  +webapp
 +webapp  +webapp  +webapp
   ...
   ...

Within each webapp bean is a list of validation codes that permit the user
to access enterprise data.  Each webapp is responsible for extracting this
list of codes (by webapp by business) and then using this list to retrieve
data (typically goes into the WHERE clause on a SELECT statement).  By
creating this set of nested beans one time (at authentication) was to
eliminate the need for each webapp to access our authentication database,
thereby (hopefully) allowing each webapp to focus only on the business
solution.   Finally, by keeping each webapp in a separate directory
structure, I was also hoping to 'self contain' each webapp (i.e. each webapp
can be modified, tested, etc. without concern about potentially changing
other webapps).

Am I just really out in left field here?

Finally, in regards to the JSP/ASP integration, I've found a product called
JIntegra from Intrinsic Systems that provides a bi-directional bridge
between Java classes and ASP .COM objects (through the use of DCOM).  I
think that by using a static class in a common classloader would also
provide the functionality (within the Java class) to talk to my .ASP
webapps.  Has anyone out there used this product before? Any feedback?

Jerry

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:51 PM
To: Struts Users Mailing List
Cc: '[EMAIL PROTECTED]'
Subject: RE: Please help clarify or confirm -- HttpSession




On Thu, 13 Jun 2002, Jerry Jalenak wrote:

 Date: Thu, 13 Jun 2002 13:12:00 -0500
 From: Jerry Jalenak [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED],
  '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: RE: Please help clarify or confirm -- HttpSession

 A couple of reasons

 1. My company has three main lines of business that for various regulatory
 reasons need to be kept separate.  This applies to deliver of content on
the
 web as well.  What I am trying to accomplish is essentially a
single-signon
 capability (within the framework) that the business applications can then
 validate against (successful logon, etc.).


Single sign on is a different kettle of fish ... and it does *not* require
sharing sessions for the server to accomodate it.  Tomcat 4, for example,
supports single sign on -- see the server config documents on the Host
element of server.xml for the details.

All this does for you, though, is avoid the need for a user to log in to
each app -- it does nothing for sharing information between apps.  Your
best bet is to do something like:

* Store the shared info in a database or EJB that is accessible
  to all the relevant webapps.

* Store shared information in a static variable associated with
  a class that is loaded from the shared class loader (so that
  there really is only one instance).

Figuring out how to relate the information from various webapps together
is an exercise left to the user, but you can probably do something with
the fact that request.getRemoteUser() will return the same value in every
webapp.

 2. I am also needing to integrate non-JSP applications (.ASP for instance)
 into the framework.  I know they cannot directly access my JavaBeans, but
 I'm wondering if a .ASP page could access the HttpSession data.


I don't have a clue how you could possibly accomplish this, given that the
ASP pages aren't running inside the same JVM that Tomcat is.

 Jerry


Craig


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


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



--
To unsubscribe, e-mail: 

RE: ActionForm question

2002-06-14 Thread Soomar, Muki (R.)

For posterity -- if anyone else might need this..:

1) Your struts-config.xml should declare the value true for the validate
attribute in the action element if you
want your controller servlet to call the validate method of your
ActionForm sub class:
  
Example:
 -
action-mappings
!--User Registration--
action path=/registration 
type=com.SomDomain.RegistrationFormAction 
scope=request 
name=RegistrationForm 
validate=true
-- should set it to true
input=/registration.jsp
-- defines where the input is coming from
this is
where the ActionServlet (or its subclass)
forwards the
errors object mentioned in step 2.
forward name=Success path=/successView.jsp /
forward name=Failure path=/failureView.jsp /
   /action
/action-mappings

2) The ActionForm sub class over rides the validate method to perform
validation checks on the user entered
values on the form. Here we populate the ActionErrors object if we
encounter any validation errors.

 Example:
-

  public class RegistrationForm extends ActionForm {
   // Instance variables - corresponding to Form properties
---
---
// Getter  Setter Methods - corresponding to Form properties
---
---
// Validate method
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest req) {
ActionErrors errors = new ActionErrors();   / / Create a
new ActionErrors object to store any
// ActionError
objects.

servlet.log(RegistrationForm: Validating the user input);

// Check if the Name is not null or zero length
if ((name == null) || (name .length()  1))
errors.add(name , new
ActionError(error.SupplierRegistration.name.required));

---
---
etc. 

return errors;
} // validate method end

 } // class end

Finally,

3. The Controller servlet will check if the ActionErrors (errors in our
case)  object is either empty or if there was simply an ActionError
defined which was null or not. 
If it was null then the ActionForm object is passed to the Action
objects  execute method to process the form data further.
If it was not null, then the ActionServlet (Controller servlet) will
return control to the original view. You can use
the errorTag to display the errors that the errors object was
populated with. 

e.g . html:errors/

Muki Soomar


--


-Original Message-
From: Soomar, Muki (R.) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 12:10 PM
To: Struts-User (E-mail)
Subject: ActionForm question



Where do we define where the view gets forwarded to by the ActionServlet
when we encounter 
validation errors from an ActionForm in the struts-config.xml file?  Or do
we not need to do that at all
and the original view gets selected and uses the html:errors/ tag which
displays the
errors in the ActionErrors object ? Anybody .. any help .. ?

Muki Soomar


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

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




Re: ActionServlet.getResources() Method alternative ??

2002-06-14 Thread Barbara Post

just pass to it the request parameter, i.e :

MessageResources getResources()
  Deprecated. Actions should call
Action.getResources(HttpServletRequest) instead of this method, in order to
retrieve the resources for the current sub-application


- Original Message -
From: Soomar, Muki (R.) [EMAIL PROTECTED]
To: Struts-User (E-mail) [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 4:26 PM
Subject: ActionServlet.getResources() Method alternative ??


 Can anyone tell me how I can access the Message Resources from an
ActionForm
 sub-class, now that the ActionServlet.getResouces() method is deprecated.

 Thanks.

 Muki Soomar


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


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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




Re: struts validation and multiple message resources files

2002-06-14 Thread William W


Is there a solution for this problem ?
Thanks,
William.

From: Alok Ghosh [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: struts validation and multiple message resources files
Date: Tue, 11 Jun 2002 13:24:04 -0400

Hi,
I am running the new struts validation that uses the validation.xml
file.
In my validation.xml file i have all the forms in there and the
validation for every type of textbox of the different forms.

My problem is the caption name of each text box are already in sepearte
Application.properties files.
But validation.xml seems to only look at the default
Application.properties file, (the one without a key=xxx specified in
the struts-config.xml file.

Is there any way i can use bundle=xxx to make validation.xml goto
different Application.properties files to find the msg caption of the
text box?


Alok,
(who one day dreams of seeing the text First Name is Required in an
alert box, rather than {space} is Requried)





_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: ActionServlet.getResources() Method alternative ??

2002-06-14 Thread Barbara Post

ah thanks, this helps me too, since I was looking for it, in fact...
:-/
- Original Message -
From: emmanuel.boudrant [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 4:46 PM
Subject: Re: ActionServlet.getResources() Method alternative ??



 I use
 getServlet().getServletContext().getAttribute(Action.MESSAGE_KEY);
  -Emmanuel
   Soomar, Muki (R.) [EMAIL PROTECTED] a écrit : Can anyone tell me how
I can access the Message Resources from an ActionForm
 sub-class, now that the ActionServlet.getResouces() method is deprecated.

 Thanks.

 Muki Soomar


 --
 To unsubscribe, e-mail:
 For additional commands, e-mail:



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


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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




Re: Validator and DispatchAction

2002-06-14 Thread William W


My solution :

I did a class MyValidator with two methods (verifyMethod and 
validateRequired)

---
private static boolean verifyMethod(
Object bean,
ValidatorAction va,
Field field,
ActionErrors errors,
HttpServletRequest request) {

String methodRequest = request.getParameter(method);
String methodsToValidate = field.getVarValue(method);

boolean validate = false;

if ((methodsToValidate != null)  (methodsToValidate.length()  0)) {
if (methodRequest != null) {
if (methodsToValidate != null) {
StringTokenizer st = new StringTokenizer(methodsToValidate, 
,);
String method =  ;
while (st.hasMoreElements()) {
method = (String) st.nextToken();
if (method.equals(methodRequest)) {
validate = true;
break;
}
}
}

}
}

return validate;
}

public static boolean validateRequired(
Object bean,
ValidatorAction va,
Field field,
ActionErrors errors,
HttpServletRequest request) {

  if (verifyMethod(bean,va,field,errors,request))
  return StrutsValidator.validateRequired(bean,va,field,errors,request);
  else
   return false;
}
--
In the file validaion-rules.xml I changed the validator required like this:
validator name=required
 classname=MyValidator
 method=validateRequired
 ...
/validator

Now , I can configure in the validator.xml the methods that I want to 
validate. For example :

 form name=logonForm
 fieldproperty=userId
   depends=required
 arg0 key=logonForm.email.displayname/
   var
  var-namemethod/var-name
  var-valueupdate,delete/var-value
/var
 /field
  /form
David, What do you think about this solution ?

Thanks,
William.


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: Error messages: other colo of input field label

2002-06-14 Thread Mark Nichols


- Original Message -
From: hans albers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 2:09 AM
Subject: Error messages: other colo of input field label


 Hi there,

 the error message at the top of the page about the fields
 which are wrong is nice, but

 is it possible to change the label color of the input fields
 where the user made a wrong input, i've seen this on many
 pages in the internet, can i do this with struts?


Cool idea. Hmm. You'd have to write your own custom tag to display the
labels on the form. This tag should be *aware* of the ActionErrors stack.
When you put a new, field-specific, error on the stack use the properties
attribute so the error is tied to that specific field. The error-aware label
tag would examine the stack for any errors matching the current label (via
the properties attribute) and if one was found it could alter the font color
of the label.

Works in my head, but I haven't a clue what it would take in the real world
to implement. If you do get something like this to work, I'd love to see it.

/mark

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




RE: Preselected option in dropdown

2002-06-14 Thread Trieu, Danny

use read on the the html:select property=??? / tag

 -Original Message-
 From: Vijay Kumar [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 6:40 AM
 To:   [EMAIL PROTECTED]
 Subject:  Preselected option in dropdown
 
 Hi,
Is there any way to show preselected option in dropdown. Its like my 
 search returns arraylist and i need to show show particular value in drop 
 down.
   Thanks in advance
 
 Cheers
 vkvk
 
 
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail. 
 http://www.hotmail.com
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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




RE: ActionServlet.getResources() Method alternative ??

2002-06-14 Thread Soomar, Muki (R.)


I am trying to check if I have access to the Message Resources in my ActionForm 
subclass before I 
use the error messages that are available in the Message resource bundle.

So earlier I was using:
MessageResources errorMessages = servlet.getResources();   
to get the resource object.
   
Then I check if this object is not null and also try to retrieve a message for a 
key.. e.g
servlet.log ( errorMessages.getMessage(form.name.required);

   This will log into my log file and confirm that, yes indeed I have access to all my 
message resources.

However, now the above method on the ActionServlet is deprecated. The ActionSevlet 
object was
   availble to me inside the ActionForm object.

 My dilemma is what other methods are available to me now to retrieve the 
MessageResources object

 Barbara wrote:
MessageResources getResources()
Deprecated. Actions should call
Action.getResources(HttpServletRequest) instead of this method, in 
order to
retrieve the resources for the current sub-application


The above is only applicable from my Action subclass not my ActionForm subclass.
I was just trying to ensure that I would have access to my MessageResources before
I use it in my ActionForm subclass...

Any more suggestions how I could do this.. ???

Thanks.

Muki Soomar


-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 10:45 AM
To: Struts Users Mailing List
Subject: Re: ActionServlet.getResources() Method alternative ??


just pass to it the request parameter, i.e :

MessageResources getResources()
  Deprecated. Actions should call
Action.getResources(HttpServletRequest) instead of this method, in order to
retrieve the resources for the current sub-application


- Original Message -
From: Soomar, Muki (R.) [EMAIL PROTECTED]
To: Struts-User (E-mail) [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 4:26 PM
Subject: ActionServlet.getResources() Method alternative ??


 Can anyone tell me how I can access the Message Resources from an
ActionForm
 sub-class, now that the ActionServlet.getResouces() method is deprecated.

 Thanks.

 Muki Soomar


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


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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

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




Re: User Authentication

2002-06-14 Thread @Basebeans.com

Subject: Re: User Authentication
From: David Bolsover [EMAIL PROTECTED]
 ===
Craig

Thanks for the lead - I shall certainly follow up - although I have now
solved the problem for my present project

regards

David Bolsover

Craig R. McClanahan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...


 On Wed, 12 Jun 2002, Struts Newsgroup wrote:

  Date: Wed, 12 Jun 2002 05:10:01 -0700
  From: Struts Newsgroup [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: User Authentication
 
  Subject: Re: User Authentication
  From: David Bolsover [EMAIL PROTECTED]
   ===
  Hi all
 
  I am pleased that my posting provoked so may interesting responses; I
was
  particularly intrigued by the reference to Open Symphony - OSUser
module -
  thanks to Kevin Palfreyman for that.  Sadly, since Open Symphony -
OSUser
  module  is still under developement, it does not solve my present need.
 
  There were several references to the 'roles' model - which I already use
in
  the application I'm developing; indeed, it would be difficult without
using
  roles.  I do not want to have to define new roles for each new user and
his
  particular access privileges - it is just too difficult to manage.
 

 For a container-specific implementation of user management (and full
 support for container managed security), check out the administration tool
 in the recent Tomcat 4.1.3 beta release.  It lets you create new users,
 roles, and groups (members of a group inherit all the roles assigned to
 the group), which become immediately available for new logins.  Out of the
 box, it manages the tomcat-users.xml file that is Tomcat's default user
 database, but it's accessed via a DAO interface that can be implemented in
 other ways (against a database, against a directory server, etc.) as well.

 And the admin app is Struts based ... ;-)

 Even if you can't use this directly for your application, the
 implementation (since it is open source) might give you some ideas for how
 to approach your own user management.

  I will follow up on the  OSUser module  link and post back to the group
when
  I have more information.
 
  David Bolsover
 

 Craig


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




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




RE: ActionServlet.getResources() Method alternative ??

2002-06-14 Thread Soomar, Muki (R.)

Barb,
I should have pointed out.. I had tried that already and got the same result :) ..
But what Emanuel was suggesting would work if evey message in the
Message Resources would be stored at the context level. Then we would
be able to retrieve it as follows:
String message = 
(String)servlet.getSevletContext().getAttribute(message_key);
but I dont think that is true.

I am still researching it.. so would let you know as well. 

Thanks.



Muki Soomar
Solutions Architect
Consumer Facing Practice
Global Consumer Systems
4S-110, Regent Court
Phone: (313) 20-64687
Ford Motor Co.


-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 11:34 AM
To: Struts Users Mailing List
Subject: Re: ActionServlet.getResources() Method alternative ??


Hello Muki, I am right now struggling with it.

If I do as the other guy proposed, I get a NullPointer...
He told : (MessageResources)
this.getServlet().getServletContext().getAttribute(Action.MESSAGE_KEY);

Will tell you whether I find the solution first ;-)
I have few hours left to find it, anyway...

- Original Message -
From: Soomar, Muki (R.) [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 5:30 PM
Subject: RE: ActionServlet.getResources() Method alternative ??



 I am trying to check if I have access to the Message Resources in my
ActionForm subclass before I
 use the error messages that are available in the Message resource
bundle.

 So earlier I was using:
 MessageResources errorMessages = servlet.getResources();
 to get the resource object.

 Then I check if this object is not null and also try to retrieve a
message for a key.. e.g
 servlet.log ( errorMessages.getMessage(form.name.required);

This will log into my log file and confirm that, yes indeed I have
access to all my message resources.

 However, now the above method on the ActionServlet is deprecated. The
ActionSevlet object was
availble to me inside the ActionForm object.

  My dilemma is what other methods are available to me now to retrieve
the MessageResources object

  Barbara wrote:
 MessageResources getResources()
   Deprecated. Actions should call
 Action.getResources(HttpServletRequest) instead of this method, in order
to
 retrieve the resources for the current sub-application
 

 The above is only applicable from my Action subclass not my ActionForm
subclass.
 I was just trying to ensure that I would have access to my
MessageResources before
 I use it in my ActionForm subclass...

 Any more suggestions how I could do this.. ???

 Thanks.

 Muki Soomar


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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

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




Re: ActionServlet.getResources() Method alternative ??

2002-06-14 Thread Barbara Post

Well, I think ApplicationConfig is the direction to look to...


- Original Message - 

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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




Re: Starter Action?

2002-06-14 Thread Craig R. McClanahan



On Thu, 13 Jun 2002, Struts Newsgroup wrote:

 Date: Thu, 13 Jun 2002 23:10:02 -0700
 From: Struts Newsgroup [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Starter Action?

 Subject: Starter Action?
 From: Christopher Cheng [EMAIL PROTECTED]
  ===
 Is it possbile to define one of the actions to be executed during startup
 instead of defining a new servlet in web.xml?


In Struts 1.1, you can define and register a PlugIn that is notified when
the Struts controller servlet is started and stopped.  The init() method
can do whatever setup things you need.

In Struts 1.0, you can accomplish the same thing by subclassing
org.apache.struts.action.ActionServlet and overriding the init() method --
something like this:

  public void init() throws ServletException {
super.init();
... do my own setup ...
  }

and using this class as the action servlet in web.xml.

Craig


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




Re: ActionServlet.getResources() Method alternative ??

2002-06-14 Thread Barbara Post

Have almost found the answer but am stuck on a newbie problem because
MessageResourcesFactory is an abstract class.

In my ActionForm :

   ApplicationConfig applicationConf = new
ApplicationConfig(,this.getServlet());
String msgResourcesParameter =
applicationConf.findMessageResourcesConfig(mypackage.ApplicationResources)
.getParameter();

Now I have to call :
createResources(msgResourcesParameter)

This method of MessageResourcesFactory returns a MessageResources.

Well, soon we will have the answer. Can anyone help ? What a shame LOL.

Barbara



 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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




RE: Please help clarify or confirm -- HttpSession

2002-06-14 Thread Joseph Barefoot

Valid points all.  Didn't consider that aspect of URL rewriting.  However,
you could prefix the sessionID with the webapp context path string and still
have them be unique in your static utility class.  Not a problem.

b.t.w., I wasn't suggesting that you store HTTPSession objects this way per
se, it would create ClassNotFoundExceptions just as you say.  In a later
email in this thread (look and see), I stated that you could ONLY store
objects created from classes loaded by the shared classloader as well.  Both
webapps would have access to these class definitions to create shared data
objects and store them in the shared static utility class.  So, in a single
app. server environment, I still don't see why this wouldn't work for a
short-term solution.

Personally, however, I wouldn't do it this way, I would use an existing
database if all apps. 'talk' to a common one already, and if not, fire up an
out-of-the-box JBoss bundle somewhere where every app. could 'talk' to it
and use CMP to get a rapid solution out there for storing data in the
HypersonicSQL database that comes with JBoss (at least, it did, I'm assuming
that's still the one they're using).  You can always replace the CMP later.
I think someone who knows EJB could build this almost as fast as the wacko
solution I've been promulgating for the past two days. :)


peace,
Joe Barefoot

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 13, 2002 6:22 PM
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: RE: Please help clarify or confirm -- HttpSession




 On Thu, 13 Jun 2002, Joseph Barefoot wrote:

  Date: Thu, 13 Jun 2002 11:09:43 -0700
  From: Joseph Barefoot [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: RE: Please help clarify or confirm -- HttpSession
 
  hmmm...but the sessionIDs have to be unique, even across web
 apps., correct?

 Actually, session ids do *not* have to be unique across the entire server.
 Tomcat, for example, sets the path attribute of the session id cookie to
 match the context path of the webapp, so the browser only sends the right
 cookie back to the right webapp.  If two session ids for different webapps
 happen to be the same (possible ... it's based on a random number
 generator), there is still no problem.

  If there weren't unique, URL rewriting would not work correctly
 if two users
  using two webapps on the same app. server happened to get the
 same session
  ID.

 Still not a problem ... because URL rewriting only rewrites hyperlinks
 that point back into the same webapp.  So, you are still insulated from
 any grief caused by duplicate session ids in different webapps.

   Therefore, one *should* be able to store objects from webapp A in a
  shared classloader class keyed by the sessionID and retrieve them from
  webapp B.

 That is, unfortunately for this use case, not a valid conclusion.

 * The servlet spec states that the set of sessions for each
   webapp is distinct from the set for any other webapp.

 * Even if they *were* shared, you would have serious problems.
   Consider the case where you create a bean of some class that
   is loaded from /WEB-INF/classes or /WEB-INF/lib, and stick it
   in your session.  Even if a servlet in another app could get
   a reference to this HttpSession instance, it would get a
   ClassNotFoundException trying to do anything with the returned
   attribute, because it's implementation class is not visible
   in the calling webapp's class loader.

 * If the container allows it, there is a way to do cross context
   request dispatcher calls via ServletContext.getContext() -- but
   that doesn't help you much.  You cannot ask for a session by id,
   so the best you could do would be start a second session in the
   other app.

  Am I missing something here? (besides why the hell you would want to do
  this)
  :)
 

 Good question :-)

 
  joe
 

 Craig


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


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




RE: File Upload/Download Issues

2002-06-14 Thread Sandra Cann

 PS: Anybody have examples that have file uploads/downloads?

Uploads

There's some sample code for file upload that was contributed at:

http://www.jcorporate.com/product/expresso.html  Documents link  scroll
down to Community Contributed Documents and click the Code for Browsing
to File to Upload link.

Alternatively go direct to:
http://www.jcorporate.com/econtent/Content.do?state=resourceresource=780

Downloads
---
There is also the code to download files within the open source Expresso
project. You can see a demo of it onsite:
http://www.jcorporate.com/product/expresso.html  Demo link  Security link
then scroll down to download files and download definitions.

We use this feature on the jcorporate site to define and make downloads
available to our user community. In some cases we want to restrict downloads
to certain user groups and this allows us to do that as well. It also
enables us to track the number of downloads so that the community can gauge
a project.

Sandra



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




Re: Need Urgent help

2002-06-14 Thread Richard Yee

Rayaku,
What do you expect the tag to do if the method returns a null value? The 
logic tag documentation specifically states that the property cannot be 
null. Why don't you change the bean so it doesn't return a null result?

Regards,

Richard

At 08:10 PM 6/25/2002 +0530, you wrote:
Hi,
I have a problem in using logic:equal tag given below
logic:equal name=beaninstance property=method value=A 
  DO SOME.
/logic:equal
This code is working fine when it is not null. But when ever it {
beaninstance.getMethod() }
is becoming null, page is getting exception as below...

javax.servlet.jsp.JspException: Cannot compare null variable to value A
 at 
 org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193)
 at 
 org.apache.jsp.HNCTemplate$jsp._jspService(HNCTemplate$jsp.java:317)
 at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
 at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)

Can any one help me out in this, I tried to break this in logic:equal source
file..

TIA
rayaku


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



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




RE: JSP's under WEB-INF?

2002-06-14 Thread Yaman Kumar

logic:forward name=next /

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 June 2002 5:01 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: JSP's under WEB-INF?


In looking at the Struts doc, is there any reason why the following wouldn't
work just as well?

in the JSP

html:link forward=next

in struts-config

global-forwards
forward name=next path=/next.jsp /
/global-forwards

I've tried it this was, and when I look at the generted HTML, the link looks
OK - but I still get the 404 error. Any idea why?

Jerry

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 6:30 PM
To: Struts Users Mailing List
Subject: RE: JSP's under WEB-INF?


That's because you are not following the recommendation 100%

You should always go through an action.
even if next.jsp is a simple form..use /next.do instead

that way you can put this in your struts-config:
!-- go to next --
actionpath=/next
forward=/WEB-INF/jsp/next.jsp
/action



James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://struts-atlanta.open-tools.org
ICQ: 27651409
AOLIM: jmitchtx (and NO I don't use AOL;)


 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 06, 2002 7:23 PM
 To: '[EMAIL PROTECTED]'
 Subject: JSP's under WEB-INF?


 Hi All,

 I'm trying to following some of the 'best practices' that I've
 seen on this
 mailing list, in particular the recommendation to put JSP's in a directory
 under WEB-INF.  I've got a test application where the INDEX.JSP is outside
 of WEB-INF, but all of my other JSP's are in a directory called
 'test' that
 is under WEB-INF.  When I try to link to one of these pages (using
 html:link href=next.jsp, for example),  I get '404' errors saying the
 page cannot be found.  I know it's there, 'cause I can see it.
 How do I do
 this? Is there something in Tomcat that I am totally missing?

 Thanks!

 Jerry
 [EMAIL PROTECTED]

 This transmission (and any information attached to it) may be
 confidential and is intended solely for the use of the individual
 or entity to which it is addressed. If you are not the intended
 recipient or the person responsible for delivering the
 transmission to the intended recipient, be advised that you have
 received this transmission in error and that any use,
 dissemination, forwarding, printing, or copying of this
 information is strictly prohibited. If you have received this
 transmission in error, please immediately notify LabOne at (800)388-4675.



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



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


This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.



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


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




Re: Starter Action? Where to find Plugin Documentation?

2002-06-14 Thread Jeremy Prellwitz

Can someone give me a hint where to find documentation on 
this topic? (i.e. Plugins, how they are configured, and how 
you attach them to events.)

Thanks.


 Original message 
Date: Fri, 14 Jun 2002 08:57:50 -0700 (PDT)
From: Craig R. McClanahan [EMAIL PROTECTED]  
Subject: Re: Starter Action?  
To: Struts Users Mailing List struts-
[EMAIL PROTECTED]



On Thu, 13 Jun 2002, Struts Newsgroup wrote:

 Date: Thu, 13 Jun 2002 23:10:02 -0700
 From: Struts Newsgroup [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List struts-
[EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Starter Action?

 Subject: Starter Action?
 From: Christopher Cheng [EMAIL PROTECTED]
  ===
 Is it possbile to define one of the actions to be executed 
during startup
 instead of defining a new servlet in web.xml?


In Struts 1.1, you can define and register a PlugIn that is 
notified when
the Struts controller servlet is started and stopped.  The 
init() method
can do whatever setup things you need.

In Struts 1.0, you can accomplish the same thing by 
subclassing
org.apache.struts.action.ActionServlet and overriding the 
init() method --
something like this:

  public void init() throws ServletException {
super.init();
... do my own setup ...
  }

and using this class as the action servlet in web.xml.

Craig


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



===
 Experience is something you don't
 get until just after you need it.
===

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




Re: Need Urgent help

2002-06-14 Thread Roy Truelove

Why don't you change the bean so it doesn't return a null result?

You can also wrap the whole thing in a logic:notEmpty tag, so that the equal
tag will not be evaulated if your property is null.


 Regards,

 Richard

 At 08:10 PM 6/25/2002 +0530, you wrote:
 Hi,
 I have a problem in using logic:equal tag given below
 logic:equal name=beaninstance property=method value=A 
   DO SOME.
 /logic:equal
 This code is working fine when it is not null. But when ever it {
 beaninstance.getMethod() }
 is becoming null, page is getting exception as below...
 
 javax.servlet.jsp.JspException: Cannot compare null variable to value A
  at
  org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193)
  at
  org.apache.jsp.HNCTemplate$jsp._jspService(HNCTemplate$jsp.java:317)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
a
 va:202)
  at
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 
 Can any one help me out in this, I tried to break this in logic:equal
source
 file..
 
 TIA
 rayaku
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



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


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




Servlet Reload problem

2002-06-14 Thread Juan Alvarado \(Struts List\)

Folks I know this isn't exactly a struts question 100%, but since I am using
struts with my application I think the question is somewhat relevant to this
list. I looked through both archives (Struts/Tomcat) and I didn't find an
answer to my question.

I am using tomcat 4.03 and I would like to NOT have to restart tomcat every
time I make a change to a servlet. I find myself having to restart every
time I put a modified servlet in WEB-INF/classes and it is very annoying.
Can anyone tell me what is the exact setting needed in tomcat to make this
happen.

Thanks in advance

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


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




Re: Starter Action? Where to find Plugin Documentation?

2002-06-14 Thread James Holmes

There doesn't appear to be any official documentation
of this other than the config file DTD and the source
code.

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

You can use the Struts Console to easily
add/modify/delete elements from the config file.

Struts Console:
http://www.jamesholmes.com/struts/

-james
[EMAIL PROTECTED]


--- Jeremy Prellwitz [EMAIL PROTECTED] wrote:
 Can someone give me a hint where to find
 documentation on 
 this topic? (i.e. Plugins, how they are configured,
 and how 
 you attach them to events.)
 
 Thanks.
 
 
  Original message 
 Date: Fri, 14 Jun 2002 08:57:50 -0700 (PDT)
 From: Craig R. McClanahan [EMAIL PROTECTED]  
 Subject: Re: Starter Action?  
 To: Struts Users Mailing List struts-
 [EMAIL PROTECTED]
 
 
 
 On Thu, 13 Jun 2002, Struts Newsgroup wrote:
 
  Date: Thu, 13 Jun 2002 23:10:02 -0700
  From: Struts Newsgroup [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List struts-
 [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Starter Action?
 
  Subject: Starter Action?
  From: Christopher Cheng
 [EMAIL PROTECTED]
   ===
  Is it possbile to define one of the actions to be
 executed 
 during startup
  instead of defining a new servlet in web.xml?
 
 
 In Struts 1.1, you can define and register a PlugIn
 that is 
 notified when
 the Struts controller servlet is started and
 stopped.  The 
 init() method
 can do whatever setup things you need.
 
 In Struts 1.0, you can accomplish the same thing by
 
 subclassing
 org.apache.struts.action.ActionServlet and
 overriding the 
 init() method --
 something like this:
 
   public void init() throws ServletException {
 super.init();
 ... do my own setup ...
   }
 
 and using this class as the action servlet in
 web.xml.
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:struts-user-
 [EMAIL PROTECTED]
 
 
 
 ===
  Experience is something you don't
  get until just after you need it.
 ===
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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

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




ApplicationConfig problem

2002-06-14 Thread Barbara Post

I want to use a .properties files in my ActionForm to retrieve localized
messages when populating ActionError().

I get a NullPointerException here :

ActionServlet myAS = this.getServlet();
try{
ApplicationConfig applicationConf = new ApplicationConfig(,myAS);
String msgResourcesParameter =
applicationConf.findMessageResourcesConfig(baepp.ApplicationResources).get
Parameter();
System.out.println(msgResourcesParameter);
  //  MessageResourcesFactory mf;
   // mf = MessageResourcesFactory.createFactory();
//msgResources = mf.createResources(msgResourcesParameter);
 //
System.out.println(msgResources.getMessage(user.company.missing));

Struts-config.xml :

  message-resources
parameter=baepp.ApplicationResources/

indeed I have WEB-INF/Classes/baepp/ApplicationResources.properties

Using Struts 1.1b1 (release) and JDK 1.4.0. Tomcat 4.0.3 and 4.1.3 beta.

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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




RE: Error messages: other colo of input field label

2002-06-14 Thread James Mitchell

another idea.

have the errors listed into a javascript var[] and loop thru and change the
style class to a known .name

that way you can change at runtime (from your .css) the color of the
affending text/radio(s)/checkbox(s)/whatever

-- just and idea --

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

 -Original Message-
 From: Mark Nichols [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 11:13 AM
 To: Struts Users Mailing List
 Subject: Re: Error messages: other colo of input field label



 - Original Message -
 From: hans albers [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 14, 2002 2:09 AM
 Subject: Error messages: other colo of input field label


  Hi there,
 
  the error message at the top of the page about the fields
  which are wrong is nice, but
 
  is it possible to change the label color of the input fields
  where the user made a wrong input, i've seen this on many
  pages in the internet, can i do this with struts?
 

 Cool idea. Hmm. You'd have to write your own custom tag to display the
 labels on the form. This tag should be *aware* of the ActionErrors stack.
 When you put a new, field-specific, error on the stack use the properties
 attribute so the error is tied to that specific field. The
 error-aware label
 tag would examine the stack for any errors matching the current label (via
 the properties attribute) and if one was found it could alter the
 font color
 of the label.

 Works in my head, but I haven't a clue what it would take in the
 real world
 to implement. If you do get something like this to work, I'd love
 to see it.

 /mark

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



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




Re: Starter Action? Where to find Plugin Documentation?

2002-06-14 Thread Craig R. McClanahan



On Fri, 14 Jun 2002, Jeremy Prellwitz wrote:

 Date: Fri, 14 Jun 2002 08:37:06 -0800
 From: Jeremy Prellwitz [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Starter Action?  Where to find Plugin Documentation?

 Can someone give me a hint where to find documentation on
 this topic? (i.e. Plugins, how they are configured, and how
 you attach them to events.)


Right now it's just documented in the javadocs and the DTD -- but it's
really simple.  When the controller servlet is first stated, it will
instantiate all the plugins you have defined and call the init() method of
each one.  Likewise, when the controller shuts down, it will call the
destroy() method of each previously instantiated plugin.  Essentially,
your plugin has exactly the same lifecycle characteristics as the
controller servlet itself.

The struts-config.xml file for the struts-example application in 1.1 has a
plugin for the user database object.  You can take a look at this to see
how plugins are configured.

One detail I glossed over, though -- you cannot actually call an Action in
your plugin's initialization, because that requires having a request and
response available.  However, you can do whatever initialization that you
would have done in that action, by pulling that logic out into separate
classes.

 Thanks.


Craig



  Original message 
 Date: Fri, 14 Jun 2002 08:57:50 -0700 (PDT)
 From: Craig R. McClanahan [EMAIL PROTECTED]
 Subject: Re: Starter Action?
 To: Struts Users Mailing List struts-
 [EMAIL PROTECTED]
 
 
 
 On Thu, 13 Jun 2002, Struts Newsgroup wrote:
 
  Date: Thu, 13 Jun 2002 23:10:02 -0700
  From: Struts Newsgroup [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List struts-
 [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Starter Action?
 
  Subject: Starter Action?
  From: Christopher Cheng [EMAIL PROTECTED]
   ===
  Is it possbile to define one of the actions to be executed
 during startup
  instead of defining a new servlet in web.xml?
 
 
 In Struts 1.1, you can define and register a PlugIn that is
 notified when
 the Struts controller servlet is started and stopped.  The
 init() method
 can do whatever setup things you need.
 
 In Struts 1.0, you can accomplish the same thing by
 subclassing
 org.apache.struts.action.ActionServlet and overriding the
 init() method --
 something like this:
 
   public void init() throws ServletException {
 super.init();
 ... do my own setup ...
   }
 
 and using this class as the action servlet in web.xml.
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:struts-user-
 [EMAIL PROTECTED]
 


 ===
  Experience is something you don't
  get until just after you need it.
 ===

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





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




RE: pager taglib !!

2002-06-14 Thread Thomas, Gigen

I too have been using it very efficiently.

-Original Message-
From: Mark Nichols [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 5:10 AM
To: Struts Users Mailing List
Subject: Re: pager taglib !!



- Original Message -
From: [EMAIL PROTECTED]



 anyone using pager tag library from JSPTags.com , i have a few doubts
 regarding the same, could some help me out


I have used, and continue to use the JSPTags pager tag to great success.
What are your concerns?

/mark

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




Urgent-using global-forwards in custom tag classes

2002-06-14 Thread Yaman Kumar

Hi,
I have a requirement to get a forward class in a Custom tag class which is
in
struts-config.xml.

I'm writing a user's session checking tag which needs to forward to a
login.jsp page
that is available in struts-config.xml

global-forwards
forward name=sessionexpired path=/InvalidSession.jsp/
/global-forwards

In my custom tag i would like to get the value of sessionexpired.
I'm following struts-example webapp to break this and looking
logic:forward tag
to extend it

TIA
rayaku




-Original Message-
From: William W [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 13 June 2002 8:32 PM
To: [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction



Is it possible ?
Use boolean in the depends property ?

field property=password
   depends=method OR required
  arg0 key=typeForm.password.displayname/
  var
 var-namemethodName/var-name
 var-valueupdate/var-value
  /var
/field


From: William W [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Date: Thu, 13 Jun 2002 14:46:09 +


I think that if I use DispatchAction with ValidatorActionForm I will have
the same problem. How can I validate the form for diferents methods in the
same Action ? Am I wrong ?
Thanks,
William.


From: David Winterfeldt [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED],  Rick
Reumann [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Date: Wed, 12 Jun 2002 14:42:51 -0700 (PDT)

You would currently have to write your own required
validation method and have it check a variable defined
by a field to see if it should perform the validation
or not.  Or define a separate set of validation rules
for each action and use ValidatorActionForm (which
uses the action path to retrieve the validation
rules).

David

--- Rick Reumann [EMAIL PROTECTED] wrote:
  On Wednesday, June 12, 2002, 10:14:09 AM, William
  wrote:
 
  WW I have a UserForm, the fields are : userId and
  userName.
  WW I have a UserAction that extends DispatchAction.
  The UserAction have  two
  WW methods (insert and update). For the insert
  method only the userName is
  WW required, and for update method the userId and
  the userName are required.
  WW How can I can do a dependency validation with
  the validator.xml ?
 
  I'm curious about this as well. There was a post
  a few days back
  dealing with the same issue. I think you are
  able to nest
  validation rules for a form but I forgot the
  exact syntax. Maybe
  someone else could shed some light again on how
  to do this.
 
 
  --
 
  Rick
  mailto:[EMAIL PROTECTED]
 
  If you go to a party, and you want to be the
  popular one at the
  party, do this: Wait until no one is looking, then
  kick a burning log
  out of the fireplace onto the carpet. Then jump on
  top of it with your
  body and yell, Log o' fire! Log o' fire! I've
  never done this, but I
  think it'd work.
-Jack Handey
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


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




_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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


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




Re: Validator and DispatchAction

2002-06-14 Thread David Winterfeldt

I think that is good.  This along the lines of what I
was thinking.

David

--- William W [EMAIL PROTECTED] wrote:
 
 My solution :
 
 I did a class MyValidator with two methods
 (verifyMethod and 
 validateRequired)
 
 ---
 private static boolean verifyMethod(
 Object bean,
 ValidatorAction va,
 Field field,
 ActionErrors errors,
 HttpServletRequest request) {
 
 String methodRequest =
 request.getParameter(method);
 String methodsToValidate =
 field.getVarValue(method);
 
 boolean validate = false;
 
 if ((methodsToValidate != null) 
 (methodsToValidate.length()  0)) {
 if (methodRequest != null) {
 if (methodsToValidate != null) {
 StringTokenizer st = new
 StringTokenizer(methodsToValidate, 
 ,);
 String method =  ;
 while (st.hasMoreElements()) {
 method = (String)
 st.nextToken();
 if
 (method.equals(methodRequest)) {
 validate = true;
 break;
 }
 }
 }
 
 }
 }
 
 return validate;
 }
 
 public static boolean validateRequired(
 Object bean,
 ValidatorAction va,
 Field field,
 ActionErrors errors,
 HttpServletRequest request) {
 
   if (verifyMethod(bean,va,field,errors,request))
   return

StrutsValidator.validateRequired(bean,va,field,errors,request);
   else
return false;
 }
 --
 In the file validaion-rules.xml I changed the
 validator required like this:
 validator name=required
  classname=MyValidator
  method=validateRequired
  ...
 /validator
 
 Now , I can configure in the validator.xml the
 methods that I want to 
 validate. For example :
 
  form name=logonForm
  fieldproperty=userId
  depends=required
arg0
 key=logonForm.email.displayname/
  var
   var-namemethod/var-name
  
 var-valueupdate,delete/var-value
 /var
  /field
   /form
 David, What do you think about this solution ?
 
 Thanks,
 William.
 
 

_
 MSN Photos is the easiest way to share and print
 your photos: 
 http://photos.msn.com/support/worldwide.aspx
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Extending logic:forward tag

2002-06-14 Thread Yaman Kumar

Hi,
I have a problem in extending logic:forward tag, Actually
I am developing a tag to check the user login status and can forward the
user
to my require page that is available in forward from global-forwards in
struts-config.xml.
After checking the struts-example web application login.jsp is literally
written checkLogon
tag, so I tried to read forward information dynamically from
struts-config.xml through ActionForwards, this job is already done in
login:forward tag, so I tried to extend logic:forward class, but I'm not
able to make use of it, so I just copied the code from logic:forward to my
tag
class(working fine). What all to be considered while extending struts taglib
classes..

TIA
rayaku




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




Re: Starter Action? Where to find Plugin Documentation?

2002-06-14 Thread Chuck Cavaness

I know it doesn't help you now, but Chapter 9 of my book will cover plugins 
and show how to use them. Chapter 9 is finished and will be published very 
shortly at http://www.theserverside.com/resources/strutsreview.jsp.

Chuck

At 08:37 AM 6/14/2002 -0800, you wrote:
Can someone give me a hint where to find documentation on
this topic? (i.e. Plugins, how they are configured, and how
you attach them to events.)

Thanks.


 Original message 
 Date: Fri, 14 Jun 2002 08:57:50 -0700 (PDT)
 From: Craig R. McClanahan [EMAIL PROTECTED]
 Subject: Re: Starter Action?
 To: Struts Users Mailing List struts-
[EMAIL PROTECTED]
 
 
 
 On Thu, 13 Jun 2002, Struts Newsgroup wrote:
 
  Date: Thu, 13 Jun 2002 23:10:02 -0700
  From: Struts Newsgroup [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List struts-
[EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Starter Action?
 
  Subject: Starter Action?
  From: Christopher Cheng [EMAIL PROTECTED]
   ===
  Is it possbile to define one of the actions to be executed
during startup
  instead of defining a new servlet in web.xml?
 
 
 In Struts 1.1, you can define and register a PlugIn that is
notified when
 the Struts controller servlet is started and stopped.  The
init() method
 can do whatever setup things you need.
 
 In Struts 1.0, you can accomplish the same thing by
subclassing
 org.apache.struts.action.ActionServlet and overriding the
init() method --
 something like this:
 
   public void init() throws ServletException {
 super.init();
 ... do my own setup ...
   }
 
 and using this class as the action servlet in web.xml.
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-
[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:struts-user-
[EMAIL PROTECTED]
 


===
  Experience is something you don't
  get until just after you need it.
===

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


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




RE: ActionServlet.getResources() Method alternative ??

2002-06-14 Thread Soomar, Muki (R.)

Seems to me that it was a wrong decision to deprecate this method
not thinking that ActionForm might also require access to the resources.

Cant figure out how else I would get access to it if needed to do 
checking, and may just have to assume DANGEROUS that it will be
available for use. 

I have spent enough time researching this and calling quits -- unlsess the
GURUS
come forward and show an example... :)


Muki Soomar


-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 1:12 PM
To: Struts Users Mailing List
Subject: Re: ActionServlet.getResources() Method alternative ??


Have almost found the answer but am stuck on a newbie problem because
MessageResourcesFactory is an abstract class.

In my ActionForm :

   ApplicationConfig applicationConf = new
ApplicationConfig(,this.getServlet());
String msgResourcesParameter =
applicationConf.findMessageResourcesConfig(mypackage.ApplicationResources)
.getParameter();

Now I have to call :
createResources(msgResourcesParameter)

This method of MessageResourcesFactory returns a MessageResources.

Well, soon we will have the answer. Can anyone help ? What a shame LOL.

Barbara



 

__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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

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




Struts with a wait page ...

2002-06-14 Thread Joachim Schaaf

Hi community,

I want to display a please wait page when a Struts action is executed, 
that redirects to or loads the real page; my current solution works, but I 
have a problem with Struts.

My solution is as follows: The links and form actions in the JSP pages have a 
.do extension, my WaitServlet has a servlet-mapping for *.do and the 
Struts action servlet has a mapping for .dox. 
The WaitServlet replaces the .do with .dox and redirects to the JSP wait 
page, that loads the .dox action with Javascript (body onload=...).

This works with anchor tags (a href), but not with form tags. The reason is
that Struts adds a myaction.dox to the form action instead of myaction.do.

Any idea how to solve this?

Regards,
Joachim


-- 
Dipl.-Ing. Joachim Schaaf | Projektleiter | mailto:[EMAIL PROTECTED]
cataloom AG | Eupener Str. 148 | 50933 Köln | http://cataloom.com/
Tel: +49 221 4851807 | Fax: +49 221 4851907 | Mobil-Tel: +49 170 7667807

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




RE: Struts with a wait page ...

2002-06-14 Thread James Mitchell

just a quick suggestion...



HTML
HEAD
TITLE/TITLE
/HEAD
BODY
form name=frm action=test.htm method=POST
Field 1:INPUT type=text name=txt1br
Field 2:INPUT type=text name=txt2br
INPUT type=submit value=Submit name=submit
/form

blah
blah
blah
blah
blah
blah
blah
blah

SCRIPT LANGUAGE=javascript
!--
document.frm.action='/rewriteme/myaction.do';
//--
/SCRIPT

Pnbsp;/P

/BODY
/HTML




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

 -Original Message-
 From: Joachim Schaaf [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 12:53 PM
 To: Struts Users Mailing List
 Subject: Struts with a wait page ...


 Hi community,

 I want to display a please wait page when a Struts action is executed,
 that redirects to or loads the real page; my current solution
 works, but I
 have a problem with Struts.

 My solution is as follows: The links and form actions in the JSP
 pages have a
 .do extension, my WaitServlet has a servlet-mapping for
 *.do and the
 Struts action servlet has a mapping for .dox.
 The WaitServlet replaces the .do with .dox and redirects to the
 JSP wait
 page, that loads the .dox action with Javascript (body onload=...).

 This works with anchor tags (a href), but not with form tags. The
 reason is
 that Struts adds a myaction.dox to the form action instead of
 myaction.do.

 Any idea how to solve this?

 Regards,
 Joachim


 --
 Dipl.-Ing. Joachim Schaaf | Projektleiter | mailto:[EMAIL PROTECTED]
 cataloom AG | Eupener Str. 148 | 50933 Köln | http://cataloom.com/
 Tel: +49 221 4851807 | Fax: +49 221 4851907 | Mobil-Tel: +49 170 7667807

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




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




RE: Starter Action? Where to find Plugin Documentation?

2002-06-14 Thread James Mitchell

It's been mentioned before about using a forward as your index.jsp
That would almost guarantee that an initial action was executed.  The
exception being if someone uses a bookmark.  Although, there are several
work-arounds for that as well. (redirect/forward to index.jsp on session
expire)

This has mostly been mentioned in the context of having all jsp under the
WEB-INF and related topics.  The idea being: No Request will be served
except through an Action.

I've also see quite a few our company won't let us do this msg, so if you
have the flexibility to use forward as your index.jsp, go for it!

I have a version of the struts-example that does this.  Also Ted Husted's
artimus app does this as well (although much cleaner than
mine)hmmmaybe I'll change it;)

Hope that helps!!!

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

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 2:28 PM
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: Re: Starter Action? Where to find Plugin Documentation?




 On Fri, 14 Jun 2002, Jeremy Prellwitz wrote:

  Date: Fri, 14 Jun 2002 08:37:06 -0800
  From: Jeremy Prellwitz [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Re: Starter Action?  Where to find Plugin Documentation?
 
  Can someone give me a hint where to find documentation on
  this topic? (i.e. Plugins, how they are configured, and how
  you attach them to events.)
 

 Right now it's just documented in the javadocs and the DTD -- but it's
 really simple.  When the controller servlet is first stated, it will
 instantiate all the plugins you have defined and call the init() method of
 each one.  Likewise, when the controller shuts down, it will call the
 destroy() method of each previously instantiated plugin.  Essentially,
 your plugin has exactly the same lifecycle characteristics as the
 controller servlet itself.

 The struts-config.xml file for the struts-example application in 1.1 has a
 plugin for the user database object.  You can take a look at this to see
 how plugins are configured.

 One detail I glossed over, though -- you cannot actually call an Action in
 your plugin's initialization, because that requires having a request and
 response available.  However, you can do whatever initialization that you
 would have done in that action, by pulling that logic out into separate
 classes.

  Thanks.
 

 Craig


 
   Original message 
  Date: Fri, 14 Jun 2002 08:57:50 -0700 (PDT)
  From: Craig R. McClanahan [EMAIL PROTECTED]
  Subject: Re: Starter Action?
  To: Struts Users Mailing List struts-
  [EMAIL PROTECTED]
  
  
  
  On Thu, 13 Jun 2002, Struts Newsgroup wrote:
  
   Date: Thu, 13 Jun 2002 23:10:02 -0700
   From: Struts Newsgroup [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List struts-
  [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: Starter Action?
  
   Subject: Starter Action?
   From: Christopher Cheng [EMAIL PROTECTED]
===
   Is it possbile to define one of the actions to be executed
  during startup
   instead of defining a new servlet in web.xml?
  
  
  In Struts 1.1, you can define and register a PlugIn that is
  notified when
  the Struts controller servlet is started and stopped.  The
  init() method
  can do whatever setup things you need.
  
  In Struts 1.0, you can accomplish the same thing by
  subclassing
  org.apache.struts.action.ActionServlet and overriding the
  init() method --
  something like this:
  
public void init() throws ServletException {
  super.init();
  ... do my own setup ...
}
  
  and using this class as the action servlet in web.xml.
  
  Craig
  
  
  --
  To unsubscribe, e-mail:   mailto:struts-user-
  [EMAIL PROTECTED]
  For additional commands, e-mail: mailto:struts-user-
  [EMAIL PROTECTED]
  
 
 
  ===
   Experience is something you don't
   get until just after you need it.
  ===
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





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



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




Reporting Solutions

2002-06-14 Thread Brad Rhoads

This is a summary of my research and testing of reporting solutions. I've
gotten a lot of help here. So I hope this information will be useful.

My requirements were to be able to run reports (ideally Crystal Reports) via
JSP, ideally on a Linux box. If a Crystal Reports solution couldn't be
found, I needed a cost effective alternative with similar ease of use and
power as Crystal.

First, the latest version of Crystal Enterprise will under Solaris (not
Linux) but the license starts at 20-40K.

Sometime ago, I made pretty good progress by building Java wrapper classes
for the CR COM Object. It was pretty difficult to figure out a lot things
and at some point I got stuck trying to retrieve  set the report parms
programmatically. The biggest problem with this was that I had to send the
Oracle userid  password as part of the query string. And of course I still
needed the reports running on an NT server. If you're interested in a making
wrappers for COM Objects, see http://www.infozoom.de.

Another option that also requires an NT server is Parallel Crystal. It's
also too expensive, but may be a good solution if you need scalability.

Parallel Crystal Pricing:
http://www.dynalivery.com/products/parallelcrystal/pricing.html

Parallel Crystal Architecture:
http://www.dynalivery.com/products/parallelcrystal/parallelcrystal2_6.html#a
rchitecture

I also looked at Actuate (http://www.actuate.com/products/server/index.asp).
I can't find my pricing notes, but it was expensive. They did an email
campaign saying Instantly Convert Crystal Reports. But they don't have a
converter in their system, it's a manual conversion service.

I considered http://sourceforge.net/projects/jasperreports/, but determined
that's it's not mature enough to give to our clients. Looks promising
though.

I found two options that would require writing reports from scratch, as they
don't support or convert Crystal. The first is JReports. It was quite a
while ago that I look at JReports, so I don't remember a lot of details to
pass on. But I do remember that I liked it and it would be option, if I
abandoned Crystal. Tech support was very good.

Corporate Background:
http://www.jinfonet.com/corporate.htm
JReport Overview:
http://www.jinfonet.com/JReportOverviewWeb.ppt
JReport Product Brochure:
http://www.jinfonet.com/JReportFlyer.pdf
JReport Product Overview:
http://www.jinfonet.com/products.htm
JReport Tutorial:
http://www.jinfonet.com/help/tutorial.htm
Free Download:
http://www.jinfonet.com/download.htm
Other Docs
http://www.jinfonet.com/docs.htm
Register for Evaluation:
http://www.jinfonet.com/JReportRegister.htm


JReport Enterprise Server 2 conc. users/reports 1 CPU $3,500
 Annual Maintenance $700
JReport Enterprise Server, unlimited for 1 CPU $19,000
 Annual Maintenance $3,800

You can also choose to license only a specific number of CPUs.
For example, it is possible to purchase a 2 CPU license
for a 4 CPU computer.  Likewise, it is also possible
to purchase a 4 CPU license for a 2 CPU computer to
anticipate future expansion.

The other alternative to Crystal that I found is FlexReports. It's basically
a Java-based Crystal knock-off. If you know Crystal, you can use
FlexReports. The only thing I found that wasn't completely intuitive is that
parm fields have to be placed on the report, although they are invisible.

The limitations I found with FlexReports are:

1. No way to programmatically get a list of parameters from a .flx.
2. No way to force a page break.
3. No way to use the viewer as an applet.
4. No PDF support.

Tech support was 1st class.

Pricing is done on a case by case basis. But here's what I found. (BTW - I
didn't sign any non-disclosure on any of the info I'm providing.)

Development License


1 developer license = 459 USD

To avail discount on developer licenses, purchase our team licenses:

4 Team license (4 developer licenses)  = 918 USD

8 Team license (8 developer licenses)  = 1836 USD


Maintenance License

The Maintenance License fee is for a period of 6 months. Maintenance license
is priced at USD 1250 .

Maintenance would include the following benefits for a period of 6 months

Free technical support through email and Instant Messaging.
Hot fixes through email notification.
Free upgrades of the New Releases, If any
Please note that this maintenance license is applicable for a period of 6
months only. You would have to purchase the same again for extended support
beyond this period.

Runtime License

Runtime License price for each sale of your product developed using
VisualSoft FlexiReports USD 999


When I started my research Crystal Clear had to many holes to consider. But
now with version 3, I have my solution! Crystal Clear 3.0 provides a
Java-based Crystal Reports compatible engine, well 90% compatible anyway;
see http://www.inetsoftware.de/English/Produkte/CrystalClear/Default.htm.

Not only did Crystal Clear turn out to be my best solution, it also turned
out to be the cheapest. How 

Iterate Help

2002-06-14 Thread Olikkadavath, Bobby

I have to write a iterate tag with features of setting up a max limit of
items that can be displayed from a collection.
for ex there is a collection of Employees (employeeList). The Employee class
has getName and getAddress.
Now out of the 50 or more employees I want to display 10 employee names at a
time with a next and previous link. If the person clicks on one of the
listed employee names, I have to display the full address.

Can anyone suggest me how to do this with the iterate tag. Or can anyone
direct me to a tutorial or help that goes in depth into the iterate tag. All
the help I found on the web were very basic in nature.

Thanks
Bobby



RE: Reporting Solutions

2002-06-14 Thread wbchmura


On this topic...  I have a slew of reports that get generated on our 
AS/400...  If anyone knows a tool that would do a nice job of scrapping 
the text output into html it would be a great help.  The 400 FTP's the 
reports over to an intranet server when it runs them.  The server then 
parses them in perl to produce nicer HTML pages.  

If I had an easier solution I could move more of them over faster...

If anyone has any ideas let me know!

Thanks


-Original Message-
From: brhoads [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 3:16 PM
To: struts-user
Subject: Reporting Solutions


This is a summary of my research and testing of reporting solutions. 
I've
gotten a lot of help here. So I hope this information will be useful.

My requirements were to be able to run reports (ideally Crystal Reports) 
via
JSP, ideally on a Linux box. If a Crystal Reports solution couldn't be
found, I needed a cost effective alternative with similar ease of use 
and
power as Crystal.

First, the latest version of Crystal Enterprise will under Solaris (not
Linux) but the license starts at 20-40K.

Sometime ago, I made pretty good progress by building Java wrapper 
classes
for the CR COM Object. It was pretty difficult to figure out a lot 
things
and at some point I got stuck trying to retrieve  set the report parms
programmatically. The biggest problem with this was that I had to send 
the
Oracle userid  password as part of the query string. And of course I 
still
needed the reports running on an NT server. If you're interested in a 
making
wrappers for COM Objects, see http://www.infozoom.de.

Another option that also requires an NT server is Parallel Crystal. It's
also too expensive, but may be a good solution if you need scalability.

Parallel Crystal Pricing:
http://www.dynalivery.com/products/parallelcrystal/pricing.html

Parallel Crystal Architecture:
http://www.dynalivery.com/products/parallelcrystal/parallelcrystal2_6.html#a
rchitecture

I also looked at Actuate 
(http://www.actuate.com/products/server/index.asp).
I can't find my pricing notes, but it was expensive. They did an email
campaign saying Instantly Convert Crystal Reports. But they don't have 
a
converter in their system, it's a manual conversion service.

I considered http://sourceforge.net/projects/jasperreports/, but 
determined
that's it's not mature enough to give to our clients. Looks promising
though.

I found two options that would require writing reports from scratch, as 
they
don't support or convert Crystal. The first is JReports. It was quite a
while ago that I look at JReports, so I don't remember a lot of details 
to
pass on. But I do remember that I liked it and it would be option, if I
abandoned Crystal. Tech support was very good.

Corporate Background:
http://www.jinfonet.com/corporate.htm
JReport Overview:
http://www.jinfonet.com/JReportOverviewWeb.ppt
JReport Product Brochure:
http://www.jinfonet.com/JReportFlyer.pdf
JReport Product Overview:
http://www.jinfonet.com/products.htm
JReport Tutorial:
http://www.jinfonet.com/help/tutorial.htm
Free Download:
http://www.jinfonet.com/download.htm
Other Docs
http://www.jinfonet.com/docs.htm
Register for Evaluation:
http://www.jinfonet.com/JReportRegister.htm


JReport Enterprise Server 2 conc. users/reports 1 CPU $3,500
 Annual Maintenance $700
JReport Enterprise Server, unlimited for 1 CPU $19,000
 Annual Maintenance $3,800

You can also choose to license only a specific number of CPUs.
For example, it is possible to purchase a 2 CPU license
for a 4 CPU computer.  Likewise, it is also possible
to purchase a 4 CPU license for a 2 CPU computer to
anticipate future expansion.

The other alternative to Crystal that I found is FlexReports. It's 
basically
a Java-based Crystal knock-off. If you know Crystal, you can use
FlexReports. The only thing I found that wasn't completely intuitive is 
that
parm fields have to be placed on the report, although they are 
invisible.

The limitations I found with FlexReports are:

1. No way to programmatically get a list of parameters from a .flx.
2. No way to force a page break.
3. No way to use the viewer as an applet.
4. No PDF support.

Tech support was 1st class.

Pricing is done on a case by case basis. But here's what I found. (BTW - 
I
didn't sign any non-disclosure on any of the info I'm providing.)

Development License


1 developer license = 459 USD

To avail discount on developer licenses, purchase our team licenses:

4 Team license (4 developer licenses)  = 918 USD

8 Team license (8 developer licenses)  = 1836 USD


Maintenance License

The Maintenance License fee is for a period of 6 months. Maintenance 
license
is priced at USD 1250 .

Maintenance would include the following benefits for a period of 6 
months

Free technical support through email and Instant Messaging.
Hot fixes through email notification.
Free upgrades of the New Releases, If any
Please note that this maintenance license is applicable for a 

RE: Reporting Solutions

2002-06-14 Thread Jerome Jacobsen

If the piece that is slowing you down is writing the parsing (in Perl), you
may want to look at xconvert.

http://www.unidex.com/xflat.htm

Maybe you could use it to do the text to XHTML conversion.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 3:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Reporting Solutions



On this topic...  I have a slew of reports that get generated on our
AS/400...  If anyone knows a tool that would do a nice job of scrapping
the text output into html it would be a great help.  The 400 FTP's the
reports over to an intranet server when it runs them.  The server then
parses them in perl to produce nicer HTML pages.

If I had an easier solution I could move more of them over faster...

If anyone has any ideas let me know!

Thanks


-Original Message-
From: brhoads [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 3:16 PM
To: struts-user
Subject: Reporting Solutions


This is a summary of my research and testing of reporting solutions.
I've
gotten a lot of help here. So I hope this information will be useful.

My requirements were to be able to run reports (ideally Crystal Reports)
via
JSP, ideally on a Linux box. If a Crystal Reports solution couldn't be
found, I needed a cost effective alternative with similar ease of use
and
power as Crystal.

First, the latest version of Crystal Enterprise will under Solaris (not
Linux) but the license starts at 20-40K.

Sometime ago, I made pretty good progress by building Java wrapper
classes
for the CR COM Object. It was pretty difficult to figure out a lot
things
and at some point I got stuck trying to retrieve  set the report parms
programmatically. The biggest problem with this was that I had to send
the
Oracle userid  password as part of the query string. And of course I
still
needed the reports running on an NT server. If you're interested in a
making
wrappers for COM Objects, see http://www.infozoom.de.

Another option that also requires an NT server is Parallel Crystal. It's
also too expensive, but may be a good solution if you need scalability.

Parallel Crystal Pricing:
http://www.dynalivery.com/products/parallelcrystal/pricing.html

Parallel Crystal Architecture:
http://www.dynalivery.com/products/parallelcrystal/parallelcrystal2_6.html#a
rchitecture

I also looked at Actuate
(http://www.actuate.com/products/server/index.asp).
I can't find my pricing notes, but it was expensive. They did an email
campaign saying Instantly Convert Crystal Reports. But they don't have
a
converter in their system, it's a manual conversion service.

I considered http://sourceforge.net/projects/jasperreports/, but
determined
that's it's not mature enough to give to our clients. Looks promising
though.

I found two options that would require writing reports from scratch, as
they
don't support or convert Crystal. The first is JReports. It was quite a
while ago that I look at JReports, so I don't remember a lot of details
to
pass on. But I do remember that I liked it and it would be option, if I
abandoned Crystal. Tech support was very good.

Corporate Background:
http://www.jinfonet.com/corporate.htm
JReport Overview:
http://www.jinfonet.com/JReportOverviewWeb.ppt
JReport Product Brochure:
http://www.jinfonet.com/JReportFlyer.pdf
JReport Product Overview:
http://www.jinfonet.com/products.htm
JReport Tutorial:
http://www.jinfonet.com/help/tutorial.htm
Free Download:
http://www.jinfonet.com/download.htm
Other Docs
http://www.jinfonet.com/docs.htm
Register for Evaluation:
http://www.jinfonet.com/JReportRegister.htm


JReport Enterprise Server 2 conc. users/reports 1 CPU $3,500
 Annual Maintenance $700
JReport Enterprise Server, unlimited for 1 CPU $19,000
 Annual Maintenance $3,800

You can also choose to license only a specific number of CPUs.
For example, it is possible to purchase a 2 CPU license
for a 4 CPU computer.  Likewise, it is also possible
to purchase a 4 CPU license for a 2 CPU computer to
anticipate future expansion.

The other alternative to Crystal that I found is FlexReports. It's
basically
a Java-based Crystal knock-off. If you know Crystal, you can use
FlexReports. The only thing I found that wasn't completely intuitive is
that
parm fields have to be placed on the report, although they are
invisible.

The limitations I found with FlexReports are:

1. No way to programmatically get a list of parameters from a .flx.
2. No way to force a page break.
3. No way to use the viewer as an applet.
4. No PDF support.

Tech support was 1st class.

Pricing is done on a case by case basis. But here's what I found. (BTW -
I
didn't sign any non-disclosure on any of the info I'm providing.)

Development License


1 developer license = 459 USD

To avail discount on developer licenses, purchase our team licenses:

4 Team license (4 developer licenses)  = 918 USD

8 Team license (8 developer licenses)  = 1836 USD


Maintenance License

The Maintenance License fee is 

RE: Reporting Solutions

2002-06-14 Thread Chappell, Simon P

Why don't you output XML from the AS/400 and then use XSLT to generate the HTML?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 2:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Reporting Solutions



On this topic...  I have a slew of reports that get generated on our 
AS/400...  If anyone knows a tool that would do a nice job of 
scrapping 
the text output into html it would be a great help.  The 400 FTP's the 
reports over to an intranet server when it runs them.  The server then 
parses them in perl to produce nicer HTML pages.  

If I had an easier solution I could move more of them over faster...

If anyone has any ideas let me know!

Thanks


-Original Message-
From: brhoads [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 3:16 PM
To: struts-user
Subject: Reporting Solutions


This is a summary of my research and testing of reporting solutions. 
I've
gotten a lot of help here. So I hope this information will be useful.

My requirements were to be able to run reports (ideally 
Crystal Reports) 
via
JSP, ideally on a Linux box. If a Crystal Reports solution couldn't be
found, I needed a cost effective alternative with similar ease of use 
and
power as Crystal.

First, the latest version of Crystal Enterprise will under Solaris (not
Linux) but the license starts at 20-40K.

Sometime ago, I made pretty good progress by building Java wrapper 
classes
for the CR COM Object. It was pretty difficult to figure out a lot 
things
and at some point I got stuck trying to retrieve  set the report parms
programmatically. The biggest problem with this was that I had to send 
the
Oracle userid  password as part of the query string. And of course I 
still
needed the reports running on an NT server. If you're interested in a 
making
wrappers for COM Objects, see http://www.infozoom.de.

Another option that also requires an NT server is Parallel 
Crystal. It's
also too expensive, but may be a good solution if you need scalability.

Parallel Crystal Pricing:
http://www.dynalivery.com/products/parallelcrystal/pricing.html

Parallel Crystal Architecture:
http://www.dynalivery.com/products/parallelcrystal/parallelcrys
tal2_6.html#a
rchitecture

I also looked at Actuate 
(http://www.actuate.com/products/server/index.asp).
I can't find my pricing notes, but it was expensive. They did an email
campaign saying Instantly Convert Crystal Reports. But they 
don't have 
a
converter in their system, it's a manual conversion service.

I considered http://sourceforge.net/projects/jasperreports/, but 
determined
that's it's not mature enough to give to our clients. Looks promising
though.

I found two options that would require writing reports from 
scratch, as 
they
don't support or convert Crystal. The first is JReports. It was quite a
while ago that I look at JReports, so I don't remember a lot 
of details 
to
pass on. But I do remember that I liked it and it would be option, if I
abandoned Crystal. Tech support was very good.

Corporate Background:
http://www.jinfonet.com/corporate.htm
JReport Overview:
http://www.jinfonet.com/JReportOverviewWeb.ppt
JReport Product Brochure:
http://www.jinfonet.com/JReportFlyer.pdf
JReport Product Overview:
http://www.jinfonet.com/products.htm
JReport Tutorial:
http://www.jinfonet.com/help/tutorial.htm
Free Download:
http://www.jinfonet.com/download.htm
Other Docs
http://www.jinfonet.com/docs.htm
Register for Evaluation:
http://www.jinfonet.com/JReportRegister.htm


JReport Enterprise Server 2 conc. users/reports 1 CPU $3,500
 Annual Maintenance $700
JReport Enterprise Server, unlimited for 1 CPU $19,000
 Annual Maintenance $3,800

You can also choose to license only a specific number of CPUs.
For example, it is possible to purchase a 2 CPU license
for a 4 CPU computer.  Likewise, it is also possible
to purchase a 4 CPU license for a 2 CPU computer to
anticipate future expansion.

The other alternative to Crystal that I found is FlexReports. It's 
basically
a Java-based Crystal knock-off. If you know Crystal, you can use
FlexReports. The only thing I found that wasn't completely 
intuitive is 
that
parm fields have to be placed on the report, although they are 
invisible.

The limitations I found with FlexReports are:

1. No way to programmatically get a list of parameters from a .flx.
2. No way to force a page break.
3. No way to use the viewer as an applet.
4. No PDF support.

Tech support was 1st class.

Pricing is done on a case by case basis. But here's what I 
found. (BTW - 
I
didn't sign any non-disclosure on any of the info I'm providing.)

Development License


1 developer license = 459 USD

To avail discount on developer licenses, purchase our team licenses:

4 Team license (4 developer licenses)  = 918 USD

8 Team license (8 developer licenses)  = 1836 USD


Maintenance License

The Maintenance License fee is for a period of 6 months. Maintenance 
license
is priced at USD 1250 .

Maintenance 

Re: Iterate Help

2002-06-14 Thread ulrich

Zitat von Olikkadavath, Bobby [EMAIL PROTECTED]:

 I have to write a iterate tag with features of setting up a max limit of
 items that can be displayed from a collection.
 for ex there is a collection of Employees (employeeList). The Employee
 class
 has getName and getAddress.
 Now out of the 50 or more employees I want to display 10 employee names at
 a
 time with a next and previous link. If the person clicks on one of the
 listed employee names, I have to display the full address.
 
 Can anyone suggest me how to do this with the iterate tag. Or can anyone
 direct me to a tutorial or help that goes in depth into the iterate tag.
 All
 the help I found on the web were very basic in nature.
 
 Thanks
 Bobby
 

I managed this task in the action class, where the complete set of data is 
stored in a collection received from the bussiness logic. The task is now to 
generate a new collection in your form bean, which holds only the desired set 
of datas.

Uli 




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




Re: Iterate Help

2002-06-14 Thread Mark Nichols

You want the JSPTags pager tag. Get it here:
http://jsptags.com/tags/navigation/pager/

/mark


- Original Message -
From: Olikkadavath, Bobby [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 2:27 PM
Subject: Iterate Help


 I have to write a iterate tag with features of setting up a max limit of
 items that can be displayed from a collection.
 for ex there is a collection of Employees (employeeList). The Employee
class
 has getName and getAddress.
 Now out of the 50 or more employees I want to display 10 employee names at
a
 time with a next and previous link. If the person clicks on one of the
 listed employee names, I have to display the full address.

 Can anyone suggest me how to do this with the iterate tag. Or can anyone
 direct me to a tutorial or help that goes in depth into the iterate tag.
All
 the help I found on the web were very basic in nature.

 Thanks
 Bobby


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




RE: Reporting Solutions

2002-06-14 Thread wbchmura


More work on the as/400 side (old O/S, old programs, etc)

the existing reports can be fed over, then its better I guess...

Personally I would love a flat file format, anything besides the report 
itself!



-Original Message-
From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 3:49 PM
To: struts-user
Subject: RE: Reporting Solutions


Why don't you output XML from the AS/400 and then use XSLT to generate 
the HTML?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 2:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Reporting Solutions



On this topic...  I have a slew of reports that get generated on our 
AS/400...  If anyone knows a tool that would do a nice job of 
scrapping 
the text output into html it would be a great help.  The 400 FTP's the 
reports over to an intranet server when it runs them.  The server then 
parses them in perl to produce nicer HTML pages.  

If I had an easier solution I could move more of them over faster...

If anyone has any ideas let me know!

Thanks


-Original Message-
From: brhoads [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 3:16 PM
To: struts-user
Subject: Reporting Solutions


This is a summary of my research and testing of reporting solutions. 
I've
gotten a lot of help here. So I hope this information will be useful.

My requirements were to be able to run reports (ideally 
Crystal Reports) 
via
JSP, ideally on a Linux box. If a Crystal Reports solution couldn't be
found, I needed a cost effective alternative with similar ease of use 
and
power as Crystal.

First, the latest version of Crystal Enterprise will under Solaris (not
Linux) but the license starts at 20-40K.

Sometime ago, I made pretty good progress by building Java wrapper 
classes
for the CR COM Object. It was pretty difficult to figure out a lot 
things
and at some point I got stuck trying to retrieve  set the report parms
programmatically. The biggest problem with this was that I had to send 
the
Oracle userid  password as part of the query string. And of course I 
still
needed the reports running on an NT server. If you're interested in a 
making
wrappers for COM Objects, see http://www.infozoom.de.

Another option that also requires an NT server is Parallel 
Crystal. It's
also too expensive, but may be a good solution if you need scalability.

Parallel Crystal Pricing:
http://www.dynalivery.com/products/parallelcrystal/pricing.html

Parallel Crystal Architecture:
http://www.dynalivery.com/products/parallelcrystal/parallelcrys
tal2_6.html#a
rchitecture

I also looked at Actuate 
(http://www.actuate.com/products/server/index.asp).
I can't find my pricing notes, but it was expensive. They did an email
campaign saying Instantly Convert Crystal Reports. But they 
don't have 
a
converter in their system, it's a manual conversion service.

I considered http://sourceforge.net/projects/jasperreports/, but 
determined
that's it's not mature enough to give to our clients. Looks promising
though.

I found two options that would require writing reports from 
scratch, as 
they
don't support or convert Crystal. The first is JReports. It was quite a
while ago that I look at JReports, so I don't remember a lot 
of details 
to
pass on. But I do remember that I liked it and it would be option, if I
abandoned Crystal. Tech support was very good.

Corporate Background:
http://www.jinfonet.com/corporate.htm
JReport Overview:
http://www.jinfonet.com/JReportOverviewWeb.ppt
JReport Product Brochure:
http://www.jinfonet.com/JReportFlyer.pdf
JReport Product Overview:
http://www.jinfonet.com/products.htm
JReport Tutorial:
http://www.jinfonet.com/help/tutorial.htm
Free Download:
http://www.jinfonet.com/download.htm
Other Docs
http://www.jinfonet.com/docs.htm
Register for Evaluation:
http://www.jinfonet.com/JReportRegister.htm


JReport Enterprise Server 2 conc. users/reports 1 CPU $3,500
 Annual Maintenance $700
JReport Enterprise Server, unlimited for 1 CPU $19,000
 Annual Maintenance $3,800

You can also choose to license only a specific number of CPUs.
For example, it is possible to purchase a 2 CPU license
for a 4 CPU computer.  Likewise, it is also possible
to purchase a 4 CPU license for a 2 CPU computer to
anticipate future expansion.

The other alternative to Crystal that I found is FlexReports. It's 
basically
a Java-based Crystal knock-off. If you know Crystal, you can use
FlexReports. The only thing I found that wasn't completely 
intuitive is 
that
parm fields have to be placed on the report, although they are 
invisible.

The limitations I found with FlexReports are:

1. No way to programmatically get a list of parameters from a .flx.
2. No way to force a page break.
3. No way to use the viewer as an applet.
4. No PDF support.

Tech support was 1st class.

Pricing is done on a case by case basis. But here's what I 
found. (BTW - 
I
didn't sign any non-disclosure on any of the info I'm 

RE: Iterate Help

2002-06-14 Thread Joseph Barefoot

There's also the display tag library that provides lots o' functionality
for tables, paging, sorting, etc, with great documentation and examples:

http://edhill.its.uiowa.edu/display/



 -Original Message-
 From: Mark Nichols [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 1:10 PM
 To: Struts Users Mailing List
 Subject: Re: Iterate Help


 You want the JSPTags pager tag. Get it here:
 http://jsptags.com/tags/navigation/pager/

 /mark


 - Original Message -
 From: Olikkadavath, Bobby [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, June 14, 2002 2:27 PM
 Subject: Iterate Help


  I have to write a iterate tag with features of setting up a max limit of
  items that can be displayed from a collection.
  for ex there is a collection of Employees (employeeList). The Employee
 class
  has getName and getAddress.
  Now out of the 50 or more employees I want to display 10
 employee names at
 a
  time with a next and previous link. If the person clicks on one of the
  listed employee names, I have to display the full address.
 
  Can anyone suggest me how to do this with the iterate tag. Or can anyone
  direct me to a tutorial or help that goes in depth into the iterate tag.
 All
  the help I found on the web were very basic in nature.
 
  Thanks
  Bobby
 

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


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




Off topic

2002-06-14 Thread James Mitchell

Please don't flame me..just wanted to give out a little Friday humor
before Friday is actually over.enjoy.

http://open-tools.org/download/TowYardComplain1.mp3

It the funniest prank call (mp3) that I've heard in quite a while!

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


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