mixed up pages

2002-12-02 Thread Hirschmann, Bernhard

I still have trouble with mixed up pages.. Sometimes there is output from
form beans visible - see the screenshot here: http://www.boeny.de/Bug1.jpg

Used is WebSphere - maybe this causes the trouble, I think. 

Any hints highly appretiated!!

Best regards,
Bernhard Hirschmann

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




RE: mixed up pages

2002-12-02 Thread Andrew Hill
Might help if you post the JSP code responsible for rendering the page. The
resulting html would also help.

-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 16:29
To: Struts User Mailing List (E-Mail)
Subject: mixed up pages



I still have trouble with mixed up pages.. Sometimes there is output from
form beans visible - see the screenshot here: http://www.boeny.de/Bug1.jpg

Used is WebSphere - maybe this causes the trouble, I think.

Any hints highly appretiated!!

Best regards,
Bernhard Hirschmann

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




AW: mixed up pages

2002-12-02 Thread Hirschmann, Bernhard

Posting html code is a little difficult for me, because this only appears
very rarely..

But I remember when I once checked the resulting html code, that there
suddenly appeared somewhere in the code something like a toString() output
from some used beans. Sometimes at the very beginning of the page, sometimes
at the middle. 

In the provided screenshot, you can see the output from a list, which should
be displayed in the table below. Also you can see the tiles navigation
between it. Very strange. I only can say, that in the JSP nothing is
specified, which could produce this output. The problem must be somwhere
else I think, maybe at the application server (WS). 

What to you think? Ever seen such a behavior?


-Ursprüngliche Nachricht-
Von: Andrew Hill [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 2. Dezember 2002 09:39
An: Struts Users Mailing List
Betreff: RE: mixed up pages


Might help if you post the JSP code responsible for rendering the page. The
resulting html would also help.

-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 16:29
To: Struts User Mailing List (E-Mail)
Subject: mixed up pages



I still have trouble with mixed up pages.. Sometimes there is output from
form beans visible - see the screenshot here: http://www.boeny.de/Bug1.jpg

Used is WebSphere - maybe this causes the trouble, I think.

Any hints highly appretiated!!

Best regards,
Bernhard Hirschmann

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


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

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




Re: Search Results Forms

2002-12-02 Thread Patrice
I think you can use the html:multibox tag.
If you have a property myArray in your ActionForm, corresponding to an
array of String:

html:multibox property=myArray value=0/
html:multibox property=myArray value=1/
html:multibox property=myArray value=2/
...

After submission, the array will contain only values corresponding to the
checked checkboxes (1, 2...).
The values corresponding to non-checked selectboxes will not appear.
Don't forget to setting the corresponding array to zero length in the
reset() method.

Hope it helps
Patrice

- Original Message -
From: Wendy Cameron [EMAIL PROTECTED]
To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 3:16 AM
Subject: Search Results Forms


 Has anyone come up with a good way to do checkbox form process with
Scrolling search results?

 Basically you have a list of search results each with a check box next to
it.  You also have scrolling pages, so you have Page 1 | 2 | 3 links etc.

 If you use the checkbox with the same name, this can be easily picked up
in your form bean etc, however if the user scrolls back and forth through
the result checking and unchecking items, this could lead to problems with
elements having been checked add, but later they were unchecked etc, and you
wouldnt know.

 I think you could possible work it by numbering the checkbox name.
However you lose your ability to automatically populate a form bean.
 Where the ideal situation is an array 0..n-1 where n is the length, with a
set of values, checked if the checkbox was checked and null if it was not or
an array of booleans.

 Has anyone found a nice way to solve this little picadello

 Regards Wendy

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




[Fwd: [ANNOUNCE] Struts Workflow Extension Package 0.9.3]

2002-12-02 Thread Matthias Bauer


Hi everybody!

I just released Version 0.9.3 of the Struts Workflow Extension Package.

There are no code changes in the package. So why a new version?

* I added instructions for using the test application with Struts 1.1 
 to the file INSTALL.TXT, because some users told me that it was cumbersome
 to only have them on the web pages.
* The package was release with a different license. Due to the fact that I am
 no license expert, I assumed up to now, that the GNU license was appropriate.
 I had to learn that it is pretty restrictive, so I changed it to a BSD-like
 license.

For more information about this package visit 
http://www.livinglogic.de/Struts/

--- Matthias




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



Re: subclassing action

2002-12-02 Thread V. Cekvenich
same

Mohan Radhakrishnan wrote:

Hi,
  I am looking for information on subclassing actions. Is there a way to
transfer control to the subclass if a certain check in the super action is
valid ?
Is this how this is done ? In normal OO, it happens based on polymorphism.
How is it done with struts ?

Thanks,
Mohan





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




RE: Forwards and Frames

2002-12-02 Thread christophe . godel


Hi,

I take this thread and ask for a different question. I searched all around to find 
some answers.
What if I don't use a form and call directly an action from a link in my frame. The 
action, in some case, must display a page
over the frameset (_parent target) or relaunch the frameset (after a logout action for 
example)...

It seems I can't put a target parameter in a forward in the struts-config.
Have I to use an intermediary page that loads the frameset in a _parent target via 
Javascript to do that. ?

I know the better way will be to avoid frame based web app... but right now, it's not 
possible :)

Regards,
Christophe


From: Kristian Duske
Subject: RE: Forwards and Frames
Date: Mon, 25 Nov 2002 10:32:38 -0800



Hi,

 Background information: I have a page split into two frames, top
 and bottom.
 I have a form in the top part, that displays a list of messages.  The user
 then selects the messages they want displayed and they press a button and
 the button forwards the information to the bottom form? How do I
 do this in
 the Action Class? Or what should I search under? I have Mastering Jakarta
 Struts and Struts in Action to look into this, I just don't
 know what it
 is called.

This is more an HTML question than a Struts question. You have to specify
the target-Attribute for the html:form tag, very much like in HTML:

html:form ... target=bottom
...
/html:form

The value of this attribute is the name of the bottom frame, as specified in
your frameset:

frameset ...
frame name=top ...
frame name=bottom ...
/frameset

Regards
Kristian







This message and any attachments (the message) is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
message) sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


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




[SURVEY] What is your Struts version ?

2002-12-02 Thread Emmanuel Boudrant

Hi,
I want to make a little survey about the Struts version you use and why ... so I 
really appreciate if you can spend a little time to answer it:
Survey #1 : Struts version  
http://sourceforge.net/survey/survey.php?group_id=54542survey_id=13866

Thanx,
-emmanuel



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



Re: Struts administrative funcs

2002-12-02 Thread Ronald Mathies
 Btw, how do you develop with struts? I mean, I really really hate to waste
 time by watching Tomcat reload application or sometimes Tomcat itself. Are
 there any tips  tricks to not wasting time? (I'm using IBM Wsad)

I user JDeveloper 9.0.3, it has build in Struts support for the Action
ActionForm struts-config.xml and JSP/Servlets. The application server is a
Oracle 9iAS server standalone (Download, unzip and use version). And that is
olso supported by JDeveloper so i can deploy from withing JDeveloper by a
mouse click (takes up to 35 seconds for 2 EJB's 10 to 12 Actions/Action
forms and over 20 JSP pages). The backend is a Oracle 9i Database. And
everything runs on Linux (one computer).

So my tips are (global) :

1. Use an IDE that supports the used web-container / Application Server.
2. Use an IDE that has build in support for Struts.
3. Use a FAST computer with a lot of memory.

4. Take a look at ANT this could help with the build/deploy part. It can
save a lot of time in the repeated manual  actions.

I haven't used IBM Wsad so i don't know about that.

Ronald.


- Original Message -
From: Tuncay Baskan (Internet Grubu) [EMAIL PROTECTED]
To: Struts-User (E-mail) [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 8:35 AM
Subject: Struts administrative funcs


 Hello,

 I remember struts administrative actions in struts-config.xml (back in 1.0
 days). Are there still admin actions in 1.1? (At least to reload
 configuration and action classes).

 Btw, how do you develop with struts? I mean, I really really hate to waste
 time by watching Tomcat reload application or sometimes Tomcat itself. Are
 there any tips  tricks to not wasting time? (I'm using IBM Wsad)

 /tb.



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




struts 1.1. modules examples.

2002-12-02 Thread aduprat . struts
Hello all,

I try to use struts 1.1 modules.
I will be glad if somebody tells me how to find examples of : 
- how to declare an action un a struts-config.xml module file ie what is the pattern 
of the path? (path=/myModuleName/myActionName ?)
- how to invoque a module action (html:form action/myModule/myAction.do... ?)
- what is the pattern for the forward argument (forward name=succes 
path=/myModule/myJpsPage.jsp ?)

() are only my hypothesis...

thanks a lots for any advice.

Alexandre.

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


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




RE: WSAD 4.0.3/Struts-blank problem

2002-12-02 Thread Hurdle, Robert H, PERSCOM

I'm new to Struts  XML.  Any hints on how to do this or where to look would
be greatly appreciated.
-Original Message-
From: Tim Dysinger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 11:29 AM
To: Struts Users Mailing List
Subject: Re: WSAD 4.0.3/Struts-blank problem


WebSphere has a cache directory of compiled JSP pages.  On my build
script I make sure and clean it out before redeploying an app.

-Tim

On Wed, 2002-11-27 at 08:20, Hurdle, Robert H, PERSCOM wrote:
 I'm using WSAD 4.0.3 with the Struts 1.1-blank.war.  When I make changes
to
 a jsp I refresh from local, rebuild the project, and run on the server,
but
 my changes don't show up.  They only show when I shut down  and restart
 WebSphere.  This doesn't happen with the struts-example app I downloaded.
I
 suspect I may need to modify build.xml, but I'm not sure where to begin.
 Any guidance would be appreciated.  
 
 --
 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]




Initalize input form with data from the database

2002-12-02 Thread Cook, Graham
 Hi there,

Im having problems calling an action to fetch data from the Database and
prepopulate an input form. 
Basically I have 1 Action, 1 ActionForm and 1 JSP. The ActionForm extends
LookupDispatchAction to cope with multiple buttons on the JSP. What I want
to do is to call the Action to initalize the JSP with data from the database
and resue the same action for all other buttons on the page. Can anybody
point me in the right direction.

Ta



 This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message .



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




Réf. : Initalize input form with data from thedatabase

2002-12-02 Thread christophe . godel


I'm little bit new to Struts, but I understood that the procedure is the
following:
Your Action must populate your ActionForm Bean, then your JSP will display
the right values...

You have an example of that in the Struts-example included in the release
(Edit Registration).

Tof




Extranet
[EMAIL PROTECTED] - 02/12/2002 15:09


Veuillez répondre à [EMAIL PROTECTED]
Pour : struts-user

cc :


Objet : Initalize input form with data from the database


 Hi there,

Im having problems calling an action to fetch data from the Database and
prepopulate an input form.
Basically I have 1 Action, 1 ActionForm and 1 JSP. The ActionForm extends
LookupDispatchAction to cope with multiple buttons on the JSP. What I want
to do is to call the Action to initalize the JSP with data from the
database
and resue the same action for all other buttons on the page. Can anybody
point me in the right direction.

Ta




 This message contains information that may be privileged or confidential
and
is the property of the Cap Gemini Ernst  Young Group. It is intended only
for
the person to whom it is addressed. If you are not the intended recipient,
you
are not authorized to read, print, retain, copy, disseminate, distribute,
or use
this message or any part thereof. If you receive this message in error,
please
notify the sender immediately and delete all copies of this message .




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










This message and any attachments (the message) is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
message) sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


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




Re: Initalize input form with data from the database

2002-12-02 Thread Gemes Tibor
2002. december 2. 15:09 dtummal Cook, Graham ezt rtad:
 Basically I have 1 Action, 1 ActionForm and 1 JSP. The ActionForm extends
 LookupDispatchAction to cope with multiple buttons on the JSP. What I want

Your ActionForm should extend org.apache.struts.action.ActionForm rather than 
LookupDispatchAction.


Tib

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




Re: session form bean reuse

2002-12-02 Thread Mark Lepkowski
How do you get session A information available to session B without persisting it 
somehow (the HttpSessionContext interface is depracated in Java Servlet API v2.1for 
security reasons...)?
  Struts will not itself reuse form bean instances across sessions (although
  your application could copy one if it really wanted to).




RE: Initalize input form with data from the database

2002-12-02 Thread Cook, Graham
But if I extend ActionForm, I cant do the things that LookupDispatchAction
does?

-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: 02 December 2002 14:19
To: Struts Users Mailing List
Subject: Re: Initalize input form with data from the database


2002. december 2. 15:09 datummal Cook, Graham ezt irtad:
 Basically I have 1 Action, 1 ActionForm and 1 JSP. The ActionForm extends
 LookupDispatchAction to cope with multiple buttons on the JSP. What I want

Your ActionForm should extend org.apache.struts.action.ActionForm rather
than 
LookupDispatchAction.


Tib

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



 This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message .



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




Model 2X and client side XML

2002-12-02 Thread David Roussel
Hi,

I'm starting a new project, and we're pretty much sold on Struts as it
seems to do everything the right way in terms of MVC.  I've written my
own Servler/JSP MVC framework 2 years ago, but now it's time to go with
the apache flow.

The project is intranet based, so we are able to make it IE6 only.  This
means we can use client side XML+XSL to off load processing to the
client.

StrutsCX seems to offer us a fair amount, but is it still useful when
doing client side XSLT.  I am I better off just making my own XML Servlet
using my own choice of XML libs, not JDOM which seems to have a little
bad press?

Also the StrutsCX docs suggest a two stage XSL process: 1) data to
layout, 2) layout to look and feel.  This seems like a good suggestion,
but should I put both transforms on the client, or split them across
tiers?

Has anyone tried stxx?  What does it give me over StrutsCX?

I might have some more questions later, but this will do for now.

Thanks

David Roussel

-- 
  David Roussel

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




Re: Initalize input form with data from the database

2002-12-02 Thread Gemes Tibor
2002. december 2. 15:23 dtummal Cook, Graham ezt rtad:
 But if I extend ActionForm, I cant do the things that LookupDispatchAction
 does?

There must be some misunderstanding. 

You have 1 action which extends LookupDispatchAction. There is a ActionForm 
assigned to this Action.
If you would like to know more about LookupDispatchAction check Ted Husted's 
tips (special attention to tip #3)
http://husted.com/struts/tips/003.html

Hth,

Tib

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




RE: struts 1.1-b2 struts-blank bug????

2002-12-02 Thread Hurdle, Robert H, PERSCOM
I'm having a similar problem.  I'm using WebSphere 4.0.3 with the Struts
blank.  My changes to the ApplicationResources file or JSPs don't show up
until I bring WebSphere down and restart.  I've been told that WebSphere has
a cache directory of compiled JSP pages and I need to clean it out on my
build.   I haven't figured out how to do this yet.  Oddly, I don't have this
problem in the Struts tutorial application.

-Original Message-
From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 1:08 AM
To: Struts Users Mailing List
Subject: Re: struts 1.1-b2 struts-blank bug


I added that entry and still ahve the same error.

Dinesh Samson J wrote:
 Hi
 
 The entry for welcome.title in your ApplicationResources.properties file
 is missing.
 
 regards,
  
 Dinesh Samson J
 IT Support
 ([EMAIL PROTECTED])
 UAE Exchange Centre LLC
 POBox 170, Hamdan Street
 Abu Dhabi, United Arab Emirates
 Mobile: +971-50-6682136
 Phone: +971-2-6322166,6394342
 Fax: +971-2-6340713
 
 -Original Message-
 From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]] 
 Sent: 02 December 2002 09:59
 To: [EMAIL PROTECTED]
 Subject: struts 1.1-b2 struts-blank bug
 
 anyone getting the below error from the blank file?
 
 struts-blank/index.jsp
 
 
 type Exception report
 
 message
 
 description The server encountered an internal error () that prevented 
 it from fulfilling this request.
 
 exception
 
 org.apache.jasper.JasperException: Missing message for key welcome.title
   at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
 va:248)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
 her.java:684)
   at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
 atcher.java:432)
   at 
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
 cher.java:356)
   at
 org.apache.struts.actions.ForwardAction.execute(ForwardAction.java:158)
   at 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
 ocessor.java:446)
   at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
 266)
   at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:129

-- 
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=


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




Réf. : RE: struts 1.1-b2 struts-blank bug????

2002-12-02 Thread christophe . godel


same here only for resources bundle files. in fact, all properties files
need the server to be restarted (I believe BEA can do it on the fly), but I
don't have this problem with the JSP.



Extranet
[EMAIL PROTECTED] - 02/12/2002 15:56


Veuillez répondre à [EMAIL PROTECTED]
Pour : struts-user

cc :


Objet : RE: struts 1.1-b2  struts-blank bug


I'm having a similar problem.  I'm using WebSphere 4.0.3 with the Struts
blank.  My changes to the ApplicationResources file or JSPs don't show up
until I bring WebSphere down and restart.  I've been told that WebSphere
has
a cache directory of compiled JSP pages and I need to clean it out on my
build.   I haven't figured out how to do this yet.  Oddly, I don't have
this
problem in the Struts tutorial application.

-Original Message-
From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 1:08 AM
To: Struts Users Mailing List
Subject: Re: struts 1.1-b2 struts-blank bug


I added that entry and still ahve the same error.

Dinesh Samson J wrote:
 Hi

 The entry for welcome.title in your ApplicationResources.properties file
 is missing.

 regards,

 Dinesh Samson J
 IT Support
 ([EMAIL PROTECTED])
 UAE Exchange Centre LLC
 POBox 170, Hamdan Street
 Abu Dhabi, United Arab Emirates
 Mobile: +971-50-6682136
 Phone: +971-2-6322166,6394342
 Fax: +971-2-6340713

 -Original Message-
 From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]]
 Sent: 02 December 2002 09:59
 To: [EMAIL PROTECTED]
 Subject: struts 1.1-b2 struts-blank bug

 anyone getting the below error from the blank file?

 struts-blank/index.jsp


 type Exception report

 message

 description The server encountered an internal error () that prevented
 it from fulfilling this request.

 exception

 org.apache.jasper.JasperException: Missing message for key welcome.title
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
 va:248)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
 her.java:684)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
 atcher.java:432)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
 cher.java:356)
 at
 org.apache.struts.actions.ForwardAction.execute(ForwardAction.java:158)
 at
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
 ocessor.java:446)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
 266)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:129

--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=


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










This message and any attachments (the message) is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
message) sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


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




auto-generation of form class or dynaActionForm tags from html form page?

2002-12-02 Thread tek1
does anyone know if there is an ant-based utility that will scan .html 
files in a specified folder and based on html form tag definitions in ay of 
the files in the folder, automatically generate a struts form class in a 
specified folder *or* update the struts-config.xml file by adding the 
appropriate DynaActionForm form-bean tags?

thank you. 


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



loading message resources from database?

2002-12-02 Thread Pavel Kolesnikov
Hello,

I'd like to allow admins of my application to edit message
resources via web interface. It seems it would be nice to
have such resources stored in a database instead of 
properties file.

I see it should be possible to implement loading my resources
from database by subclassing MessageResourcesFactory and
MessageResources classes from org.apache.struts.util.

But I believe I'm not the first one who needs something
like that. Don't you know about any open source Struts 
extension containing something like that? Or is such feature
planned in future version of Struts?

Thanks

Pavel



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




RE: Initalize input form with data from the database

2002-12-02 Thread Cook, Graham
Yep I see what you mean. I've got my page working as tip #003 of Ted Husteds
example. But I dont understand how I can initialy call the JSP page by going
through the LookupDispatchAction!


-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: 02 December 2002 14:31
To: Struts Users Mailing List
Subject: Re: Initalize input form with data from the database


2002. december 2. 15:23 datummal Cook, Graham ezt irtad:
 But if I extend ActionForm, I cant do the things that LookupDispatchAction
 does?

There must be some misunderstanding. 

You have 1 action which extends LookupDispatchAction. There is a ActionForm 
assigned to this Action.
If you would like to know more about LookupDispatchAction check Ted Husted's

tips (special attention to tip #3)
http://husted.com/struts/tips/003.html

Hth,

Tib

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



 This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message .



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




Re: loading message resources from database?

2002-12-02 Thread David Graham
Someone has implemented this already.  Search google or the mail archive for 
a link.

David






From: Pavel Kolesnikov [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: loading message resources from database?
Date: Mon, 2 Dec 2002 16:55:50 +0100 (CET)

Hello,

I'd like to allow admins of my application to edit message
resources via web interface. It seems it would be nice to
have such resources stored in a database instead of
properties file.

I see it should be possible to implement loading my resources
from database by subclassing MessageResourcesFactory and
MessageResources classes from org.apache.struts.util.

But I believe I'm not the first one who needs something
like that. Don't you know about any open source Struts
extension containing something like that? Or is such feature
planned in future version of Struts?

Thanks

Pavel



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


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


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



Remove browser toolbars 'n' such.

2002-12-02 Thread Darren Hill
I remember someone on the list saying that, when creating a struts app, that
remove all toolbars, address bar, and navigational button from the browser
... I like this idea, but can't seem to find out how.

My JSP's are under the WED-INF folder and my index.jsp simply forwards to
the initial request.  Any ideas on how to popup the application in a window
without on the browser jazz?

Darren.

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




jsession and Apache

2002-12-02 Thread Miguel Angel Medina Lopez
Hi all:

I'm developing a struts application in Tomcat 3.3.1 and Apache 1.3.x using
mod_jd. My problem is that the images I render with the html:img tag are
broken because Tomcat add a ;jsession at the end of the image URL and
Apache doesn't find it and generate a 404 error. How can I remove jsession
from the URL?

Can you help me? Thank you in advance

Regards

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España





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




RE: Complicated Web Interfaces?

2002-12-02 Thread Craig R. McClanahan


On Mon, 2 Dec 2002, Savantraj, Chennamakal Subramanian wrote:

 Date: Mon, 2 Dec 2002 11:21:52 +0800
 From: Savantraj, Chennamakal Subramanian [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: Complicated Web Interfaces?

 By considering complcated GUI, we are planning to move to Swing
 Applications, which are deployed using WEB START.
 Our idea is to use a controller to Navigate between Swing Application and
 Server side Business Logic.
 So the core business Logic still run in server and GUI components run
 Locally.Not decided yet how to Transfer Data back and forth between
 Application and Server.Pls share your experience..
 Any serious problem(s) with this approach?

In general, this is a viable solution for UIs that are not amenable to the
limitations of HTML browsers, and/or need to run in an environment where a
browser is not available.  The primary downsides are that your user must
download a JVM if they don't have one (although only once), and your
developers must know both Swing and HTML if you're delivering the same app
both ways.

For client-server communication, you could look at a web services style
approach, or perhaps design some Struts actions that accept serialized
Java objects represent the request and return a serialized Java object
containing the results.  The request-response nature of HTTP is actually
quite helpful for this sort of requirement.

Craig


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




RE: Remove browser toolbars 'n' such.

2002-12-02 Thread Jim Krygowski
Darren,

we use something like this:

  %-- Begin JavaScript Section to open a new window --%
  SCRIPT language=JavaScript1.1
function module_window(url)
{
var str =
left=0,screenX=0,top=0,screenY=0,resizable=yes,scrollbars=yes;
if (window.screen)
{
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
str += ,height= + ah;
str += ,innerHeight= + ah;
str += ,width= + aw;
str += ,innerWidth= + aw;
}
var new_url = url + v_password ;
win=window.open(new_url, w, str);
}

  /SCRIPT

it sets the height of the page and configures some of the attributes

 -Original Message-
 From: Darren Hill [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 02, 2002 11:42 AM
 To: 'Struts Users Mailing List'
 Subject: Remove browser toolbars 'n' such.


 I remember someone on the list saying that, when creating a
 struts app, that
 remove all toolbars, address bar, and navigational button from the browser
 ... I like this idea, but can't seem to find out how.

 My JSP's are under the WED-INF folder and my index.jsp simply forwards to
 the initial request.  Any ideas on how to popup the application
 in a window
 without on the browser jazz?

 Darren.

 --
 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: Remove browser toolbars 'n' such.

2002-12-02 Thread Mark
On 2-12-2002 17:42, Darren Hill [EMAIL PROTECTED] wrote:

 I remember someone on the list saying that, when creating a struts app, that
 remove all toolbars, address bar, and navigational button from the browser
 ... I like this idea, but can't seem to find out how.
 
 My JSP's are under the WED-INF folder and my index.jsp simply forwards to
 the initial request.  Any ideas on how to popup the application in a window
 without on the browser jazz?
 
 Darren.
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 

I could be wrong but you might need to mail a javascript mail group..

Look at the javascript documentation for window.open()

Cheers mark


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




RE: Remove browser toolbars 'n' such.

2002-12-02 Thread Ron Day
Use javascript to open the popup window. window.open(url of
content,HTML target name for window,Window Properties)

In window properties you can set many, many properties of the browser
window, including the ones you asked about. See any good Javascript book for
a list of the allowed properties to set.

ron

-Original Message-
From: Darren Hill [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 10:42 AM
To: 'Struts Users Mailing List'
Subject: Remove browser toolbars 'n' such.


I remember someone on the list saying that, when creating a struts app, that
remove all toolbars, address bar, and navigational button from the browser
... I like this idea, but can't seem to find out how.

My JSP's are under the WED-INF folder and my index.jsp simply forwards to
the initial request.  Any ideas on how to popup the application in a window
without on the browser jazz?

Darren.

--
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: Complicated Web Interfaces?

2002-12-02 Thread Craig R. McClanahan


On Mon, 2 Dec 2002, Daniel Joshua wrote:

 Date: Mon, 2 Dec 2002 11:36:18 +0800
 From: Daniel Joshua [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 Subject: RE: Complicated Web Interfaces?

 Yup I read it...

 I also read an article on it at
 http://www.javaworld.com/javaworld/jw-11-2002/jw-1129-jsf.html

 But, my question is, how long before it will be ready for use?

There will be at least one more EA type release (and I'll release an EA of
a Struts integration library at the same time), with final release of
JavaServer Faces aimed at sometime next year.  Sorry I can't be more
precise than that ... the schedule's under discussion in the Expert Group.


 PS: It looks cool!


Thanks ... it's designed to be cool :-).

 Regards,
 Daniel

Craig


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




Re: subclassing action

2002-12-02 Thread Craig R. McClanahan


On Mon, 2 Dec 2002, Mohan Radhakrishnan wrote:

 Date: Mon, 2 Dec 2002 11:51:27 +0530
 From: Mohan Radhakrishnan [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: subclassing action

 Hi,
   I am looking for information on subclassing actions. Is there a way to
 transfer control to the subclass if a certain check in the super action is
 valid ?
 Is this how this is done ? In normal OO, it happens based on polymorphism.
 How is it done with struts ?


A common technique in Struts based apps is to have a common base Action
that embeds functionality common to a set of your application's
requirements, such as customized login checking.  The general pattern
would be to have the common base class implement the public execute()
method (in 1.0 it was perform()), and then dispatch to business logic in
some other (usually protected) methods defined by the base class.

You can also do things like dynamically choose which business logic method
to call, based on request parameters.  This use case is so common that
Struts provides a standard base class
(org.apache.struts.actions.DispatchAction) for you.

 Thanks,
 Mohan

Craig


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




Re: Struts administrative funcs

2002-12-02 Thread Craig R. McClanahan


On Mon, 2 Dec 2002, [iso-8859-9] Tuncay Baskan (Ýnternet Grubu) wrote:

 Date: Mon, 2 Dec 2002 09:35:58 +0200
 From: [iso-8859-9] Tuncay Baskan (Ýnternet Grubu)
 [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts-User (E-mail) [EMAIL PROTECTED]
 Subject: Struts administrative funcs

 Hello,

 I remember struts administrative actions in struts-config.xml (back in 1.0
 days). Are there still admin actions in 1.1? (At least to reload
 configuration and action classes).


No ... it turned out that Struts couldn't really do everything people
expected when trying to reload an application, and it makes no sense to
duplicate what servlet containers do already.  You should use the
application reload facilities of your container -- such as the ability to
reload on demand using Tomcat's manager webapp.

 Btw, how do you develop with struts? I mean, I really really hate to waste
 time by watching Tomcat reload application or sometimes Tomcat itself. Are
 there any tips  tricks to not wasting time? (I'm using IBM Wsad)


Personally, I use the Ant tasks supplied with Tomcat 4.1 (I'm a command
line wienie rather than a GUI wienie :-).  I've also factored out the
time-expensive initialization operations like opening connection pools,
using the JNDI resources support that Tomcat provides, so typical app
reload time is a couple of seconds.  I don't feel bad about typing ant
reload and waiting that long.

 /tb.


Craig



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




Re: session form bean reuse

2002-12-02 Thread Craig R. McClanahan


On Mon, 2 Dec 2002, Mark Lepkowski wrote:

 Date: Mon, 02 Dec 2002 09:21:42 -0500
 From: Mark Lepkowski [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: session form bean reuse

 How do you get session A information available to session B without persisting it 
somehow (the HttpSessionContext interface is depracated in Java Servlet API v2.1for 
security reasons...)?
   Struts will not itself reuse form bean instances across sessions (although
   your application could copy one if it really wanted to).



Use servlet context attributes to share information between all the
sessions in your webapp.

Craig



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




Re: Re: struts 1.1. modules examples.

2002-12-02 Thread aduprat . struts
You can get some doc here : 
http://jakarta.apache.org/struts/userGuide/building_controller.html#dd_config_modules

But there are no example of what i was asking for...

Message d'origine
Date: Mon, 02 Dec 2002 10:38:01 -0600
De: Hanasaki JiJi [EMAIL PROTECTED]
A: [EMAIL PROTECTED]
Sujet: Re: struts 1.1. modules examples.

that rocks!  wehre can i get docs on this and the xamples?

[EMAIL PROTECTED] wrote:
 Modules are struts 1.1 sub webapps.
 This means you can part your webapp into fragments if it's going larger.
 Then each developpement team can work on a part of the webapp, use as many 
struts-config as parts of the webapp etc...
 
 
 Message d'origine
 
Date: Mon, 02 Dec 2002 09:53:11 -0600
De: Hanasaki JiJi [EMAIL PROTECTED]
A: [EMAIL PROTECTED]
Sujet: Re: struts 1.1. modules examples.

What are modules?

[EMAIL PROTECTED] wrote:

Hello all,

I try to use struts 1.1 modules.
I will be glad if somebody tells me how to find examples of : 
- how to declare an action un a struts-config.xml module file ie what is the 
pattern of the path? (path=/myModuleName/myActionName ?)
- how to invoque a module action (html:form action/myModule/myAction.do... ?)
- what is the pattern for the forward argument (forward name=succes 
path=/myModule/myJpsPage.jsp ?)

() are only my hypothesis...

thanks a lots for any advice.

Alexandre.


-- 
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=


 
 
 -
 NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
 Web/Wap : www.netcourrier.com
 Téléphone/Fax : 08 92 69 00 21 (0,34 #8364; TTC/min)
 Minitel: 3615 NETCOURRIER (0,15 #8364; TTC/min)
 

-- 
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=



-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


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




Re: Learning Struts

2002-12-02 Thread Eric Tse
Well, unfortunately, the books are not yet available in HK bookstores...
need to wait for some time. sigh.

Eric

- Original Message -
From: Vincent Stoessel [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 11:09 AM
Subject: Re: Learning Struts


 You are in the very fortunate position right now. Before this month
 there was very little published about struts. Now there are Wiley ,
 Manning and Orielly books on the subject. Go to your favorite online
 bookseller and type in jakarta struts or java struts and you will be
 rewarded.

 Eric Tse wrote:
  Dear all,
 
  I am interested in learning struts framework and tried to search some
articles and kick-start my journey. However, it seems to me that all of the
tutorial gave me much information for the MVC architecture which I know
already.
 
  Do you have any simple war/jar file for my learning? I read through the
struts-example.war already. It does not give me guidance to me to learn.
Anyone can help?
 
  Thanks a lot.
 
  Eric





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




Re: Learning Struts

2002-12-02 Thread Eric Tse
yeah i read that. it's good ! Thanks a lot

Eric
- Original Message -
From: Bala Murali [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 11:37 AM
Subject: Re: Learning Struts


Hi Eric,

 For very basic step-by-step guide(with complete example) the following
is a good one.
http://rzserv2.fhnon.de/~lg002556/struts/Doku.html

Warm rgds,
===
Bala Murali
Technical consultant - J2EE
http://indiago.blogspot.com
===

 Eric == Eric Tse [EMAIL PROTECTED] writes:

Eric Dear all,
Eric I am interested in learning struts framework and tried to search
some
articles and kick-start my journey. However, it seems to me that all of the
tutorial
gave me much information for the MVC architecture which I know already.

Eric Do you have any simple war/jar file for my learning? I read
through the
struts-example.war already. It does not give me guidance to me to learn.
Anyone can
help?

From the top-level of the Struts home page, click on Resources.  This
will
provide you with many links to articles and tutorials about Struts.

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








 --
 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: Remove browser toolbars 'n' such.

2002-12-02 Thread David Roussel
You need to do a bit of JavaScript for this.  Use window.open().  

See MSDN DHTML References fopr more info.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtmlrefs.asp

On your initial page you need to have a Click here to enter type link
that has an onclick handler to call window.open().  In the arguaments to
window.open() you can turn the menus, address bar and toolbar on or off.

David


On Mon, 2 Dec 2002 11:42:10 -0500 , Darren Hill [EMAIL PROTECTED] said:
 I remember someone on the list saying that, when creating a struts app,
 that
 remove all toolbars, address bar, and navigational button from the
 browser
 ... I like this idea, but can't seem to find out how.
 
 My JSP's are under the WED-INF folder and my index.jsp simply forwards to
 the initial request.  Any ideas on how to popup the application in a
 window
 without on the browser jazz?
 
 Darren.
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 

-- 
  David Roussel

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




Dynamically generated forms

2002-12-02 Thread Jordan Thomas
Hi All,

I have a form where I want to generate forms dynamically. For instance, I
have a language bean with 3 objects so in my form I have 3 fields i.e.

html:text property=cardNumberfield_en/
html:text property=cardNumberfield_de/
html:text property=cardNumberfield_dk/

When I add an object to the language bean I want to have

html:text property=field_en/
html:text property=field_de/
html:text property=field_dk/
html:text property=field_se/

Is there a way to do this? That is, dynamically genertate the form fields?

All of my data is coming out of a ValidatorForm.

thanks

Jordan


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




RE: Remove browser toolbars 'n' such.

2002-12-02 Thread Darren Hill
Thanks everyone ... 

I'll include what I came up with ... for further archive searches ... 

SCRIPT
window.open('html:rewrite forward=welcome/', CanXApp,
fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,
directories=no,location=no)
this.window.close
/SCRIPT

This preserves HUSTED Tip to redirect into the struts app so that no jsp is
ever directly accessed .. everything goes through the framework.

Darren.

Thanks for everyones input.

-Original Message-
From: David Roussel [mailto:[EMAIL PROTECTED]]
Sent: December 2, 2002 12:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Remove browser toolbars 'n' such.


You need to do a bit of JavaScript for this.  Use window.open().  

See MSDN DHTML References fopr more info.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref
erence/dhtmlrefs.asp

On your initial page you need to have a Click here to enter type link
that has an onclick handler to call window.open().  In the arguaments to
window.open() you can turn the menus, address bar and toolbar on or off.

David


On Mon, 2 Dec 2002 11:42:10 -0500 , Darren Hill [EMAIL PROTECTED] said:
 I remember someone on the list saying that, when creating a struts app,
 that
 remove all toolbars, address bar, and navigational button from the
 browser
 ... I like this idea, but can't seem to find out how.
 
 My JSP's are under the WED-INF folder and my index.jsp simply forwards to
 the initial request.  Any ideas on how to popup the application in a
 window
 without on the browser jazz?
 
 Darren.
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 

-- 
  David Roussel

--
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 Form Beans Value Objects

2002-12-02 Thread Pat Quinn
I have an EJB which returns me a HeaderVO (Value Object) inside this VO I 
have an Array List of LineVO's. As you'd except all my Value objects are 
Serializable. Ok now i want to display this data to my client so I will have 
a header html table and a lines html table. My header and lines both contain 
text fields to allow for client updates.

Here's where i'm seeking some assistance: should I * Extract the data from 
my headerVO and insert it into a FormBean and then store my linesVO data as 
a 2Dimensional Array in my form bean.

Is there a better way to do this without writing extra code to deal with 
conversion between VO's and a Form Bean i.e. can i store the value objects 
instead a form bean but yet allow for user updates to the data.

Your ideas and suggestions would be gratefully appreciated.







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


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



Re: Struts Form Beans Value Objects

2002-12-02 Thread Patrice
I think you can place the VO in your form bean, and have text fields to
update the different properties.
For example, if you have a property header that contains your HeaderVO:
html:text property=header.myProperty/

After submission, the VO in the form bean will contain the data entered by
the user, without additional code.

Hope it helps
Patrice


- Original Message -
From: Pat Quinn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 7:08 PM
Subject: Struts Form Beans  Value Objects


 I have an EJB which returns me a HeaderVO (Value Object) inside this VO I
 have an Array List of LineVO's. As you'd except all my Value objects are
 Serializable. Ok now i want to display this data to my client so I will
have
 a header html table and a lines html table. My header and lines both
contain
 text fields to allow for client updates.

 Here's where i'm seeking some assistance: should I * Extract the data from
 my headerVO and insert it into a FormBean and then store my linesVO data
as
 a 2Dimensional Array in my form bean.

 Is there a better way to do this without writing extra code to deal with
 conversion between VO's and a Form Bean i.e. can i store the value objects
 instead a form bean but yet allow for user updates to the data.

 Your ideas and suggestions would be gratefully appreciated.







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


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



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




Help with bean:message

2002-12-02 Thread Jana Navaneethan
Hi,
I want to create a String[] using messages in my JSP page. Can
somebody tell me how to do that? Or is there any other better way of doing
this?

Requirement is simple, I want to display days (Monday thru Sunday) in my
JSP, Since our application is multi-lingual I want to get this from
properties file, some thing like

String[] arrayOfDays = { bean:message key=day1/, bean:message
key=day2/ };

Any help would be greatly appreciated!

Thanks,
Jana.




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




[slightly OT] Time zone strategies

2002-12-02 Thread Ryan Olson
Hi all,

Although this problem isn't necessarily unique to struts, it's certainly 
something that many of you may have come across in building struts 
applications. I'm writing a CRUD-type app to manage news articles which will 
support users in various time zones. Individual articles have date/time 
stamps which are normalized to the server reference timezone as they are 
stored in the model layer. However, each user should see and modify the dates 
in his/her own timezone on the presentation layer, optionally specifying 
alternate timezones if desired.

My current approach is the following (bear with me):

- business layer object ArticleBO contains a Date field populated from db with 
ResultSet.getDate()
- view layer ActionForm ArticleForm contains a Date object (internalDate) as 
well as String fields for date and time; internalDate is prepopulated from 
ArticleBO for view/edit actions
- Article JSP contains two text fields for date and time strings, which are 
not themselves prepopulated from the ArticleForm, but rather filled in as the 
page loads via JavaScripts which use internalDate.getTime() to create a 
localized JavaScript Date object and corresponding date/time strings for the 
form
- ArticleForm also contains a hidden field clientTimezoneOffset that is 
populated by JavaScript as (new Date()).getTimezoneOffset(), which is the 
client's GMT offset in minutes
- ArticleForm returns to my add/edit/whatever Action after validation, at 
which point the date/time strings are converted back to a Date object using a 
SimpleDateFormat. The SimpleDateFormat is set to the client's timezone using 
the offset information in the clientTimezoneOffset field. This is tricky 
because 
1. JavaScript-supplied values are the negative of what Java expects -- for 
example, California comes out as +8 (+7 DST) instead of -0800 (-0700 DST)
2. Since the offset value is adjusted for DST according to the local time on 
the client, the retrieval method must un-adjust it accordingly when setting 
the raw offset of the resulting TimeZone (which is DST-neutral)
- ArticleBO populated from ArticleForm now holds a Date object in the server's 
timezone

It took me awhile to figure that all out, and it seems to work well based on 
the testing I've done by setting the test lab machines' clocks/timezones 
every which way. It's an awfully convoluted process, though, and I don't like 
to rely on JavaScript. 

Has anyone else come up with a better solution? 

Thanks

Ryan Olson


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




Docs

2002-12-02 Thread Steve Gass
I wondered why the nightly builds increased in size by 10 megs. Has 
anybody complimented you guys on the new documentation yet? Just in 
case: great job! It's really pulling together nicely. I'd say that with 
the updated docs, Ted and Chuck's books, and everything else, Struts is 
well on the way to becoming the most thoroughly documented open-source 
project there is. Keep up the great work!

Steve


[but psst . . . the faq dir is missing from the 1202 build  ;)]

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




Looking for Struts powerpoint slides

2002-12-02 Thread Steven Davelaar
Hi,

I need to put together a powerpoint presentation to introduce Struts 1.1
and Tiles to an audience of Java web developers.
I am sure this has been done before, so I was hoping may be somebody out
there is willing to share his/her own slides with me.

Complete presentations, or just a couple of slides, it is all welcome.

May be you can send it to me directly, at [EMAIL PROTECTED], so
we do not annoy subscribers of this mailing list with large attachments.

Thanks in advance!
Steven.


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


RE: Validator in struts 1.1

2002-12-02 Thread Jorge Martins
This happened to me too...
Defining a proxy within the Tomcat JVM using the CATALINA_OPTS
environment variable solved my problem...

CATALINA_OPTS=-DproxySet=true -DproxyHost=proxy-name
-DproxyPort=proxy-port

jorge



-Original Message-
From: Frost, Gary [IT] [mailto:[EMAIL PROTECTED]] 
Sent: segunda-feira, 2 de Dezembro de 2002 7:54
To: [EMAIL PROTECTED]
Subject: Validator in struts 1.1


Hi, I'm trying to get the validator to work, and I must be doing
something wrong, coz when I look at the debug output of the webapp I see
the following message

2002-12-02 18:31:05,744  INFO [main]
org.apache.struts.validator.ValidatorPlugIn[] - Loading validation rules
file from '/WEB-INF/config/validator-rules.xml'
2002-12-02 18:31:05,772 DEBUG [main]
org.apache.commons.digester.Digester.sax[] -
setDocumentLocator(org.apache.crimson.parser.Parser2$DocLocator@354749)
2002-12-02 18:31:05,773 DEBUG [main]
org.apache.commons.digester.Digester.sax[] - startDocument() 2002-12-02
18:31:05,789 DEBUG [main] org.apache.commons.digester.Digester.sax[] -
resolveEntity('-//Apache Software Foundation//DTD Commons Validator
Rules Configuration 1.0//EN',
'http://jakarta.apache.org/commons/dtds/validator_1_0.dtd')
2002-12-02 18:31:06,149 ERROR [main]
org.apache.commons.digester.Digester[]
- Parse Fatal Error at line 4 column -1: External entity not found:
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd;.
java.net.UnknownHostException: jakarta.apache.org
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
at
org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2
723)
at
org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at
org.apache.commons.digester.Digester.parse(Digester.java:1561)
at
org.apache.commons.validator.ValidatorResourcesInitializer.initialize(Va
lida
torResourcesInitializer.java:256)
at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugI
n.ja
va:224)
at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:16
7)
snip

I.e. from what I see here its trying to go externally to resolve the
dtd...

I was using 1.1Beta2, and though maybe that it was a bug that has been
corrected, so I grabbed the latest nightly build (20021201), I copied
all the jar files into my WEB_INF/lib directory, and they certainly seem
to be loading ok, I checked and confirmed that the validator_1_0.dtd is
in the commons-validator.jar (it does).

I looked in the Catalina.out from Tomcat 4, and saw quite a few
ContextConfig[/webatlas]: Scanning library JAR files
ContextConfig[/webatlas]:
tldConfigJar(/WEB-INF/lib/standard.jar): Processing entry
'META-INF/sql-rt.tld'
XmlMapper: Set locator :
org.apache.xerces.readers.DefaultEntityHandler@4cc588
Resolve: -//Sun Microsystems, Inc.//DTD JSP Tag Library
1.2//EN http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
  Using alternate DTD
/javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd
Notation: WEB-JSPTAGLIB.1_2 -//Sun Microsystems,
Inc.//DTD JSP Tag Library 1.2//EN null
ContextConfig[/webatlas]:
tldConfigJar(/WEB-INF/lib/standard.jar): Processing entry
'META-INF/c.tld'

And the same for struts.jar (i.e. 
ContextConfig[/webatlas]:
tldConfigJar(/WEB-INF/lib/struts.jar): Processing entry
'META-INF/tlds/struts-nested.tld'
XmlMapper: Set locator :
org.apache.xerces.readers.DefaultEntityHandler@3adc56
Resolve: -//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd
  Using alternate DTD
/javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd)

But nothing for validator.jar in that section (even though near the top
of the output was a line
WebappLoader[/webatlas]: Deploy JAR
/WEB-INF/lib/commons-validator.jar to
/home/gf06866/projects/webATLAS/dist/war/WEB-INF/lib/commons-validator.j
ar

So it seems that it is picking up the jar ok...!!

I confirmed that my struts.xml was loading the validator in the plugin
correctly, it reads
plug-in
className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames

value=/WEB-INF/config/validator-rules.xml,

/WEB-INF/config/logon/validator.xml/
/plug-in

And the two validator files are reference the correct DOC_TYPE, they
(both) read
!DOCTYPE form-validation PUBLIC
-//Apache Software Foundation//DTD Commons Validator Rules
Configuration 1.0//EN
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd;

The net result is that obviously the validator isn't 

RE: [slightly OT] Time zone strategies

2002-12-02 Thread Hajratwala, Nayan (N.)
I didn't delve too much into the details of your current approach, but couldn't you do 
this fairly easily using the Calendar class...


  Date fromDb = ResultSet.getDate(...);
  Calendar cal = Calendar.getInstance(user's TimeZone, optionally user's Locale);
  cal.setTime(fromDb);

  Now you can manipulate/display the values in the user's timezone
  

---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-Original Message-
From: Ryan Olson [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 2:23 PM
To: Struts Users Mailing List
Subject: [slightly OT] Time zone strategies


Hi all,

Although this problem isn't necessarily unique to struts, it's certainly 
something that many of you may have come across in building struts 
applications. I'm writing a CRUD-type app to manage news articles which will 
support users in various time zones. Individual articles have date/time 
stamps which are normalized to the server reference timezone as they are 
stored in the model layer. However, each user should see and modify the dates 
in his/her own timezone on the presentation layer, optionally specifying 
alternate timezones if desired.

My current approach is the following (bear with me):

- business layer object ArticleBO contains a Date field populated from db with 
ResultSet.getDate()
- view layer ActionForm ArticleForm contains a Date object (internalDate) as 
well as String fields for date and time; internalDate is prepopulated from 
ArticleBO for view/edit actions
- Article JSP contains two text fields for date and time strings, which are 
not themselves prepopulated from the ArticleForm, but rather filled in as the 
page loads via JavaScripts which use internalDate.getTime() to create a 
localized JavaScript Date object and corresponding date/time strings for the 
form
- ArticleForm also contains a hidden field clientTimezoneOffset that is 
populated by JavaScript as (new Date()).getTimezoneOffset(), which is the 
client's GMT offset in minutes
- ArticleForm returns to my add/edit/whatever Action after validation, at 
which point the date/time strings are converted back to a Date object using a 
SimpleDateFormat. The SimpleDateFormat is set to the client's timezone using 
the offset information in the clientTimezoneOffset field. This is tricky 
because 
1. JavaScript-supplied values are the negative of what Java expects -- for 
example, California comes out as +8 (+7 DST) instead of -0800 (-0700 DST)
2. Since the offset value is adjusted for DST according to the local time on 
the client, the retrieval method must un-adjust it accordingly when setting 
the raw offset of the resulting TimeZone (which is DST-neutral)
- ArticleBO populated from ArticleForm now holds a Date object in the server's 
timezone

It took me awhile to figure that all out, and it seems to work well based on 
the testing I've done by setting the test lab machines' clocks/timezones 
every which way. It's an awfully convoluted process, though, and I don't like 
to rely on JavaScript. 

Has anyone else come up with a better solution? 

Thanks

Ryan Olson


--
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: Looking for Struts powerpoint slides

2002-12-02 Thread Kevin . Bedell



I put together a set of Powerpoints for use in presenting Struts to a
reasonably non-technical audience. It is intended really as a management
presentation, but I'm sure you could reuse some of the slides.

If you add slides for Tiles or to add more detail for developers, plese let
me know and I'll incorporate them.

The presentation is on the website for my new book Struts Kick Start
which shuld be available from Amazon soon - the address is:

http://www.strutskickstart.com

Best of luck,

Kevin





Steven Davelaar [EMAIL PROTECTED] on 12/02/2002 02:38:37 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:struts [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:Looking for Struts powerpoint slides


Hi,

I need to put together a powerpoint presentation to introduce Struts 1.1
and Tiles to an audience of Java web developers.
I am sure this has been done before, so I was hoping may be somebody out
there is willing to share his/her own slides with me.

Complete presentations, or just a couple of slides, it is all welcome.

May be you can send it to me directly, at [EMAIL PROTECTED], so
we do not annoy subscribers of this mailing list with large attachments.

Thanks in advance!
Steven.


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






---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



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




RE: Struts Form Beans Value Objects

2002-12-02 Thread Karr, David
Most likely, you will find good reasons to have value objects which are
specific to your business logic layer, and value objects which are
specific to your view layer, even if they have identical contents in
many cases.

There's a couple of reasons for this (other people may see others).
Probably the best reason is that your form beans should contain string
values, as that's the form that the user entered the data in, but your
business logic value objects should contain values in your domain types.

You may also find that you have fields in one layer that you don't need
to communicate to the other layer.  It's conceivable you could just
ignore the values that don't apply at one layer, but it would be cleaner
if each layer just gets the data it needs, as if someone else works on
this code, they won't get confused about which values each layer really
needs.

In most cases, you'll still be able to use Beanutils to copy bean values
from one layer to another, even  if there are standard data type
conversions.

 -Original Message-
 From: Pat Quinn [mailto:[EMAIL PROTECTED]]
 
 I have an EJB which returns me a HeaderVO (Value Object) 
 inside this VO I 
 have an Array List of LineVO's. As you'd except all my Value 
 objects are 
 Serializable. Ok now i want to display this data to my client 
 so I will have 
 a header html table and a lines html table. My header and 
 lines both contain 
 text fields to allow for client updates.
 
 Here's where i'm seeking some assistance: should I * Extract 
 the data from 
 my headerVO and insert it into a FormBean and then store my 
 linesVO data as 
 a 2Dimensional Array in my form bean.
 
 Is there a better way to do this without writing extra code 
 to deal with 
 conversion between VO's and a Form Bean i.e. can i store the 
 value objects 
 instead a form bean but yet allow for user updates to the data.
 
 Your ideas and suggestions would be gratefully appreciated.
 
 
 
 
 
 
 
 _
 Tired of spam? Get advanced junk mail protection with MSN 8. 
 http://join.msn.com/?page=features/junkmail
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: Please help! More nested tag trouble with DynaValidatorForm!

2002-12-02 Thread Seth Milder
Gemes Tibor wrote:

2002-11-30, szo keltezssel Seth Milder ezt rta:


Does anyone have a workaround? Am I doing some stupid thing here?



The dot separator is for subbeans' properties. It follows the commons
beanutils' PropertyUtils notation.

http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/PropertyUtils.html

Hth

Tib


I figured out a workaround for my problem. I looked at the link you 
provided and I just wanted to thank you for it. The above has greatly 
simplified my code.


--
Seth Milder
Department of Physics and Astronomy
MS 3f3
George Mason University
Fairfax, VA
http://www.mrseth.org
--
The whole problem with the world is that fools and fanatics are always 
so certain of themselves, and wiser people so full of doubts. 
--Bertrand Russell


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



Re: session form bean reuse

2002-12-02 Thread Mark Lepkowski
  How do you get session A information available to session B without persisting it 
somehow (the HttpSessionContext interface is depracated in Java Servlet API v2.1for 
security reasons...)?
(snip)
 
 
 Use servlet context attributes to share information between all the
 sessions in your webapp.

Thanks for the info.  I knew there had to be something in the servlet scope, but 
didn't know quite where to find it.  The following works in any of our classes that 
extend Action:

servlet.getServletContext().setAttribute( myAttribute, myAttribute );

and likewise

MyAttribute myAttribute = (MyAttribute)servlet.getServletContext().getAttribute( 
myAttribute );

I noticed that:
- servlet is declared a protected transient ActionServlet in ActionServletWrapper, 
- ActionForm has the getter method for the wrapper,
- RequestUtils.populate() calls the getter,
- ActionServlet calls RequestUtils.populate()

What I don't follow is how the servlet object is exposed in the Action subclasses.



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




WYSIWYG API

2002-12-02 Thread Adolfo Miguelez
Hi all,

I am thinking about developing a projects with stands in a WYSIWYG design of 
HTML pages.

I have been looking for any API, or Open Source project to adapt, which 
could ease me the task, by using visual images, representing HTML 
components, or maybe Struts custom tags, dragged and dropped from a palette. 
Does any of you know some API, maybe in Eclipse`s SWT that gives me half of 
the way done.

Any suggestion?

TIA,

Adolfo.







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


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



Re: WYSIWYG API

2002-12-02 Thread David Graham
I believe new IDEs from major companies like IBM and Borland have this 
functionality (or at least the start of it).

David






From: Adolfo Miguelez [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: WYSIWYG API
Date: Mon, 02 Dec 2002 20:39:16 +

Hi all,

I am thinking about developing a projects with stands in a WYSIWYG design 
of HTML pages.

I have been looking for any API, or Open Source project to adapt, which 
could ease me the task, by using visual images, representing HTML 
components, or maybe Struts custom tags, dragged and dropped from a 
palette. Does any of you know some API, maybe in Eclipse`s SWT that gives 
me half of the way done.

Any suggestion?

TIA,

Adolfo.







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


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


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Re: Docs

2002-12-02 Thread David Graham
Because there are a bunch of images included now.  Not because the actual 
documentation increased that much.

David






From: Steve Gass [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Docs
Date: Mon, 02 Dec 2002 14:36:44 -0500

I wondered why the nightly builds increased in size by 10 megs. Has
anybody complimented you guys on the new documentation yet? Just in
case: great job! It's really pulling together nicely. I'd say that with
the updated docs, Ted and Chuck's books, and everything else, Struts is
well on the way to becoming the most thoroughly documented open-source
project there is. Keep up the great work!

Steve


[but psst . . . the faq dir is missing from the 1202 build  ;)]

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


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


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



How to collect user input?

2002-12-02 Thread Jana Navaneethan
Hi,
   I have a form which collects multiple values, How to collect the user input 
effectively using STRUTS? For example I want to use some index for the checkbox? like 
day1,day2 in that case, do I need to have two properties in my form bean? like 
getDay1() and getDay2() or Is there any better way of doing this?  Any suggestions 
would be greatly appreciated!

Thanks,
Jana.

  Saturday   Closed   Opening Time Open 24 hours Midnight 12:30 AM 1:00 AM 1:30 AM 
2:00 AM 2:30 AM 3:00 AM 3:30 AM 4:00 AM 4:30 AM 5:00 AM 5:30 AM 6:00 AM 6:30 AM 7:00 
AM 7:30 AM 8:00 AM 8:30 AM 9:00 AM 9:30 AM 10:00 AM 10:30 AM 11:00 AM 11:30 AM Noon 
12:30 PM 1:00 PM 1:30 PM 2:00 PM 2:30 PM 3:00 PM 3:30 PM 4:00 PM 4:30 PM 5:00 PM 5:30 
PM 6:00 PM 6:30 PM 7:00 PM 7:30 PM 8:00 PM 8:30 PM 9:00 PM 9:30 PM 10:00 PM 10:30 PM 
11:00 PM 11:30 PM Midnight   Closing Time Midnight 12:30 AM 1:00 AM 1:30 AM 2:00 AM 
2:30 AM 3:00 AM 3:30 AM 4:00 AM 4:30 AM 5:00 AM 5:30 AM 6:00 AM 6:30 AM 7:00 AM 7:30 
AM 8:00 AM 8:30 AM 9:00 AM 9:30 AM 10:00 AM 10:30 AM 11:00 AM 11:30 AM Noon 12:30 PM 
1:00 PM 1:30 PM 2:00 PM 2:30 PM 3:00 PM 3:30 PM 4:00 PM 4:30 PM 5:00 PM 5:30 PM 6:00 
PM 6:30 PM 7:00 PM 7:30 PM 8:00 PM 8:30 PM 9:00 PM 9:30 PM 10:00 PM 10:30 PM 11:00 PM 
11:30 PM Midnight   
  Sunday   Closed   Opening Time Open 24 hours Midnight 12:30 AM 1:00 AM 1:30 AM 
2:00 AM 2:30 AM 3:00 AM 3:30 AM 4:00 AM 4:30 AM 5:00 AM 5:30 AM 6:00 AM 6:30 AM 7:00 
AM 7:30 AM 8:00 AM 8:30 AM 9:00 AM 9:30 AM 10:00 AM 10:30 AM 11:00 AM 11:30 AM Noon 
12:30 PM 1:00 PM 1:30 PM 2:00 PM 2:30 PM 3:00 PM 3:30 PM 4:00 PM 4:30 PM 5:00 PM 5:30 
PM 6:00 PM 6:30 PM 7:00 PM 7:30 PM 8:00 PM 8:30 PM 9:00 PM 9:30 PM 10:00 PM 10:30 PM 
11:00 PM 11:30 PM Midnight   Closing Time Midnight 12:30 AM 1:00 AM 1:30 AM 2:00 AM 
2:30 AM 3:00 AM 3:30 AM 4:00 AM 4:30 AM 5:00 AM 5:30 AM 6:00 AM 6:30 AM 7:00 AM 7:30 
AM 8:00 AM 8:30 AM 9:00 AM 9:30 AM 10:00 AM 10:30 AM 11:00 AM 11:30 AM Noon 12:30 PM 
1:00 PM 1:30 PM 2:00 PM 2:30 PM 3:00 PM 3:30 PM 4:00 PM 4:30 PM 5:00 PM 5:30 PM 6:00 
PM 6:30 PM 7:00 PM 7:30 PM 8:00 PM 8:30 PM 9:00 PM 9:30 PM 10:00 PM 10:30 PM 11:00 PM 
11:30 PM Midnight   




bean:define for value in properties file

2002-12-02 Thread Michael Lee
I have a value in my ApplicationResources.properties called
page.title=Customer Information
I want to have this value available in the page context. I would like to use a struts 
tag to do so. If not, I have to use a scriptlet (which I try to avoid).
here is what I'd like to do
bean:define id=pageTitle value=page.title/
any ideas?
thanks,
Mike


RE: bean:define for value in properties file

2002-12-02 Thread Andrew B Forman
bean:message key=page.title /
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/MessageTa
g.html

a

 -Original Message-
 From: Michael Lee [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 02, 2002 3:52 PM
 To: Struts Users Mailing List
 Subject: bean:define for value in properties file


 I have a value in my ApplicationResources.properties called
 page.title=Customer Information
 I want to have this value available in the page context. I would
 like to use a struts tag to do so. If not, I have to use a
 scriptlet (which I try to avoid).
 here is what I'd like to do
 bean:define id=pageTitle value=page.title/
 any ideas?
 thanks,
 Mike


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




Re: bean:define for value in properties file

2002-12-02 Thread Michael Lee
Not view it, set it to a pageContext variable.
thanks though,
Mike

- Original Message -
From: Andrew B Forman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 5:03 PM
Subject: RE: bean:define for value in properties file


 bean:message key=page.title /

http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/MessageTa
 g.html

 a

  -Original Message-
  From: Michael Lee [mailto:[EMAIL PROTECTED]]
  Sent: Monday, December 02, 2002 3:52 PM
  To: Struts Users Mailing List
  Subject: bean:define for value in properties file
 
 
  I have a value in my ApplicationResources.properties called
  page.title=Customer Information
  I want to have this value available in the page context. I would
  like to use a struts tag to do so. If not, I have to use a
  scriptlet (which I try to avoid).
  here is what I'd like to do
  bean:define id=pageTitle value=page.title/
  any ideas?
  thanks,
  Mike


 --
 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: bean:define for value in properties file

2002-12-02 Thread Joe Germuska
At 5:08 PM -0500 2002/12/02, Michael Lee wrote:

Not view it, set it to a pageContext variable.
thanks though,


bean:define id=pageTitle
  bean:message key=page.title /
/bean:define

Since Struts 1.1 (I think) bean:define can use its body content to 
define a literal String bean.

Joe



Mike

- Original Message -
From: Andrew B Forman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 5:03 PM
Subject: RE: bean:define for value in properties file



 bean:message key=page.title /


http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/MessageTa

 g.html

 a

  -Original Message-
  From: Michael Lee [mailto:[EMAIL PROTECTED]]
  Sent: Monday, December 02, 2002 3:52 PM
  To: Struts Users Mailing List
  Subject: bean:define for value in properties file
 
 
  I have a value in my ApplicationResources.properties called
  page.title=Customer Information
  I want to have this value available in the page context. I would
  like to use a struts tag to do so. If not, I have to use a
  scriptlet (which I try to avoid).
  here is what I'd like to do
  bean:define id=pageTitle value=page.title/
  any ideas?
  thanks,
  Mike


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



--
--
* Joe Germuska{ [EMAIL PROTECTED] }
It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records.
	--Sam Goody, 1956

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



Re: Docs

2002-12-02 Thread Steve Gass
On Monday 02 December 2002 04:21 pm, David Graham wrote:
 Because there are a bunch of images included now.  Not because the
 actual documentation increased that much.

Well, it was the file size which led me to look at the docs more 
closely. I guess it's been awhile since I've updated them on my system, 
but the newest version is far more complete and useful than the last 
time I studied them. 

I stand by my compliment. :)

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




intermitten missing field value when submit to a Struts action????

2002-12-02 Thread Tuan H. Le
Hi,

Has any one experienced a problem that I'm having with hidden input text field? 

I have two different IE browser versions (5.5 and 6.0). For the IE 6.0, it works fine 
when I get a hidden field value via

(String)request.getParameter( action );

But, for IE 5.5 version with the same code, some times it returns a null value from 
the hidden field action.

Thanks,
Tuan





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


validator question

2002-12-02 Thread Andy Kriger
I have an app with multiple forms. Some fields appear on multiple forms
(e.g. email). Instead of copy-pasting the field validataion definition, is
there a way to define a field element once and refer to it multiple time in
the validation.xml file?

thx
andy



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




RE: intermitten missing field value when submit to a Struts action????

2002-12-02 Thread edgar
This doesn't sound like a browser issue.  I would look elsewhere.

Edgar

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 6:05 PM
To: 'Struts Users Mailing List (E-mail)'
Subject: intermitten missing field value when submit to a Struts
action


Hi,

Has any one experienced a problem that I'm having with hidden input text
field? 

I have two different IE browser versions (5.5 and 6.0). For the IE 6.0,
it works fine when I get a hidden field value via

(String)request.getParameter( action );

But, for IE 5.5 version with the same code, some times it returns a null
value from the hidden field action.

Thanks,
Tuan







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




Bypassing validation in ActionForm for certain LookupDispatchAction modes

2002-12-02 Thread Ryan Olson
Hi,

I have a LookupDispatchAction which performs add, update, and delete 
operations based on an incoming ActionForm. I have a validate() method in the 
ActionForm since I need to validate input for the update and add operations, 
but I want to bypass that method in the case of the delete action (ie I don't 
want the user to be stopped from deleting a record that they may have made 
changes to and doesn't presently contain valid data).

Based on the list archives it looks like the way to do this is to add a check 
to the validate() method, like this:

String dispatchParam = mapping.getParameter();
String dispatchActionMode = request.getParameter(dispatchParam);

Since I'm using LookupDispatchAction I want to compare the value of 
dispatchActionMode with the button label as defined in my 
ApplicationResources properties file (button.label.delete) in this case. 
However, I haven't been able to figure out how to get at that value from 
within my ActionForm. (Actually, I'd rather look up the value in the Map 
returned by getKeyMethodMap() in the LookupDispatchAction, but it's neither 
public nor static.) 

I'm also open to other suggestions as to how to go about doing this.

Thanks

Ryan Olson


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




RE: intermitten missing field value when submit to a Struts action????

2002-12-02 Thread Tuan H. Le
Edgar,

Thanks for your replied. I also tried to set the action in a Struts form bean and I 
got the same result. It worked fine with IE 6.0.

Thanks,
Tuan

-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: intermitten missing field value when submit to a Struts
action


This doesn't sound like a browser issue.  I would look elsewhere.

Edgar

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 6:05 PM
To: 'Struts Users Mailing List (E-mail)'
Subject: intermitten missing field value when submit to a Struts
action


Hi,

Has any one experienced a problem that I'm having with hidden input text
field? 

I have two different IE browser versions (5.5 and 6.0). For the IE 6.0,
it works fine when I get a hidden field value via

(String)request.getParameter( action );

But, for IE 5.5 version with the same code, some times it returns a null
value from the hidden field action.

Thanks,
Tuan







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




[OT] caching drop-down lists

2002-12-02 Thread Jarnot Voytek Contr AU HQ/SC
In our application (and I'm sure most others) we've got a multitude of
drop-down lists used for data entry.  The Collections for the drop-downs are
populated from the database.

This doesn't seem very efficient - to hit the database for a read-only data
every time.

I'd like to cache this data (Business Delegate layer in our case); but I'm
afraid of caching all the drop-down list Collections - I don't want to use
up too much memory.

I'm thinking of implementing some sort of singleton that would cache a
specified number of Collections and remove the least recently used ones as
new ones are requested.

Has anyone implemented this sort of thing?  Am I adding too much complexity
(and overhead)?  Do you think I should just cache them all - after all, I'm
not sure that there will actually be so many as to use an inordinate amount
of memory?

Just thinking out loud...
--Voytek Jarnot

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




RE: [OT] caching drop-down lists

2002-12-02 Thread Hookom, Jacob John
It wouldn't be too difficult to write your own softreference cache that would store 
your collections.
 
That way, you can store as much as you want/ that the VM can handle
 
public class DropDownCache()
{
   private Map map;
   
   public Collection getDropDown(String key)
   {
  Collection result = null;
  // or use WeakReference
 SoftReference ref = (SoftReference) this.map.get(key);
 if (ref != null)
 {
   result = (Collection) ref.getObject();
   if (result == null)
   {
this.map.remove(key);
   }
 }
return result;
}
 
public void putDropDown(String key, Collection dropDown)
   {
 SoftReference ref = new SoftReference();
 ref.setObject(dropDown);
 this.map.put(key, ref);
   }
}
 
Then, in your BusinessDelegators, simple do a DropDownCache check, if the object's not 
there, hit the db and re-grab it, and store it again before returning it to the Action.
 
-Jacob Hookom

-Original Message- 
From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]] 
Sent: Mon 12/2/2002 6:04 PM 
To: '[EMAIL PROTECTED]' 
Cc: 
Subject: [OT] caching drop-down lists



In our application (and I'm sure most others) we've got a multitude of
drop-down lists used for data entry.  The Collections for the drop-downs are
populated from the database.

This doesn't seem very efficient - to hit the database for a read-only data
every time.

I'd like to cache this data (Business Delegate layer in our case); but I'm
afraid of caching all the drop-down list Collections - I don't want to use
up too much memory.

I'm thinking of implementing some sort of singleton that would cache a
specified number of Collections and remove the least recently used ones as
new ones are requested.

Has anyone implemented this sort of thing?  Am I adding too much complexity
(and overhead)?  Do you think I should just cache them all - after all, I'm
not sure that there will actually be so many as to use an inordinate amount
of memory?

Just thinking out loud...
--Voytek Jarnot

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




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


RE: [OT] caching drop-down lists

2002-12-02 Thread Savantraj, Chennamakal Subramanian
How about registering this DropDowns in Application Context? This will
ensure Singleton model anyway.

-Original Message-
From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 8:36 AM
To: Struts Users Mailing List
Subject: RE: [OT] caching drop-down lists


It wouldn't be too difficult to write your own softreference cache that
would store your collections.
 
That way, you can store as much as you want/ that the VM can handle
 
public class DropDownCache()
{
   private Map map;
   
   public Collection getDropDown(String key)
   {
  Collection result = null;
  // or use WeakReference
 SoftReference ref = (SoftReference) this.map.get(key);
 if (ref != null)
 {
   result = (Collection) ref.getObject();
   if (result == null)
   {
this.map.remove(key);
   }
 }
return result;
}
 
public void putDropDown(String key, Collection dropDown)
   {
 SoftReference ref = new SoftReference();
 ref.setObject(dropDown);
 this.map.put(key, ref);
   }
}
 
Then, in your BusinessDelegators, simple do a DropDownCache check, if the
object's not there, hit the db and re-grab it, and store it again before
returning it to the Action.
 
-Jacob Hookom

-Original Message- 
From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]] 
Sent: Mon 12/2/2002 6:04 PM 
To: '[EMAIL PROTECTED]' 
Cc: 
Subject: [OT] caching drop-down lists



In our application (and I'm sure most others) we've got a multitude of
drop-down lists used for data entry.  The Collections for the drop-downs are
populated from the database.

This doesn't seem very efficient - to hit the database for a read-only data
every time.

I'd like to cache this data (Business Delegate layer in our case); but I'm
afraid of caching all the drop-down list Collections - I don't want to use
up too much memory.

I'm thinking of implementing some sort of singleton that would cache a
specified number of Collections and remove the least recently used ones as
new ones are requested.

Has anyone implemented this sort of thing?  Am I adding too much complexity
(and overhead)?  Do you think I should just cache them all - after all, I'm
not sure that there will actually be so many as to use an inordinate amount
of memory?

Just thinking out loud...
--Voytek Jarnot

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




---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway. 
---




RE: [slightly OT] Time zone strategies

2002-12-02 Thread Ryan Olson
Well, that's the approach I'd taken originally, but I found two problems with 
it:

1) I didn't like how that approach mixes the presentation layer into the 
business layer (ie, my data access objects shouldn't care what timezone the 
user is in)

2) I don't necessarily know ahead of time (ie, when fetching the data) what 
timezone the user is in

What I'm aiming for is a solution that does all the timezone manipulation on 
the presentation/view layer so that my business objects don't have to worry 
about it. At least, I think that's what would make the most sense...

Thanks

Ryan Olson

Hajratwala, Nayan (N.) [EMAIL PROTECTED] wrote:
 I didn't delve too much into the details of your current approach, but 
 couldn't you do this fairly easily using the Calendar class...


   Date fromDb = ResultSet.getDate(...);
   Calendar cal = Calendar.getInstance(user's TimeZone, optionally user's 
 Locale);
   cal.setTime(fromDb);

   Now you can manipulate/display the values in the user's timezone

Original Message-
From: Ryan Olson [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 2:23 PM
To: Struts Users Mailing List
Subject: [slightly OT] Time zone strategies


Hi all,

Although this problem isn't necessarily unique to struts, it's certainly 
something that many of you may have come across in building struts 
applications. I'm writing a CRUD-type app to manage news articles which will 
support users in various time zones. Individual articles have date/time 
stamps which are normalized to the server reference timezone as they are 
stored in the model layer. However, each user should see and modify the dates 
in his/her own timezone on the presentation layer, optionally specifying 
alternate timezones if desired.
[...]


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




RE: Validator in struts 1.1

2002-12-02 Thread Frost, Gary [IT]
Thanks, that sorts the problem out, it now resolves the dtd from the
internet.  

However while this gets me going, its probably best in the production system
that we don't need this dependency, we should be able to resolve the DTD
locally using the given DTD in commons-validator.jar ... anyone got any
input on why this isn't happening for me automagically, and/or how I get it
to resolve correctly from the supplied dtd.

Gary

 -Original Message-
From:   Jorge Martins [mailto:[EMAIL PROTECTED]] 
Sent:   Tuesday, 3 December 2002 6:39 AM
To: 'Struts Users Mailing List'
Subject:RE: Validator in struts 1.1

This happened to me too...
Defining a proxy within the Tomcat JVM using the CATALINA_OPTS
environment variable solved my problem...

CATALINA_OPTS=-DproxySet=true -DproxyHost=proxy-name
-DproxyPort=proxy-port

jorge



-Original Message-
From: Frost, Gary [IT] [mailto:[EMAIL PROTECTED]] 
Sent: segunda-feira, 2 de Dezembro de 2002 7:54
To: [EMAIL PROTECTED]
Subject: Validator in struts 1.1


Hi, I'm trying to get the validator to work, and I must be doing
something wrong, coz when I look at the debug output of the webapp I see
the following message

2002-12-02 18:31:05,744  INFO [main]
org.apache.struts.validator.ValidatorPlugIn[] - Loading validation rules
file from '/WEB-INF/config/validator-rules.xml'
2002-12-02 18:31:05,772 DEBUG [main]
org.apache.commons.digester.Digester.sax[] -
setDocumentLocator(org.apache.crimson.parser.Parser2$DocLocator@354749)
2002-12-02 18:31:05,773 DEBUG [main]
org.apache.commons.digester.Digester.sax[] - startDocument() 2002-12-02
18:31:05,789 DEBUG [main] org.apache.commons.digester.Digester.sax[] -
resolveEntity('-//Apache Software Foundation//DTD Commons Validator
Rules Configuration 1.0//EN',
'http://jakarta.apache.org/commons/dtds/validator_1_0.dtd')
2002-12-02 18:31:06,149 ERROR [main]
org.apache.commons.digester.Digester[]
- Parse Fatal Error at line 4 column -1: External entity not found:
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd;.
java.net.UnknownHostException: jakarta.apache.org
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
at
org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2
723)
at
org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at
org.apache.commons.digester.Digester.parse(Digester.java:1561)
at
org.apache.commons.validator.ValidatorResourcesInitializer.initialize(Va
lida
torResourcesInitializer.java:256)
at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugI
n.ja
va:224)
at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:16
7)
snip

I.e. from what I see here its trying to go externally to resolve the
dtd...

I was using 1.1Beta2, and though maybe that it was a bug that has been
corrected, so I grabbed the latest nightly build (20021201), I copied
all the jar files into my WEB_INF/lib directory, and they certainly seem
to be loading ok, I checked and confirmed that the validator_1_0.dtd is
in the commons-validator.jar (it does).

I looked in the Catalina.out from Tomcat 4, and saw quite a few
ContextConfig[/webatlas]: Scanning library JAR files
ContextConfig[/webatlas]:
tldConfigJar(/WEB-INF/lib/standard.jar): Processing entry
'META-INF/sql-rt.tld'
XmlMapper: Set locator :
org.apache.xerces.readers.DefaultEntityHandler@4cc588
Resolve: -//Sun Microsystems, Inc.//DTD JSP Tag Library
1.2//EN http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
  Using alternate DTD
/javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd
Notation: WEB-JSPTAGLIB.1_2 -//Sun Microsystems,
Inc.//DTD JSP Tag Library 1.2//EN null
ContextConfig[/webatlas]:
tldConfigJar(/WEB-INF/lib/standard.jar): Processing entry
'META-INF/c.tld'

And the same for struts.jar (i.e. 
ContextConfig[/webatlas]:
tldConfigJar(/WEB-INF/lib/struts.jar): Processing entry
'META-INF/tlds/struts-nested.tld'
XmlMapper: Set locator :
org.apache.xerces.readers.DefaultEntityHandler@3adc56
Resolve: -//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd
  Using alternate DTD
/javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd)

But nothing for validator.jar in that section (even though near the top
of the output was a line
WebappLoader[/webatlas]: Deploy JAR
/WEB-INF/lib/commons-validator.jar to
/home/gf06866/projects/webATLAS/dist/war/WEB-INF/lib/commons-validator.j
ar

So it seems that it is picking up the jar ok...!!

I confirmed that my 

Re: [OT] caching drop-down lists

2002-12-02 Thread Craig R. McClanahan
On Mon, 2 Dec 2002, Jarnot Voytek Contr AU HQ/SC wrote:

 Date: Mon, 2 Dec 2002 18:04:44 -0600
 From: Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: [OT] caching drop-down lists

 In our application (and I'm sure most others) we've got a multitude of
 drop-down lists used for data entry.  The Collections for the drop-downs are
 populated from the database.

 This doesn't seem very efficient - to hit the database for a read-only data
 every time.

 I'd like to cache this data (Business Delegate layer in our case); but I'm
 afraid of caching all the drop-down list Collections - I don't want to use
 up too much memory.

 I'm thinking of implementing some sort of singleton that would cache a
 specified number of Collections and remove the least recently used ones as
 new ones are requested.

 Has anyone implemented this sort of thing?  Am I adding too much complexity
 (and overhead)?  Do you think I should just cache them all - after all, I'm
 not sure that there will actually be so many as to use an inordinate amount
 of memory?


In a commercial project, I'd say that 99.9% of the time buying a few extra
megabytes of RAM is *much* cheaper than the cost of the programming effort
to build and maintain such caches over the life of a project.  I *hope*
that's true for the military as well :-).

Of course, how much room the collections take is totally application
dependent -- I'd start by caching all of them (as servlet context
attributes) and see how much memory it actually takes.  If you're hitting
the database a lot for this purpose, you'll probably also enjoy
the improved response time due to reducing per-request database hits.

 Just thinking out loud...
 --Voytek Jarnot


Craig


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




RE: intermitten missing field value when submit to a Struts action????

2002-12-02 Thread Todd Pierce
If you have something working consistently in one browser and consistently
not in another, it's likely to be an HTML problem. Are you submitting with a
GET or a POST method? If you're using GET, there's a known bug (fixed in IE
6) where parameter names can resolve to escape characters, e.g.
/someul.do?param=123quote=456 will become /someul.do?param=123e=456. Might
be something to do with that?



-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 December 2002 10:28 AM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Edgar,

Thanks for your replied. I also tried to set the action in a Struts form
bean and I got the same result. It worked fine with IE 6.0.

Thanks,
Tuan

-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: intermitten missing field value when submit to a Struts
action


This doesn't sound like a browser issue.  I would look elsewhere.

Edgar

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 6:05 PM
To: 'Struts Users Mailing List (E-mail)'
Subject: intermitten missing field value when submit to a Struts
action


Hi,

Has any one experienced a problem that I'm having with hidden input text
field? 

I have two different IE browser versions (5.5 and 6.0). For the IE 6.0,
it works fine when I get a hidden field value via

(String)request.getParameter( action );

But, for IE 5.5 version with the same code, some times it returns a null
value from the hidden field action.

Thanks,
Tuan







--
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: [OT] caching drop-down lists

2002-12-02 Thread David Graham
Java 1.4 already has a LRU cache implementation called 
java.util.LinkedHashMap.

http://www.onjava.com/pub/a/onjava/2002/03/06/topten.html?page=1

However, I would just put everything in the ServletContext until you can 
prove it won't work.

David






From: Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: [OT] caching drop-down lists
Date: Mon, 2 Dec 2002 18:04:44 -0600

In our application (and I'm sure most others) we've got a multitude of
drop-down lists used for data entry.  The Collections for the drop-downs 
are
populated from the database.

This doesn't seem very efficient - to hit the database for a read-only data
every time.

I'd like to cache this data (Business Delegate layer in our case); but I'm
afraid of caching all the drop-down list Collections - I don't want to use
up too much memory.

I'm thinking of implementing some sort of singleton that would cache a
specified number of Collections and remove the least recently used ones as
new ones are requested.

Has anyone implemented this sort of thing?  Am I adding too much complexity
(and overhead)?  Do you think I should just cache them all - after all, I'm
not sure that there will actually be so many as to use an inordinate amount
of memory?

Just thinking out loud...
--Voytek Jarnot

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


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


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



html:multibox having a problem of passing the selected items to an action

2002-12-02 Thread Tuan H. Le

Hi,

I'm having a problem of getting the selected checkbox values in my Struts action 
class. In the view, it has two multiboxes (approve and reject) and in my Struts form 
class I declared two String[] attributes to hold the selected checkbox values. But, 
when it gets to the action via html form submit, it returns empty String array. The 
checkbox selection works fine on the view.

Below is my code: View, ActionForm, Action class, and strut-config.xml.

Thanks for your time!

Tuan

- View (JSP) -
head
  titleOnline Focal Tool Application/title
  link rel=stylesheet type=text/css href=common/styles/styleMid.css
  SCRIPT LANGUAGE=JavaScript
   function check( e ) {
  e.checked = true;
   }

   function clear( e ) {
  e.checked = false;
   }

   function checkAll( selectedChkBoxName ) {
  // clear the other selections
  if ( selectedChkBoxName == 'approveList' ) {
// clear reject check box list
clearAll( 'rejectList' );
  } else {
// clear approve check box list
clearAll( 'approveList' );
  }
  // now, set the user's selections
  var listForm = top.frames['body'].approveSubmitForm;
  var len = listForm.elements.length;
  for ( var i = 0; i  len; i++ ) {
 var e = listForm.elements[i];
 if ( e.name == selectedChkBoxName ) {
check( e );
 }
  }
   }

   function isNumeric (content) {
 if (((content/content) != 1)  (content != 0)) {
   return false;
 } else {
   return true;
 }
   }

   function clearAll( selectedChkBoxName ) {
  // now, un-select the user's selections
  var listForm = top.frames['body'].approveSubmitForm;
  var len = listForm.elements.length;
  for ( var i = 0; i  len; i++ ) {
 var e = listForm.elements[i];
 if ( e.name == selectedChkBoxName ) {
clear( e );
 }
  }
   }

   function selectChoice( theForm, theField ) {
 var len = theForm.elements.length;
 for ( var i = 0; i  len; i++ ) {
   if ( theForm.elements[i].type == 'checkbox' ) {
 if ( theForm.elements[i].name != theField.name ) {
   if (( theForm.elements[i].value == theField.value)  
theForm.elements[i].checked ) {
 clear( theForm.elements[i] );
 break;
   } else if ( theForm.elements[i].value == theField.value ) {
 // found a match, but the other checkbox is not selected, so
 // break out this loop
 break;
   }
 }
   }
 } // end for
   }
   /SCRIPT
/head


html:form action=/approveSubmit
   name=approveSubmitForm
   type=com.phs.ezhr.presentation.form.ApproveSubmitForm
   method=POST
   target=_parent

...

logic:present name=employeeList scope=session
  logic:iterate id=employee name=employeeList scope=session 
type=com.phs.ezhr.business.vo.EmployeeVO indexId=idx offset=offset length=25  
   
td
  html:multibox property=approveList value=%=employeeId % 
onclick=selectChoice( this.form, this )
  /html:multibox
/td
td
  html:multibox property=rejectList value=%=employeeId % 
onclick=selectChoice( this.form, this )
  /html:multibox
 /td

...
  /logic:iterate
/logic:present

...
/html:form

-- User Form class -

public final class ApproveSubmitForm extends ActionForm {

  private String[] approveList;
  private String[] rejectList;

  /**
   * Set the approve checkbox list array
   * @param anApproveList
   */
  public void setApproveList( String[] anApproveList ) {
this.approveList = anApproveList;
  }

  public String[] getApproveList() {
return this.approveList;
  }

  /**
   * Set the reject checkbox list array
   * @param aRejectList
   */
  public void setRejectList( String[] aRejectList ) {
this.rejectList = aRejectList;
  }

  public String[] getRejectList() {
return this.rejectList;
  }

  /**
   * Reset method is run after every HTML submit and before the action
   * class takes over.
   * @param mapping
   * @param request
   */
  public void reset( ActionMapping mapping,
 HttpServletRequest request ) {
  }

  /**
   * Validate method is run after every HTML submit and before the actio
   * class takes over.
   * @param mapping
   * @param request
   * @return
   */
  public ActionErrors validate( ActionMapping mapping,
HttpServletRequest request ) {
ActionErrors errors = new ActionErrors();

return errors;
  }
}



-- User Action class --


...

  public ActionForward perform( ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
 

RE: intermitten missing field value when submit to a Struts action????

2002-12-02 Thread Tuan H. Le
Todd,

I'm using POST method in my form.

Thanks,
Tuan

-Original Message-
From: Todd Pierce [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 5:22 PM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


If you have something working consistently in one browser and consistently
not in another, it's likely to be an HTML problem. Are you submitting with a
GET or a POST method? If you're using GET, there's a known bug (fixed in IE
6) where parameter names can resolve to escape characters, e.g.
/someul.do?param=123quote=456 will become /someul.do?param=123e=456. Might
be something to do with that?



-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 December 2002 10:28 AM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Edgar,

Thanks for your replied. I also tried to set the action in a Struts form
bean and I got the same result. It worked fine with IE 6.0.

Thanks,
Tuan

-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: intermitten missing field value when submit to a Struts
action


This doesn't sound like a browser issue.  I would look elsewhere.

Edgar

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 6:05 PM
To: 'Struts Users Mailing List (E-mail)'
Subject: intermitten missing field value when submit to a Struts
action


Hi,

Has any one experienced a problem that I'm having with hidden input text
field? 

I have two different IE browser versions (5.5 and 6.0). For the IE 6.0,
it works fine when I get a hidden field value via

(String)request.getParameter( action );

But, for IE 5.5 version with the same code, some times it returns a null
value from the hidden field action.

Thanks,
Tuan







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


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


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




RE: intermitten missing field value when submit to a Struts action????

2002-12-02 Thread Savantraj, Chennamakal Subramanian
May look funny but pls check the spelling of method=post. We had this
problem and later found that methd=post.
Great possibility of overlooking this.

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 9:43 AM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Todd,

I'm using POST method in my form.

Thanks,
Tuan

-Original Message-
From: Todd Pierce [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 5:22 PM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


If you have something working consistently in one browser and consistently
not in another, it's likely to be an HTML problem. Are you submitting with a
GET or a POST method? If you're using GET, there's a known bug (fixed in IE
6) where parameter names can resolve to escape characters, e.g.
/someul.do?param=123quote=456 will become /someul.do?param=123e=456. Might
be something to do with that?



-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 December 2002 10:28 AM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Edgar,

Thanks for your replied. I also tried to set the action in a Struts form
bean and I got the same result. It worked fine with IE 6.0.

Thanks,
Tuan

-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: intermitten missing field value when submit to a Struts
action


This doesn't sound like a browser issue.  I would look elsewhere.

Edgar

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 6:05 PM
To: 'Struts Users Mailing List (E-mail)'
Subject: intermitten missing field value when submit to a Struts
action


Hi,

Has any one experienced a problem that I'm having with hidden input text
field? 

I have two different IE browser versions (5.5 and 6.0). For the IE 6.0,
it works fine when I get a hidden field value via

(String)request.getParameter( action );

But, for IE 5.5 version with the same code, some times it returns a null
value from the hidden field action.

Thanks,
Tuan







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

---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway. 
---


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




RE: intermitten missing field value when submit to a Struts action????

2002-12-02 Thread Andrew Hill
Is it just for parameters named action or for other parameters as well?
In JavaScript forms have a property action that contains the url of where
to submit the form on a post. You may be experiencing some interference? -
Though in my experience it usually seems to work the other way. Ie: the
field hides the property...
Worth a try using a name other than action though.

-Original Message-
From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 09:44
To: 'Struts Users Mailing List'
Subject: RE: intermitten missing field value when submit to a Struts
action


May look funny but pls check the spelling of method=post. We had this
problem and later found that methd=post.
Great possibility of overlooking this.

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 9:43 AM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Todd,

I'm using POST method in my form.

Thanks,
Tuan

-Original Message-
From: Todd Pierce [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 5:22 PM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


If you have something working consistently in one browser and consistently
not in another, it's likely to be an HTML problem. Are you submitting with a
GET or a POST method? If you're using GET, there's a known bug (fixed in IE
6) where parameter names can resolve to escape characters, e.g.
/someul.do?param=123quote=456 will become /someul.do?param=123e=456. Might
be something to do with that?



-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 December 2002 10:28 AM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Edgar,

Thanks for your replied. I also tried to set the action in a Struts form
bean and I got the same result. It worked fine with IE 6.0.

Thanks,
Tuan

-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: intermitten missing field value when submit to a Struts
action


This doesn't sound like a browser issue.  I would look elsewhere.

Edgar

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 6:05 PM
To: 'Struts Users Mailing List (E-mail)'
Subject: intermitten missing field value when submit to a Struts
action


Hi,

Has any one experienced a problem that I'm having with hidden input text
field?

I have two different IE browser versions (5.5 and 6.0). For the IE 6.0,
it works fine when I get a hidden field value via

(String)request.getParameter( action );

But, for IE 5.5 version with the same code, some times it returns a null
value from the hidden field action.

Thanks,
Tuan







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

---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway.
---


--
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: intermitten missing field value when submit to a Struts action????

2002-12-02 Thread Tuan H. Le
Andrew,

Thanks for your response! 

I changed the field name from action to dispatch, but I got the same result, and I'm 
having the same problem on the html:multibox  as well (my previous post 
html:multibox having a problem of passing the selected items to an action).

Thanks,
Tuan

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 6:19 PM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Is it just for parameters named action or for other parameters as well?
In JavaScript forms have a property action that contains the url of where
to submit the form on a post. You may be experiencing some interference? -
Though in my experience it usually seems to work the other way. Ie: the
field hides the property...
Worth a try using a name other than action though.

-Original Message-
From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 09:44
To: 'Struts Users Mailing List'
Subject: RE: intermitten missing field value when submit to a Struts
action


May look funny but pls check the spelling of method=post. We had this
problem and later found that methd=post.
Great possibility of overlooking this.

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 9:43 AM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Todd,

I'm using POST method in my form.

Thanks,
Tuan

-Original Message-
From: Todd Pierce [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 5:22 PM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


If you have something working consistently in one browser and consistently
not in another, it's likely to be an HTML problem. Are you submitting with a
GET or a POST method? If you're using GET, there's a known bug (fixed in IE
6) where parameter names can resolve to escape characters, e.g.
/someul.do?param=123quote=456 will become /someul.do?param=123e=456. Might
be something to do with that?



-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 December 2002 10:28 AM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Edgar,

Thanks for your replied. I also tried to set the action in a Struts form
bean and I got the same result. It worked fine with IE 6.0.

Thanks,
Tuan

-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: intermitten missing field value when submit to a Struts
action


This doesn't sound like a browser issue.  I would look elsewhere.

Edgar

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 6:05 PM
To: 'Struts Users Mailing List (E-mail)'
Subject: intermitten missing field value when submit to a Struts
action


Hi,

Has any one experienced a problem that I'm having with hidden input text
field?

I have two different IE browser versions (5.5 and 6.0). For the IE 6.0,
it works fine when I get a hidden field value via

(String)request.getParameter( action );

But, for IE 5.5 version with the same code, some times it returns a null
value from the hidden field action.

Thanks,
Tuan







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

---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway.
---


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


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


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




RE: intermitten missing field value when submit to a Struts action????

2002-12-02 Thread edgar
I have found that until a form / action sequence is working, you should
always use GET and using a text editor, decompose the query string.
Many errors are obvious when looking at the request string.

Edgar

-Original Message-
From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]]

Sent: Monday, December 02, 2002 8:44 PM
To: 'Struts Users Mailing List'
Subject: RE: intermitten missing field value when submit to a Struts
action


May look funny but pls check the spelling of method=post. We had this
problem and later found that methd=post. Great possibility of
overlooking this.

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 9:43 AM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Todd,

I'm using POST method in my form.

Thanks,
Tuan

-Original Message-
From: Todd Pierce [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 5:22 PM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


If you have something working consistently in one browser and
consistently not in another, it's likely to be an HTML problem. Are you
submitting with a GET or a POST method? If you're using GET, there's a
known bug (fixed in IE
6) where parameter names can resolve to escape characters, e.g.
/someul.do?param=123quote=456 will become /someul.do?param=123e=456.
Might be something to do with that?



-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 December 2002 10:28 AM
To: Struts Users Mailing List
Subject: RE: intermitten missing field value when submit to a Struts
action


Edgar,

Thanks for your replied. I also tried to set the action in a Struts form
bean and I got the same result. It worked fine with IE 6.0.

Thanks,
Tuan

-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: intermitten missing field value when submit to a Struts
action


This doesn't sound like a browser issue.  I would look elsewhere.

Edgar

-Original Message-
From: Tuan H. Le [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 6:05 PM
To: 'Struts Users Mailing List (E-mail)'
Subject: intermitten missing field value when submit to a Struts
action


Hi,

Has any one experienced a problem that I'm having with hidden input text
field? 

I have two different IE browser versions (5.5 and 6.0). For the IE 6.0,
it works fine when I get a hidden field value via

(String)request.getParameter( action );

But, for IE 5.5 version with the same code, some times it returns a null
value from the hidden field action.

Thanks,
Tuan







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

---
This email is confidential and intended only for the use of the
individual or entity named above and may contain information that is
privileged. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this email is strictly
prohibited. If you have received this email in error, please notify us
immediately by return email or telephone and destroy the original
message. Thank you. - This mail is sent via Sony Asia Pacific Mail
Gateway. 
---


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


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




RE: [Struts Tip] #18 - Use EJBs with care

2002-12-02 Thread James
Just for the record, I drive a Chevy!

http://www.open-tools.org/struts-atlanta/images/calvin-ejb.gif



James Mitchell
Software Engineer/Struts Evangelist
http://www.open-Tools.org/struts-atlanta




-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, November 30, 2002 1:34 AM
To: Struts Users Mailing List
Subject: RE: [Struts Tip] #18 - Use EJBs with care


+1

xdoclet rulez

2002-11-29, p keltezéssel Paul Kavanagh ezt írta:
 Why roll your own persistence, transaction handling, caching  pooling

 when you can leverage an app server ? XDoclet removes a lot of the 
 complexity that used to plague EJB. CMP 2.0 is really fast with the 
 latest containers and I find a huge overall increase in productivity. 
 Other benefits over rolling your own distrubuted architecture include 
 being able to leverage industry design patterns and tools, and it's 
 also easier to bring new team members up to speed.



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




[OT] RE: [Struts Tip] #18 - Use EJBs with care

2002-12-02 Thread Hookom, Jacob John
That delightful picture is now hanging at the front of our CS lab ;-)

-Original Message- 
From: James [mailto:[EMAIL PROTECTED]] 
Sent: Mon 12/2/2002 9:56 PM 
To: 'Struts Users Mailing List' 
Cc: 
Subject: RE: [Struts Tip] #18 - Use EJBs with care



Just for the record, I drive a Chevy!

http://www.open-tools.org/struts-atlanta/images/calvin-ejb.gif



James Mitchell
Software Engineer/Struts Evangelist
http://www.open-Tools.org/struts-atlanta




-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 1:34 AM
To: Struts Users Mailing List
Subject: RE: [Struts Tip] #18 - Use EJBs with care


+1

xdoclet rulez

2002-11-29, p keltezéssel Paul Kavanagh ezt írta:
 Why roll your own persistence, transaction handling, caching  pooling

 when you can leverage an app server ? XDoclet removes a lot of the
 complexity that used to plague EJB. CMP 2.0 is really fast with the
 latest containers and I find a huge overall increase in productivity.
 Other benefits over rolling your own distrubuted architecture include
 being able to leverage industry design patterns and tools, and it's
 also easier to bring new team members up to speed.



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




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


RE: subclassing action

2002-12-02 Thread Mohan Radhakrishnan
Hi
 We are using a standard base action but in this case the logic to
decide which perform method to call is based on a check in one of the
action's perform method.

 1. Call Action1 - Show reports the normal way.
 2. If reports are to be scheduled , call Action 2. Action2 can be a
sub-class of Action1 ?
 3. Action2's perform method should be called. 

 Action1 and Action2 differ . So Action2 is a subclass of Action1.

Mohan


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 10:27 PM
To: Struts Users Mailing List
Subject: Re: subclassing action




On Mon, 2 Dec 2002, Mohan Radhakrishnan wrote:

 Date: Mon, 2 Dec 2002 11:51:27 +0530
 From: Mohan Radhakrishnan [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: subclassing action

 Hi,
   I am looking for information on subclassing actions. Is there a way
to
 transfer control to the subclass if a certain check in the super action is
 valid ?
 Is this how this is done ? In normal OO, it happens based on polymorphism.
 How is it done with struts ?


A common technique in Struts based apps is to have a common base Action
that embeds functionality common to a set of your application's
requirements, such as customized login checking.  The general pattern
would be to have the common base class implement the public execute()
method (in 1.0 it was perform()), and then dispatch to business logic in
some other (usually protected) methods defined by the base class.

You can also do things like dynamically choose which business logic method
to call, based on request parameters.  This use case is so common that
Struts provides a standard base class
(org.apache.struts.actions.DispatchAction) for you.

 Thanks,
 Mohan

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]




How to resolve why java element deprecated?

2002-12-02 Thread Slava_L
Compiler says that PropertyUtil in struts 1.0.2. deprecated (i use copyProperties() 
method)
I use JSDK 1.4.1 and could find out which class i am suppose to use insteed 



Re: How to collect user input?

2002-12-02 Thread Dan Tran
Check out Strut's example and struts tag example

- Original Message -
From: Jana Navaneethan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 1:29 PM
Subject: How to collect user input?


Hi,
   I have a form which collects multiple values, How to collect the user
input effectively using STRUTS? For example I want to use some index for the
checkbox? like day1,day2 in that case, do I need to have two properties in
my form bean? like getDay1() and getDay2() or Is there any better way of
doing this?  Any suggestions would be greatly appreciated!

Thanks,
Jana.

  Saturday   Closed   Opening Time Open 24 hours Midnight 12:30 AM 1:00
AM 1:30 AM 2:00 AM 2:30 AM 3:00 AM 3:30 AM 4:00 AM 4:30 AM 5:00 AM 5:30 AM
6:00 AM 6:30 AM 7:00 AM 7:30 AM 8:00 AM 8:30 AM 9:00 AM 9:30 AM 10:00 AM
10:30 AM 11:00 AM 11:30 AM Noon 12:30 PM 1:00 PM 1:30 PM 2:00 PM 2:30 PM
3:00 PM 3:30 PM 4:00 PM 4:30 PM 5:00 PM 5:30 PM 6:00 PM 6:30 PM 7:00 PM 7:30
PM 8:00 PM 8:30 PM 9:00 PM 9:30 PM 10:00 PM 10:30 PM 11:00 PM 11:30 PM
Midnight   Closing Time Midnight 12:30 AM 1:00 AM 1:30 AM 2:00 AM 2:30 AM
3:00 AM 3:30 AM 4:00 AM 4:30 AM 5:00 AM 5:30 AM 6:00 AM 6:30 AM 7:00 AM 7:30
AM 8:00 AM 8:30 AM 9:00 AM 9:30 AM 10:00 AM 10:30 AM 11:00 AM 11:30 AM Noon
12:30 PM 1:00 PM 1:30 PM 2:00 PM 2:30 PM 3:00 PM 3:30 PM 4:00 PM 4:30 PM
5:00 PM 5:30 PM 6:00 PM 6:30 PM 7:00 PM 7:30 PM 8:00 PM 8:30 PM 9:00 PM 9:30
PM 10:00 PM 10:30 PM 11:00 PM 11:30 PM Midnight
  Sunday   Closed   Opening Time Open 24 hours Midnight 12:30 AM 1:00 AM
1:30 AM 2:00 AM 2:30 AM 3:00 AM 3:30 AM 4:00 AM 4:30 AM 5:00 AM 5:30 AM 6:00
AM 6:30 AM 7:00 AM 7:30 AM 8:00 AM 8:30 AM 9:00 AM 9:30 AM 10:00 AM 10:30 AM
11:00 AM 11:30 AM Noon 12:30 PM 1:00 PM 1:30 PM 2:00 PM 2:30 PM 3:00 PM 3:30
PM 4:00 PM 4:30 PM 5:00 PM 5:30 PM 6:00 PM 6:30 PM 7:00 PM 7:30 PM 8:00 PM
8:30 PM 9:00 PM 9:30 PM 10:00 PM 10:30 PM 11:00 PM 11:30 PM Midnight
Closing Time Midnight 12:30 AM 1:00 AM 1:30 AM 2:00 AM 2:30 AM 3:00 AM 3:30
AM 4:00 AM 4:30 AM 5:00 AM 5:30 AM 6:00 AM 6:30 AM 7:00 AM 7:30 AM 8:00 AM
8:30 AM 9:00 AM 9:30 AM 10:00 AM 10:30 AM 11:00 AM 11:30 AM Noon 12:30 PM
1:00 PM 1:30 PM 2:00 PM 2:30 PM 3:00 PM 3:30 PM 4:00 PM 4:30 PM 5:00 PM 5:30
PM 6:00 PM 6:30 PM 7:00 PM 7:30 PM 8:00 PM 8:30 PM 9:00 PM 9:30 PM 10:00 PM
10:30 PM 11:00 PM 11:30 PM Midnight


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




Re: Re: struts 1.1. modules examples.

2002-12-02 Thread Dan Tran
http://www.scioworks.com

has an example of Struts module

-D
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 10:04 AM
Subject: Re: Re: struts 1.1. modules examples.


You can get some doc here :
http://jakarta.apache.org/struts/userGuide/building_controller.html#dd_confi
g_modules

But there are no example of what i was asking for...

Message d'origine
Date: Mon, 02 Dec 2002 10:38:01 -0600
De: Hanasaki JiJi [EMAIL PROTECTED]
A: [EMAIL PROTECTED]
Sujet: Re: struts 1.1. modules examples.

that rocks!  wehre can i get docs on this and the xamples?

[EMAIL PROTECTED] wrote:
 Modules are struts 1.1 sub webapps.
 This means you can part your webapp into fragments if it's going larger.
 Then each developpement team can work on a part of the webapp, use as
many struts-config as parts of the webapp etc...


 Message d'origine

Date: Mon, 02 Dec 2002 09:53:11 -0600
De: Hanasaki JiJi [EMAIL PROTECTED]
A: [EMAIL PROTECTED]
Sujet: Re: struts 1.1. modules examples.

What are modules?

[EMAIL PROTECTED] wrote:

Hello all,

I try to use struts 1.1 modules.
I will be glad if somebody tells me how to find examples of :
- how to declare an action un a struts-config.xml module file ie what is
the pattern of the path? (path=/myModuleName/myActionName ?)
- how to invoque a module action (html:form
action/myModule/myAction.do... ?)
- what is the pattern for the forward argument (forward name=succes
path=/myModule/myJpsPage.jsp ?)

() are only my hypothesis...

thanks a lots for any advice.

Alexandre.


--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=




 -
 NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
Toolbar...
 Web/Wap : www.netcourrier.com
 Téléphone/Fax : 08 92 69 00 21 (0,34 #8364; TTC/min)
 Minitel: 3615 NETCOURRIER (0,15 #8364; TTC/min)


--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=



-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 ? TTC/min)
Minitel: 3615 NETCOURRIER (0,15 ? TTC/min)


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




On-The-Fly HTML to PDF Conversion

2002-12-02 Thread Shashikiran M
Dear All,

Has anybody worked on on-the-fly conversion of HTML output to PDFs?

The following are the requirements:
1. The site should provide View as PDF link on a particular page. The page is not a 
static HTML page. It is a JSP.
2. Clicking on View as PDF link will open the page that is currently displayed, in 
the PDF format.
3. Conversion needs to be done on-the-fly.
4. Environment: Solaris - WebSphere 4.0.2.

I'm using the Struts Framework. I would also want to know if there is any easier 
methods for conversion other than using FOP (an Apache XML project) and Cocoon.

Help in terms of pointers are also welcome.

Thanks and Regards,
Shashi Kiran


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




Re: How to resolve why java element deprecated?

2002-12-02 Thread David Graham
The version of java has nothing to do with this.  Check the PropertyUtil 
javadoc in the jakarta commons for details.

David






From: Slava_L [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: How to resolve why java element deprecated?
Date: Tue, 3 Dec 2002 12:51:47 +0800

Compiler says that PropertyUtil in struts 1.0.2. deprecated (i use 
copyProperties() method)
I use JSDK 1.4.1 and could find out which class i am suppose to use insteed


_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



Re: How to resolve why java element deprecated?

2002-12-02 Thread Rob Leland
David Graham wrote:


The version of java has nothing to do with this.  Check the 
PropertyUtil javadoc in the jakarta commons for details.

David 

I didn't think struts 1.0 use commons-xxx jars ?





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




[Off Topic] Opinions requested for Wrox Book Chapter

2002-12-02 Thread Matt Raible
Hello all,

I've been tasked with writing a chapter on Security and a chapter on
Struts in an upcoming book from Wrox, Professional JSP 2.0.  In the
Security chapter, I hope to tackle tough problems and provide good
solutions for things encountered while securing a web-based application.
In the Struts chapter, I want to highlight some of the advanced features
of Struts and provide meaningful examples of their implementation.  I
don't feel it's necessary to explain what Struts is, since a lot of good
books have been published on this topic recently. However, I am hoping
to build a good kickstart application for Struts using XDoclet and
Ant, among other tools.

I've produced some initial outlines for each chapter and placed them on
my website for your review.

http://raibledesigns.com/page/rd/20021202#day_1_of_writing

If you have the time and energy, please take a look at these and either
1) comment on my site, or 2) reply to this e-mail.  Your opinions and
time is valued and appreciated.

If you're looking to get started with Struts/XDoclet/Ant right away,
check out the following links, and help me rename it from struts-xdoclet
to a something better:

http://www.raibledesigns.com/page/rd/20021202#erik_s_struts_xdoclet_exam
ple (Erik Hatcher's Struts/XDoclet Example)
http://www.raibledesigns.com/page/rd/20021127#struts_xdoclet_0_2 (My
Struts-XDoclet Base App)
http://www.raibledesigns.com/page/rd/20021130#help_me_rename_struts_xdoc
let (Renaming suggestions)

Thanks,

Matt Raible



Re: Form validation with Struts Workflow

2002-12-02 Thread Matthias Bauer
Richard,

in the action mapping you can specify the attribute validate. This 
attribute defaults to true in the ActionMapping class. With the Struts 
Workflow Extension the class ApplicationMapping is used instead of 
ActionMapping. In this class validate defaults to false. Thus, if you 
want to switch automatic validation on, you explicitly have to specify  
validate=true in each action definition.

However, I recommend to do without automatic form validation, when using 
the struts-workflow extension. Here is why:

1. Due to the current implementation of struts and the workflow 
extension, the form validation is done, before authentication and 
workflow has been checked. This is not what you want, because 
authentication and workflow needs to be checked first.

2. You can always call the form.validate() method from the action 
yourself, which I believe is the much better approach anyway, because 
most often you need some additional information from an external data 
source to validate the input (e. g. a password). Obtaining information 
from external data sources should always be done in the action classes, 
not in the form beans.

If I remember correctly, there is no technical reason why automatic form 
validation can not be supported. It should be a minor change to 
eliminate reason (1) in the code. So please let me know, if you really 
need it. I should soon be able to provide a changed version.

--- Matthias


PS: I cc'ed to the struts user list, because conversations like this 
might be relevant to other worklow users, too.



Richard Grossman wrote:

Hi,
 
I'm starting to work using Struts Workflow but I'm confronted to a big 
problem.
It seem that using the workflow the validate method inside ActionForm 
are not called !?!
is there any configuration or else to enabled this ?
 
Thanks for your help
 
Richard Grossman





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




Re: How to resolve why java element deprecated?

2002-12-02 Thread Slava_L
in struts 1.0.x beanUtils is part of struts
anyway, javadoc says nothin' about deprecation of propertyUtil, beanUtil
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 2:19 PM
Subject: Re: How to resolve why java element deprecated?


 The version of java has nothing to do with this.  Check the PropertyUtil
 javadoc in the jakarta commons for details.

 David






 From: Slava_L [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: How to resolve why java element deprecated?
 Date: Tue, 3 Dec 2002 12:51:47 +0800
 
 Compiler says that PropertyUtil in struts 1.0.2. deprecated (i use
 copyProperties() method)
 I use JSDK 1.4.1 and could find out which class i am suppose to use
insteed


 _
 Add photos to your messages with MSN 8. Get 2 months FREE*.
 http://join.msn.com/?page=features/featuredemail


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