Re: how to read uploaded FormFile InputStream multiple times?

2003-10-02 Thread Vikram Goyal
You are better off using FileUpload from the Commons package. Using
DiskFileUpload, you can set a threshold on the size of your files. If the
threshold is breached, the files will be saved in a temp location on your
hard disk from where you can access them as many times as you want. So you
could first save them to the database and then do whatever else you want.
You could even enhance the FileUploadBase to do exactly as you want, i.e,
write to the database and then still give you a handle on a perhaps new
input stream.

--
Vikram


- Original Message - 
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 03, 2003 3:11 PM
Subject: Re: how to read uploaded FormFile InputStream multiple times?


> Ralf Hauser wrote:
>
> >Hi,
> >
> >we use the  >application.
> >First we put it into the database, but immediately thereafter, we would
like
> >to send it off to multiple recipients via encrypted mail.
> >
> >We get a "Bad File Descriptor" when trying to access the data for a
second
> >time after putting it into the database.
> >doing a inputStream.reset() gives a "java.io.IOException: mark/reset not
> >supported".
> >If we wipe the attachment from the session and get it from the (MySQL)
> >database again, reset() works beautifully and we can read it many times.
But
> >going back and forth to the database is a big waste if the InputStreams
get
> >large.
> >
> >Therefore my request to enhance the documentation in
>
>http://jakarta.apache.org/struts/api/org/apache/struts/upload/FormFile.html
#
> >getInputStream(): how can one use such an InputStream multiple times?
> >
> >Many thanks for any hints!
> >
> >
> Your best bet is to assume that you cannot *ever* read the same input
> stream more than once.  There is no guarantee in the servlet spec that
> this is possible, and it would be prohibitively expensive for a
> container to make such a guarantee, so this is not really a Struts isse
> or even a commons-fileupload issue.  It's an unwarranted assumption that
> you are making -- and such assumptions are more likely than not to be
> non-portable.
>
> The only sane thing to do is to make sure that your *application* has
> stored the uploaded file data where your *application* can find it
> again.  Expecting reset() to work is pretty much guaranteed to cause
> your application to fail.
>
> Note the emphasis in the above paragraph -- this is primarily an
> application issue, not a framework issue or a container issue.
>
> > Ralf ([EMAIL PROTECTED])
> >
> >
> Craig
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: URGENT... HELP NEEDED...

2003-10-02 Thread Daniel Joshua
ha ha ha

Regards,
Daniel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, 03 October, 2003 2:58 AM
To: Struts Users Mailing List
Subject: RE: URGENT... HELP NEEDED...


Attn Sir.

I understand quite well that this message will sound so strange to you out

it is a very serious matter that we need to tackle together very rgent.
Before i proceed further,Let me formally introduce myself to you .I am DR.

JOSEPH HUSTED , the first adopted son of TED HUSTED, the noted Struts
author.

I am contacting you today for an urgent assistance to transfer into your
account the sum of US$28.7,000.000.00(TWENTY EIGHT MILLION SEVEN HUNDRED
THOUSAD UNITED STATES DOLLARS). I hope that you may be aware of the recent

differences that is going on rigth now between my father and the struts
community,
due to his work on a .NET project.  This also brought about the struts
community
sanctioning my father and freezing all his book earnings both in America
and britain.

I am contacting you therefore on the account that you will support me with
your foreign account
and to come over to Redmond so that we can both claim the fund
together, and then we can travel down to your country for proper
investment
of the fund.

JOSEPH HUSTED





"Paananen, Tero" <[EMAIL PROTECTED]>
10/02/03 02:54 PM
Please respond to "Struts Users Mailing List"


To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
cc:
Subject:RE: URGENT... HELP NEEDED...


> Hi All...

Reading the subject I thought you'd offer me $10K
in exchange for me shipping your millions to the US
from Nigeria.

I was so dissapointed to find out I wasn't about
to get rich :(

 -TPP

-
This email may contain confidential and privileged material for the sole
use of the intended recipient(s). Any review, use, retention, distribution
or disclosure by others is strictly prohibited. If you are not the
intended recipient (or authorized to receive for the recipient), please
contact the sender by reply email and delete all copies of this message.
Also, email is susceptible to data corruption, interception, tampering,
unauthorized amendment and viruses. We only send and receive emails on the
basis that we are not liable for any such corruption, interception,
tampering, amendment or viruses or any consequence thereof.


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





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



[OT] Log changed fields

2003-10-02 Thread anil_A
Hi all,

I am using struts, tiles, ibatis database layer with tomcat for 
appliction. One of the requirements of the application is to log 
changes(updates/changes) to the fields once the business object is 
created. I used to do was to update all the fields if I get a "update" 
command/button pushed from the view. Now I have to compare old values to 
new values in each and every field . my question is:

what  are the best practises in doing such thing??

thank you in advance for your replies.

.anil

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


Re: how to read uploaded FormFile InputStream multiple times?

2003-10-02 Thread Craig R. McClanahan
Ralf Hauser wrote:

Hi,

we use the 
We get a "Bad File Descriptor" when trying to access the data for a second
time after putting it into the database.
doing a inputStream.reset() gives a "java.io.IOException: mark/reset not
supported".
If we wipe the attachment from the session and get it from the (MySQL)
database again, reset() works beautifully and we can read it many times. But
going back and forth to the database is a big waste if the InputStreams get
large.
Therefore my request to enhance the documentation in
http://jakarta.apache.org/struts/api/org/apache/struts/upload/FormFile.html#
getInputStream(): how can one use such an InputStream multiple times?
Many thanks for any hints!
 

Your best bet is to assume that you cannot *ever* read the same input 
stream more than once.  There is no guarantee in the servlet spec that 
this is possible, and it would be prohibitively expensive for a 
container to make such a guarantee, so this is not really a Struts isse 
or even a commons-fileupload issue.  It's an unwarranted assumption that 
you are making -- and such assumptions are more likely than not to be 
non-portable.

The only sane thing to do is to make sure that your *application* has 
stored the uploaded file data where your *application* can find it 
again.  Expecting reset() to work is pretty much guaranteed to cause 
your application to fail.

Note the emphasis in the above paragraph -- this is primarily an 
application issue, not a framework issue or a container issue.

	Ralf ([EMAIL PROTECTED])
 

Craig



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


how to read uploaded FormFile InputStream multiple times?

2003-10-02 Thread Ralf Hauser
Hi,

we use the http://jakarta.apache.org/struts/api/org/apache/struts/upload/FormFile.html#
getInputStream(): how can one use such an InputStream multiple times?

Many thanks for any hints!

Ralf ([EMAIL PROTECTED])

P.S.: We figured that Blobs coming from MySQL are actually
ByteArrayInputStream thus having a reset() implemented. However, as we tried
to convert data coming from struts FormFile to ByteArrayInputStream
ourselves, it got corrupted.


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



Re: Still an issue: Quartz plugin shutdown problem

2003-10-02 Thread Mick Knutson
After even more toying, I get a different error about the job not being set:
(any thoughts here?)

19:24:18,843 ERROR [Digester] Begin event threw exception
java.lang.IllegalStateException: Job Class is not yet set.
at org.quartz.JobDetail.isStateful(JobDetail.java:331)
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
199)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
176)
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne
r.java:435)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:561)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:217)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:230)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:207)




---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
Contact System" can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 9:52 AM
Subject: Re: Still an issue: Quartz plugin shutdown problem


> Still looking for help.
>
> Here is the Debug level trace of the startup.
>
> 09:35:18,687 ERROR [STDERR] [DEBUG] I18nFactorySet - -Factory initialized
> from file '/WEB-INF/tiles-defs.xm

file not found

2003-10-02 Thread ajay brar
hi!
i am a new struts user.
i am having the following problem
when i click on a link that is supposed to perform an action and either 
return an error or success, it says fileTransfer.do not found
here is my link
Statistics

my struts-config.xml is

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
























FileTransferAction is in WEB-INF/classes
the program works fine at home where i'm using tomcat 5.0 (the one that 
comes with java web services developer's pack)
however when i upload it to my hosting service provider, www,eroute.net 
(which uses Tomcat 4.1.24), i get the File Not Found Error
the file can be seen at
www.ajaybrar.net/projectv2

thanks a lot
ajay
_
Chat via SMS. Simply send 'CHAT' to 1889918. More info at  
http://ninemsn.com.au/mobilemania/MoChat.asp?blipid=6800

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


workflow extension question

2003-10-02 Thread Adam L
Matthias:
Now to take you up on your offer."is something missing?"

What thoughts do you have on a "end all previous workflows" property?
The thought is this:
   - my user is working through a process, and gets bored or distracted
   - rather than using the provided "cancel" button, they use a nav link
to go elsewhere (ie, a terms and conditions or "what's new page")
   - my thought is to let them do this, perhaps they'll jump back
(browser back) to the step they were on and continue their path
   - but, if they don't ever come back, and end up starting another
workflow process, they'll be dumped right back to their first workflow.
   - being thrown back to a place you wanted to leave would be confusing

  So, the answer to this is an "initialization" page for each process
that basically says "cancel out all existing workflows and states, and start
this workflow instead".

  Yes, ideally, the user should use the opt-out mechanism provided
to them, but you can't expect that to happen. And, I'm not keen on designing
for a modal experience unless absolutely necessary.  One could go through
every possible action and add a "noWorkflowChecks" everywhere, but that
still doesn't resolve the issue of them starting a new process w/o
explicitly terminating an existing one.

  To illustrate what I'm seeing:



  
 
< new property
  
  
  




Any thoughts?

-- adam

> >>- Original Message -
> >>From: "Matthias Bauer" <[EMAIL PROTECTED]>
> >>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>Sent: Monday, September 15, 2003 1:59 AM
> >>Subject: Re: workflow - Re: integration with other app
> >>
> >>
> >>
> >>
> >>>Fortunately I am far enough away to avoid your kiss ;-)
> >>>
> >>>Please let me know, if you believe something is missing. I am sure I
can
> >>>give you some more hints on how to solve a specific task. The Struts
> >>>Workflow Extension is a very powerful, yet low-level framework. Thus,
it
> >>>offers very much flexibility but sometimes the right way to achieve a
> >>>solution is not as apparent as desired.
> >>>
> >>>Just in case you are interested: We are also offering commercial
support
> >>>for this extension and Struts itself.
> >>>
> >>>--- Matthias
> >>>
> >>>
> >>>Adam Levine wrote:
> >>>
> >>>
> >>>
> Matthias:
>  I could kiss you!   I've been struggling with this issue and have
> been going bald over the last week doing a lot of my own engine
> work.   I can't wait to try this out and see if it doesn't work for me
> as cleanly as it looks.
> 
> 
> 
> 
> From: Matthias Bauer <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: workflow - Re: integration with other app
> Date: Fri, 12 Sep 2003 08:35:36 +0200
> 
> Martin,
> 
> the Struts Workflow Extension http://www.livinglogic.de/Struts/
> addresses some of the issues you raise. Especially the thing about a
> workflow scope. But it is also easily possible to build reusable
> action sequences: Consider for instance a confirmation dialog that
> demands the user to press a "Yes" and "No" button. You will need this
> multiple times within an application, but you normally want to code
> the necessary actions only once and reuse them in different contexts
> (i. e. with a customized question and return action).
> 
> Please let me know, when you have any questions related to the Struts
> Workflow Extension.
> 
> --- Matthias
> 
> Martin Naskovski wrote:
> 
> 
> 
> >One thing I find particularly cumbersome in Struts is web page
> >workflow. Currently, if I want to push "Cancel" for instance, or
> >"Submit" on a certain page, in the Action itself, I have to hard code
> >where to go next and/or pass any dynamically generated parameters
> >through the request scope or the query string (if doing a
> >sendRedirect). I also have to use hidden form fields to tell each
> >submission button on a form, where to go next, depending on where I
> >came from (a certain action mapping, e.g.).
> >
> >Is there a better way to do this, where the flow of the screens can
> >
> >
> >be
> >
> >
> >specified statically, or maybe if not statically at least within a
> >screen workflow module that each action will tell that module where
> >to go next, depending on what button was pushed on that form?
> >
> >Does JSF address this perhaps? Or has someone independently made a
> >Struts pluggable module that can control screen flow? It seems there
> >almost is a need for some sort of a 'workflow' scope, where when I
> >start a certain use-case from one of the menus in the application,
> >
> >
> >the
> >
> >
> >'workflow scope' is preserved throughout the use-case lifetime, and
> >
> >
> >if

RE: how to output value in text field?

2003-10-02 Thread hari_s
Or with 

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 02, 2003 11:40 PM
To: 'Struts Users Mailing List'
Subject: RE: how to output value in text field?

Use JSTL: 

<%@ taglib prefix="core" uri="/WEB-INF/c.tld" %> 

 --mapped in
struts-config.xml



-Original Message-
From: Rick Col [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 12:27 PM
To: [EMAIL PROTECTED]
Subject: how to output value in text field?


Hi,

I am trying to output a default value in a textfield.
I did something like this:


It should work, but it does not seem to work. What did
I do wrong?

regards,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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


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



RE: [OT] International telephone number formatter component????

2003-10-02 Thread Steve Raeburn
Disclaimer: The following represents my personal experience - I'm not a
phone number expert :-)

As an example of the problem, the Oftel website (www.oftel.gov.uk) lists the
following *recommended* formats for the UK:

Fixed line phone number:
* (01XX) XXX 
* (01XXX) XX
* (01) X
* (02X)  

07 (mobile) number
* 07XX XXX or 07XXX XX.

08 (freephone, Lo-call or National Rate) number
* 08XX XXX or 08XXX XX.

09 (PRS) number
* 09XX XXX or 09XXX XX.
* 09XX XXX or 09XXX XX.

Since you're probably only interested in fixed and cell phone numbers that
cuts it down to a mere six different formats for the UK alone. At least
until they change the codes again :-)

I think the only thing you can guarantee about phone numbers is that if you
ignore the formatting entirely and just dial the digits, you'll probably get
through. Unless of course, a UK user has included the international dialling
code and entered the number like + 44 (01XXX) XX. In this case, you need
to dial your local international access code, then 44 for the UK, then DROP
the zero, then dial the rest of the number!

If you were in the UK trying to dial a US number entered as (picking a
random example ;-) ) +001(805) 563-0666, you might incorrectly dial 00 001
805 563 0666 (international access code from the UK is 00).

An alternative approach to attempting to validate a single telephone number
field would be to split it into separate input fields e.g.
 - Country code : 44
 - Area code: 01
 - Local number : XX
 - Extension: 

(note: this 'area code' doesn't always represent a geographical area. UK
cell phone numbers, for instance, are national, with the code denoting the
provider.)

I'd store the 'numbers' as Strings to ensure you retain whatever format your
users are comfortable with (after all it is *their* number) and strip out
the formatting when you need to use it.

That still leaves you with the leading 0 problem (or whatever the rules are
for other countries). I can only suggest that you would need to be able to
look up the rules for each country and strip off any unnecessary digits
based on a rule. You might be able to do this during input validation and
warn the user, but to avoid confusing/infuriating the user I think I would
just accept whatever they gave me and handle it intelligently when I need to
use it.

Telephone numbers are as personal and varied as postal codes and I just
*hate* it when some site tells me my house doesn't exist because their rules
can't handle my post code.

Good luck!

Steve



> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: October 2, 2003 7:03 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] International telephone number formatter component
>
>
> I do not disagree about the research part at all. I know it will take a
> researcher on my staff a great deal of time to maintain, but it
> is never the
> less, a needed feature.
> I just thought that most Countries have a fairly well formatted
> number. And
> mostly I am taking about supporting N.&S. America, Western Europe only.
> Later look at the far East.
>
> But this would need to choose the whole part of the phone number then just
> store the proper number into my DB for the user. Until they update the
> number again, then they choose again.
>
> ---
> Thanks
> Mick Knutson
>
> +001(805) 563-0666 Office
> +001 (708) 570-2772 Fax
> ---



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



Displaytag does not work with Tiles

2003-10-02 Thread Navneet Karnani
Hello,

I was trying to get the display:* tags to help me build a sortable table 
but I noticed that since I was using a tiles based setup, the generated 
link from the sort link on the table header did not match the action 
that needed to be invoked.

Is this a known problem ? Is there a known/published workaround ?

- Navneet Karnani
Umber Business Solutions Pvt. Ltd.
http://www.umber.biz


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


Re: Still an issue: Quartz plugin shutdown problem

2003-10-02 Thread Mick Knutson
I actually have posted this to the Quartz makers,  the struts plugin maker
JGS, JBoss site, and here. All with no luck.
I also have sent my configuration to several people, who say that is works
just fine on their installation, but none of them are packaging their app
like me with an EAR.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
Contact System" can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: "Adam L" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 4:39 PM
Subject: Re: Still an issue: Quartz plugin shutdown problem


> I'm going to go out on a limb here and suggest that:
>
> 1) You haven't yet received an answer from this list after several
attempts,
> which is a struts list, on a component by somebody other than ASF.
Perhaps
> they'd be a better route?
>
> 2) Not having used Quartz, the best guess i can suggest is that it looks
> like Quartz is choking on a configuration file somewhere, and my guess is
> quartz-config.xml
>
>
> - Original Message -
> From: "Mick Knutson" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, October 02, 2003 11:52 AM
> Subject: Re: Still an issue: Quartz plugin shutdown problem
>
>
> > Still looking for help.
> >
> > Here is the Debug level trace of the startup.
> >
> > 09:35:18,687 ERROR [STDERR] [DEBUG] I18nFactorySet - -Factory
initialized
> > from file '/WEB-INF/tiles-defs.xml'.
> > 09:35:18,687 ERROR [STDERR] [INFO] TilesPlugin - -Tiles definition
factory
> > loaded for module ''.
> > 09:35:18,703 ERROR [STDERR] [DEBUG]
> >
>
BeanUtils - -BeanUtils.populate([EMAIL PROTECTED]
> > 54f3, {configPath=/WEB-INF/quartz-conf
> > ig.xml})
> > 09:35:18,734 ERROR [STDERR] [DEBUG] ConvertUtils - -Convert string
> > '/WEB-INF/quartz-config.xml' to class 'java.lang.String'
> > 09:35:18,750 ERROR [STDERR] [INFO] PlugInSupport - -Initializing
> > QuartzPlugIn
> > 09:35:18,875 ERROR [STDERR] [INFO] StdSchedulerFactory - -Quartz
scheduler
> > 'QuartzScheduler' initialized from default resource file in Quartz
> package:
> >  'quartz.properties'
> > 09:35:18,875 ERROR [STDERR] [INFO] StdSchedulerFactory - -Quartz
scheduler
> > version: 1.2.2
> > 09:35:18,890 ERROR [STDERR] [DEBUG] Digester - -addRuleSet() with no
> > namespace URI
> > 09:35:18,906 ERROR [STDERR] [DEBUG]
> >
>
sax - -setDocumentLocator([EMAIL PROTECTED]
> > bb)
> > 09:35:18,906 ERROR [STDERR] [DEBUG] sax - -startDocument()
> > 09:35:18,906 ERROR [STDERR] [DEBUG] sax - -startElement(,,quartz-config)
> > 09:35:18,906 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text ''
> > 09:35:18,921 ERROR [STDERR] [DEBUG] Digester - -  New
> match='quartz-config'
> > 09:35:18,921 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> > ObjectCreateRule[className=com.jgsullivan.quartz.config.QuartzConfig,
> > attributeName
> > =null]
> > 09:35:18,921 ERROR [STDERR] [DEBUG]
> > Digester - -[ObjectCreateRule]{quartz-config}New
> > com.jgsullivan.quartz.config.QuartzConfig
> > 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters()
> > 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters(
> > )
> > 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters()
> > 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -startElement(,,trigger-group)
> > 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
> > '
> > 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  New
> > match='quartz-config/trigger-group'
> > 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> >
>
ObjectCreateRule[className=com.jgsullivan.quartz.config.TriggerGroupConfig,
> > attribu
> > teName=null]
> > 09:35:18,984 ERROR [STDERR] [DEBUG]
> > Digester - -[ObjectCreateRule]{quartz-config/trigger-group}New
> > com.jgsullivan.quartz.config.TriggerGroupConfig
> > 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> > [EMAIL PROTECTED]
> > 09:35:19,046 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> > SetNextRule[methodName=addTriggerGroup, paramType=null]
> > 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters()
> > 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters(
> > )
> > 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters()
> > 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -startElement(,,trigger)
> > 09:35:19,046 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
> > '
> > 09:35:19,109 ERROR [STDERR] [DEBUG] Digester - -  New
> > match='quartz-config/trigger-group/trigger'
> > 09:35:19,109 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> > ObjectCreateRule[className=org.quartz.SimpleTrigger,
> > attributeName=className]
> > 09:35:19,109 ERROR [STDERR] [DEBUG]
> > Digester - -[ObjectCreateRule]{quartz-config/trigger-group/trigger}New
> > org.quartz.CronTrigger
> > 09:35:19,125 ERROR [STDERR] [DEBUG] Diges

Re: Still an issue: Quartz plugin shutdown problem

2003-10-02 Thread Adam L
I'm going to go out on a limb here and suggest that:

1) You haven't yet received an answer from this list after several attempts,
which is a struts list, on a component by somebody other than ASF.  Perhaps
they'd be a better route?

2) Not having used Quartz, the best guess i can suggest is that it looks
like Quartz is choking on a configuration file somewhere, and my guess is
quartz-config.xml


- Original Message -
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 11:52 AM
Subject: Re: Still an issue: Quartz plugin shutdown problem


> Still looking for help.
>
> Here is the Debug level trace of the startup.
>
> 09:35:18,687 ERROR [STDERR] [DEBUG] I18nFactorySet - -Factory initialized
> from file '/WEB-INF/tiles-defs.xml'.
> 09:35:18,687 ERROR [STDERR] [INFO] TilesPlugin - -Tiles definition factory
> loaded for module ''.
> 09:35:18,703 ERROR [STDERR] [DEBUG]
>
BeanUtils - -BeanUtils.populate([EMAIL PROTECTED]
> 54f3, {configPath=/WEB-INF/quartz-conf
> ig.xml})
> 09:35:18,734 ERROR [STDERR] [DEBUG] ConvertUtils - -Convert string
> '/WEB-INF/quartz-config.xml' to class 'java.lang.String'
> 09:35:18,750 ERROR [STDERR] [INFO] PlugInSupport - -Initializing
> QuartzPlugIn
> 09:35:18,875 ERROR [STDERR] [INFO] StdSchedulerFactory - -Quartz scheduler
> 'QuartzScheduler' initialized from default resource file in Quartz
package:
>  'quartz.properties'
> 09:35:18,875 ERROR [STDERR] [INFO] StdSchedulerFactory - -Quartz scheduler
> version: 1.2.2
> 09:35:18,890 ERROR [STDERR] [DEBUG] Digester - -addRuleSet() with no
> namespace URI
> 09:35:18,906 ERROR [STDERR] [DEBUG]
>
sax - -setDocumentLocator([EMAIL PROTECTED]
> bb)
> 09:35:18,906 ERROR [STDERR] [DEBUG] sax - -startDocument()
> 09:35:18,906 ERROR [STDERR] [DEBUG] sax - -startElement(,,quartz-config)
> 09:35:18,906 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text ''
> 09:35:18,921 ERROR [STDERR] [DEBUG] Digester - -  New
match='quartz-config'
> 09:35:18,921 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> ObjectCreateRule[className=com.jgsullivan.quartz.config.QuartzConfig,
> attributeName
> =null]
> 09:35:18,921 ERROR [STDERR] [DEBUG]
> Digester - -[ObjectCreateRule]{quartz-config}New
> com.jgsullivan.quartz.config.QuartzConfig
> 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters()
> 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters(
> )
> 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters()
> 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -startElement(,,trigger-group)
> 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
> '
> 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  New
> match='quartz-config/trigger-group'
> 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
>
ObjectCreateRule[className=com.jgsullivan.quartz.config.TriggerGroupConfig,
> attribu
> teName=null]
> 09:35:18,984 ERROR [STDERR] [DEBUG]
> Digester - -[ObjectCreateRule]{quartz-config/trigger-group}New
> com.jgsullivan.quartz.config.TriggerGroupConfig
> 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> [EMAIL PROTECTED]
> 09:35:19,046 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> SetNextRule[methodName=addTriggerGroup, paramType=null]
> 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters()
> 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters(
> )
> 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters()
> 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -startElement(,,trigger)
> 09:35:19,046 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
> '
> 09:35:19,109 ERROR [STDERR] [DEBUG] Digester - -  New
> match='quartz-config/trigger-group/trigger'
> 09:35:19,109 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> ObjectCreateRule[className=org.quartz.SimpleTrigger,
> attributeName=className]
> 09:35:19,109 ERROR [STDERR] [DEBUG]
> Digester - -[ObjectCreateRule]{quartz-config/trigger-group/trigger}New
> org.quartz.CronTrigger
> 09:35:19,125 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> SetPropertiesRule[]
> 09:35:19,125 ERROR [STDERR] [DEBUG]
> Digester - -[SetPropertiesRule]{quartz-config/trigger-group/trigger}
Setting
> property 'name' to 'alertSenderTrigge
> r'
> 09:35:19,125 ERROR [STDERR] [DEBUG]
> Digester - -[SetPropertiesRule]{quartz-config/trigger-group/trigger}
Setting
> property 'className' to 'org.quartz.C
> ronTrigger'
> 09:35:19,187 ERROR [STDERR] [DEBUG]
> Digester - -[SetPropertiesRule]{quartz-config/trigger-group/trigger} Set
> org.quartz.CronTrigger properties
> 09:35:19,187 ERROR [STDERR] [DEBUG]
BeanUtils - -BeanUtils.populate(Trigger
> 'null.null':  triggerClass: 'org.quartz.CronTrigger isVolatile: false cale
> ndar: 'null' misfireInstruction: 0, {className=org.quartz.CronTrigger,
> name=alertSenderTrigger})
> 09:35:19,203 ERROR [STDERR] [DEBUG] ConvertUtils - -Convert string
> 'alertSenderTrigger' to class 'java.lang.String'
> 09:35:19,234 ERROR [STDERR] [DEBUG

Design Question...

2003-10-02 Thread Keith Pemberton
Sorry if this is a little off-topic but it has to do with Struts because I
am using struts for my web app.  I have been reading about the View Helper
pattern off the sun website and have two ways of thinking about implementing
this pattern.  First is the way that I currently have setup:

Use an action to call a method on the Delegate.  The Delegate create a
JavaBean (Value Bean) that has the data that I need for the particular page
that I am trying to view.  The Action then sets that view in the session
scope (tried request scope, but it didn't work) and then forwards to a jsp.
The jsp then uses the java bean from the session scope to fill in data for
the webpage.

Now for the other way that I was thinking of:

In the jsp page that I am trying to view, first create a new instance of
the JavaBean by calling  tag.  Then, use the JSTL tags to set
parameters that could be passed in from the url.  The JavaBean then does the
calling of the Delegate to get the information that it requires (potentially
in several method calls).  In the jsp, using jsp tags I call the getProperty
to get the information needed to fill in the data for the website.  In other
words, the getProperty invoke the JavaBean to call the Delegate to get the
information that is needed.

The way I see it, there is a trade-off between the two ways of doing this.
The first way does not allow (easily) for the adding of request parameters
to the url to change the view.  The second way, though, could potentially
involve many expensive RMI calles to the EJB Container, which is where I am
getting the data for the web pages.  I would appreciate any of your thoughts
as to how best to proceed.  Thanks in advance for all your suggestions!

Keith Pemberton


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



Re: tiles and parameters

2003-10-02 Thread Manish Singla
You are getting error because "nav_key" is in page context.
thus you cannot retrieve value in included page...
YOu may use 
in headercontentfooter.jsp
Frank Maritato wrote:
Hi all, I'm having a problem passing a parameter down from a tiles 
definition to a jsp. I can access the value easily in the layout 
definition, but I can't get access to it in a file (or action) I'm 
inserting into the layout. Here is an example of what I'm doing (cut 
down a bit)

tiles.xml:

  
  

headerContentFooter.jsp:

nav_key = <%=nav_key%>

samplecontent.jsp:

nav_key::: <%=nav_key%>
So I'm getting an error in samplecontent.jsp that there is no such 
variable in any scope. How can I get it? I can print out the value fine 
in the headerContentFooter layout. I also tried adding a 
 in samplecontent.jsp to try and get access to the 
variable but that didn't work either. Any help would be appreciated.

Thanks!


--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Handling Exceptions in ActionForm

2003-10-02 Thread Karr, David
> -Original Message-
> From: Shane Mingins [mailto:[EMAIL PROTECTED] 
> 
> Using Struts, if I have an ActionForm implement the view 
> interface, how
> would it create an ActionError or ActionMessage?  It seems 
> that from an
> ActionForm the validate() method can do it, and an Action can 
> do it but is
> it possible to create an ActionError and save it from my
> duplicateException() method?

Any validation logic in the ActionForm should only be basic syntactical
validation, and no semantic validation.  Semantic validation belongs in
your Action class, and likely in business logic called from your Action
class.

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



RE: [OT] International telephone number formatter component????

2003-10-02 Thread Greg Ludington
>
I do not disagree about the research part at all. I know it will take a
researcher on my staff a great deal of time to maintain, but it is never
the less, a needed feature. I just thought that most Countries have a
fairly well formatted number. And mostly I am taking about supporting
N.&S. America, Western Europe only. Later look at the far East.
<

You may be able to accomplish what you want using localized forms and
the mask rule in the validator.  Assuming that your default
language/country is en_US (a parochial assumption, I know), your
validation.xml might contain bits like the following:


  

  
mask
^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$
  

  



  

  
mask
--a regexp for British phone numbers -- sorry, never
been :)--
  

  


...and so on for each language/country.  Your researchers would have to
provide you the masks for each country, and, as you add counties, you
would add their formsets to validation.xml.  A standalone validation
rule might be more convenient, but this sort of approach might do the
job for you.  The struts-validator example webapp has a couple of sample
forms that perform locale-specific validations.

-Greg



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



Handling Exceptions in ActionForm

2003-10-02 Thread Shane Mingins
Hi

I have a Swing app where the SwingView implements the view interface and has
a method duplicateException(String s).

In the SwingView it is implemented as

public void duplicateException(String duplicateName)
{
JOptionPane.showMessageDialog(this, "That would result in a duplicate
Channel", "Duplicate Channel",
 JOptionPane.ERROR_MESSAGE);
}

So if the business layer finds a duplicate it can inform the presentation
layer.  I am wondering how this would map on Struts?

Using Struts, if I have an ActionForm implement the view interface, how
would it create an ActionError or ActionMessage?  It seems that from an
ActionForm the validate() method can do it, and an Action can do it but is
it possible to create an ActionError and save it from my
duplicateException() method?

Could I perhaps have my duplicateException() method add to collection
variable in the ActionForm and then have the validate() method check that
collection and generate the required ActionErrors?  

Any thoughts?

Shane


Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522



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



RE: OT - estimating man-hours for a development project

2003-10-02 Thread Chappell, Simon P
I figure out how long something will take in "perfect engineering days" i.e 
uninterupted time with no interuptions and no external requests and then triple it. 
(Really. :-)

Simon

>-Original Message-
>From: Sasha Borodin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, October 02, 2003 5:29 PM
>To: Struts Users Mailing List
>Subject: OT - estimating man-hours for a development project
>
>
>To follow up my 'pricing structure' question of earlier this week...
>
>How do the pro's estimate the amount of time a particular 
>project will take?
>I know you'll say 'experience'.  But is there any kind of a 
>rough formula?
>How much do you usually pad your estimate to take into account any
>unexpected turns?
>
>I understand this is subjective and based on many factors.  
>Again, I'm just
>looking for a starting point.
>
>Thank you,
>
>-Sasha 
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



OT - estimating man-hours for a development project

2003-10-02 Thread Sasha Borodin
To follow up my 'pricing structure' question of earlier this week...

How do the pro's estimate the amount of time a particular project will take?
I know you'll say 'experience'.  But is there any kind of a rough formula?
How much do you usually pad your estimate to take into account any
unexpected turns?

I understand this is subjective and based on many factors.  Again, I'm just
looking for a starting point.

Thank you,

-Sasha 


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



Implementing Silos in Struts

2003-10-02 Thread Dev
Hi,

I had a problem which some of you may have already solved. The layout of functional 
groups of JSP pages are usually grouped under Tabs for example Registration, Shop, 
Support are three functional groups of pages. 

+---+  +---+  ++
 | Registration |   | Shop  |   |  Support  |
+---+-++-++

Each of these areas may have sub-menu functionality. For Registration we may have

+---+
| Registration  | 
+---+
|
+---> Add Me
|> Change Profile
+---> Find others like me

I figure each Tab could be mapped to a "module" in Struts 1.1. A click on a Tab which 
is mapped to the URL will can be implemented as a  "module switch".  

1. Is this a correct usage of modules in Struts?
2. Can we map Roles to the tabs shown?
3. Is Struts-Menu an appropriate tool for this task?
4. From a development perspective can each developer maintain/code a tab separately 
and submit a module for integration?

Thanks,
Dev



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



RE: newbie: Best Practice Struts/Value-Objects?

2003-10-02 Thread Mark Galbreath
Could you not, then, consider ActionForms and DynaActionForms xfer objects?

Mark

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 2:42 PM
To: Struts Users Mailing List
Subject: Re: newbie: Best Practice Struts/Value-Objects?


Value Objects, also called Transfer Objects, are a design pattern. The
idea is that you can minimize the calls to the business tier by
collecting all the data you might need at once and submitting it as a
batch. (Opposed to, say, updating a form a line a time.) The properties
on the Transfer Object might be used by more than one business
component, but you collect them all together to minimize the number of
trips to the business layer.

The ActionForms are a type of Transfer Object. They transfer data
between a HTML form on the presentation layer to the Action on the
controller layer. (But most people would say they should not travel past
the Action.)

Many people also use Transfer Objects on the business layer, and often
the ActionForms and their Transfer Objects will look alot alike.
(Annoyingly so, some might say.) It's commonplace for someone to collect
what they need on an ActionForm and then copy all that over to a
Transfer Object, for submittal to the business layer. Sometimes people
will even nest a Transfer Object on a ActionForm. Another approach is to
have the ActionForm implement the Transfer Object's interface.

If your Transfer Objects and ActionForms share the same protocol (use
the same propert names), you can also pass your Transfer Object directly
to the HTML page. The HTML form tag doesn't care if you use an
ActionForm to populate a form or not, so long as the properties match.

If you kept your ActionForm in session scope, then you could just expose
five fields and keep the others intact. Just watch the that your reset
method doesn't blank them out.

Without using session scope (or a cookie), there is no clean way to
retain the fields without writing them out on the page somehow. One
trick is to use a method that will spit out whatever hidden fields you
need and then just call that using bean:write.

For this use-case, another approach would be to create a more finely
grained business layer. If you only need to update five fields, then you
should be able to update only those five fields. So you would have
another database query that set those five fields, but left the others
alone. The others may exist on the Transfer Object, but the other
database query can just ignore those.

-Ted.


Darren Hartford wrote:
> Hi all!
> Been working with struts and value-objects, and I am beginning to
understand the power of these two in combination. I did however run into a
snag that may be either on purpose or just ignorance on my part.
>
> If I pass a 20-field value-object to an ActionForm (let's say an
EmployeeVO), and I only show the employee's name and address for editing
(only 5 or so fields).  They make the necessary changes and submit the form.
What I understand is the form will populate a NEW EmployeeVO and not make
the changes to the original EmployeeVO, thereby creating an EmployeeVO
populated only from the 5 fields on the form and nulling the other 15
fields.
>
> I was hoping to take an existing Value-Object, only make necessary changes
from the submitted form (i.e. 0-5 changed fields and the other 15 stay the
way they are), and then re-submit the Value-Object for updating the DB, but
that does not seem possible.  Am I doing something wrong and/or
mis-understanding the best utilization of Value-Objects with Struts?  Again,
I'm a newbie so any pointers, help, or examples would be great!
>
> thanky in advance!
> -D
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
Ted Husted,
   Junit in Action  - ,
   Struts in Action - ,
   JSP Site Design  - .




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



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



Help needed : Cannot manage a collection or array in a Struts form

2003-10-02 Thread Frederic Dernbach
Hello,

I really need some help with Struts ; there must be something I do not
get right (I'm still unexperienced ...). I'm "loosing" indexed form
properties.

I have a form ('StrategyForm') with an indexed property ('signals'). See
below:

public class StrategyForm extends ValidatorActionForm implements
java.io.Serializable {

.../...
public Object[] getSignals() {
return signals;
}

public void setSignals(Object[] signals) {
this.signals = signals;
}
}

I have a JSP  iterating on the 'signals' property (using Struts-Layout).

A first Struts action populates the 'signals' property of the form
(among others) and forwards to the JSP. The last statement of the action
logs the form on the console (with a toString() call on the form). See
the result above (the end of the line shows 'signals' set to a non-null
array) :

21:31:17,533 INFO  [StrategyAction] customExecute() : Terminated with 
form com.rubis.web.system.StrategyForm ID = 6 code = NEX label = nex
signals = [Ljava.lang.Object;@69094

Back in the JSP, I hit a submit button that launches a second Struts
action, which FIRST statement logs the form :

21:34:07,078 INFO  [SubmitStrategyAction] customExecute() : Terminated
with form com.rubis.web.system.StrategyForm ID = 6 code = NEX label =
nex signals = null

The 'signals' property has been set to null while other properties such
as ID or label are still there. The 'reset' method of the form sets it
to null as required).

I tried the same kind of stuff with a DynaValidatorActionForm instead of
my custom StrategyForm : same result.

I've also tried to change the type of 'signals' to an ArrayList instead
of an array (with a 'reset' method creating the signals property to a
empty array list). Same result : the property was set to null.

Then, instead of using a form property, I tried to save a 'signals'
attribute in the request during the first action.Went right. But the
second action does not show it (debug traces).

What is that I'm doing wrong ?

Thanks for your help. I get a little crazy on this.

Fred 




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



Sorry...

2003-10-02 Thread Joseph William
Im sorry about the subject line... It was out of frustration and the pressure I was 
having, I happened put it that way... Sorry again...

[EMAIL PROTECTED] wrote:Attn Sir.

I understand quite well that this message will sound so strange to you out 

it is a very serious matter that we need to tackle together very rgent. 
Before i proceed further,Let me formally introduce myself to you .I am DR. 

JOSEPH HUSTED , the first adopted son of TED HUSTED, the noted Struts 
author.

I am contacting you today for an urgent assistance to transfer into your 
account the sum of US$28.7,000.000.00(TWENTY EIGHT MILLION SEVEN HUNDRED 
THOUSAD UNITED STATES DOLLARS). I hope that you may be aware of the recent 

differences that is going on rigth now between my father and the struts 
community, 
due to his work on a .NET project. This also brought about the struts 
community 
sanctioning my father and freezing all his book earnings both in America 
and britain.

I am contacting you therefore on the account that you will support me with 
your foreign account 
and to come over to Redmond so that we can both claim the fund 
together, and then we can travel down to your country for proper 
investment 
of the fund.

JOSEPH HUSTED





"Paananen, Tero" 
10/02/03 02:54 PM
Please respond to "Struts Users Mailing List"


To: 'Struts Users Mailing List' 
cc: 
Subject: RE: URGENT... HELP NEEDED...


> Hi All...

Reading the subject I thought you'd offer me $10K
in exchange for me shipping your millions to the US
from Nigeria.

I was so dissapointed to find out I wasn't about
to get rich :(

-TPP

-
This email may contain confidential and privileged material for the sole 
use of the intended recipient(s). Any review, use, retention, distribution 
or disclosure by others is strictly prohibited. If you are not the 
intended recipient (or authorized to receive for the recipient), please 
contact the sender by reply email and delete all copies of this message. 
Also, email is susceptible to data corruption, interception, tampering, 
unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, 
tampering, amendment or viruses or any consequence thereof.


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






-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: URGENT... HELP NEEDED...

2003-10-02 Thread atta-ur rehman
Okay. its not a struts questions and probably should be sent to a JavaScript
forum. but i spirit of Struts; here is what i would call a very crude method
of doing it. i hope it would give you a starting point.


function doIt() {

  var today = new Date();
  var fridays = new Array();
  for (i = 1; i <= 365; i++) {
   d = new Date(today - (8640 * i));
   if (d.getDay() == 5) {
fridays.splice(fridays.length, 0, d);
}
  }

  for (i = 0; i < fridays.length; i++) {
// show it in a text field on this page!
   document.forms[0].t1.value = document.forms[0].t1.value +
fridays[i].toString();
  }
}


the Date object in javascript, when constructed without any arguments is
initialized with today's date. that's exactly what 'today' variable is for.
now, Date object could also be initialized with milliseconds and it also
support addition and substraction. there are 8640 ms in a day. and we go
back 365 days from today!

the getDay() method on Date object returns 0 for Sunday, 1 for Monday and so
on. so we get only Fridays when getDay() == 5!

crude as i said. i'd get the first friday and increment 'i' by 7 instead of
1.

Oh, and by the way, Array.splice() makes javascript Array object as dynamic
and ArrayList in java!

hope this would help.

ATTA

- Original Message - 
From: "Joseph William" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 11:48 AM
Subject: URGENT... HELP NEEDED...


> Hi All...
>
> This has got nothing to do with Struts... It is javascript function I am
developing...
>
> I need to generate all Friday dates for the past one year from the current
date... Has anyone got such code??? I tried to search the net but wasn't
able to find anything very precise... It would be of great help if anyone
can help me here...
>
> Appreciate your guidance... Thanks!
>
> -Joseph
>
>
> -
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search



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



RE: newbie: Best Practice Struts/Value-Objects?

2003-10-02 Thread Menke, John
Maybe make what we call a displayBean in our app.  It is not a VO as we view
VO's to be more domain oriented.  It's just for the front end.  In your
action create the display bean and set it on the form.   Then in your action
have logic to take values from displayBean and set them in the VO.   We
don't want our API to get crowded with view oriented objects so the
displayBean is kept in the same package as the actions.  VO's are more
domain oriented and can go into API package.

-jm

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 2:20 PM
To: Struts Users Mailing List
Subject: RE: newbie: Best Practice Struts/Value-Objects?


Hi John,
Yeah, that is one (messy) solution to my problem. My concern is I would have
to do add those 15 fields in every JSP page that sends the VO back, and if I
have to make a change to the DB/VO, then go back over every JSP page again
to make more changes.

I'm trying to get to as low-maintanence as possible initially, even if it
means sacrificing some performance by not using light-value-objects in the
beginning.  Can always make it faster after it is working correctly, right?
;-)

I'm still lost as to how to handle Struts with Value Objects though
-D

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 12:16 PM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


you could use hidden variables on your jsp page to store the VO attributes
you are not changing and keep your VO intact only changing the 5 fields

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 11:05 AM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


Hi Darren,
I was under the impression that it works exactly the way you hope it
does.
Actually I'm pretty sure it does.
Also what might be worth looking at ( I have to look at it myself ), is 
Light-value-objects where you only populate the initial value object
with the 5 fields rather than the whole 20. This is obviously more
optimal in 
terms of db queries.

This is all pre-supposing you are using xdoclet and EJBs and xdoclet,
which
perhaps you are not.

HTH,
Brian

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2003 13:41
To: [EMAIL PROTECTED]
Subject: newbie: Best Practice Struts/Value-Objects?

Hi all!
Been working with struts and value-objects, and I am beginning to
understand the power of these two in combination. I did however run into
a snag that may be either on purpose or just ignorance on my part.

If I pass a 20-field value-object to an ActionForm (let's say an
EmployeeVO), and I only show the employee's name and address for editing
(only 5 or so fields).  They make the necessary changes and submit the
form.  What I understand is the form will populate a NEW EmployeeVO and
not make the changes to the original EmployeeVO, thereby creating an
EmployeeVO populated only from the 5 fields on the form and nulling the
other 15 fields.

I was hoping to take an existing Value-Object, only make necessary
changes from the submitted form (i.e. 0-5 changed fields and the other
15 stay the way they are), and then re-submit the Value-Object for
updating the DB, but that does not seem possible.  Am I doing something
wrong and/or mis-understanding the best utilization of Value-Objects
with Struts?  Again, I'm a newbie so any pointers, help, or examples
would be great!

thanky in advance!
-D

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


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

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

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



[Q] Class Object - technical que - Urgent

2003-10-02 Thread Rajesh M Vasudevan
Hi

Please see the following snippet:









obj is of class type Object.  In the action bean, I assign different types(e.g ClassA, 
ClassB etc) of objects into obj with a typecast and build my whole tree.  Once the 
tree is complete, I set the whole tree object into the form.  In the JSP how will I 
get the properties of ClassA, ClassB etc from the obj object within the nested:nest 
taglib

Thanks for any help
Regards
Rajesh


RE: URGENT... HELP NEEDED...

2003-10-02 Thread jbaker
Attn Sir.

I understand quite well that this message will sound so strange to you out 

it is a very serious matter that we need to tackle together very rgent. 
Before i proceed further,Let me formally introduce myself to you .I am DR. 

JOSEPH HUSTED , the first adopted son of TED HUSTED, the noted Struts 
author.

I am contacting you today for an urgent assistance to transfer into your 
account the sum of US$28.7,000.000.00(TWENTY EIGHT MILLION SEVEN HUNDRED 
THOUSAD UNITED STATES DOLLARS). I hope that you may be aware of the recent 

differences that is going on rigth now between my father and the struts 
community, 
due to his work on a .NET project.  This also brought about the struts 
community 
sanctioning my father and freezing all his book earnings both in America 
and britain.

I am contacting you therefore on the account that you will support me with 
your foreign account 
and to come over to Redmond so that we can both claim the fund 
together, and then we can travel down to your country for proper 
investment 
of the fund.

JOSEPH HUSTED





"Paananen, Tero" <[EMAIL PROTECTED]>
10/02/03 02:54 PM
Please respond to "Struts Users Mailing List"

 
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
cc: 
Subject:RE: URGENT... HELP NEEDED...


> Hi All...

Reading the subject I thought you'd offer me $10K
in exchange for me shipping your millions to the US
from Nigeria.

I was so dissapointed to find out I wasn't about
to get rich :(

 -TPP

-
This email may contain confidential and privileged material for the sole 
use of the intended recipient(s). Any review, use, retention, distribution 
or disclosure by others is strictly prohibited. If you are not the 
intended recipient (or authorized to receive for the recipient), please 
contact the sender by reply email and delete all copies of this message. 
Also, email is susceptible to data corruption, interception, tampering, 
unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, 
tampering, amendment or viruses or any consequence thereof.


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





RE: URGENT... HELP NEEDED...

2003-10-02 Thread Paananen, Tero
> Hi All...

Reading the subject I thought you'd offer me $10K
in exchange for me shipping your millions to the US
from Nigeria.

I was so dissapointed to find out I wasn't about
to get rich :(

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


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



Re: tiles and parameters

2003-10-02 Thread Frank Maritato
That didn't work. First I got a ClassCastException because its actually 
of type org.apache.struts.tiles.DirectStringAttribute and not 
java.lang.string. Even after I adjusted for that, however, I still was 
not able to see nav_key or local_nav_key in samplecontent.jsp.

That tiles reference was very helpful though. It said that all 
attributes are defined in the "tiles" scope only and are not visible to 
sub-tiles. That gave me the idea to redefine the variable into the 
request scope. So this is what I did:

in headerContentFooter.jsp:

then in samplecontent.jsp:

and that works. Thanks!

Christopher C Worley wrote:
Frank,

Try this in headerContentFooter.jsp


nav_key = <%=local_nav_key%>

Here is a good reference for tiles

http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf



-chris worley

Hi all, I'm having a problem passing a parameter down from a tiles 
definition to a jsp. I can access the value easily in the layout 
definition, but I can't get access to it in a file (or action) I'm 
inserting into the layout. Here is an example of what I'm doing (cut 
down a bit)

tiles.xml:

  
  

headerContentFooter.jsp:

nav_key = <%=nav_key%>

samplecontent.jsp:

nav_key::: <%=nav_key%>
So I'm getting an error in samplecontent.jsp that there is no such 
variable in any scope. How can I get it? I can print out the value 
fine in the headerContentFooter layout. I also tried adding a 
 in samplecontent.jsp to try and get access to the 
variable but that didn't work either. Any help would be appreciated.

Thanks!




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


URGENT... HELP NEEDED...

2003-10-02 Thread Joseph William
Hi All...
 
This has got nothing to do with Struts... It is javascript function I am developing...
 
I need to generate all Friday dates for the past one year from the current date... Has 
anyone got such code??? I tried to search the net but wasn't able to find anything 
very precise... It would be of great help if anyone can help me here...
 
Appreciate your guidance... Thanks!
 
-Joseph


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: newbie: Best Practice Struts/Value-Objects?

2003-10-02 Thread Carey Nation
Write a tag that emits the hidden stuff.  Put it everywhere.  Then there's
only one maintenence point...



Hi John,
Yeah, that is one (messy) solution to my problem. My concern is I would have
to do add those 15 fields in every JSP page that sends the VO back, and if I
have to make a change to the DB/VO, then go back over every JSP page again
to make more changes.

I'm trying to get to as low-maintanence as possible initially, even if it
means sacrificing some performance by not using light-value-objects in the
beginning.  Can always make it faster after it is working correctly, right?
;-)

I'm still lost as to how to handle Struts with Value Objects though
-D



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



Re: newbie: Best Practice Struts/Value-Objects?

2003-10-02 Thread Ted Husted
Value Objects, also called Transfer Objects, are a design pattern. The 
idea is that you can minimize the calls to the business tier by 
collecting all the data you might need at once and submitting it as a 
batch. (Opposed to, say, updating a form a line a time.) The properties 
on the Transfer Object might be used by more than one business 
component, but you collect them all together to minimize the number of 
trips to the business layer.

The ActionForms are a type of Transfer Object. They transfer data 
between a HTML form on the presentation layer to the Action on the 
controller layer. (But most people would say they should not travel past 
the Action.)

Many people also use Transfer Objects on the business layer, and often 
the ActionForms and their Transfer Objects will look alot alike. 
(Annoyingly so, some might say.) It's commonplace for someone to collect 
what they need on an ActionForm and then copy all that over to a 
Transfer Object, for submittal to the business layer. Sometimes people 
will even nest a Transfer Object on a ActionForm. Another approach is to 
have the ActionForm implement the Transfer Object's interface.

If your Transfer Objects and ActionForms share the same protocol (use 
the same propert names), you can also pass your Transfer Object directly 
to the HTML page. The HTML form tag doesn't care if you use an 
ActionForm to populate a form or not, so long as the properties match.

If you kept your ActionForm in session scope, then you could just expose 
five fields and keep the others intact. Just watch the that your reset 
method doesn't blank them out.

Without using session scope (or a cookie), there is no clean way to 
retain the fields without writing them out on the page somehow. One 
trick is to use a method that will spit out whatever hidden fields you 
need and then just call that using bean:write.

For this use-case, another approach would be to create a more finely 
grained business layer. If you only need to update five fields, then you 
should be able to update only those five fields. So you would have 
another database query that set those five fields, but left the others 
alone. The others may exist on the Transfer Object, but the other 
database query can just ignore those.

-Ted.

Darren Hartford wrote:
Hi all!
Been working with struts and value-objects, and I am beginning to understand the power 
of these two in combination. I did however run into a snag that may be either on 
purpose or just ignorance on my part.
If I pass a 20-field value-object to an ActionForm (let's say an EmployeeVO), and I only show the employee's name and address for editing (only 5 or so fields).  They make the necessary changes and submit the form.  What I understand is the form will populate a NEW EmployeeVO and not make the changes to the original EmployeeVO, thereby creating an EmployeeVO populated only from the 5 fields on the form and nulling the other 15 fields.

I was hoping to take an existing Value-Object, only make necessary changes from the submitted form (i.e. 0-5 changed fields and the other 15 stay the way they are), and then re-submit the Value-Object for updating the DB, but that does not seem possible.  Am I doing something wrong and/or mis-understanding the best utilization of Value-Objects with Struts?  Again, I'm a newbie so any pointers, help, or examples would be great!

thanky in advance!
-D
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ted Husted,
  Junit in Action  - ,
  Struts in Action - ,
  JSP Site Design  - .


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


[Q] Problem with logic:present!!!!!!!

2003-10-02 Thread Rajesh M Vasudevan
Hai,

In my JSP page, I ve checked for object validity by using the logic:present tag.  But, 
all the html code sandwitched between the   tags are 
not rendered(quite obviously).   Now, my situation is that of a modify page, where the 
page should show all the existing values in edit mode.  Those fields(like an text 
control) whose objects were not present should still render a blank control with no 
value, so that the user can give a value if he wishes so and on submit, I need to save 
it to the database.  I cant let go of the check (logic:present or some other) cauz, 
its not mandatory that the objects from the form-bean should come with proper 
allocation.

The case of a modify page could be a common scenario.  So, can you please share the 
solution/alternative with me.

Thanks
Rajesh


RE: newbie: Best Practice Struts/Value-Objects?

2003-10-02 Thread Darren Hartford
Hi John,
Yeah, that is one (messy) solution to my problem. My concern is I would have to do add 
those 15 fields in every JSP page that sends the VO back, and if I have to make a 
change to the DB/VO, then go back over every JSP page again to make more changes.

I'm trying to get to as low-maintanence as possible initially, even if it means 
sacrificing some performance by not using light-value-objects in the beginning.  Can 
always make it faster after it is working correctly, right? ;-)

I'm still lost as to how to handle Struts with Value Objects though
-D

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 12:16 PM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


you could use hidden variables on your jsp page to store the VO attributes
you are not changing and keep your VO intact only changing the 5 fields

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 11:05 AM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


Hi Darren,
I was under the impression that it works exactly the way you hope it
does.
Actually I'm pretty sure it does.
Also what might be worth looking at ( I have to look at it myself ), is 
Light-value-objects where you only populate the initial value object
with the 5 fields rather than the whole 20. This is obviously more
optimal in 
terms of db queries.

This is all pre-supposing you are using xdoclet and EJBs and xdoclet,
which
perhaps you are not.

HTH,
Brian

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2003 13:41
To: [EMAIL PROTECTED]
Subject: newbie: Best Practice Struts/Value-Objects?

Hi all!
Been working with struts and value-objects, and I am beginning to
understand the power of these two in combination. I did however run into
a snag that may be either on purpose or just ignorance on my part.

If I pass a 20-field value-object to an ActionForm (let's say an
EmployeeVO), and I only show the employee's name and address for editing
(only 5 or so fields).  They make the necessary changes and submit the
form.  What I understand is the form will populate a NEW EmployeeVO and
not make the changes to the original EmployeeVO, thereby creating an
EmployeeVO populated only from the 5 fields on the form and nulling the
other 15 fields.

I was hoping to take an existing Value-Object, only make necessary
changes from the submitted form (i.e. 0-5 changed fields and the other
15 stay the way they are), and then re-submit the Value-Object for
updating the DB, but that does not seem possible.  Am I doing something
wrong and/or mis-understanding the best utilization of Value-Objects
with Struts?  Again, I'm a newbie so any pointers, help, or examples
would be great!

thanky in advance!
-D

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


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

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



Re: tiles and parameters

2003-10-02 Thread Christopher C Worley
Frank,

Try this in headerContentFooter.jsp


nav_key = <%=local_nav_key%>

Here is a good reference for tiles

http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf



-chris worley

Hi all, I'm having a problem passing a parameter down from a tiles 
definition to a jsp. I can access the value easily in the layout 
definition, but I can't get access to it in a file (or action) I'm 
inserting into the layout. Here is an example of what I'm doing (cut 
down a bit)

tiles.xml:

  
  

headerContentFooter.jsp:

nav_key = <%=nav_key%>

samplecontent.jsp:

nav_key::: <%=nav_key%>
So I'm getting an error in samplecontent.jsp that there is no such 
variable in any scope. How can I get it? I can print out the value 
fine in the headerContentFooter layout. I also tried adding a 
 in samplecontent.jsp to try and get access to the 
variable but that didn't work either. Any help would be appreciated.

Thanks!




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


RE: can not get bean property, help!!

2003-10-02 Thread Karr, David
That's a different error.  You always have to quote attribute values.
Start with that, and focus on the other problem.  Try restating your
problem, showing exactly what you have and what error you're getting.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> 
> thank you, David, actually i tried single quote '   ...' 
> before, however 
> it doesnt work, always  gave me
> Cannot retrieve mapping for action /'  error
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> > 
> > Hi, I have an attribute called "actionName" in my actionformbean
> > and I set it properly in my action class before forward to my jsp
> > in the jsp I try to retrieve it like this:
> > >
> > ...
> > ...
> > 
> > 
> > it always gives me "Attribute value must be quoted" error 
> message in 
> > action.jsp
> > anything wrong ?
> 
> Well, I don't know how much clearer that error message could be.  You
> need to change this:
> 
> >
> 
> To:
> 
> 

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



RE: can not get bean property, help!!

2003-10-02 Thread Julie . Huang
thank you, David, actually i tried single quote '   ...' before, however 
it doesnt work, always  gave me
Cannot retrieve mapping for action /'  error





"Karr, David" <[EMAIL PROTECTED]>
10/02/03 01:20 PM
Please respond to "Struts Users Mailing List"

 
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc: 
Subject:RE: can not get bean property, help!!


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> 
> Hi, I have an attribute called "actionName" in my actionformbean
> and I set it properly in my action class before forward to my jsp
> in the jsp I try to retrieve it like this:
> >
> ...
> ...
> 
> 
> it always gives me "Attribute value must be quoted" error message in 
> action.jsp
> anything wrong ?

Well, I don't know how much clearer that error message could be.  You
need to change this:

>

To:



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





= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



tiles and parameters

2003-10-02 Thread Frank Maritato
Hi all, I'm having a problem passing a parameter down from a tiles 
definition to a jsp. I can access the value easily in the layout 
definition, but I can't get access to it in a file (or action) I'm 
inserting into the layout. Here is an example of what I'm doing (cut 
down a bit)

tiles.xml:

  
  

headerContentFooter.jsp:

nav_key = <%=nav_key%>

samplecontent.jsp:

nav_key::: <%=nav_key%>
So I'm getting an error in samplecontent.jsp that there is no such 
variable in any scope. How can I get it? I can print out the value fine 
in the headerContentFooter layout. I also tried adding a 
 in samplecontent.jsp to try and get access to the 
variable but that didn't work either. Any help would be appreciated.

Thanks!
--
Frank Maritato
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts

2003-10-02 Thread Fenderbosch, Eric
Have you tried prefer-web-inf-classes?

The  element, if set to true, will cause classes located in 
the WEB-INF directory of a Web application to be loaded in preference to classes 
loaded in the application or system classloader. The default value is false. A value 
specified in the console will take precedence over a value set manually.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 11:00
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Deploying web app (.ear = .jar + .war) under Weblogic with
Struts



Hello everyone,

this looks pretty like the mail posted by Navneet Saraogi a couple of
months ago.

I am trying to deploy a .ear application under Bea Weblogic 7.0 using
Struts 1.1.

What happens (funny) is that if I deploy my webapp.war (containing the web
module and Struts library) and webapp.jar (containing ejbs) at the same
time, everything works properly and the web application integrates happily
with ejbs.

But if I merge the two files into a .ear, it deploys correctly, but when I
launch the application I get the following error message:

java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm

since apparently it isn't able to find the path to the library struts.jar,
and of course the application does not work.

Our directory structure is apparently the correct one, and that is:

 theEar.ear
 |-- META-INF
 |-- theEjb.jar
 |-- theWar.war

inside the .ear I have a META-INF directory with application.xml that looks
like this:


  webapp
  webapp

  
webapp.jar
  

  

  webapp.war
  webapp

  

and the file struts.jar is inside the webapp.war file at the path
\WEB-INF\lib, while the other developed classes are at the path
\WEB-INF\classes.

I also tried inserting Class-Path: webapp.jar inside \META-INF\MANIFEST.MF
in the webapp.war file, to make it see the ejbs, but it still does not
work.

Anyone has any idea of what I am missing ?

Thank you,
Marco Piana
Rome, Italy.


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



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



RE: can not get bean property, help!!

2003-10-02 Thread Karr, David
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> 
> Hi, I have an attribute called "actionName" in my actionformbean
> and I set it properly in my action class before forward to my jsp
> in the jsp I try to retrieve it like this:
> >
> ...
> ...
> 
> 
> it always gives me "Attribute value must be quoted" error message in 
> action.jsp
> anything wrong ?

Well, I don't know how much clearer that error message could be.  You
need to change this:

>

To:



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



Re: Still an issue: Quartz plugin shutdown problem

2003-10-02 Thread Mick Knutson
Still looking for help.

Here is the Debug level trace of the startup.

09:35:18,687 ERROR [STDERR] [DEBUG] I18nFactorySet - -Factory initialized
from file '/WEB-INF/tiles-defs.xml'.
09:35:18,687 ERROR [STDERR] [INFO] TilesPlugin - -Tiles definition factory
loaded for module ''.
09:35:18,703 ERROR [STDERR] [DEBUG]
BeanUtils - -BeanUtils.populate([EMAIL PROTECTED]
54f3, {configPath=/WEB-INF/quartz-conf
ig.xml})
09:35:18,734 ERROR [STDERR] [DEBUG] ConvertUtils - -Convert string
'/WEB-INF/quartz-config.xml' to class 'java.lang.String'
09:35:18,750 ERROR [STDERR] [INFO] PlugInSupport - -Initializing
QuartzPlugIn
09:35:18,875 ERROR [STDERR] [INFO] StdSchedulerFactory - -Quartz scheduler
'QuartzScheduler' initialized from default resource file in Quartz package:
 'quartz.properties'
09:35:18,875 ERROR [STDERR] [INFO] StdSchedulerFactory - -Quartz scheduler
version: 1.2.2
09:35:18,890 ERROR [STDERR] [DEBUG] Digester - -addRuleSet() with no
namespace URI
09:35:18,906 ERROR [STDERR] [DEBUG]
sax - -setDocumentLocator([EMAIL PROTECTED]
bb)
09:35:18,906 ERROR [STDERR] [DEBUG] sax - -startDocument()
09:35:18,906 ERROR [STDERR] [DEBUG] sax - -startElement(,,quartz-config)
09:35:18,906 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text ''
09:35:18,921 ERROR [STDERR] [DEBUG] Digester - -  New match='quartz-config'
09:35:18,921 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
ObjectCreateRule[className=com.jgsullivan.quartz.config.QuartzConfig,
attributeName
=null]
09:35:18,921 ERROR [STDERR] [DEBUG]
Digester - -[ObjectCreateRule]{quartz-config}New
com.jgsullivan.quartz.config.QuartzConfig
09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters()
09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters(
)
09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters()
09:35:18,921 ERROR [STDERR] [DEBUG] sax - -startElement(,,trigger-group)
09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
'
09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  New
match='quartz-config/trigger-group'
09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
ObjectCreateRule[className=com.jgsullivan.quartz.config.TriggerGroupConfig,
attribu
teName=null]
09:35:18,984 ERROR [STDERR] [DEBUG]
Digester - -[ObjectCreateRule]{quartz-config/trigger-group}New
com.jgsullivan.quartz.config.TriggerGroupConfig
09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
[EMAIL PROTECTED]
09:35:19,046 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
SetNextRule[methodName=addTriggerGroup, paramType=null]
09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters()
09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters(
)
09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters()
09:35:19,046 ERROR [STDERR] [DEBUG] sax - -startElement(,,trigger)
09:35:19,046 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
'
09:35:19,109 ERROR [STDERR] [DEBUG] Digester - -  New
match='quartz-config/trigger-group/trigger'
09:35:19,109 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
ObjectCreateRule[className=org.quartz.SimpleTrigger,
attributeName=className]
09:35:19,109 ERROR [STDERR] [DEBUG]
Digester - -[ObjectCreateRule]{quartz-config/trigger-group/trigger}New
org.quartz.CronTrigger
09:35:19,125 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
SetPropertiesRule[]
09:35:19,125 ERROR [STDERR] [DEBUG]
Digester - -[SetPropertiesRule]{quartz-config/trigger-group/trigger} Setting
property 'name' to 'alertSenderTrigge
r'
09:35:19,125 ERROR [STDERR] [DEBUG]
Digester - -[SetPropertiesRule]{quartz-config/trigger-group/trigger} Setting
property 'className' to 'org.quartz.C
ronTrigger'
09:35:19,187 ERROR [STDERR] [DEBUG]
Digester - -[SetPropertiesRule]{quartz-config/trigger-group/trigger} Set
org.quartz.CronTrigger properties
09:35:19,187 ERROR [STDERR] [DEBUG] BeanUtils - -BeanUtils.populate(Trigger
'null.null':  triggerClass: 'org.quartz.CronTrigger isVolatile: false cale
ndar: 'null' misfireInstruction: 0, {className=org.quartz.CronTrigger,
name=alertSenderTrigger})
09:35:19,203 ERROR [STDERR] [DEBUG] ConvertUtils - -Convert string
'alertSenderTrigger' to class 'java.lang.String'
09:35:19,234 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
[EMAIL PROTECTED]
09:35:19,234 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
[EMAIL PROTECTED]
09:35:19,234 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
SetNextRule[methodName=addTrigger, paramType=org.quartz.Trigger]
09:35:19,265 ERROR [STDERR] [DEBUG] sax - -characters()
09:35:19,265 ERROR [STDERR] [DEBUG] sax - -characters(
)
09:35:19,265 ERROR [STDERR] [DEBUG] sax - -characters()
09:35:19,265 ERROR [STDERR] [DEBUG] sax - -startElement(,,set-property)
09:35:19,265 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
'
09:35:19,265 ERROR [STDERR] [DEBUG] Digester - -  New
match='quartz-config/trigger-group/trigger/set-property'
09:35:19,328 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
SetPropertyRule[name=prope

RE: How can I place a parameter back on the URL

2003-10-02 Thread Menke, John
Use JSTL:




 

">
Link Text



-Original Message-
From: John Habbouche [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 12:51 PM
To: Struts Users Mailing List
Subject: How can I place a parameter back on the URL


I have invoking a JSP with a parameter appended to the jsp name (i.e.
jsname.jsp?from=main) using Struts and Tag  libraries.  This parameter is
specified as part of the struts-config.xml forward element.  When I enter my
jsp, I check to see if my parameter is there by invoking:



This statement evaluates to true.  When I click on my submit button, my
form's validate method gets called which is what I expect since I have
requested validation in my action in struts-config.xml file.  Now if the
form fails to validate, the same JSP is invoked since this is what is
specified as part of my "input" element in my action.  The
question is:

How can I place the parameter back on the URL (i.e. from=main) in my JSP
prior to pressing the submit button using an elegant way (i.e. Tags) without
using scriplets.  I am using a form:



and I need to be able to append a parameter to the action value
(/editUser.do) except the parameter  must be dynamic (i.e. the "from" must
be dynamic, extrated from the request with request.getParameter("from").
The value can change depending on where I am coming from.   The end result
should look like this:



Any help would be greatly appreciated.



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

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



can not get bean property, help!!

2003-10-02 Thread Julie . Huang
Hi, I have an attribute called "actionName" in my actionformbean
and I set it properly in my action class before forward to my jsp
in the jsp I try to retrieve it like this:
>
...
...


it always gives me "Attribute value must be quoted" error message in 
action.jsp
anything wrong ?

thank you very very much!!!

Julie



= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



RE: how to output value in text field?

2003-10-02 Thread Menke, John
Use JSTL: 

<%@ taglib prefix="core" uri="/WEB-INF/c.tld" %> 

 --mapped in struts-config.xml



-Original Message-
From: Rick Col [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 12:27 PM
To: [EMAIL PROTECTED]
Subject: how to output value in text field?


Hi,

I am trying to output a default value in a textfield.
I did something like this:


It should work, but it does not seem to work. What did
I do wrong?

regards,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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



RE: Using multiple validators on one jsp

2003-10-02 Thread Fenderbosch, Eric
I had a similar question a week or so ago.  I think you can use requiredIf, but that 
is being deprecated in favor of validWhen.  I'm using a hidden input to tell which 
submit button was pressed and which field to validate.  Once validWhen makes it in to 
a non-beta release, I'll probably use validator, but for now, I'm just testing the 
trackBy property in my ActionForm and doing my own validation there.


  
  
function set(target) {document.forms[0].trackBy.value=target;}
  
  

  

  
  

  
  

  

  


  

  
  

  
  

  

  

  


public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if (trackBy.equals("trackByPro")) {
validatePro(errors);
} else if (trackBy.equals("trackByBol")) {
validateBol(errors);
} else {
errors.add("unknown query method", new 
ActionError("query_method.unknown"));
}
return errors;


-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 05:29
To: 'Struts Users Mailing List'
Subject: Using multiple validators on one jsp


Hi all,
 
Say I have a jsp that takes two input parameters - one is an email and
the other is a credit card.
However I have two submit buttons, so if you enter the email, it runs
Action 1, and if you enter 
The credit card it runs Action 2.
 
I want to use the validator to validate the parameters as being correct
emails and credit cards. 
However I'm not sure if this can be done. For example, if I put at the
top of my page 
 
 which might contain the email parameter,
then only the 
email will get validated in either case. Alternatively if I put at the
top of my page:
 
 which might contain the credit card
parameter, then only the 
credit card will get validated.
 
What I want is - if the user enters an email, then the email gets
validated, and if he enters a 
credit card, then that gets validated.
 
Is this possible?
Thanks,
Brian
 

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



RE: Struts Case Study

2003-10-02 Thread Mark Galbreath
Does the company have to be using CASE?

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 12:14 PM
To: [EMAIL PROTECTED]
Subject: Struts Case Study


I've recently finished filming a Struts video presentation for a company
called WatchIT and they're looking for a large company using Struts to do
a case study on.  If you're interested please contact me.

Thanks,

James Holmes

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





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



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



RE: newbie: Best Practice Struts/Value-Objects?

2003-10-02 Thread Menke, John
you could use hidden variables on your jsp page to store the VO attributes
you are not changing and keep your VO intact only changing the 5 fields

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 11:05 AM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


Hi Darren,
I was under the impression that it works exactly the way you hope it
does.
Actually I'm pretty sure it does.
Also what might be worth looking at ( I have to look at it myself ), is 
Light-value-objects where you only populate the initial value object
with the 5 fields rather than the whole 20. This is obviously more
optimal in 
terms of db queries.

This is all pre-supposing you are using xdoclet and EJBs and xdoclet,
which
perhaps you are not.

HTH,
Brian

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2003 13:41
To: [EMAIL PROTECTED]
Subject: newbie: Best Practice Struts/Value-Objects?

Hi all!
Been working with struts and value-objects, and I am beginning to
understand the power of these two in combination. I did however run into
a snag that may be either on purpose or just ignorance on my part.

If I pass a 20-field value-object to an ActionForm (let's say an
EmployeeVO), and I only show the employee's name and address for editing
(only 5 or so fields).  They make the necessary changes and submit the
form.  What I understand is the form will populate a NEW EmployeeVO and
not make the changes to the original EmployeeVO, thereby creating an
EmployeeVO populated only from the 5 fields on the form and nulling the
other 15 fields.

I was hoping to take an existing Value-Object, only make necessary
changes from the submitted form (i.e. 0-5 changed fields and the other
15 stay the way they are), and then re-submit the Value-Object for
updating the DB, but that does not seem possible.  Am I doing something
wrong and/or mis-understanding the best utilization of Value-Objects
with Struts?  Again, I'm a newbie so any pointers, help, or examples
would be great!

thanky in advance!
-D

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


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

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



Struts Case Study

2003-10-02 Thread James Holmes
I've recently finished filming a Struts video presentation for a company
called WatchIT and they're looking for a large company using Struts to do
a case study on.  If you're interested please contact me.

Thanks,

James Holmes

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





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



Re: Tile philosophy ?

2003-10-02 Thread Manish Singla
You may want to have three pages (as suggested by you in first strategy) 
to reuse tiles. If well defined, a Tile can be reused in different 
locations.
Tiles-def.xml may grow exponentially if html pages are defined in that.
Different JSP pages lead to  seperation of concerns

If requirement is to just send a "String or number" "(in second 
strategy) than you may parameterize Tiles by specifying dynamic 
attributes. There are tiles custom tages to support parameters.

Yann Lebreton wrote:
Where ever I read on tiles the structure for a main JSP page is given around using 3 pages. 1 for the layout, 1 for insertion, 1 for content.

example of insertion:



Is this a necessity, is it the best convention ? What's preventing to use only 2 pages: 1 for layout, 1 for insertion?

example of 2 page:


here goes whatever body you had in mind...


Thanks for input,
Yann


--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Editorial on Struts' Long Term Future

2003-10-02 Thread Vic Cekvenic
http://biz.yahoo.com/djus/031002/103540_4.html

This should help management, just out today from Merrily Lynch. JSF IP 
is owned by Sun and RI is not open source.

I could re-quote article but you can read it careful like by yourself.

.V

Davidson, Glenn wrote:
Craig,
I'd like to thank you for your response. As a architect who has selected
Struts for a large long term project I was concerned by the original
article. I would like to ask if you would consider writing an article/reply
saying what you said in this email for publication? For some reason
management believes what they see in print.
Thanks

Glenn

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 1:00 PM
To: Struts Users Mailing List
Subject: Re: Editorial on Struts' Long Term Future
Andrew Hill wrote:


Yep. Quite interesting.

Sorry if its a bit rambling - dont have time to edit it - but heres my 2
cents worth:
The article doesnt mention it but Scioworks is the company behind Camino ,
a

powerful RAD tool for struts so its a good bet to say that he certainly
knows the technology and the area quite well (unlike many commentators).

Trust me ... he does :-).


Id have to say I agree with the opinion to a certain extent - though in my
view 3 years is a very long time in IT! ;-)

Yep.  To have Struts take that long to become "legacy" is actually a 
compliment to how well it addresses the need area it went after.  To 
have it become the underlying knowledge base of the experts building the 
"standardized" version of the technology is a compliment to the original 
developers being pretty much on the right track.

Yet, the problem that John addresses here (also known as "The 
Innovator's Dilemna") is very real.  You're told to go build something, 
and put it up on the web yesterday.  It's going to be a mission critical 
for your company, and will itself have a fairly long shelf life, so you 
want to make sure that the technologies you base your app on are also 
going to be around.  You look at the available standards-based 
technologies, and don't see what you need.  So, what do you do?

Open source developers (at least the good ones) tend to be pretty 
innovative, and that was certainly the case with Struts folks (yes, that 
includes me, and I'm very proud of what my little brainchild has grown 
into :-).  It is not unusual to find that there is an open source 
package out there.  But, is that package going to be around for the 
lifetime of my own app?

Or, to put it another way, how many open source projects are hosted at 
SourceForge?  How many of them have more than a couple of developers 
playing around in their spare time?  How many of them have been 
downloaded even 100 times (Struts gets ~75,000 downloads per month nowdays)?

I would submit that the supporting ecology around the technologies you 
choose (be they open source or not) is likely to be more critical to 
your success than the particular technical features of the package.  It 
was certainly critical to some pretty large scale companies, and 
conservative industries, that have adopted Struts quite widely.

Yet, it takes a while for that ecology to grow.  And, there's no 
guarantees that it will *ever* happen.  And, while the ecology is 
growing, the technology at the base can't evolve quite as quickly as it 
could before (ask all the guys who wrote books on the "moving target" 
that was Struts 1.1 :-).

It's an interesting balancing act.


JSF scratches many of the same itches as struts, only better, and given
that

Craig is spec lead for JSF thats hardly a coincidence. Perhaps we could
consider struts the practice run? ;-)

:-)


Craig & co. say that there will be a future for struts in the JSF
generation, but Im not sure I fully grok what that future is yet (havent
had

a chance to play with the jsf struts integrated stuff yet) but at the least
it should involve an upgrade path for existing struts stuff?

Keep in mind that the existing struts-faces integration library isn't 
finished yet (since JavaServer Faces isn't finished yet).  But it will be.

To the broader question, I would definitely say there is a future for 
Struts.  Here's a quick summary of some things on my mind:

* Part of the ecology of a successful open source project
  is staying up with the times, offerring new things to your
  existing customers.  After all, there are many thousands of
  Struts based applications aready in existence -- and nobody
  is going to rewrite them all in the next couple of days, or even
  the next couple of years.  Therefore, Struts needs to continue
  to support its existing features and functions, and add new ones.
* Particular areas of future growth I'm interested in (other developers
  have their own thoughts as well):
  - Enable existing Struts-based applications to utilize new view
technologies (like JavaServer Faces) with zero changes to their
back-end business logic (isn't that one of the things we all lik

RE: Use Validator for two actions on same jsp

2003-10-02 Thread Brian McSweeney
It's the best I've ever found :-)
Whe-hey for struts-users!
Thanks very much again, really appreciate it.
Brian


-Original Message-
From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2003 14:49
To: Struts Users Mailing List
Subject: RE: Use Validator for two actions on same jsp

Great to be of some help. This is a wonderful community, isn't?

Cheers,
Saul



> -Original Message-
> From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 02, 2003 11:30 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Use Validator for two actions on same jsp
> 
> 
> 
> 
> 
> Thanks  Saul,
> 
> You're solving all my problems :-)
> 
> Cheers,
> Brian
> 
> -Original Message-
> From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED]
> Sent: 02 October 2003 14:05
> To: Struts Users Mailing List
> Subject: RE: Use Validator for two actions on same jsp
> 
> 
> Havn't tried that though, but if you put the following in your jsp:
> 
> 
>  dynamicJavascript="true" staticJavascript="false" />
> 
>  dynamicJavascript="true" staticJavascript="false" />
> 
> 
> 
> 
> The staticJavascript.jsp file is the same as in my previous post
> regarding validation.
> 
> I think it may work, assuming you've defined the rest properly in your
> validation.xml file.
> 
> 
> 
> Saul
> 
> 
> 
> 
> > -Original Message-
> > From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 02, 2003 6:58 AM
> > To: 'Struts Users Mailing List'
> > Subject: Use Validator for two actions on same jsp
> >
> >
> >
> >
> >
> > Hi all,
> >
> > Didn't really get any clear response on this before.
> >
> > Is it possible to validate two actions from one jsp using the
> validator.
> > This is easiest to explain with a short bit of code:
> >
> >
> > 
> > 
> > 
> >  > key="label.email"/>:
> > 
> >   
> > 
> > 
> >
> >   
> >
> >   
> >
> > 
> > 
> >
> >
> > 
> > 
> > 
> >  > key="label.creditcard"/>:
> > 
> >   
> > 
> > 
> >
> >   
> >
> >   
> >
> > 
> > 
> >
> > Now normally I'd just put in
> >
> > 
> >
> > to validate the first form. But I wonder can I validate the two from
> the
> > same page depending on which button gets pressed?
> >
> > If this is impossible, then I'd like to add it as a feature request.
> >
> > Cheers,
> > Brian
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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


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



RE: Use Validator for two actions on same jsp

2003-10-02 Thread Yuan, Saul (TOR-ML)
Great to be of some help. This is a wonderful community, isn't?

Cheers,
Saul



> -Original Message-
> From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 02, 2003 11:30 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Use Validator for two actions on same jsp
> 
> 
> 
> 
> 
> Thanks  Saul,
> 
> You're solving all my problems :-)
> 
> Cheers,
> Brian
> 
> -Original Message-
> From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED]
> Sent: 02 October 2003 14:05
> To: Struts Users Mailing List
> Subject: RE: Use Validator for two actions on same jsp
> 
> 
> Havn't tried that though, but if you put the following in your jsp:
> 
> 
>  dynamicJavascript="true" staticJavascript="false" />
> 
>  dynamicJavascript="true" staticJavascript="false" />
> 
> 
> 
> 
> The staticJavascript.jsp file is the same as in my previous post
> regarding validation.
> 
> I think it may work, assuming you've defined the rest properly in your
> validation.xml file.
> 
> 
> 
> Saul
> 
> 
> 
> 
> > -Original Message-
> > From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 02, 2003 6:58 AM
> > To: 'Struts Users Mailing List'
> > Subject: Use Validator for two actions on same jsp
> >
> >
> >
> >
> >
> > Hi all,
> >
> > Didn't really get any clear response on this before.
> >
> > Is it possible to validate two actions from one jsp using the
> validator.
> > This is easiest to explain with a short bit of code:
> >
> >
> > 
> > 
> > 
> >  > key="label.email"/>:
> > 
> >   
> > 
> > 
> >
> >   
> >
> >   
> >
> > 
> > 
> >
> >
> > 
> > 
> > 
> >  > key="label.creditcard"/>:
> > 
> >   
> > 
> > 
> >
> >   
> >
> >   
> >
> > 
> > 
> >
> > Now normally I'd just put in
> >
> > 
> >
> > to validate the first form. But I wonder can I validate the two from
> the
> > same page depending on which button gets pressed?
> >
> > If this is impossible, then I'd like to add it as a feature request.
> >
> > Cheers,
> > Brian
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Question about minimizing javascript loaded into web page

2003-10-02 Thread Yuan, Saul (TOR-ML)


> -Original Message-
> From: Nicholas L Mohler [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 02, 2003 10:29 AM
> To: Struts Users Mailing List
> Subject: RE: Question about minimizing javascript loaded into web page
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Saul,
> 
> Thanks for the responses to the question.  So you are suggesting that
I
> have a jsp that really has the sole purpose of acting as a javascript
> container that will be usable on the client side, but not rendered to
the
> page.  This may be a dumb question: is that possible?  The jsp would
use
> the html:javascript tag to bring in the static javascript from the
> validation framework.

Yes, the static javascripts will be available through referencing an
external javascript file, which is actually rendered through:

 
> Is my understanding correct?

Yes.


Saul


> Nick
> 
> 
> 
> 
> 
>   "Brian McSweeney"
>Mailing
> List'" <[EMAIL PROTECTED]>
>   aurium.net>  cc:
>Subject:  RE: Question
> about
> minimizing javascript loaded into web page
>   10/02/2003 11:00
>   AM
>   Please respond to
>   "Struts Users
>   Mailing List"
> 
> 
> 
> 
> 
> 
> Helps very much Saul. Cheers.
> 
> Final dumb question:
> 
> So is the result of this that only the javascript methods pertaining
to
> each jsp gets loaded into the page?
> 
> If so, do you know why this isn't the default behaviour?
> 
> Thanks,
> Brian
> 
> 
> -Original Message-
> From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED]
> Sent: 02 October 2003 13:46
> To: Struts Users Mailing List
> Subject: RE: Question about minimizing javascript loaded into web page
> 
> >
> > Hi Saul,
> > Could you explain this a little more. I'm interested too.
> >
> > For example, at the moment I'm just using the tag:
> >
> >  
> >
> > This brings down all the validator javascript in the page.
> >
> > 1) Is this what you mean by "static javascript"?
> 
> yes
> 
> 
> >
> > 2) What exactly would you put in the staticJavascript.jsp page?
> 
> Pulled from the struts example application, basically it's setting
> dynamicJavascript="false" staticJavascript="true"
> 
> staticJavascript.jsp:
> -
> 
> <%@ page language="java" %>
> <%-- set document type to Javascript (addresses a bug in Netscape
> according to a web resource --%>
> <%@ page contentType="application/x-javascript" %>
> 
> <%@ taglib uri="/WEB-INF/lib/struts-html.tld" prefix="html" %>
> 
> 
> 
> -
> >
> > 3) What's the difference between static and dynamic javascript?
> > (Probably a
> > real dumb question :-) )
> 
> dynamic javascripts are generated based on the particular fields of
your
> jsp page, say, the validation error messages etc. The static
javascripts
> are those validation javascript functions as defined in the
> validator-roles.xml file.
> 
> 
> Hope this helps.
> 
> Saul
> 
> 
> >
> > Am a bit confused :-)
> > Thanks,
> > Brian
> >
> >
> > -Original Message-
> > From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED]
> > Sent: 01 October 2003 21:09
> > To: Struts Users Mailing List
> > Subject: RE: Question about minimizing javascript loaded into web
page
> >
> > If you don't want static javascript rendered inside your jsp page,
you
> > can set:
> >
> > staticJavascript="false" and have  > reference the static part.
> >
> > Something like below:
> >
> >  > dynamicJavascript="true" staticJavascript="false" />
> >
> >