RE: Struts Validator Debug output? What is it doing?

2003-01-28 Thread Craig R. McClanahan


On Wed, 29 Jan 2003, Alireza Fattahi wrote:

> Date: Wed, 29 Jan 2003 09:01:02 +0330
> From: Alireza Fattahi <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: Struts Validator Debug output? What is it doing?
>
> I have the opposite problem!
> When the application starts all the validation messages are put on the
> stdout. I have not configured any thing. How can I stop it?
> By the way I have put the debug and detail tags values in the web.xml to 0
> but I still get INFO information in stdout!
> Any help?

Struts 1.1 totally ignores the "debug" and "detail" environment
variables.

Instead, you need to learn how to configure the logging environment you
are using.  A good starting point is the commons-logging package
description:

  http://jakarta.apache.org/commons/logging/api/

followed by learning how to configure your logging implementation (Log4J
or JDK 1.4 or whatever).  I suspect you probably have the default level
for all loggers set to DEBUG or something like that.

There's also material in the most recent update to the User's Guide
about this.

Craig

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




Re: Must an Action forward to another JSP or servlet?

2003-01-28 Thread Craig R. McClanahan


On Tue, 28 Jan 2003, Murphy, Todd wrote:

> Date: Tue, 28 Jan 2003 17:50:29 -0500
> From: "Murphy, Todd" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Must an Action forward to another JSP or servlet?
>
> I am trying to render output as a PDF from a byte array.  I am able to do
> this successfully using an OutputStream, but the Writer class used in a JSP
> is unable to properly write a byte array.  My question:  Is it possible to
> write my output from within my action using an OutputStream as I would in a
> normal servlet, but not forward to a JSP?  I get a config.xml error when I
> don't include the Forward tag, but I was hoping there was a way to direct it
> to forward "nowhere".  My other alternative would be to forward to a
> servlet, but I was hoping to not add a servlet outside of the Struts
> framework.
>

Simply return null from your Action, which tells the controller that the
response has already been completed, and that there is nothing more to do.

You might also note that this is documented in the Javadocs for
Action.execute().

> Thank you,
> Todd Murphy

Craig


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

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




RE: Struts Validator Debug output? What is it doing?

2003-01-28 Thread Alireza Fattahi
I have the opposite problem!
When the application starts all the validation messages are put on the
stdout. I have not configured any thing. How can I stop it? 
By the way I have put the debug and detail tags values in the web.xml to 0
but I still get INFO information in stdout!
Any help?

Thanks,

-Original Message-
From: Evan Schnell [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 6:36 PM
To: Struts Users Mailing List
Subject: Re: Struts Validator Debug output? What is it doing?

PILGRIM, Peter, FM wrote:

>There must be a better way!
>
>Is there anyway figure what the Struts validator is doing? Something like 
>getting a log dump to stdout console. If there is any error then output
>is silent!
>  
>
Are you are still using the default logging configuration?  The Struts 
validator writes a great deal of information to the commons-logging 
debug log.   If you have not configured the logging subsystem to display 
debug messages, most of the validator output will never be logged or 
displayed on the console.

Have a look at: 
http://jakarta.apache.org/struts/userGuide/building_controller.html#logging

Regards,
Evan.
-- 

Evan Schnell, Technical Lead
nVISIA, Twin Cities  "Digital Architecture and Construction"
7701 France Ave. S, Edina, MN 55435
Voice: 952.837.2577 -- Fax: 952.837.2578 -- Mobile: 612.232.5972




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Does struts support validation for dynamic form?

2003-01-28 Thread K.Viswanathan


Hi ,

i have a requirement where user has to fill up some kind of questionaire form. 
Questions for a user depends on the "type" of a user.  Questions are basically mutiple 
choice questions and the user can select the correct answer by selecting a radio 
button ( for each question there are five radio buttons each reparesenting a rating 
and the user is supposed to select a rating from 1 to 5 ). So the number of elements 
in the form can change based on the type of user.

Now i want to use struts validation frame work for performing validations. If the user 
leaves any of the answers empty by not selecting the radio button for a question , the 
system should not accept it and report an error displaying the same form with all the 
data entered for the form.

The question is :
How can i use the validation framework to perform validation? Please note that the 
form fields change (based on the user type) so it is not possible for me to associate 
them in "validator.xml"  before hand. Does struts provide any means to validate when 
the form elements are dynamic?

Thanks in advance
Vishy




Re: throws NPE

2003-01-28 Thread Ethan Michaels

--- "David M. Karr" <[EMAIL PROTECTED]> wrote:
> > "Ethan" == Ethan Michaels
> <[EMAIL PROTECTED]> writes:
> 
> Ethan> Hi. I'm trying to get a simple link to
> work on a page.
> Ethan> I use a link tag like this:
> 
> Ethan>  forward="search">Search

> 
> Please, always, supply exact error messages and the
> entire exception and stack
> trace when describing a problem.  It's unlikely
> anyone can help you if you
> don't show us what happened.


Here is the exception that appeared. As I said, when I
uuse Search
 it did not cause the exeption, but when I use the
when I try to use the forward or page attributes, the
exception appears.

Ethan



01/28 20:03:35 error 
java.lang.NullPointerException
at
org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1441)
at
org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:456)
at
org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495)
at
org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
at
jrun__welcome2ejspc._jspService(jrun__welcome2ejspc.java:69)
at
jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:110)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at
jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: throws NPE

2003-01-28 Thread Ethan Michaels
I tried forming the link tag like this

Search

Now, unlike before, the JSP will render without
throwing an exception and causing a 500 error to
appear in the browser.

However, when I click on the link, I still get 

"HTTP method GET is not supported by this URL"

(I'm still wondering why the previous ways of forming
the link tag were causing errors, since they
correspond to what's given in the docs.)

Ethan


--- Michael Cardon <[EMAIL PROTECTED]> wrote:
> Did you try it with a forward slash like this?
> 
> Search
> 
> 
> 
> -Original Message-
> From: Ethan Michaels [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 28, 2003 7:34 PM
> To: Struts Users Mailing List
> Subject: RE:  throws NPE
> 
> 
> Thank you for the suggestion. I did try that, but
> it's
> still throwing an exception. I tried...
> 
> Search
> 
> Now the method RequestUtils.pageURL is added to the
> exception message.
> 
> I forgot to mention in my original post that in my
> struts-config, I've also defined a global forward
> for
> this action...
> 
>  name="search"
> path="/search.do"/>
> 
> 
> Thanks,
> 
> Ethan
> 
> 
> 
> 
> --- Nadeemullah Hussain
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > Use the link tag as I have mentioned below
> instead
> > of the one u have used.
> >
> > mailto:[EMAIL PROTECTED]]
> >
> > Sent: Wednesday, January 29, 2003 8:18 AM
> > To: Struts Users Mailing List
> > Subject:  throws NPE
> >
> >
> > Hi. I'm trying to get a simple link to work on a
> > page.
> > I use a link tag like this:
> >
> > Search
> >
> > When I try to load the page using JRun 4, a null
> > pointer exception shows up in standard output. The
> > method that thows the exception is
> >
> > RequestUtils.computeURL()
> >
> > In my struts-config.xml file, I have
> >
> >  > path="/search"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/search.jsp"/>
> >
> > The exception message seems to be saying, I guess,
> > that it's having trouble figuring out the URL to
> > use.
> > I've tried including an  tag at the
> top
> > of
> > the page, and defining the  differently,
> for
> > example...
> >
> >  > path="/search.do"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/search.jsp"/>
> >
> >  > path="search"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/search.jsp"/>
> >
> >  > path="/search"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/newsarchive/search.jsp"/>
> >
> > Nothing seems to work. I've tried abandonning the
> > link
> > tag altogether and just explicitly providing the
> > link,
> > like so:
> >
> > Search
> >
> > But then I get an error saying that a GET request
> is
> > not supported by this URL.
> >
> > I would be grateful for any help with this.
> >
> > Thanks,
> >
> > Ethan
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now. http://mailplus.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> > >
>
**Disclaimer
> **
> >
> >
> >  Information contained in this E-MAIL being
> > proprietary to Wipro Limited is 'privileged'
> > and 'confidential' and intended for use only by
> the
> > individual or entity to which it is
> > addressed. You are notified that any use, copying
> or
> > dissemination of the information
> > contained in the E-MAIL in any manner whatsoever
> is
> > strictly prohibited.
> >
> >
>

> 
> >
> >
> >
> >
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.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]
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: throws NPE

2003-01-28 Thread David M. Karr
> "Ethan" == Ethan Michaels <[EMAIL PROTECTED]> writes:

Ethan> Hi. I'm trying to get a simple link to work on a page.
Ethan> I use a link tag like this:

Ethan> Search

Ethan> When I try to load the page using JRun 4, a null
Ethan> pointer exception shows up in standard output. The
Ethan> method that thows the exception is

Ethan> RequestUtils.computeURL()

Ethan> In my struts-config.xml file, I have

Ethan>  path="/search"
Ethan> type="org.apache.struts.actions.ForwardAction"
Ethan> parameter="/search.jsp"/>

Please, always, supply exact error messages and the entire exception and stack
trace when describing a problem.  It's unlikely anyone can help you if you
don't show us what happened.

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




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




RE: throws NPE

2003-01-28 Thread Ethan Michaels
Yeah, I gave that a try. Same result. I thought maybe
my Ant build.xml was somehow messing up the
application when it assembled everything and copied
the .war file to JRun, so I openned up the webapp on
the server. But everything appears to be as it should
be in the right place.

Ethan


--- Michael Cardon <[EMAIL PROTECTED]> wrote:
> Did you try it with a forward slash like this?
> 
> Search
> 
> 
> 
> -Original Message-
> From: Ethan Michaels [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 28, 2003 7:34 PM
> To: Struts Users Mailing List
> Subject: RE:  throws NPE
> 
> 
> Thank you for the suggestion. I did try that, but
> it's
> still throwing an exception. I tried...
> 
> Search
> 
> Now the method RequestUtils.pageURL is added to the
> exception message.
> 
> I forgot to mention in my original post that in my
> struts-config, I've also defined a global forward
> for
> this action...
> 
>  name="search"
> path="/search.do"/>
> 
> 
> Thanks,
> 
> Ethan
> 
> 
> 
> 
> --- Nadeemullah Hussain
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > Use the link tag as I have mentioned below
> instead
> > of the one u have used.
> >
> > mailto:[EMAIL PROTECTED]]
> >
> > Sent: Wednesday, January 29, 2003 8:18 AM
> > To: Struts Users Mailing List
> > Subject:  throws NPE
> >
> >
> > Hi. I'm trying to get a simple link to work on a
> > page.
> > I use a link tag like this:
> >
> > Search
> >
> > When I try to load the page using JRun 4, a null
> > pointer exception shows up in standard output. The
> > method that thows the exception is
> >
> > RequestUtils.computeURL()
> >
> > In my struts-config.xml file, I have
> >
> >  > path="/search"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/search.jsp"/>
> >
> > The exception message seems to be saying, I guess,
> > that it's having trouble figuring out the URL to
> > use.
> > I've tried including an  tag at the
> top
> > of
> > the page, and defining the  differently,
> for
> > example...
> >
> >  > path="/search.do"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/search.jsp"/>
> >
> >  > path="search"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/search.jsp"/>
> >
> >  > path="/search"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/newsarchive/search.jsp"/>
> >
> > Nothing seems to work. I've tried abandonning the
> > link
> > tag altogether and just explicitly providing the
> > link,
> > like so:
> >
> > Search
> >
> > But then I get an error saying that a GET request
> is
> > not supported by this URL.
> >
> > I would be grateful for any help with this.
> >
> > Thanks,
> >
> > Ethan
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now. http://mailplus.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> > >
>
**Disclaimer
> **
> >
> >
> >  Information contained in this E-MAIL being
> > proprietary to Wipro Limited is 'privileged'
> > and 'confidential' and intended for use only by
> the
> > individual or entity to which it is
> > addressed. You are notified that any use, copying
> or
> > dissemination of the information
> > contained in the E-MAIL in any manner whatsoever
> is
> > strictly prohibited.
> >
> >
>

> 
> >
> >
> >
> >
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.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]
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: throws NPE

2003-01-28 Thread Ethan Michaels
Thanks for the reply. I tried to set up the 
config element exactly as you suggestion, but it's
still throwing the same exception.

Ethan



--- Mohan Radhakrishnan <[EMAIL PROTECTED]>
wrote:
> Hi,
> We have something like this
> 
> type="org.apache.struts.actions.ForwardAction"
>  name="noDataForm"
>  validate="false"
>  scope="request"
>  parameter="search.jsp"
>input="search.jsp"> 
>
> 
>It works.
> 
> Mohan
> -Original Message-
> From: Ethan Michaels [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 9:04 AM
> To: Struts Users Mailing List
> Subject: RE:  throws NPE
> 
> 
> Thank you for the suggestion. I did try that, but
> it's
> still throwing an exception. I tried...
> 
> Search
> 
> Now the method RequestUtils.pageURL is added to the
> exception message.
> 
> I forgot to mention in my original post that in my
> struts-config, I've also defined a global forward
> for
> this action...
> 
>  name="search"
> path="/search.do"/>
> 
> 
> Thanks,
> 
> Ethan
> 
> 
> 
> 
> --- Nadeemullah Hussain
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > Use the link tag as I have mentioned below
> instead
> > of the one u have used.
> > 
> > mailto:[EMAIL PROTECTED]]
> > 
> > Sent: Wednesday, January 29, 2003 8:18 AM
> > To: Struts Users Mailing List
> > Subject:  throws NPE
> > 
> > 
> > Hi. I'm trying to get a simple link to work on a
> > page.
> > I use a link tag like this:
> > 
> > Search
> > 
> > When I try to load the page using JRun 4, a null
> > pointer exception shows up in standard output. The
> > method that thows the exception is
> > 
> > RequestUtils.computeURL()
> > 
> > In my struts-config.xml file, I have
> > 
> >  > path="/search"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/search.jsp"/>
> > 
> > The exception message seems to be saying, I guess,
> > that it's having trouble figuring out the URL to
> > use.
> > I've tried including an  tag at the
> top
> > of
> > the page, and defining the  differently,
> for
> > example...
> > 
> >  > path="/search.do"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/search.jsp"/>
> > 
> >  > path="search"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/search.jsp"/>
> > 
> >  > path="/search"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="/newsarchive/search.jsp"/>
> > 
> > Nothing seems to work. I've tried abandonning the
> > link
> > tag altogether and just explicitly providing the
> > link,
> > like so:
> > 
> > Search
> > 
> > But then I get an error saying that a GET request
> is
> > not supported by this URL.
> > 
> > I would be grateful for any help with this.
> > 
> > Thanks,
> > 
> > Ethan
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now. http://mailplus.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > >
>
**Disclaimer
> **
> >
> >  
> >  Information contained in this E-MAIL being
> > proprietary to Wipro Limited is 'privileged' 
> > and 'confidential' and intended for use only by
> the
> > individual or entity to which it is 
> > addressed. You are notified that any use, copying
> or
> > dissemination of the information 
> > contained in the E-MAIL in any manner whatsoever
> is
> > strictly prohibited.
> > 
> >
>

> 
> > 
> > 
> > 
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.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]
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Does anyone out there use Scaffold?

2003-01-28 Thread Mohan Radhakrishnan
Hi,
   We use the ideas but we write our own code. It is the same as scaffold
but we don't use it as it is. Especially the part that bunches  exceptions
in the base class leaving the sub-actions free of try/catch blocks. It was
useful.
Mohan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 4:07 AM
To: Struts Users Mailing List
Subject: Re: Does anyone out there use Scaffold?




Thanks for your response Rob.

I've downloaded the commons component of Scaffold from the sandbox and
built it myself.

It's interesting to point out that the Scaffold code is still pointing to
Struts 1.0.x imports, you have to go through the code to change it to the
1.1 versions of these classes.
I guess this will be updated in time.

It would be really great to find out if others are having success with
Scaffold.  There doesn't seem to be much discussion of it in the Struts
user group.
We are currently using it in several apps and have found some issues with
it but on the whole we believe it's a very good extension to the Struts
framework.

I'll try and post the issues we have found with Scaffold in the near future
with our solutions.  I'm not sure of the best approach for trying to get
these changes considered but if you have any pointers please let me know.

Thanks again,
Steve Akins.




|-+>
| |   Rob Leland   |
| |   <[EMAIL PROTECTED]|
| |   rg>  |
| ||
| |   28/01/2003 14:40 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
 
>---
---|
  |
|
  |   To:   Struts Users Mailing List
<[EMAIL PROTECTED]>   |
  |   cc:
|
  |   Subject:  Re: Does anyone out there use Scaffold?
|
 
>---
---|




[EMAIL PROTECTED] wrote:

>We are currently developing Struts apps and incorporating Scaffold code
>into them.
>
>Firstly, I was wondering if anyone else out there is using Scaffold code
>and what comments they have on their success or otherwise with it?
>
>Secondly, with the latest release of Struts (1.1b3), Scaffold code has
been
>packaged into the contrib section.  However the commons-scaffold
components
>are not there.
>
It was decided about 2 weeks ago that the struts 1.1 release would only
contain commons libs needed to
build the main distribution and provided examples. However there has
been some
talk about providing a seperate download to package items needed to build
the contrib items, and a build of the contrib itself.

> They are in jakarta-commons-sandbox but only the source in
>the CVS repository.  Should commons-scaffold be somewhere in
>jakarta-commons now that scaffolds is being packaged with Struts 1.1b3 and
>should there be a built version of this code somewhere?
>

-Rob


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






--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: throws NPE

2003-01-28 Thread Michael Cardon
Did you try it with a forward slash like this?

Search



-Original Message-
From: Ethan Michaels [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 7:34 PM
To: Struts Users Mailing List
Subject: RE:  throws NPE


Thank you for the suggestion. I did try that, but it's
still throwing an exception. I tried...

Search

Now the method RequestUtils.pageURL is added to the
exception message.

I forgot to mention in my original post that in my
struts-config, I've also defined a global forward for
this action...




Thanks,

Ethan




--- Nadeemullah Hussain
<[EMAIL PROTECTED]> wrote:
> Hi,
>   Use the link tag as I have mentioned below instead
> of the one u have used.
>
> mailto:[EMAIL PROTECTED]]
>
> Sent: Wednesday, January 29, 2003 8:18 AM
> To: Struts Users Mailing List
> Subject:  throws NPE
>
>
> Hi. I'm trying to get a simple link to work on a
> page.
> I use a link tag like this:
>
> Search
>
> When I try to load the page using JRun 4, a null
> pointer exception shows up in standard output. The
> method that thows the exception is
>
> RequestUtils.computeURL()
>
> In my struts-config.xml file, I have
>
>  path="/search"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/search.jsp"/>
>
> The exception message seems to be saying, I guess,
> that it's having trouble figuring out the URL to
> use.
> I've tried including an  tag at the top
> of
> the page, and defining the  differently, for
> example...
>
>  path="/search.do"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/search.jsp"/>
>
>  path="search"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/search.jsp"/>
>
>  path="/search"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/newsarchive/search.jsp"/>
>
> Nothing seems to work. I've tried abandonning the
> link
> tag altogether and just explicitly providing the
> link,
> like so:
>
> Search
>
> But then I get an error saying that a GET request is
> not supported by this URL.
>
> I would be grateful for any help with this.
>
> Thanks,
>
> Ethan
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now. http://mailplus.yahoo.com
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
> >
**Disclaimer
**
>
>
>  Information contained in this E-MAIL being
> proprietary to Wipro Limited is 'privileged'
> and 'confidential' and intended for use only by the
> individual or entity to which it is
> addressed. You are notified that any use, copying or
> dissemination of the information
> contained in the E-MAIL in any manner whatsoever is
> strictly prohibited.
>
>


>
>
>
>


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: throws NPE

2003-01-28 Thread Mohan Radhakrishnan
Hi,
We have something like this

   
   

   It works.

Mohan
-Original Message-
From: Ethan Michaels [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 9:04 AM
To: Struts Users Mailing List
Subject: RE:  throws NPE


Thank you for the suggestion. I did try that, but it's
still throwing an exception. I tried...

Search

Now the method RequestUtils.pageURL is added to the
exception message.

I forgot to mention in my original post that in my
struts-config, I've also defined a global forward for
this action...




Thanks,

Ethan




--- Nadeemullah Hussain
<[EMAIL PROTECTED]> wrote:
> Hi,
>   Use the link tag as I have mentioned below instead
> of the one u have used.
> 
> mailto:[EMAIL PROTECTED]]
> 
> Sent: Wednesday, January 29, 2003 8:18 AM
> To: Struts Users Mailing List
> Subject:  throws NPE
> 
> 
> Hi. I'm trying to get a simple link to work on a
> page.
> I use a link tag like this:
> 
> Search
> 
> When I try to load the page using JRun 4, a null
> pointer exception shows up in standard output. The
> method that thows the exception is
> 
> RequestUtils.computeURL()
> 
> In my struts-config.xml file, I have
> 
>  path="/search"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/search.jsp"/>
> 
> The exception message seems to be saying, I guess,
> that it's having trouble figuring out the URL to
> use.
> I've tried including an  tag at the top
> of
> the page, and defining the  differently, for
> example...
> 
>  path="/search.do"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/search.jsp"/>
> 
>  path="search"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/search.jsp"/>
> 
>  path="/search"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/newsarchive/search.jsp"/>
> 
> Nothing seems to work. I've tried abandonning the
> link
> tag altogether and just explicitly providing the
> link,
> like so:
> 
> Search
> 
> But then I get an error saying that a GET request is
> not supported by this URL.
> 
> I would be grateful for any help with this.
> 
> Thanks,
> 
> Ethan
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now. http://mailplus.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> >
**Disclaimer
**
>
>  
>  Information contained in this E-MAIL being
> proprietary to Wipro Limited is 'privileged' 
> and 'confidential' and intended for use only by the
> individual or entity to which it is 
> addressed. You are notified that any use, copying or
> dissemination of the information 
> contained in the E-MAIL in any manner whatsoever is
> strictly prohibited.
> 
>


> 
> 
> 
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: Value Object in a Collection

2003-01-28 Thread Nadeemullah Hussain

Hi,

What You need to do is u need to first refer to the attribute of the 
valueobject which is there in list and then to the attribute of the next value 
object.See the below code format





Hope this solves u r problem

Thanks,
Nadeem,
Wipro Technologies,Chennai
Tel - 91-44-4500200 X : 2111
Mobile : 98401 47663


-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 29, 2003 5:31 AM
To: Struts Users Mailing List
Subject: RE: Value Object in a Collection 



Both orderItemVO and Products are Value objects. Since orderItemVO is a collection of 
value objects , it's not a problem to iterate through But the inner value object 
(products) is not a collection to iterate through which caused the problem. products 
value object properties are...getters and setters for productName, unitOfPrice, qty, 
price etc. Similarly orderItemVO contains getters and setters for products(Value 
Object), orderNumber, shipSerial etc.,... In the Action bean I'm getting the 
orderItemVO's as a collection from server layer ..and setting it to the form ...same 
being iterated in JSP... Thanks in Advance! for any help on this. Mahesh!  Mei Zhu 
<[EMAIL PROTECTED]> wrote:So what does the products value object looks like, and 
what type of elements do you want to iterate through in the inner iterate?

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 3:43 PM
To: Struts Users Mailing List
Subject: RE: Value Object in a Collection



What you thought was right!! . OrderItemVO contains getters and setters out of which 
one getter is again a Value Object(products) like OrderItemVO. That is where it is 
causing problem. If I dont specify the inner loop it is displaying all the properties 
in products value object, which I don't need except a few properties to display. If 
the products is a collection then I would have not had any problem, but it is value 
object and to apply for "iterate" tag, its looking for collectionbut products 
value object is not a collectionhere is the problem

Any light on thisappreciate your response.
mahesh!
Mei Zhu wrote:Can you send me the definition of your OrderItemVO? I imagine 
OrderItemVO has method getPartNo() and getProducts() to get a list of products which 
you want to print out in your inner loop. If that's the case, in your inner iterate 
you need to specify property="products". It will help to do one step a time, try to 
comment out the inner iterate with , if it works ok for the outer iterate, that the 
problem is from the inner iterate.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 3:08 PM
To: Struts Users Mailing List
Subject: RE: Value Object in a Collection



Following is the correct code implementing in my application..Please advice me...I 
tried by removing property ...but not working...

property="reqCollection"
indexId="parentIndex"
id="productVO"
type="com.valueobject.OrderItemVO">


indexId="childIndex"
id="prod">







Mei Zhu wrote:If your outer iterate loops through a
collection of java.util.List, in your
inner iterate, you should not specify property attribute.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: Value Object in a Collection


Hi all,

I'm new to this technology, I wanted to use only iterate tags to display the 
information. While iterate a collection in a JSP, need to display a Value Object's 
information. Following is the approach i've followed but in vain.

property="parentProperty"
indexId="parentIndex" //arbitrary name
id="parent" //arbitrary name
type="java.util.List">
property="childProperty"
indexId="childIndex" //arbitrary name
id="child" //arbitrary name
type="valueobjectVO">

// etc.





and i'm getting the following error

javax.servlet.ServletException: Cannot create iterator for this collection, stack: 
javax.servlet.ServletException: Cannot create iterator for this collection at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:453)


Thanks in Advance! appreciate any help in this regard.

mahesh.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

**Disclaimer

Information contained in this E-MAIL being prop

RE: throws NPE

2003-01-28 Thread Ethan Michaels
Thank you for the suggestion. I did try that, but it's
still throwing an exception. I tried...

Search

Now the method RequestUtils.pageURL is added to the
exception message.

I forgot to mention in my original post that in my
struts-config, I've also defined a global forward for
this action...




Thanks,

Ethan




--- Nadeemullah Hussain
<[EMAIL PROTECTED]> wrote:
> Hi,
>   Use the link tag as I have mentioned below instead
> of the one u have used.
> 
> mailto:[EMAIL PROTECTED]]
> 
> Sent: Wednesday, January 29, 2003 8:18 AM
> To: Struts Users Mailing List
> Subject:  throws NPE
> 
> 
> Hi. I'm trying to get a simple link to work on a
> page.
> I use a link tag like this:
> 
> Search
> 
> When I try to load the page using JRun 4, a null
> pointer exception shows up in standard output. The
> method that thows the exception is
> 
> RequestUtils.computeURL()
> 
> In my struts-config.xml file, I have
> 
>  path="/search"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/search.jsp"/>
> 
> The exception message seems to be saying, I guess,
> that it's having trouble figuring out the URL to
> use.
> I've tried including an  tag at the top
> of
> the page, and defining the  differently, for
> example...
> 
>  path="/search.do"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/search.jsp"/>
> 
>  path="search"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/search.jsp"/>
> 
>  path="/search"
> type="org.apache.struts.actions.ForwardAction"
> parameter="/newsarchive/search.jsp"/>
> 
> Nothing seems to work. I've tried abandonning the
> link
> tag altogether and just explicitly providing the
> link,
> like so:
> 
> Search
> 
> But then I get an error saying that a GET request is
> not supported by this URL.
> 
> I would be grateful for any help with this.
> 
> Thanks,
> 
> Ethan
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now. http://mailplus.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> >
**Disclaimer**
>
>  
>  Information contained in this E-MAIL being
> proprietary to Wipro Limited is 'privileged' 
> and 'confidential' and intended for use only by the
> individual or entity to which it is 
> addressed. You are notified that any use, copying or
> dissemination of the information 
> contained in the E-MAIL in any manner whatsoever is
> strictly prohibited.
> 
>

> 
> 
> 
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Fw: ActionError without message key

2003-01-28 Thread Scott Seong
Sorry if this is a duplicate, ... I've sent it but I have never received it
through this mailing list.

- Original Message -
From: "Scott Seong" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 8:33 PM
Subject: ActionError without message key


> Hi,
>
> Is there a way to add an ActionError without using message key, and place
it
> in the request via SaveErrors?  I'm executing a shell script from an
action,
> and would like to capture stderr and display to the user as an
ActionError.
> However, the ActionError messages are tied to the message key (defined in
> the ApplicationResources.properties file as static text). Is there a
> workaround?
>
> Thanks for the help,
> Scott
>



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




RE: throws NPE

2003-01-28 Thread Nadeemullah Hussain
Hi,
Use the link tag as I have mentioned below instead of the one u have used.

mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 29, 2003 8:18 AM
To: Struts Users Mailing List
Subject:  throws NPE


Hi. I'm trying to get a simple link to work on a page.
I use a link tag like this:

Search

When I try to load the page using JRun 4, a null
pointer exception shows up in standard output. The
method that thows the exception is

RequestUtils.computeURL()

In my struts-config.xml file, I have



The exception message seems to be saying, I guess,
that it's having trouble figuring out the URL to use.
I've tried including an  tag at the top of
the page, and defining the  differently, for
example...







Nothing seems to work. I've tried abandonning the link
tag altogether and just explicitly providing the link,
like so:

Search

But then I get an error saying that a GET request is
not supported by this URL.

I would be grateful for any help with this.

Thanks,

Ethan

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

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


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







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


Re: urgent RowsetDynaClass help

2003-01-28 Thread usha
Hi Craig

Thanks it works.


Craig R. McClanahan wrote:


On Tue, 28 Jan 2003, usha wrote:

 

Date: Tue, 28 Jan 2003 16:26:11 +0800
From: usha <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: urgent RowsetDynaClass help

Hi Craig

i have requirement like this i have rowsetdynaclass from which i am
displaying the data on the jsp using the iterate tag. can i get the
values from the dynabeans with jsp scriplet and just out put to the
jboss console.
is this possible.


property="batchidlist" scope="request"
type="org.apache.commons.beanutils.DynaBean">
   
 
   <%System.out.println("batchid is :" +
ivtranshdrlist.getIvtransbatchid())%>
   
filter="true"/>
   
 
   
 

   


You can use a scriptlet if you want to, as long as you use the DynaBean
syntax to get the property out, if you really want to:

 <%
   System.out.println("batchid is :" +
  ivtranshdrlist.get("ivtransbatchid");
 %>

or use PropertyUtils so that you don't care whether it is a DynaBean or
not:

 <%
   try {
 System.out.println("batchid is :" +
PropertyUtils.getProperty(ivtranshdrlist, "ivtransbatchid");
   } catch (Exception e) {
 ;
   }
 %>

In a JSP page, of course, you could use :

 batchid is :
 property="ivtransbatchid"/>

This works with either DynaBeans or standard JavaBeans.

 

Thanks
usha

   


Craig



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





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




throws NPE

2003-01-28 Thread Ethan Michaels
Hi. I'm trying to get a simple link to work on a page.
I use a link tag like this:

Search

When I try to load the page using JRun 4, a null
pointer exception shows up in standard output. The
method that thows the exception is

RequestUtils.computeURL()

In my struts-config.xml file, I have



The exception message seems to be saying, I guess,
that it's having trouble figuring out the URL to use.
I've tried including an  tag at the top of
the page, and defining the  differently, for
example...







Nothing seems to work. I've tried abandonning the link
tag altogether and just explicitly providing the link,
like so:

Search

But then I get an error saying that a GET request is
not supported by this URL.

I would be grateful for any help with this.

Thanks,

Ethan

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: [OT] Open Source Q Mailing List

2003-01-28 Thread V. Cekvenich
I do not think such a  mail list exists.

Some good products are: RedHat free OS download, PostgreSQL.org DB from 
Cygwin.com, Eclispe.org IDE (maybe add in SolarEclipse from sf.net for 
JSP/XML), Tomcat APP server, JasperReports.sf.net (reports), Struts, 
JSTL tags from Jakarta, (IBatis.com DAO or RowSet or Commons SQL), 
jxdbcon.sourceforge.net for JDBC driver, openoffice.org for Word/Excel, 
Netscape browser, ximian.com/products/evolution for E-Mail, 
squirrel-sql.sourceforge.net for a SQL client,
commerce.bea.com/downloads/weblogic_jrockit.jsp#80_beta for JVM.
basicPortal.sf.net for sample apps. designs.

Variations are shades of Good.
Main things are Eclipse, Tomcat, JasperReports, PostgreSQL, JSTL 
(standard tag lib), Struts. Each is dominant, so at least you will be in 
the crowd. Also, start with a busines problem and then solution for it.
A bad tool in good hands is a winner as well.

.V



Mark Chaimungkalanont wrote:
Hey all,

I'm just wondering, what would be a good forum/mailing list for Qs on
general open source things like below?

like "What should i use for ..." sorta questions. I'm quite new to the
whole open source things and the range of things possible seems mind
boggling. It's usually pretty hard to see what's good / bad or which is
better (eg. struts VS turbine) and which we could use. The possibilities
are exciting but can be pretty overwhelming at times.

A reference to a general mailing list where more experienced people could
provide me with pointers would be much appreciated

cheers

Mark C



   
  Ashish Kulkarni  
  
  @yahoo.com>  cc: 
   Subject:  Re: what I can use to display a Chart?
  29/01/2003 09:39 
  AM   
  Please respond to
  "Struts Users
  Mailing List"
   
   



try
http://www.object-refinery.com/jfreechart/
or www.ve.com

Ashish
--- [EMAIL PROTECTED] wrote:

Hello,

does any one use Charts with Struts?
what lib / product you can recommend?

thank you.

Best Regards.
Michael.

--
To unsubscribe, e-mail:

For additional commands, e-mail:





=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




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




Re: Struts and JSTL

2003-01-28 Thread Peter A. Pilgrim
Jarnot Voytek Contr AU HQ/SC wrote:

I added the below to my web.xml

   
  	
	
  javax.servlet.jsp.jstl.fmt.localizationContext	
	

  com.my.package.ApplicationResources
	
  

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


This is looks like the right answer. The only problem is that
the algorithm that read resource bundle could be different
with Struts (ActionMessages) than with the bog standard
 ResoureceBundle class.


--
Peter Pilgrim
   __ _ _ _
  / //__  // ___// ___/   +  Serverside Java
 / /___/ // /__ / /__ +  Struts
/ // ___// ___// ___/ +  Expresso Committer
 __/ // /__ / /__ / /__   +  Independent Contractor
/___///////   +  Intrinsic Motivation
On Line Resume
   ||
   \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''


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




Re: Problem using SSL with Struts, Tomcat 4.1.12 on IIS

2003-01-28 Thread Yakov Belov
Maybe you need to define the resources which are accessed via SSL and the
ones which are not, something like in web.xml:



xxx
/resources/*



CONFIDENTIAL or NONE



Good luck,
Yakov

- Original Message -
From: "Gogte, Sushrut" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 4:54 AM
Subject: Problem using SSL with Struts, Tomcat 4.1.12 on IIS


> I am using Struts 1.0.2 with Tomcat 4.1.12 running on IIS 4.0 web server.
>
> In my application, I am using a template which inserts a navigation menu
on
> the left hand side of the screen, using Struts.  This menu is composed of
> links and images.
> When I run my application in non-secure mode, it is running fine.
However,
> when I try to use SSL, so that I access it with https://... instead of
> http://..., the links are getting converted to http://...:443 (I am using
> the standard 443 port for SSL connections).  The same is happening with
the
> images, and therefore, they are not showing up. I am using relative links,
> because I have different environments (DEV, QA, PROD), and don't want to
> hardcode the server name in my JSP pages.
>
> This used to work fine with Struts on Tomcat 3.2, but after upgrading to
> 4.1.12, this is the behavior I am seeing.  Has anyone else seen anything
> like this, and if so, how did you fix it?
>
> Thanks a lot,
>
> Sushrut
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



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




[OT] Open Source Q Mailing List

2003-01-28 Thread Mark Chaimungkalanont

Hey all,

I'm just wondering, what would be a good forum/mailing list for Qs on
general open source things like below?

like "What should i use for ..." sorta questions. I'm quite new to the
whole open source things and the range of things possible seems mind
boggling. It's usually pretty hard to see what's good / bad or which is
better (eg. struts VS turbine) and which we could use. The possibilities
are exciting but can be pretty overwhelming at times.

A reference to a general mailing list where more experienced people could
provide me with pointers would be much appreciated

cheers

Mark C



   

  Ashish Kulkarni  

  
  @yahoo.com>  cc: 

   Subject:  Re: what I can use to display 
a Chart?
  29/01/2003 09:39 

  AM   

  Please respond to

  "Struts Users

  Mailing List"

   

   




try
http://www.object-refinery.com/jfreechart/
or www.ve.com

Ashish
--- [EMAIL PROTECTED] wrote:
> Hello,
>
> does any one use Charts with Struts?
> what lib / product you can recommend?
>
> thank you.
>
> Best Regards.
> Michael.
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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






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




RE: Value Object in a Collection

2003-01-28 Thread neelima mahesh

Both orderItemVO and Products are Value objects. Since orderItemVO is a collection of 
value objects , it's not a problem to iterate through But the inner value object 
(products) is not a collection to iterate through which caused the problem.
products value object properties are...getters and setters for productName, 
unitOfPrice, qty, price etc.
Similarly orderItemVO contains getters and setters for products(Value Object), 
orderNumber, shipSerial etc.,...
In the Action bean I'm getting the orderItemVO's as a collection from server layer 
..and setting it to the form ...same being iterated in JSP...
Thanks in Advance! for any help on this.
Mahesh!
 Mei Zhu <[EMAIL PROTECTED]> wrote:So what does the products value object looks 
like, and what type of elements
do you want to iterate through in the inner iterate?

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 3:43 PM
To: Struts Users Mailing List
Subject: RE: Value Object in a Collection



What you thought was right!! . OrderItemVO contains getters and setters
out of which one getter is again a Value Object(products) like OrderItemVO.
That is where it is causing problem.
If I dont specify the inner loop it is displaying all the properties in
products value object, which I don't need except a few properties to
display.
If the products is a collection then I would have not had any problem, but
it is value object and to apply for "iterate" tag, its looking for
collectionbut products value object is not a collectionhere is the
problem

Any light on thisappreciate your response.
mahesh!
Mei Zhu wrote:Can you send me the definition of your
OrderItemVO? I imagine OrderItemVO
has method getPartNo() and getProducts() to get a list of products which you
want to print out in your inner loop. If that's the case, in your inner
iterate you need to specify property="products". It will help to do one step
a time, try to comment out the inner iterate with , if it works ok
for the outer iterate, that the problem is from the inner iterate.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 3:08 PM
To: Struts Users Mailing List
Subject: RE: Value Object in a Collection



Following is the correct code implementing in my application..Please advice
me...I tried by removing property ...but not working...

property="reqCollection"
indexId="parentIndex"
id="productVO"
type="com.valueobject.OrderItemVO">


indexId="childIndex"
id="prod">







Mei Zhu wrote:If your outer iterate loops through a
collection of java.util.List, in your
inner iterate, you should not specify property attribute.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: Value Object in a Collection


Hi all,

I'm new to this technology, I wanted to use only iterate tags to
display the information. While iterate a collection in a JSP, need to
display a Value Object's information. Following is the approach i've
followed but in vain.

property="parentProperty"
indexId="parentIndex" //arbitrary name
id="parent" //arbitrary name
type="java.util.List">
property="childProperty"
indexId="childIndex" //arbitrary name
id="child" //arbitrary name
type="valueobjectVO">

// etc.





and i'm getting the following error

javax.servlet.ServletException: Cannot create iterator for this
collection, stack: javax.servlet.ServletException: Cannot create
iterator for
this collection at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:453)


Thanks in Advance! appreciate any help in this regard.

mahesh.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: Does anyone out there use Scaffold?

2003-01-28 Thread Steve_Akins


Thanks for your response Rob.

I've downloaded the commons component of Scaffold from the sandbox and
built it myself.

It's interesting to point out that the Scaffold code is still pointing to
Struts 1.0.x imports, you have to go through the code to change it to the
1.1 versions of these classes.
I guess this will be updated in time.

It would be really great to find out if others are having success with
Scaffold.  There doesn't seem to be much discussion of it in the Struts
user group.
We are currently using it in several apps and have found some issues with
it but on the whole we believe it's a very good extension to the Struts
framework.

I'll try and post the issues we have found with Scaffold in the near future
with our solutions.  I'm not sure of the best approach for trying to get
these changes considered but if you have any pointers please let me know.

Thanks again,
Steve Akins.




|-+>
| |   Rob Leland   |
| |   <[EMAIL PROTECTED]|
| |   rg>  |
| ||
| |   28/01/2003 14:40 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>--|
  |
  |
  |   To:   Struts Users Mailing List <[EMAIL PROTECTED]> 
  |
  |   cc:  
  |
  |   Subject:  Re: Does anyone out there use Scaffold?
  |
  
>--|




[EMAIL PROTECTED] wrote:

>We are currently developing Struts apps and incorporating Scaffold code
>into them.
>
>Firstly, I was wondering if anyone else out there is using Scaffold code
>and what comments they have on their success or otherwise with it?
>
>Secondly, with the latest release of Struts (1.1b3), Scaffold code has
been
>packaged into the contrib section.  However the commons-scaffold
components
>are not there.
>
It was decided about 2 weeks ago that the struts 1.1 release would only
contain commons libs needed to
build the main distribution and provided examples. However there has
been some
talk about providing a seperate download to package items needed to build
the contrib items, and a build of the contrib itself.

> They are in jakarta-commons-sandbox but only the source in
>the CVS repository.  Should commons-scaffold be somewhere in
>jakarta-commons now that scaffolds is being packaged with Struts 1.1b3 and
>should there be a built version of this code somewhere?
>

-Rob


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






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




Re: what I can use to display a Chart?

2003-01-28 Thread Attila Szegedi
Go see http://cewolf.sourceforge.net
It's a JSP taglib that renders charts into images.

Attila.


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 11:31 PM
Subject: what I can use to display a Chart?


> Hello,
>
> does any one use Charts with Struts?
> what lib / product you can recommend?
>
> thank you.
>
> Best Regards.
> Michael.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>
>


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




Re: what I can use to display a Chart?

2003-01-28 Thread Ashish Kulkarni
try
http://www.object-refinery.com/jfreechart/
or www.ve.com

Ashish
--- [EMAIL PROTECTED] wrote:
> Hello,
> 
> does any one use Charts with Struts?
> what lib / product you can recommend?
> 
> thank you.
> 
> Best Regards.
> Michael.
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Must an Action forward to another JSP or servlet?

2003-01-28 Thread Karr, David
Just return null from your "execute" method.

-Original Message-
From: Murphy, Todd [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 2:50 PM
To: [EMAIL PROTECTED]
Subject: Must an Action forward to another JSP or servlet?

I am trying to render output as a PDF from a byte array.  I am able to
do
this successfully using an OutputStream, but the Writer class used in a
JSP
is unable to properly write a byte array.  My question:  Is it possible
to
write my output from within my action using an OutputStream as I would
in a
normal servlet, but not forward to a JSP?  I get a config.xml error when
I
don't include the Forward tag, but I was hoping there was a way to
direct it
to forward "nowhere".  My other alternative would be to forward to a
servlet, but I was hoping to not add a servlet outside of the Struts
framework.

Thank you,
Todd Murphy

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Must an Action forward to another JSP or servlet?

2003-01-28 Thread Murphy, Todd
I am trying to render output as a PDF from a byte array.  I am able to do
this successfully using an OutputStream, but the Writer class used in a JSP
is unable to properly write a byte array.  My question:  Is it possible to
write my output from within my action using an OutputStream as I would in a
normal servlet, but not forward to a JSP?  I get a config.xml error when I
don't include the Forward tag, but I was hoping there was a way to direct it
to forward "nowhere".  My other alternative would be to forward to a
servlet, but I was hoping to not add a servlet outside of the Struts
framework.

Thank you,
Todd Murphy

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




RE: [Struts-src] Creating a form-bean

2003-01-28 Thread Mike Oliver
;-)  

if (he != null)
he = null;


Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 2:57 PM
To: Struts-User
Subject: [Struts-src] Creating a form-bean

I was wading through the source code to figure out the process of
creation of a form bean and found the following snippet in
o.a.s.u.RequestUtils in the method createActionForm (line 654 in the
1/28 nightly source):

(beginning at line 709)

if (configClass.isAssignableFrom(instance.getClass())) { 
  if (log.isDebugEnabled()) {
// snip
  }
  return (instance);
}
return (instance);

Can you tell me what this the if-statement is accomplishing?  It looks
like 'instance' will be returned regardless.

Sri


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




what I can use to display a Chart?

2003-01-28 Thread michael . korolyov
Hello,

does any one use Charts with Struts?
what lib / product you can recommend?

thank you.

Best Regards.
Michael.

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




RE: [Struts-src] Creating a form-bean

2003-01-28 Thread Karr, David
Looks like a bug to me.  I'm not familiar with that code, but it looks
like the "isAssignableFrom" is trying to only use an existing attribute
as the ActionForm if it's of the correct type (or subtype) of the
specified ActionForm type.  The result of the second "return" is that it
will use that attribute even if it's not of that type.  If the second
"return" was removed, it would instead try to create a new instance of
the specified ActionForm type.

It looks like this change went in (by Craig) quite a while ago (version
1.36, 6/22/2002).  I have a feeling it was an accident.

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 1:57 PM
To: Struts-User
Subject: [Struts-src] Creating a form-bean

I was wading through the source code to figure out the process of
creation of a form bean and found the following snippet in
o.a.s.u.RequestUtils in the method createActionForm (line 654 in the
1/28 nightly source):

(beginning at line 709)

if (configClass.isAssignableFrom(instance.getClass())) { 
  if (log.isDebugEnabled()) {
// snip
  }
  return (instance);
}
return (instance);

Can you tell me what this the if-statement is accomplishing?  It looks
like 'instance' will be returned regardless.

Sri

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




Re: ProcessAction - Scaffold package

2003-01-28 Thread Ted Husted
It's being caught and wrapped inside of a ResourceAction (which supports 
Exception chaining), as intended.

-Ted.

Senthivel U S wrote:
Greetings,

We are using ProcessAction and Access Layer. Our Access Layer Component
throws SQLException. If exception is thrown , it should be caught by
BaseAction but that is not happening in my case. 

It gives 

java.sql.SQLException: Could not process (--our error message from
stored procedure)
<>

in tomcat log.

Any suggestions is highly appreciated.

I am attaching herewith the tomcat stack trace. 

Regards,
Sen.




org.apache.commons.scaffold.lang.ResourceException: ResourceException: A require
d resource is not available.
at M2AAccessBase.findCollection(M2AAccessBase.java:110)
at BeneficiaryTestBean.execute(BeneficiaryTestBean.java:29)

at M2AProcessBeanBase.execute(M2AProcessBeanBase.java:232)
at M2AProcessBridgeAction.executeLogic(M2AProcessBridgeAc
tion.java:724)
at org.apache.struts.scaffold.BaseHelperAction.executeLogic(Unknown Sour
ce)
at org.apache.struts.scaffold.BaseAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
2)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperVal
ve.java:221)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:533)
at java.lang.Thread.run(Thread.java:484)
Caused by:
java.sql.SQLException: Could not process
<>


--
Ted Husted,
Struts in Action 


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




Problem porting JSPs with template to tiles

2003-01-28 Thread Boris Folgmann
Hi!

I tried to port a set of JSPs using the template taglib of struts 1.0 to
struts 1.1. Simply replacing  for one
of the  in the template JSP. I get an Exception text at the
position of the . Using  did not help.
Does anybody have a clue?

Here's the exception:
java.lang.IllegalStateException
at
org.apache.catalina.connector.HttpResponseFacade.sendError(HttpResponseFacade.java:145)
at
org.netbeans.modules.web.monitor.server.MonitorResponseWrapper.sendError(MonitorResponseWrapper.java:63)
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1056)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
at
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:118)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:703)
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:818)
at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:467)
at org.apache.jsp.template$jsp._jspService(template$jsp.java:482)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:173)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:246)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
at
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:118)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:703)
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:818)
at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:467)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:562)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:173)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:246)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:223)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.netbeans.modules.web.monitor.catalina.MonitorVa

RE: Value Object in a Collection

2003-01-28 Thread Mei Zhu
So what does the products value object looks like, and what type of elements
do you want to iterate through in the inner iterate?

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 3:43 PM
To: Struts Users Mailing List
Subject: RE: Value Object in a Collection



What you thought was right!! .  OrderItemVO  contains getters and setters
out of which one getter is again a Value Object(products) like OrderItemVO.
That is where it is causing problem.
If I dont specify the inner loop it is displaying all the properties in
products value object, which I don't need except a few properties to
display.
If the products  is a collection then I would have not had any problem, but
it is value object and to apply for "iterate" tag, its looking for
collectionbut products value object is not a collectionhere is the
problem

Any light on thisappreciate your response.
mahesh!
 Mei Zhu <[EMAIL PROTECTED]> wrote:Can you send me the definition of your
OrderItemVO? I imagine OrderItemVO
has method getPartNo() and getProducts() to get a list of products which you
want to print out in your inner loop. If that's the case, in your inner
iterate you need to specify property="products". It will help to do one step
a time, try to comment out the inner iterate with , if it works ok
for the outer iterate, that the problem is from the inner iterate.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 3:08 PM
To: Struts Users Mailing List
Subject: RE: Value Object in a Collection



Following is the correct code implementing in my application..Please advice
me...I tried by removing property ...but not working...

property="reqCollection"
indexId="parentIndex"
id="productVO"
type="com.valueobject.OrderItemVO">


indexId="childIndex"
id="prod">







Mei Zhu wrote:If your outer iterate loops through a
collection of java.util.List, in your
inner iterate, you should not specify property attribute.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: Value Object in a Collection


Hi all,

I'm new to this technology, I wanted to use only iterate tags to
display the information. While iterate a collection in a JSP, need to
display a Value Object's information. Following is the approach i've
followed but in vain.

property="parentProperty"
indexId="parentIndex" //arbitrary name
id="parent" //arbitrary name
type="java.util.List">
property="childProperty"
indexId="childIndex" //arbitrary name
id="child" //arbitrary name
type="valueobjectVO">

// etc.





and i'm getting the following error

javax.servlet.ServletException: Cannot create iterator for this
collection, stack: javax.servlet.ServletException: Cannot create
iterator for
this collection at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:453)


Thanks in Advance! appreciate any help in this regard.

mahesh.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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




[Struts-src] Creating a form-bean

2003-01-28 Thread Sri Sankaran
I was wading through the source code to figure out the process of creation of a form 
bean and found the following snippet in o.a.s.u.RequestUtils in the method 
createActionForm (line 654 in the 1/28 nightly source):

(beginning at line 709)

if (configClass.isAssignableFrom(instance.getClass())) { 
  if (log.isDebugEnabled()) {
// snip
  }
  return (instance);
}
return (instance);

Can you tell me what this the if-statement is accomplishing?  It looks like 'instance' 
will be returned regardless.

Sri



RE: Value Object in a Collection

2003-01-28 Thread neelima mahesh

What you thought was right!! .  OrderItemVO  contains getters and setters out of which 
one getter is again a Value Object(products) like OrderItemVO. That is where it is 
causing problem.
If I dont specify the inner loop it is displaying all the properties in products value 
object, which I don't need except a few properties to display.
If the products  is a collection then I would have not had any problem, but it is 
value object and to apply for "iterate" tag, its looking for collectionbut 
products value object is not a collectionhere is the problem
 
Any light on thisappreciate your response.
mahesh!
 Mei Zhu <[EMAIL PROTECTED]> wrote:Can you send me the definition of your 
OrderItemVO? I imagine OrderItemVO
has method getPartNo() and getProducts() to get a list of products which you
want to print out in your inner loop. If that's the case, in your inner
iterate you need to specify property="products". It will help to do one step
a time, try to comment out the inner iterate with , if it works ok
for the outer iterate, that the problem is from the inner iterate.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 3:08 PM
To: Struts Users Mailing List
Subject: RE: Value Object in a Collection



Following is the correct code implementing in my application..Please advice
me...I tried by removing property ...but not working...

property="reqCollection"
indexId="parentIndex"
id="productVO"
type="com.valueobject.OrderItemVO">


indexId="childIndex"
id="prod">







Mei Zhu wrote:If your outer iterate loops through a
collection of java.util.List, in your
inner iterate, you should not specify property attribute.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: Value Object in a Collection


Hi all,

I'm new to this technology, I wanted to use only iterate tags to
display the information. While iterate a collection in a JSP, need to
display a Value Object's information. Following is the approach i've
followed but in vain.

property="parentProperty"
indexId="parentIndex" //arbitrary name
id="parent" //arbitrary name
type="java.util.List">
property="childProperty"
indexId="childIndex" //arbitrary name
id="child" //arbitrary name
type="valueobjectVO">

// etc.





and i'm getting the following error

javax.servlet.ServletException: Cannot create iterator for this
collection, stack: javax.servlet.ServletException: Cannot create
iterator for
this collection at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:453)


Thanks in Advance! appreciate any help in this regard.

mahesh.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


RE: Value Object in a Collection

2003-01-28 Thread Mei Zhu
Can you send me the definition of your OrderItemVO? I imagine OrderItemVO
has method getPartNo() and getProducts() to get a list of products which you
want to print out in your inner loop. If that's the case, in your inner
iterate you need to specify property="products". It will help to do one step
a time, try to comment out the inner iterate with <%-- %>, if it works ok
for the outer iterate, that the problem is from the inner iterate.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 3:08 PM
To: Struts Users Mailing List
Subject: RE: Value Object in a Collection



Following is the correct code implementing in my application..Please advice
me...I tried by removing property ...but not working...


   
   
 

 
   




 Mei Zhu <[EMAIL PROTECTED]> wrote:If your outer iterate loops through a
collection of java.util.List, in your
inner iterate, you should not specify property attribute.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: Value Object in a Collection


Hi all,

I'm new to this technology, I wanted to use only iterate tags to
display the information. While iterate a collection in a JSP, need to
display a Value Object's information. Following is the approach i've
followed but in vain.

property="parentProperty"
indexId="parentIndex" //arbitrary name
id="parent" //arbitrary name
type="java.util.List">
property="childProperty"
indexId="childIndex" //arbitrary name
id="child" //arbitrary name
type="valueobjectVO">

// etc.





and i'm getting the following error

javax.servlet.ServletException: Cannot create iterator for this
collection, stack: javax.servlet.ServletException: Cannot create
iterator for
this collection at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:453)


Thanks in Advance! appreciate any help in this regard.

mahesh.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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




html:file question

2003-01-28 Thread Charlie Toohey
I have a form with a text field for the user to enter a filename. I would 
like to make this easier for the user by giving them a Browse button, so I 
thought I would try using html:file instead of html:text.

Note, I do not want to upload the contents of a file, but just want the 
filename, including the full path. In order to achieve this, I am NOT 
specifying 
enctype="multipart/form-data"
in the html:form tag.

I am running into 2 separate problems:

1. even though the full path filename is displayed in the field after 
browsing and picking a file, the corresponding form bean property is 
populated with the filename only, and the path is discarded -- is there any 
way for me to get the full path back?

2. pre-population of this field is not working. The form bean property is 
definitely set correctly - in fact, if I simply change the control from 
html:file to html:text, then prepopulation works correctly. Is there any way 
to pre-populate an html:file control ?

Thanks,
Charlie

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




Re: [OT] Single Sign On

2003-01-28 Thread Craig R. McClanahan


On Tue, 28 Jan 2003, Victor Soares wrote:

> Date: Tue, 28 Jan 2003 13:00:28 -0800
> From: Victor Soares <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [OT] Single Sign On
>
> This may not be the appropriate place to ask this question, but this seems to be an 
>intelligent group that may be able to answer this question
>
> I am planning on creating 3 websites. The sites are all related and will have some 
>customizable functionality for users that requires a login. I would like to carry 
>user authentication information across all 3 websites without asking the user to 
>login to each website. I guess this functionality is similar to the .net passport.
>
> How would I be able to accomplish this? Is there something out there already that 
>can help me do this?
>
> Some additional info:
> - the 3 sites will be hosted on the same server (virtual hosts)
> - web server config is apache 2, tomcat 4, RedHat 8
> - I will be using struts (cuz it's awesome)
>
> Please let me know if you've ever run into this situation and how you solved it.
>

Tomcat standalone supports SSO, but only for webapps within a single
virtual hots:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

and scroll down to the section on Single Sign On.  Further questons should
be directed to TOMCAT-USER.

> Thank you,
> - Victor Soares

Craig


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




Re: [OT] Single Sign On

2003-01-28 Thread V. Cekvenich
See this:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Single%20Sign%20On

Also most of the time, there is no need for Apache, as Tomcat can 
display static content as well.

.V

Victor Soares wrote:
This may not be the appropriate place to ask this question, but this seems to be an intelligent group that may be able to answer this question

I am planning on creating 3 websites. The sites are all related and will have some customizable functionality for users that requires a login. I would like to carry user authentication information across all 3 websites without asking the user to login to each website. I guess this functionality is similar to the .net passport.

How would I be able to accomplish this? Is there something out there already that can help me do this?

Some additional info:
- the 3 sites will be hosted on the same server (virtual hosts)
- web server config is apache 2, tomcat 4, RedHat 8
- I will be using struts (cuz it's awesome)

Please let me know if you've ever run into this situation and how you solved it.

Thank you,
- Victor Soares




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




RE: [OT] Single Sign On

2003-01-28 Thread Vinh Tran
This should do the trick...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Single%20Si
gn%20On


-Original Message-
From: Victor Soares [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 4:00 PM
To: [EMAIL PROTECTED]
Subject: [OT] Single Sign On


This may not be the appropriate place to ask this question, but this seems
to be an intelligent group that may be able to answer this question

I am planning on creating 3 websites. The sites are all related and will
have some customizable functionality for users that requires a login. I
would like to carry user authentication information across all 3 websites
without asking the user to login to each website. I guess this functionality
is similar to the .net passport.

How would I be able to accomplish this? Is there something out there already
that can help me do this?

Some additional info:
- the 3 sites will be hosted on the same server (virtual hosts)
- web server config is apache 2, tomcat 4, RedHat 8
- I will be using struts (cuz it's awesome)

Please let me know if you've ever run into this situation and how you solved
it.

Thank you,
- Victor Soares


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Value Object in a Collection

2003-01-28 Thread neelima mahesh

Following is the correct code implementing in my application..Please advice me...I 
tried by removing property ...but not working...
 

   
   
 
 
  
   
 
 
 
 
 Mei Zhu <[EMAIL PROTECTED]> wrote:If your outer iterate loops through a collection 
of java.util.List, in your
inner iterate, you should not specify property attribute.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: Value Object in a Collection


Hi all,

I'm new to this technology, I wanted to use only iterate tags to
display the information. While iterate a collection in a JSP, need to
display a Value Object's information. Following is the approach i've
followed but in vain.

property="parentProperty"
indexId="parentIndex" //arbitrary name
id="parent" //arbitrary name
type="java.util.List">
property="childProperty"
indexId="childIndex" //arbitrary name
id="child" //arbitrary name
type="valueobjectVO">

// etc.





and i'm getting the following error

javax.servlet.ServletException: Cannot create iterator for this
collection, stack: javax.servlet.ServletException: Cannot create
iterator for
this collection at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:453)


Thanks in Advance! appreciate any help in this regard.

mahesh.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Value Object , ActionForm question(mapping)

2003-01-28 Thread Vinay
Is it needed that ActionForm and Value Object are mapped.

Because my ActionForm for the view is represented as has two attributes  with date 
from and date to  for two textboxes

This is represented in the Value Object as single persistent variable and database as 
a single column.

How do I go about approaching this 


Thanks for any reply 

Vinay




[OT] Single Sign On

2003-01-28 Thread Victor Soares
This may not be the appropriate place to ask this question, but this seems to be an 
intelligent group that may be able to answer this question

I am planning on creating 3 websites. The sites are all related and will have some 
customizable functionality for users that requires a login. I would like to carry user 
authentication information across all 3 websites without asking the user to login to 
each website. I guess this functionality is similar to the .net passport.

How would I be able to accomplish this? Is there something out there already that can 
help me do this?

Some additional info:
- the 3 sites will be hosted on the same server (virtual hosts)
- web server config is apache 2, tomcat 4, RedHat 8
- I will be using struts (cuz it's awesome)

Please let me know if you've ever run into this situation and how you solved it.

Thank you,
- Victor Soares


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




Re: Java Pet Store rewritten with Flash Remoting Front End

2003-01-28 Thread Eric Jain
> http://www.macromedia.com/desdev/mx/blueprint/

Interesting, now if I could only read the fonts an my laptop screen...


--
Eric Jain


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




Re: urgent RowsetDynaClass help

2003-01-28 Thread Craig R. McClanahan


On Tue, 28 Jan 2003, usha wrote:

> Date: Tue, 28 Jan 2003 16:26:11 +0800
> From: usha <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: urgent RowsetDynaClass help
>
> Hi Craig
>
> i have requirement like this i have rowsetdynaclass from which i am
> displaying the data on the jsp using the iterate tag. can i get the
> values from the dynabeans with jsp scriplet and just out put to the
> jboss console.
> is this possible.
>
>  property="batchidlist" scope="request"
> type="org.apache.commons.beanutils.DynaBean">
> 
>   
> <%System.out.println("batchid is :" +
> ivtranshdrlist.getIvtransbatchid())%>
>  filter="true"/>
> 
>   
> 
>   
>

You can use a scriptlet if you want to, as long as you use the DynaBean
syntax to get the property out, if you really want to:

  <%
System.out.println("batchid is :" +
   ivtranshdrlist.get("ivtransbatchid");
  %>

or use PropertyUtils so that you don't care whether it is a DynaBean or
not:

  <%
try {
  System.out.println("batchid is :" +
 PropertyUtils.getProperty(ivtranshdrlist, "ivtransbatchid");
} catch (Exception e) {
  ;
}
  %>

In a JSP page, of course, you could use :

  batchid is :

This works with either DynaBeans or standard JavaBeans.

> Thanks
> usha
>

Craig



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




RE: Filters and Struts

2003-01-28 Thread Craig R. McClanahan


On Tue, 28 Jan 2003, Sterin, Ilya wrote:

>
> Ok, thanks to all:-)  Guess my only other option is to either define a
> filter for each servlet for now, until 2.4 is prod ready, or as Max
> mentioned, and put all actions in need of authentication, within the
> members namespace.
>
> Both are a hassle of course as compared to a simple filter:-), but
> that's what we'll have to live with for now:-)
>
> Any idea of when the 2.4 spec and tomcat will be production ready?
>

All of the J2EE 1.4 specs (including Servlet 2.4 and JSP 2.0) will go
final sometime mid-2003-ish.  It's not legal for any product to ship a
final release that implements these specs until the specs go final.  This
makes perfect sense when you think about it, since a non-final spec can
still be changed, possibly in a way that makes the "final" product not
compatible.

When a particular *implementation* of the new specs is product quality,
though, is a separate question, and one that really needs to be addressed
to the container provider.  For example, I wouldn't be surprised to see
Tomcat 5 (implements Servlet 2.4 and JSP 2.0) become pretty high quality
before the specs go final (since it's mostly an evolution of Tomcat 4.1);
it just won't be final itself (even if that happens), because such a thing
would not be allowed.

> Thanks.
>
> Ilya

Craig



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




Re: actionForm.reset() question

2003-01-28 Thread Craig R. McClanahan


On 28 Jan 2003, Jeremy Cavagnolo wrote:

> Date: 28 Jan 2003 12:04:53 -0800
> From: Jeremy Cavagnolo <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: actionForm.reset() question
>
> Does ActionServlet call the reset() method after instantiating an
> ActionForm, but before populating it with the http request parameters?
>

Yes.

> Can anyone point me to a good explanation about how and when
> ActionServlets create ActionForms?
>

I don't suppose looking at the processActionForm() method of ActionServlet
(Struts 1.0) or RequestProcessor (Struts 1.1) would help you ... :-)

A form bean is created if it's not already there in the scope you've
selected (request or session).  In practical terms, that means that the
bean gets created on every request if its in request scope, or just the
first time if its in session scope.

> Thanks!
>
> -Jeremy
>

Craig


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




RE: how do i use a mapped value in bean:write?

2003-01-28 Thread Andy Kriger
I want to followup to my own message since I finally found a solution to
this problem (after many postings with no response) and it might be of
interest to the community.

The BeanUtils lib was out-of-date and had fixed a bug around this. Updating
that solved the problem. Just a caveat - watch those dependent libraries,
the problem may be there and not in Struts or your code.

-a

-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 10:26
To: Struts Users Mailing List
Subject: how do i use a mapped value in bean:write?


I am trying to use mapped values in bean:write but not having any success.
* I have a bean named theBean in the session and it defines a method
public Item getItem() { ... }
* Item defines a method that returns a Map
public java.util.Map get Properties() { ... }
* The map contains key value pairs
e.g. prop1

So, I want to get the value prop1 using bean:write


I get a Servlet Exception when I try to load the page
java.lang.IllegalArgumentException: object is not an instance of declaring
class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.PropertyUtils.getMappedProperty(PropertyUtils.j
ava:626)
at
org.apache.commons.beanutils.PropertyUtils.getMappedProperty(PropertyUtils.j
ava:555)
at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j
ava:747)
at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:78
0)
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:728)
at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:290)

I've been trying different permutations of single/double quotes around the
property name without success. Can anyone point me in the right direction?

thx
a



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Value Object in a Collection

2003-01-28 Thread Mei Zhu
If your outer iterate loops through a collection of java.util.List, in your
inner iterate, you should not specify property attribute.

Mei

-Original Message-
From: neelima mahesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: Value Object in a Collection


Hi all,

I'm new to this technology, I wanted to use only iterate tags to
display the information. While iterate a collection in a JSP, need to
display a Value Object's information. Following is the approach i've
followed but in vain.


  

// etc.
  




and i'm getting the following error

javax.servlet.ServletException: Cannot create iterator for this
collection, stack: javax.servlet.ServletException: Cannot create
iterator for
this collection   at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:453)


Thanks in Advance! appreciate any help in this regard.

mahesh.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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




Re: Value Object in a Collection

2003-01-28 Thread neelima mahesh

Nope, I use the following...
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

Thanks for ur response and appreciate any help...
Mahesh!
 David Graham <[EMAIL PROTECTED]> wrote:Can you use the JSTL tags?

David






>From: neelima mahesh 
>Reply-To: "Struts Users Mailing List" 
>To: [EMAIL PROTECTED]
>Subject: Value Object in a Collection Date: Tue, 28 Jan 2003 12:41:44 -0800 
>(PST)
>
>Hi all,
>
> I'm new to this technology, I wanted to use only iterate tags to
>display the information. While iterate a collection in a JSP, need to
>display a Value Object's information. Following is the approach i've
>followed but in vain.
>
>> property="parentProperty"
> indexId="parentIndex" //arbitrary name
> id="parent" //arbitrary name
> type="java.util.List">
> > property="childProperty"
> indexId="childIndex" //arbitrary name
> id="child" //arbitrary name
> type="valueobjectVO">
> 
> // etc.
> 
>
>
>
>
>and i'm getting the following error
>
>javax.servlet.ServletException: Cannot create iterator for this
>collection, stack: javax.servlet.ServletException: Cannot create
>iterator for
>this collection at
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:453)
>
>
>Thanks in Advance! appreciate any help in this regard.
>
>mahesh.
>
>
>
>-
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


RE: application resource/ prop messages of org.apache.struts.util.PropertyMessageResource NEVER GET FILLED WITH DATA ?!?!?!

2003-01-28 Thread Jörg Maurer
Problem solved - was following :

NETBEANS IDE has properties dialog (use OPEN) for any *.properties,
which displays a tabulated view of the texts. Okay. But on saving these,
some not ANSI characters are inserted in these. On deleteing these,
 e.g. displayed them correctly.

The open question : 
1)Why does the digester parse method inside Action servlet not throw
exception in struts 1.1 beta 3 and continues to instantiate a
PropertyMessageResource, while struts 1.1 latest build(20030128) does
throw exception(even not logging what the exact failure might be)?

2)What about non ANSI message resource textes - do they work with
UNICODE? 



-Original Message-
From: Jörg Maurer 
Sent: Dienstag, 28. Jänner 2003 19:30
To: [EMAIL PROTECTED]
Subject: application resource/ prop messages of
org.apache.struts.util.PropertyMessageResource NEVER GET FILLED WITH
DATA ?!?!?!


Hi !

I am currently working on struts project with source code of struts 1.1
beta 3.

As i was wondering why my texts aka message resource never get loaded, i
followed the problem form Action Servlet  PropetyMessageResource,
where the property "messages", being a HashMap IS NEVER FILLED with
data, but is always asked to compare to keys from diverse taglibs. 

On startup of my app, struts never complains that it hasn´t found my
message resources, so i wonder when - how - if that messages are ever
initialized?!?!

Any ENLIGHTENING hints are welcomed!

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


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




Re: Value Object in a Collection

2003-01-28 Thread David Graham
Can you use the JSTL tags?

David







From: neelima mahesh <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Value Object in a Collection Date: Tue, 28 Jan 2003 12:41:44 -0800 
(PST)

Hi all,

I'm new to this technology, I wanted to use only iterate tags to
display the information. While iterate a collection in a JSP, need to
display a Value Object's information. Following is the approach i've
followed but in vain.


   property="parentProperty"
   indexId="parentIndex"  //arbitrary name
   id="parent"//arbitrary name
   type="java.util.List">
  
 property="childProperty"
 indexId="childIndex"  //arbitrary name
 id="child"//arbitrary name
 type="valueobjectVO">

// etc.
  




and i'm getting the following error

javax.servlet.ServletException: Cannot create iterator for this
collection, stack: javax.servlet.ServletException: Cannot create
iterator for
this collection   at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:453)


Thanks in Advance! appreciate any help in this regard.

mahesh.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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


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



RE: (newbie) Problem getting request level bean data in jsps

2003-01-28 Thread Mei Zhu
what's your  definition of userRegisterForm in struts-config.xml?

Mei

-Original Message-
From: Scot Rob [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 2:33 PM
To: [EMAIL PROTECTED]
Subject: (newbie) Problem getting request level bean data in jsps


Hi,

I am setting some data in DynaActionForm
"userRegisterForm" in my Action "registerUser" and it
forwards request to a jsp page through another Action
"showRegisterForm" (which is a ForwardAction).

Now, i am trying to get data in the jsp page using

but it does not get any data. I also tried  but this
doesn't return any data as well.

I wanted to avoid making "userRegisterForm" bean's
scope "session" level.

I 'd appreciate if someone can point out my mistake or
the right way to do it?

Many thanks
Asif
___











__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Value Object in a Collection

2003-01-28 Thread neelima mahesh
Hi all,

I'm new to this technology, I wanted to use only iterate tags to 
display the information. While iterate a collection in a JSP, need to 
display a Value Object's information. Following is the approach i've 
followed but in vain. 


  

// etc.
  


 

and i'm getting the following error

javax.servlet.ServletException: Cannot create iterator for this 
collection, stack: javax.servlet.ServletException: Cannot create 
iterator for 
this collection   at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:453)
  


Thanks in Advance! appreciate any help in this regard.

mahesh.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


(newbie) Problem getting request level bean data in jsps

2003-01-28 Thread Scot Rob
Hi,

I am setting some data in DynaActionForm
"userRegisterForm" in my Action "registerUser" and it
forwards request to a jsp page through another Action
"showRegisterForm" (which is a ForwardAction).

Now, i am trying to get data in the jsp page using

but it does not get any data. I also tried  but this
doesn't return any data as well.

I wanted to avoid making "userRegisterForm" bean's
scope "session" level.

I 'd appreciate if someone can point out my mistake or
the right way to do it?

Many thanks
Asif
___











__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Design Patterns/Examples

2003-01-28 Thread Pat Quinn

Hi Guys,

Any one know of some design patterns or examples i could use with struts. I 
want to access a database(Value Objects) allow the user to change the VO 
data, perform some business validation and update the database. I’d like 
some pointers also when working with form beans and vo object whats the best 
way to transfer data between them... should i use vo’s as instance variable 
instead form bean... if so how will i handle java primitives like double’s 
etc..


I'm not looking for the answers to all the above but i'd like to review a 
pattern or example which demonstrates the best approach for the above.


I have my own ideas but would like to look over some design 
patterns/examples before commencing this work.

Cheers,

Guys






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


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



RE: JavaScript / struts submit problems

2003-01-28 Thread Mei Zhu
In your Action class you have:
 sXML = request.getAttribute("XMLQueryString").toString();
this will throw a NullPointerException, because XMLQueryString is not a
request attribute but a request parameter. I have tested using
XMLQueryString, I did notice that the value cannot be populated to the form
bean from request. If you don't mind, you can send me your new files with
xmlQueryString as property name. I will be glad to look at for you.

Mei



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 1:47 PM
To: Struts Users Mailing List
Subject: RE: JavaScript / struts submit problems



I dont think that the capitalization is the problem, I have tried to do it
with the get and sets like XmlQueryString() and the property
="xmlQueryString", and I still get a zero length string when I try to
getXmlQueryString() in my action class.
Tim Bachta
Information Technology
MC 48



  "Mei Zhu"
  
  .com>cc:
   Subject:  RE: JavaScript /
struts submit problems
  01/28/2003 01:34
  PM
  Please respond to
  "Struts Users
  Mailing List"






It is obvious that struts does not populate the form bean value from
request
if you name your property like "XMLQueryString" (but it can be populated to
your input field from form bean). I do not understand exactly why. If you
just want to make it work I would not use a property name with the first
and
second charaters being uppercase, e.g. in your jsp page, use
property="xmlQueryString" while in your form define methods
getXmlQueryString(), setXmlQueryString().

Mei

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 12:50 PM
To: Struts Users Mailing List
Subject: RE: JavaScript / struts submit problems



Sorry forgot to add this code to the fray, here is the ActionForm class
where I have the get and set methods

  private void setXMLQueryString(String sXML)
  {
this.XMLQueryString = sXML;
  }

  public String getXMLQueryString()
  {
return XMLQueryString;
  }


Tim Bachta
Information Technology
MC 48
816-997-7137



  "Nelson, Laird"
  
  .COM>cc:
   Subject:  RE: JavaScript /
struts submit problems
  01/28/2003 11:36
  AM
  Please respond to
  "Struts Users
  Mailing List"






> -Original Message-
> From: Mei Zhu [mailto:[EMAIL PROTECTED]]
>
> In your jsp page, the hidden field should be:
>  The first character
> of the property
> name should be lower case.

No; see
http://java.sun.com/j2se/1.4.1/docs/api/java/beans/Introspector.html#decapit


alize(java.lang.String) for the exception cases, of which this is one.
"XMLQueryString" will result in a getXMLQueryString() and a
setXMLQueryString(String) method being sought.  If either is not present,
then the BeanUtils code will skip it.

Cheers,
Laird

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







--
To unsubscribe, e-mail:

For additional commands, e-mail:



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







--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




actionForm.reset() question

2003-01-28 Thread Jeremy Cavagnolo
Does ActionServlet call the reset() method after instantiating an
ActionForm, but before populating it with the http request parameters?

Can anyone point me to a good explanation about how and when
ActionServlets create ActionForms?

Thanks!

-Jeremy

P.S.  As a newbie, I am really enjoying the "Obscure Programming
Languages" thread :)


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




RE: JavaScript / struts submit problems

2003-01-28 Thread tbachta

I dont think that the capitalization is the problem, I have tried to do it
with the get and sets like XmlQueryString() and the property
="xmlQueryString", and I still get a zero length string when I try to
getXmlQueryString() in my action class.
Tim Bachta
Information Technology
MC 48


   
  
  "Mei Zhu"
  
  
  .com>cc: 
  
   Subject:  RE: JavaScript / struts 
submit problems 
  01/28/2003 01:34 
  
  PM   
  
  Please respond to
  
  "Struts Users
  
  Mailing List"
  
   
  
   
  




It is obvious that struts does not populate the form bean value from
request
if you name your property like "XMLQueryString" (but it can be populated to
your input field from form bean). I do not understand exactly why. If you
just want to make it work I would not use a property name with the first
and
second charaters being uppercase, e.g. in your jsp page, use
property="xmlQueryString" while in your form define methods
getXmlQueryString(), setXmlQueryString().

Mei

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 12:50 PM
To: Struts Users Mailing List
Subject: RE: JavaScript / struts submit problems



Sorry forgot to add this code to the fray, here is the ActionForm class
where I have the get and set methods

  private void setXMLQueryString(String sXML)
  {
this.XMLQueryString = sXML;
  }

  public String getXMLQueryString()
  {
return XMLQueryString;
  }


Tim Bachta
Information Technology
MC 48
816-997-7137



  "Nelson, Laird"
  
  .COM>cc:
   Subject:  RE: JavaScript /
struts submit problems
  01/28/2003 11:36
  AM
  Please respond to
  "Struts Users
  Mailing List"






> -Original Message-
> From: Mei Zhu [mailto:[EMAIL PROTECTED]]
>
> In your jsp page, the hidden field should be:
>  The first character
> of the property
> name should be lower case.

No; see
http://java.sun.com/j2se/1.4.1/docs/api/java/beans/Introspector.html#decapit


alize(java.lang.String) for the exception cases, of which this is one.
"XMLQueryString" will result in a getXMLQueryString() and a
setXMLQueryString(String) method being sought.  If either is not present,
then the BeanUtils code will skip it.

Cheers,
Laird

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







--
To unsubscribe, e-mail:

For additional commands, e-mail:



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







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




RE: JavaScript / struts submit problems

2003-01-28 Thread Mei Zhu
It is obvious that struts does not populate the form bean value from request
if you name your property like "XMLQueryString" (but it can be populated to
your input field from form bean). I do not understand exactly why. If you
just want to make it work I would not use a property name with the first and
second charaters being uppercase, e.g. in your jsp page, use
property="xmlQueryString" while in your form define methods
getXmlQueryString(), setXmlQueryString().

Mei

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 12:50 PM
To: Struts Users Mailing List
Subject: RE: JavaScript / struts submit problems



Sorry forgot to add this code to the fray, here is the ActionForm class
where I have the get and set methods

  private void setXMLQueryString(String sXML)
  {
this.XMLQueryString = sXML;
  }

  public String getXMLQueryString()
  {
return XMLQueryString;
  }


Tim Bachta
Information Technology
MC 48
816-997-7137



  "Nelson, Laird"
  
  .COM>cc:
   Subject:  RE: JavaScript /
struts submit problems
  01/28/2003 11:36
  AM
  Please respond to
  "Struts Users
  Mailing List"






> -Original Message-
> From: Mei Zhu [mailto:[EMAIL PROTECTED]]
>
> In your jsp page, the hidden field should be:
>  The first character
> of the property
> name should be lower case.

No; see
http://java.sun.com/j2se/1.4.1/docs/api/java/beans/Introspector.html#decapit

alize(java.lang.String) for the exception cases, of which this is one.
"XMLQueryString" will result in a getXMLQueryString() and a
setXMLQueryString(String) method being sought.  If either is not present,
then the BeanUtils code will skip it.

Cheers,
Laird

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







--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: logic:match

2003-01-28 Thread Denis Wang
thanks.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: logic:match


You can't use a tag as the input into another tag's attribute.

David






>From: Denis Wang <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: logic:match
>Date: Tue, 28 Jan 2003 13:13:58 -0500
>
>Hello, all,
>There is something wrong with the following piece of code:
>
>...
>
>I double-checked the nested:write works.
>
>
>if I change the above real time evaluation into a static one, it works.
>
>
>Does anybody have any hints?  Thanks a lot!
>Denis
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>


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


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: logic:match

2003-01-28 Thread Denis Wang
thanks for your reply.  the powerful if...else can absolutely solve the
problem, but the architect doesn't allow me to do so.  JSTL is not used
elsewhere througout my application.  Anyway, thanks for your input.
Denis

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 1:32 PM
To: 'Struts Users Mailing List'
Subject: RE: logic:match


> There is something wrong with the following piece of code:
> 
> ...
> 
  ... do stuff ...


Actually I haven't tried it with two expressions in the same test.

There's also a choose/when/otherwise construct if you need a case statement
rather than if/else.

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



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




[Validator]Stop validation upon first error

2003-01-28 Thread Sri Sankaran
Using : Struts 1.1b3

Is it possible to stop the validation of a DynaValidatorForm when the Validator 
framework encounters the first error?

I have the following form in my validation.xml


  

  
  

  
  

  


If the user does not provide a value for any of 'access', 'process' and 'rights' I see 
the same error message thrice.  

Hence my question: Can I configure the validator to stop on the first error?

Sri 



RE: JavaScript / struts submit problems

2003-01-28 Thread tbachta

Sorry forgot to add this code to the fray, here is the ActionForm class
where I have the get and set methods

  private void setXMLQueryString(String sXML)
  {
this.XMLQueryString = sXML;
  }

  public String getXMLQueryString()
  {
return XMLQueryString;
  }


Tim Bachta
Information Technology
MC 48
816-997-7137


   
  
  "Nelson, Laird"  
  

  .COM>cc: 
  
   Subject:  RE: JavaScript / struts 
submit problems 
  01/28/2003 11:36 
  
  AM   
  
  Please respond to
  
  "Struts Users
  
  Mailing List"
  
   
  
   
  




> -Original Message-
> From: Mei Zhu [mailto:[EMAIL PROTECTED]]
>
> In your jsp page, the hidden field should be:
>  The first character
> of the property
> name should be lower case.

No; see
http://java.sun.com/j2se/1.4.1/docs/api/java/beans/Introspector.html#decapit

alize(java.lang.String) for the exception cases, of which this is one.
"XMLQueryString" will result in a getXMLQueryString() and a
setXMLQueryString(String) method being sought.  If either is not present,
then the BeanUtils code will skip it.

Cheers,
Laird

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







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




RE: JavaScript / struts submit problems

2003-01-28 Thread tbachta

Ok, so if the name is not the problem then what is?  What do I need to do,
or look at to fix this?
Tim Bachta
Information Technology
MC 48


   
  
  "Nelson, Laird"  
  

  .COM>cc: 
  
   Subject:  RE: JavaScript / struts 
submit problems 
  01/28/2003 11:36 
  
  AM   
  
  Please respond to
  
  "Struts Users
  
  Mailing List"
  
   
  
   
  




> -Original Message-
> From: Mei Zhu [mailto:[EMAIL PROTECTED]]
>
> In your jsp page, the hidden field should be:
>  The first character
> of the property
> name should be lower case.

No; see
http://java.sun.com/j2se/1.4.1/docs/api/java/beans/Introspector.html#decapit

alize(java.lang.String) for the exception cases, of which this is one.
"XMLQueryString" will result in a getXMLQueryString() and a
setXMLQueryString(String) method being sought.  If either is not present,
then the BeanUtils code will skip it.

Cheers,
Laird

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







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




RE: Problem capturing text property using logic:iterate

2003-01-28 Thread Pani, Gourav
you haven't specified the value="" in the tag.

-Original Message-
From: Vinicius Boson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 1:46 PM
To: [EMAIL PROTECTED]
Subject: Problem capturing text property using logic:iterate


I´m having problem capturing data from an html created with the following 
code:

The JSP file:




  
  

   *
 
  



The HTML generated looks like:


  

 *
 
  


  

 *
 
  

I want the user to be able to change the value in the text box, and I am not

being able to retrieve the new values.

I´m doing the follow things ...
The previews JSP uses a  weekForm  that is mapped with  an action that puts 
it in a session and , if sucessed, call these
JSP above.
When i used the bean:define , i expected that i could use an variable of the

form in these JSP ... But when i try to get these
form from a session , in any action, those values are not updated 
Im using 2 forms to do that ... I´ve tried to use only the first form 
(weekForm) but it didn´t work too.


_
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Problem capturing text property using logic:iterate

2003-01-28 Thread Vinicius Boson
I´m having problem capturing data from an html created with the following 
code:

The JSP file:




 
 
   
  *

 



The HTML generated looks like:


 
   
*

 


 
   
*

 

I want the user to be able to change the value in the text box, and I am not 
being able to retrieve the new values.

I´m doing the follow things ...
The previews JSP uses a  weekForm  that is mapped with  an action that puts 
it in a session and , if sucessed, call these
JSP above.
When i used the bean:define , i expected that i could use an variable of the 
form in these JSP ... But when i try to get these
form from a session , in any action, those values are not updated 
Im using 2 forms to do that ... I´ve tried to use only the first form 
(weekForm) but it didn´t work too.


_
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com


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



RE: logic:match

2003-01-28 Thread Wendy Smoak
> There is something wrong with the following piece of code:
> 
> ...
> 
  ... do stuff ...


Actually I haven't tried it with two expressions in the same test.

There's also a choose/when/otherwise construct if you need a case statement
rather than if/else.

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



application resource/ prop messages of org.apache.struts.util.PropertyMessageResource NEVER GET FILLED WITH DATA ?!?!?!

2003-01-28 Thread Jörg Maurer
Hi !

I am currently working on struts project with source code of struts 1.1
beta 3.

As i was wondering why my texts aka message resource never get loaded, i
followed the problem form Action Servlet  PropetyMessageResource,
where the property "messages", being a HashMap IS NEVER FILLED with
data, but is always asked to compare to keys from diverse taglibs. 

On startup of my app, struts never complains that it hasn´t found my
message resources, so i wonder when - how - if that messages are ever
initialized?!?!

Any ENLIGHTENING hints are welcomed!

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




Re: logic:match

2003-01-28 Thread David Graham
You can't use a tag as the input into another tag's attribute.

David







From: Denis Wang <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: logic:match
Date: Tue, 28 Jan 2003 13:13:58 -0500

Hello, all,
There is something wrong with the following piece of code:

...


I double-checked the nested:write works.


if I change the above real time evaluation into a static one, it works.


Does anybody have any hints?  Thanks a lot!
Denis



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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


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



logic:match

2003-01-28 Thread Denis Wang
Hello, all,
There is something wrong with the following piece of code:

...


if I change the above real time evaluation into a static one, it works.


Does anybody have any hints?  Thanks a lot!
Denis



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




RE: [OT] Obscure Programming Languages

2003-01-28 Thread Mark Galbreath
Some odd British concoction, no doubt.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 12:50 PM
To: Struts Users Mailing List
Subject: RE: [OT] Obscure Programming Languages


No, actually, I mean POP-11, one of the languages in the POPLOG environment.

http://www.poplog.org/
http://www.cs.bham.ac.uk/research/poplog/freepoplog.html

Simon

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 11:40 AM
>To: Struts Users Mailing List
>Cc: 'Struts Users Mailing List'
>Subject: RE: [OT] Obscure Programming Languages
>
>
>
>
>You mean "PDP-11" the old DEC machines that ran RSX-11M? They
>were fun - if
>you enjoyed learning proprietary OS's and writing real-time control
>applications.
>
>Gosh I'm old.
>
>
>
>
>
>   
>   
> 
>   
>   
> 
> "Mark Galbreath"  To: "'Struts 
>Users Mailing List'" <[EMAIL PROTECTED]>  
>
> <[EMAIL PROTECTED]>  cc: (bcc: Kevin 
>Bedell/Systems/USHO/SunLife)   
> 
> 01/28/2003 11:31 AM   Subject:  RE: 
>[OT] Obscure Programming Languages 
>   
> Please respond to "Struts 
>   
> 
> Users Mailing List"   
>   
> 
>   
>   
> 
>   
>   
> 
>
>
>
>
>Close:
>
>http://www.paulgraham.com/jargon96.html
>
>I have the hard copy of this book - it's great!
>
>"POP-11?"
>
>-Original Message-
>From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 11:24 AM
>
>LISP - Lots of InSignifigant Parens
>
>Prolog is where it's at :-)
>
>- Original Message -
>From: "Chappell, Simon P" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
>Not something to admit in public!
>
>Actually, I really enjoyed learning POP-11 back at university.
>Ahh, those
>were the days.
>
>>-Original Message-
>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, January 28, 2003 10:14 AM
>>
>>I actually taught myself Scheme (the MIT version) on the Macintosh in 
>>the early 90s  :-)
>>
>>-Original Message-
>>From: James Turner [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, January 28, 2003 10:35 AM
>>>
>>> LISP boy is correct, and I brought this subject up about a year ago 
>>> and Craig answered pretty definitively - try a search on 
>>> "synchronization" in the archive:
>>
>>LISP Boy?  Do I get the power to warp men's minds using my LISPParens? 
>>Can I self-modify code in a single bound?  Does this make me the 
>>sidekick of SchemeMan?
>>
>>Holy PDL Stack Overflow, SchemeMan!
>
>
>
>--
>To unsubscribe, e-mail:   <
>mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: < 
>mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>---
>
>This e-mail message (including attachments, if any) is
>intended for the use
>of the individual or entity to which it is addressed and may contain
>information that is privileged, proprietary , confidential and 
>exempt from
>disclosure.  If you are not the intended recipient, you are 
>notified that
>any dissemination, distribution or copying of this communication is
>strictly prohibited.  If you have received this communication in error,
>please notify the sender and erase this e-mail message immediately.
>---
>
>
>
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: [OT] Obscure Programming Languages

2003-01-28 Thread Mike Oliver
Don't forget COBOL, RPG, SNOBOL, GW-BASIC and the days of drum memory,
core memory and "what will we ever do with more than 64k of memory."  Or
Windows in 640k RAM. 160k floppies, one for boot, one for programs and
one for data on a single drive machine.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 10:40 AM
To: Struts Users Mailing List
Cc: 'Struts Users Mailing List'
Subject: RE: [OT] Obscure Programming Languages



You mean "PDP-11" the old DEC machines that ran RSX-11M? They were fun -
if
you enjoyed learning proprietary OS's and writing real-time control
applications.

Gosh I'm old.





 

 

 "Mark Galbreath"  To: "'Struts Users
Mailing List'" <[EMAIL PROTECTED]>  
 <[EMAIL PROTECTED]>  cc: (bcc: Kevin
Bedell/Systems/USHO/SunLife)
 01/28/2003 11:31 AM   Subject:  RE: [OT]
Obscure Programming Languages
 Please respond to "Struts

 Users Mailing List"

 

 





Close:

http://www.paulgraham.com/jargon96.html

I have the hard copy of this book - it's great!

"POP-11?"

-Original Message-
From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 11:24 AM

LISP - Lots of InSignifigant Parens

Prolog is where it's at :-)

- Original Message -
From: "Chappell, Simon P" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>

Not something to admit in public!

Actually, I really enjoyed learning POP-11 back at university. Ahh,
those
were the days.

>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 10:14 AM
>
>I actually taught myself Scheme (the MIT version) on the Macintosh in
>the early 90s  :-)
>
>-Original Message-
>From: James Turner [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 10:35 AM
>>
>> LISP boy is correct, and I brought this subject up about a year ago
>> and Craig answered pretty definitively - try a search on
>> "synchronization" in the archive:
>
>LISP Boy?  Do I get the power to warp men's minds using my LISPParens?
>Can I self-modify code in a single bound?  Does this make me the
>sidekick of SchemeMan?
>
>Holy PDL Stack Overflow, SchemeMan!



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






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

---




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Flash+Struts how?

2003-01-28 Thread V. Cekvenich
Nothing wrong with Flash as View, in fact Flash is a good practice IMO 
(when used w/o Remoting or runtime costs).

Javascript/DHTML is just OK. We try to remove navigation and vlidation 
(menu and validator) but still its a mess in a JSP.

Applets are a bad practice, in my experience.

JSF is not here.
XForms has a lot of promise.
As does this Axis to Flash thing on dev list.

But people, lets watch the signal to noise ratio. Already people ask 
questions on dev. list that should be here (and there was a thread to 
start another mail list).
There is a lot of Friday, OT, Beer, etc., an no need to add just pure noise.

.V

Assenza, Chris wrote:
I suspect the original poster was just having him/herself a little fun with
the list using an anonymous email account knowing its history with the
topic. In that case, while I hate to admit it, Mark's reply was probably
quite apropos. =p

-Chris

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 11:27 PM
To: Struts Users Mailing List
Subject: RE: Flash+Struts how?


Yes, it does seem a bit off form.
Normally any reference to the F word really gets him going.
Maybe he's a bit under the weather this week?

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 January 2003 04:02
To: Struts Users Mailing List
Subject: RE: Flash+Struts how?






-Original Message-
From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 1:09 PM
To: Struts Users Mailing List
Subject: Re: Flash+Struts how?


Mark Galbreath wrote:


Only a weenie programmer would use Flash with Struts[...]


Nice attitude. I hope I misunderstood that reply...



Actually, knowing Mark, that was one of his more restrained replies. He's
mellowing in his old age. ;-)



Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




Problem using SSL with Struts, Tomcat 4.1.12 on IIS

2003-01-28 Thread Gogte, Sushrut
I am using Struts 1.0.2 with Tomcat 4.1.12 running on IIS 4.0 web server.

In my application, I am using a template which inserts a navigation menu on
the left hand side of the screen, using Struts.  This menu is composed of
links and images.
When I run my application in non-secure mode, it is running fine.  However,
when I try to use SSL, so that I access it with https://... instead of
http://..., the links are getting converted to http://...:443 (I am using
the standard 443 port for SSL connections).  The same is happening with the
images, and therefore, they are not showing up. I am using relative links,
because I have different environments (DEV, QA, PROD), and don't want to
hardcode the server name in my JSP pages.

This used to work fine with Struts on Tomcat 3.2, but after upgrading to
4.1.12, this is the behavior I am seeing.  Has anyone else seen anything
like this, and if so, how did you fix it?  

Thanks a lot,

Sushrut



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




RE: [OT] Obscure Programming Languages

2003-01-28 Thread Chappell, Simon P
No, actually, I mean POP-11, one of the languages in the POPLOG environment.

http://www.poplog.org/
http://www.cs.bham.ac.uk/research/poplog/freepoplog.html

Simon

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 11:40 AM
>To: Struts Users Mailing List
>Cc: 'Struts Users Mailing List'
>Subject: RE: [OT] Obscure Programming Languages
>
>
>
>
>You mean "PDP-11" the old DEC machines that ran RSX-11M? They 
>were fun - if
>you enjoyed learning proprietary OS's and writing real-time control
>applications.
>
>Gosh I'm old.
>
>
>
>
>
>   
>   
> 
>   
>   
> 
> "Mark Galbreath"  To: "'Struts 
>Users Mailing List'" <[EMAIL PROTECTED]>  
>
> <[EMAIL PROTECTED]>  cc: (bcc: Kevin 
>Bedell/Systems/USHO/SunLife)   
> 
> 01/28/2003 11:31 AM   Subject:  RE: 
>[OT] Obscure Programming Languages 
>   
> Please respond to "Struts 
>   
> 
> Users Mailing List"   
>   
> 
>   
>   
> 
>   
>   
> 
>
>
>
>
>Close:
>
>http://www.paulgraham.com/jargon96.html
>
>I have the hard copy of this book - it's great!
>
>"POP-11?"
>
>-Original Message-
>From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 11:24 AM
>
>LISP - Lots of InSignifigant Parens
>
>Prolog is where it's at :-)
>
>- Original Message -
>From: "Chappell, Simon P" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
>Not something to admit in public!
>
>Actually, I really enjoyed learning POP-11 back at university. 
>Ahh, those
>were the days.
>
>>-Original Message-
>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, January 28, 2003 10:14 AM
>>
>>I actually taught myself Scheme (the MIT version) on the Macintosh in
>>the early 90s  :-)
>>
>>-Original Message-
>>From: James Turner [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, January 28, 2003 10:35 AM
>>>
>>> LISP boy is correct, and I brought this subject up about a year ago
>>> and Craig answered pretty definitively - try a search on
>>> "synchronization" in the archive:
>>
>>LISP Boy?  Do I get the power to warp men's minds using my LISPParens?
>>Can I self-modify code in a single bound?  Does this make me the
>>sidekick of SchemeMan?
>>
>>Holy PDL Stack Overflow, SchemeMan!
>
>
>
>--
>To unsubscribe, e-mail:   <
>mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
>mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>---
>
>This e-mail message (including attachments, if any) is 
>intended for the use
>of the individual or entity to which it is addressed and may contain
>information that is privileged, proprietary , confidential and 
>exempt from
>disclosure.  If you are not the intended recipient, you are 
>notified that
>any dissemination, distribution or copying of this communication is
>strictly prohibited.  If you have received this communication in error,
>please notify the sender and erase this e-mail message immediately.
>---
>
>
>
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




logging

2003-01-28 Thread Damm, Gary
I've recently switched to struts 1.1-b3.  My previous log configuration
has stopped working and I'm wondering why.  I'm using commons-logging
with log4j.  My previous commons-logging jar was Implementation-Version:
1.0.1 and my commons-logging.properties is as follows:

org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCate
goryLog

Using version 1.0.1 of commons-logging.jar my logging configuration
works fine.

When I switch to the commons-logging.jar included in 1.1-b3 all my
logging goes to stdout.  Reading the docs it appears it is not finding
my configuration properties but I can't figure out why.

Switching out the commons-logging.jar to the previous version fixes the
problem, but I'd like to stay with a standard package.

Any help appreciated.

Gary

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




RE: [OT] Obscure Programming Languages

2003-01-28 Thread Kevin . Bedell


You mean "PDP-11" the old DEC machines that ran RSX-11M? They were fun - if
you enjoyed learning proprietary OS's and writing real-time control
applications.

Gosh I'm old.





   

   

 "Mark Galbreath"  To: "'Struts Users Mailing List'" 
<[EMAIL PROTECTED]>  
 <[EMAIL PROTECTED]>  cc: (bcc: Kevin 
Bedell/Systems/USHO/SunLife)
 01/28/2003 11:31 AM   Subject:  RE: [OT] Obscure Programming 
Languages
 Please respond to "Struts 

 Users Mailing List"   

   

   





Close:

http://www.paulgraham.com/jargon96.html

I have the hard copy of this book - it's great!

"POP-11?"

-Original Message-
From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 11:24 AM

LISP - Lots of InSignifigant Parens

Prolog is where it's at :-)

- Original Message -
From: "Chappell, Simon P" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>

Not something to admit in public!

Actually, I really enjoyed learning POP-11 back at university. Ahh, those
were the days.

>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 10:14 AM
>
>I actually taught myself Scheme (the MIT version) on the Macintosh in
>the early 90s  :-)
>
>-Original Message-
>From: James Turner [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 10:35 AM
>>
>> LISP boy is correct, and I brought this subject up about a year ago
>> and Craig answered pretty definitively - try a search on
>> "synchronization" in the archive:
>
>LISP Boy?  Do I get the power to warp men's minds using my LISPParens?
>Can I self-modify code in a single bound?  Does this make me the
>sidekick of SchemeMan?
>
>Holy PDL Stack Overflow, SchemeMan!



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





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




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




RE: JavaScript / struts submit problems

2003-01-28 Thread Nelson, Laird
> -Original Message-
> From: Mei Zhu [mailto:[EMAIL PROTECTED]]
> 
> In your jsp page, the hidden field should be:
>  The first character 
> of the property
> name should be lower case.

No; see
http://java.sun.com/j2se/1.4.1/docs/api/java/beans/Introspector.html#decapit
alize(java.lang.String) for the exception cases, of which this is one.
"XMLQueryString" will result in a getXMLQueryString() and a
setXMLQueryString(String) method being sought.  If either is not present,
then the BeanUtils code will skip it.

Cheers,
Laird

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




Re: Please review code for LookupDisptach using Image Buttons

2003-01-28 Thread Ashish Kulkarni
Hi,
Did any one look at this code??
Ashish
--- Ashish Kulkarni <[EMAIL PROTECTED]>
wrote:
> Hi,
> I have a jsp with 2 image buttons, and i needed to
> forward the request to different jsp depending upon
> the image button clicked by the user, and I want to
> do
> it without using javascript ( I was using javascript
> along with DispatchAction class)
> Here is what I have done,
> I wrote a new class called TestLookupDispatchAction
> which extend DispatchAction class, override execute
> method and has one abstract method called
> getMethodName
> I am pasting the code of my 
> TestLookupDispatchAction and the class which extends
> this TestLookupDispatchAction class and my jsp
> definitation of code,
> Can people please comment on it
> public abstract class TestLookupDispatchAction
> extends
> DispatchAction
> {
>  public ActionForward execute (
> ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
> throws Exception
> {
> String methodName = getMethodName(request ,
> mapping);
>   return dispatchMethod (mapping, form,
> request, response, methodName);
> 
> 
> 
> }
> 
> protected abstract String getMethodName
> (HttpServletRequest request, ActionMapping mapping
> );
> }
> 
> /** class that extends this class**/
> 
> public class TestImageButton extends
> TestLookupDispatchAction
> {
> protected String
> getMethodName(javax.servlet.http.HttpServletRequest
> request, ActionMapping mapping)
> {
> Enumeration enu = request.getParameterNames
> ();
> String att="";
> while(enu.hasMoreElements ())
> {
> att = (String)enu.nextElement ();
> System.out.println ("parameter name: " +
> att + "... value: " + request.getParameter (att));
> if(att.equals ("add.x"))
> {  
>   return "add";
> }
> else if(att.equals ("change.x"))
> {  
>  return "change";
> }
> else if(att.equals ("back.x"))
> {  
>  return "back";
> }
> 
> 
> }
> return "";
> }
> 
>  public ActionForward add (ActionMapping mapping, 
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
> throws IOException, ServletException
> {
> 
> }
> }
> 
> My jsp definiation
> /**
> I am using normal html tag because i want to use the
> mouse over effect, which is not possible to get
> using
> struts taglib
> **/
> 
>  " name="add"
> onMouseOver="MM_swapImage('add','',' key="button.addon"/>',1)"
> onMouseOut="MM_swapImgRestore()"/>
>  " name="change"
> onMouseOver="MM_swapImage('change','',' key="button.changeon"/>',1)"
> onMouseOut="MM_swapImgRestore()"/>
> 
> 
>  
> 
> 
> 
> =
> A$HI$H
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Struts Validator Debug output? What is it doing?

2003-01-28 Thread PILGRIM, Peter, FM
> -Original Message-
> From: PILGRIM, Peter, FM 
> 
> Is there anyone out there who is an expert on Struts validator?
----
Don't bother! "Soy un Tonto mas grande de la Dia"

--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923





  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
Regulated by the Financial Services Authority


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




Re: Struts Validator Debug output? What is it doing?

2003-01-28 Thread Evan Schnell
PILGRIM, Peter, FM wrote:


   

Cut the rubbish. 


Do you see your "forms" load from validator.xml on startup?

You should see something like:


15633   [main] DEBUG -   New match='form-validation/formset/form'
15643   [main] DEBUG -   Fire begin() for 
ObjectCreateRule[className=org.apache.commons.validator.Form, 
attributeName=className]
15643   [main] DEBUG - 
[ObjectCreateRule]{form-validation/formset/form}New 
org.apache.commons.validator.Form
15643   [main] DEBUG -   Fire begin() for SetPropertiesRule[]
15643   [main] DEBUG - [SetPropertiesRule]{form-validation/formset/form} 
Setting property 'name' to 'addToCartForm'
15643   [main] DEBUG - [SetPropertiesRule]{form-validation/formset/form} 
Set org.apache.commons.validator.Form properties
15643   [main] DEBUG - BeanUtils.populate(Form: null
, {name=addToCartForm})
15653   [main] DEBUG -   setProperty(Form: null

--and/or---

  Form: productDetailForm
   Field:
   key= productKey
   property=productKey
   

Finally, have you done the major steps in your code:

   1. Make your form implement VaildatorForm or one of its ilk.
   2. Either delete the "validate" method from the form class or make 
sure it calls super.validate().
   3. Make sure the name of your form and its fields in your module 
configuration (struts-config.xml) match the name of the form in 
validation.xml.  
  
I have not done a lot with nested properties but David Winterfeldt's 
site (http://home.earthlink.net/~dwinterfeldt/index.html) claims they 
work with the validator.

Regards, Evan.


--
Evan Schnell, Technical Lead
nVISIA, Twin Cities  "Digital Architecture and Construction"
7701 France Ave. S, Edina, MN 55435
http://www.nvisia.com




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



RE: JavaScript / struts submit problems

2003-01-28 Thread Mei Zhu
Just to add another note, it may not work(you need to verify by looking at
Java Bean spec) if you define your property name like xMLQueryString, but
xmlQueryString will work.

Mei

-Original Message-
From: Mei Zhu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 11:06 AM
To: Struts Users Mailing List
Subject: RE: JavaScript / struts submit problems


In your jsp page, the hidden field should be:
 The first character of the property
name should be lower case.

Mei

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 10:49 AM
To: [EMAIL PROTECTED]
Subject: JavaScript / struts submit problems



Hello All,

I am having a little problem that hopefully someone can help me with.  I
have a form that has a hidden field in it, I am not populating this hidden
field on the page load but rather I am populating the value in a JavaScript
function and then using the form.submit() in JavaScript to submit the form.
When I try pulling the value for the hidden field out in my Action class I
get either a null pointer exception or a zero length string depending on
how I try to get the data.  I have verified that there is data populating
in the hidden fields value.  Here is the code below, if anyone can help me
in finding out how to get the value I would be very grateful.

/jsp

<%@ page language ="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>


Report Generator










  

  

  

  

 
  
 
 


  

  

. and so on.

javascript


  function getHiddenValue(form)  // added for
testing
  {
alert(form.XMLQueryString.value);
  }
  function runClick(form)
  {
var strQueryXML = new String();



if(form.selectedColumns.options.length > 0)
{
  strQueryXML = getQueryXML(form);

  form.XMLQueryString.value = strQueryXML;
  alert(strQueryXML); // added for testing
  alert(form.XMLQueryString.value);   // added for testing
  form.submit();


}
else
{
  alert("Please select at least one column.");
  objSelCols.focus();
}


  }
Action Class/

public class GeneratorAction  extends Action
{
  private ActionErrors errors = new ActionErrors();

  public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
  throws IOException, ServletException
  {
HttpSession session = request.getSession();
String sXML = new String();
String target = new String("failure");

if(form != null)
{
  errors.clear();
  GeneratorForm gForm = (GeneratorForm)form;
  try
  {
//sXML = gForm.getXMLQueryString(); //0 length
string
sXML = request.getAttribute("XMLQueryString").toString();
//null pointer
//sXML = session.getAttribute("XMLQueryString").toString();
//null pointer
System.out.println("XML String ="+sXML.toString());
target = new String("success");
  }
  catch(Exception e)
  {
System.out.println("Error Getting Attributes "+e);
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError
("errors.dbsubmiterror",sXML));
target = new String("failure");
saveErrors(request,errors);
  }
}
return(mapping.findForward(target));
  }
}

Thanks

Tim Bachta
Information Technology
MC 48





--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: JavaScript / struts submit problems

2003-01-28 Thread Mei Zhu
In your jsp page, the hidden field should be:
 The first character of the property
name should be lower case.

Mei

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 10:49 AM
To: [EMAIL PROTECTED]
Subject: JavaScript / struts submit problems



Hello All,

I am having a little problem that hopefully someone can help me with.  I
have a form that has a hidden field in it, I am not populating this hidden
field on the page load but rather I am populating the value in a JavaScript
function and then using the form.submit() in JavaScript to submit the form.
When I try pulling the value for the hidden field out in my Action class I
get either a null pointer exception or a zero length string depending on
how I try to get the data.  I have verified that there is data populating
in the hidden fields value.  Here is the code below, if anyone can help me
in finding out how to get the value I would be very grateful.

/jsp

<%@ page language ="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>


Report Generator










  

  

  

  

 
  
 
 


  

  

. and so on.

javascript


  function getHiddenValue(form)  // added for
testing
  {
alert(form.XMLQueryString.value);
  }
  function runClick(form)
  {
var strQueryXML = new String();



if(form.selectedColumns.options.length > 0)
{
  strQueryXML = getQueryXML(form);

  form.XMLQueryString.value = strQueryXML;
  alert(strQueryXML); // added for testing
  alert(form.XMLQueryString.value);   // added for testing
  form.submit();


}
else
{
  alert("Please select at least one column.");
  objSelCols.focus();
}


  }
Action Class/

public class GeneratorAction  extends Action
{
  private ActionErrors errors = new ActionErrors();

  public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
  throws IOException, ServletException
  {
HttpSession session = request.getSession();
String sXML = new String();
String target = new String("failure");

if(form != null)
{
  errors.clear();
  GeneratorForm gForm = (GeneratorForm)form;
  try
  {
//sXML = gForm.getXMLQueryString(); //0 length
string
sXML = request.getAttribute("XMLQueryString").toString();
//null pointer
//sXML = session.getAttribute("XMLQueryString").toString();
//null pointer
System.out.println("XML String ="+sXML.toString());
target = new String("success");
  }
  catch(Exception e)
  {
System.out.println("Error Getting Attributes "+e);
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError
("errors.dbsubmiterror",sXML));
target = new String("failure");
saveErrors(request,errors);
  }
}
return(mapping.findForward(target));
  }
}

Thanks

Tim Bachta
Information Technology
MC 48





--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Struts Validator Debug output? What is it doing?

2003-01-28 Thread PILGRIM, Peter, FM
Is there anyone out there who is an expert on Struts validator?
--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923



  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
Regulated by the Financial Services Authority


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




RE: if-then-else condition in validation xml

2003-01-28 Thread James Turner
> -Original Message-
> From: Dinesh Samson J [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, January 28, 2003 11:37 AM
> To: [EMAIL PROTECTED]
> Subject: if-then-else condition in validation xml
> 
> 
> Greetings,
> 
> Can we have something like an if-then-else block in validation.xml?
> 
> What I am looking for is that, 
> 
> a. if nothing is entered in field A, then do not validate 
> field B and field C b. if something is entered in field A, 
> then check for (depends="required") for field B and field C

Check out the "requiredif" validator in 1.1b3

James Turner
Owner & Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author: 
MySQL & JSP Web Applications: 
Data Driven Programming Using Tomcat and MySQL
ISBN 0672323095; Sams, 2002

Co-Author: 
Struts Kick Start
ISBN 0672324725; Sams, 2002
"We've seen no better resource for learning Struts than Struts Kick
Start." -- Barnes & Noble

Forthcoming:
JavaServer Faces Kick Start 
Sams, Fall 2003




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




RE: [OT] Obscure Computer Languages

2003-01-28 Thread Chappell, Simon P
Hmmm, ok, let's dig into the memory here for the "icky" stuff:

Forth
POP-11/POPLOG
Smalltalk
RPG/400

There are a ton of others, but those are the weirdest.


>-Original Message-
>From: James Turner [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 10:42 AM
>To: 'Struts Users Mailing List'
>Subject: [OT] Obscure Computer Languages
>
>
>> From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]] 
>> Sent: Tuesday, January 28, 2003 11:24 AM
>> To: Struts Users Mailing List
>> Subject: Re: [OT] Synchronizing Session Objects
>> 
>> 
>> LISP - Lots of InSignifigant Parens
>> 
>> Prolog is where it's at :-)
>
>Don't go there man...
>
>Not only was I once fluent in Prolog (How to shoot yourself in the foot
>with Prolog: You look down and see a hole in your foot, and from that
>infer that the gun was fired), but I have at one time or another
>programmed in APL (it's all Greek to me), PL/1, OS/VS1 on a 370, and
>SNOBOL (with it's compiler SPITBOL), not to mention such museum pieces
>as WATFOR, Fortran II, and PDP-8 assembler.
>
>I get stranger things than Prolog in my breakfast serial.
>
>James Turner
>Owner & Manager, Black Bear Software, LLC
>[EMAIL PROTECTED]
>
>Author: 
>MySQL & JSP Web Applications: 
>Data Driven Programming Using Tomcat and MySQL
>ISBN 0672323095; Sams, 2002
>
>Co-Author: 
>Struts Kick Start
>ISBN 0672324725; Sams, 2002
>
>Forthcoming:
>JavaServer Faces Kick Start 
>Sams, Fall 2003
>
>
>> -Original Message-
>> From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]] 
>> Sent: Tuesday, January 28, 2003 11:24 AM
>> To: Struts Users Mailing List
>> Subject: Re: [OT] Synchronizing Session Objects
>> 
>> 
>> LISP - Lots of InSignifigant Parens
>> 
>> Prolog is where it's at :-)
>> 
>> 
>> - Original Message -
>> From: "Chappell, Simon P" <[EMAIL PROTECTED]>
>> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> Sent: Tuesday, January 28, 2003 10:16 AM
>> Subject: RE: [OT] Synchronizing Session Objects
>> 
>> 
>> Not something to admit in public!
>> 
>> Actually, I really enjoyed learning POP-11 back at 
>> university. Ahh, those were the days.
>> 
>> >-Original Message-
>> >From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>> >Sent: Tuesday, January 28, 2003 10:14 AM
>> >To: 'Struts Users Mailing List'
>> >Subject: RE: [OT] Synchronizing Session Objects
>> >
>> >
>> >I actually taught myself Scheme (the MIT version) on the 
>> Macintosh in 
>> >the early 90s  :-)
>> >
>> >-Original Message-
>> >From: James Turner [mailto:[EMAIL PROTECTED]]
>> >Sent: Tuesday, January 28, 2003 10:35 AM
>> >>
>> >> LISP boy is correct, and I brought this subject up about a 
>> year ago 
>> >> and Craig answered pretty definitively - try a search on 
>> >> "synchronization" in the archive:
>> >
>> >LISP Boy?  Do I get the power to warp men's minds using my 
>> LISPParens? 
>> >Can I self-modify code in a single bound?  Does this make me the 
>> >sidekick of SchemeMan?
>> >
>> >Holy PDL Stack Overflow, SchemeMan!
>> >
>> >
>> >
>> >--
>> >To unsubscribe, e-mail:
>> 
>> For additional commands, e-mail: 
>>  [EMAIL PROTECTED]>
>> 
>> 
>> --
>> To 
>> unsubscribe, e-mail: 
>> 
>> For additional commands, e-mail: 
>>  [EMAIL PROTECTED]>
>> 
>> 
>> --
>> To 
>> unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>>  [EMAIL PROTECTED]>
>> 
>
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




Re: [OT] Obscure Computer Languages

2003-01-28 Thread jbaker
Wow.  That takes me back.   I still miss Algol (before they messed it up) 
and Simula.  The PDP assemblers were awfully pretty.

Joe Baker
Director of Internet Communications
Amnesty International USA
600 Pennsylvania Ave SE 5th Floor
Washington, DC 20003
202-544-0200 x285
http://www.amnestyusa.org
[EMAIL PROTECTED]




"James Turner" <[EMAIL PROTECTED]>
01/28/03 11:41 AM
Please respond to "Struts Users Mailing List"
 
To: "'Struts Users Mailing List'" 
<[EMAIL PROTECTED]>
cc: 
Subject:[OT] Obscure Computer Languages


> From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, January 28, 2003 11:24 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] Synchronizing Session Objects
> 
> 
> LISP - Lots of InSignifigant Parens
> 
> Prolog is where it's at :-)

Don't go there man...

Not only was I once fluent in Prolog (How to shoot yourself in the foot
with Prolog: You look down and see a hole in your foot, and from that
infer that the gun was fired), but I have at one time or another
programmed in APL (it's all Greek to me), PL/1, OS/VS1 on a 370, and
SNOBOL (with it's compiler SPITBOL), not to mention such museum pieces
as WATFOR, Fortran II, and PDP-8 assembler.

I get stranger things than Prolog in my breakfast serial.

James Turner
Owner & Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author: 
MySQL & JSP Web Applications: 
Data Driven Programming Using Tomcat and MySQL
ISBN 0672323095; Sams, 2002

Co-Author: 
Struts Kick Start
ISBN 0672324725; Sams, 2002

Forthcoming:
JavaServer Faces Kick Start 
Sams, Fall 2003


> -Original Message-
> From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, January 28, 2003 11:24 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] Synchronizing Session Objects
> 
> 
> LISP - Lots of InSignifigant Parens
> 
> Prolog is where it's at :-)
> 
> 
> - Original Message -
> From: "Chappell, Simon P" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 28, 2003 10:16 AM
> Subject: RE: [OT] Synchronizing Session Objects
> 
> 
> Not something to admit in public!
> 
> Actually, I really enjoyed learning POP-11 back at 
> university. Ahh, those were the days.
> 
> >-Original Message-
> >From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, January 28, 2003 10:14 AM
> >To: 'Struts Users Mailing List'
> >Subject: RE: [OT] Synchronizing Session Objects
> >
> >
> >I actually taught myself Scheme (the MIT version) on the 
> Macintosh in 
> >the early 90s  :-)
> >
> >-Original Message-
> >From: James Turner [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, January 28, 2003 10:35 AM
> >>
> >> LISP boy is correct, and I brought this subject up about a 
> year ago 
> >> and Craig answered pretty definitively - try a search on 
> >> "synchronization" in the archive:
> >
> >LISP Boy?  Do I get the power to warp men's minds using my 
> LISPParens? 
> >Can I self-modify code in a single bound?  Does this make me the 
> >sidekick of SchemeMan?
> >
> >Holy PDL Stack Overflow, SchemeMan!
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> 
> For additional commands, e-mail: 
>  [EMAIL PROTECTED]>
> 
> 
> --
> To 
> unsubscribe, e-mail: 
> 
> For additional commands, e-mail: 
>  [EMAIL PROTECTED]>
> 
> 
> --
> To 
> unsubscribe, e-mail: 
> 
> For additional commands, e-mail: 
>  [EMAIL PROTECTED]>
> 



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





JavaScript / struts submit problems

2003-01-28 Thread tbachta

Hello All,

I am having a little problem that hopefully someone can help me with.  I
have a form that has a hidden field in it, I am not populating this hidden
field on the page load but rather I am populating the value in a JavaScript
function and then using the form.submit() in JavaScript to submit the form.
When I try pulling the value for the hidden field out in my Action class I
get either a null pointer exception or a zero length string depending on
how I try to get the data.  I have verified that there is data populating
in the hidden fields value.  Here is the code below, if anyone can help me
in finding out how to get the value I would be very grateful.

/jsp

<%@ page language ="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>


Report Generator










  

  

  

  

 
  
 
 


  

  

. and so on.

javascript


  function getHiddenValue(form)  // added for
testing
  {
alert(form.XMLQueryString.value);
  }
  function runClick(form)
  {
var strQueryXML = new String();



if(form.selectedColumns.options.length > 0)
{
  strQueryXML = getQueryXML(form);

  form.XMLQueryString.value = strQueryXML;
  alert(strQueryXML); // added for testing
  alert(form.XMLQueryString.value);   // added for testing
  form.submit();


}
else
{
  alert("Please select at least one column.");
  objSelCols.focus();
}


  }
Action Class/

public class GeneratorAction  extends Action
{
  private ActionErrors errors = new ActionErrors();

  public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
  throws IOException, ServletException
  {
HttpSession session = request.getSession();
String sXML = new String();
String target = new String("failure");

if(form != null)
{
  errors.clear();
  GeneratorForm gForm = (GeneratorForm)form;
  try
  {
//sXML = gForm.getXMLQueryString(); //0 length
string
sXML = request.getAttribute("XMLQueryString").toString();
//null pointer
//sXML = session.getAttribute("XMLQueryString").toString();
//null pointer
System.out.println("XML String ="+sXML.toString());
target = new String("success");
  }
  catch(Exception e)
  {
System.out.println("Error Getting Attributes "+e);
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError
("errors.dbsubmiterror",sXML));
target = new String("failure");
saveErrors(request,errors);
  }
}
return(mapping.findForward(target));
  }
}

Thanks

Tim Bachta
Information Technology
MC 48





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




RE: if-then-else condition in validation xml

2003-01-28 Thread Brandon Goodin
use a custom/pluggin validator.

http://jakarta.apache.org/struts/userGuide/dev_validator.html#plugs

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws
 

-Original Message-
From: Dinesh Samson J [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 9:37 AM
To: [EMAIL PROTECTED]
Subject: if-then-else condition in validation xml


Greetings,

Can we have something like an if-then-else block in validation.xml?

What I am looking for is that, 

a. if nothing is entered in field A, then do not validate field B and field C
b. if something is entered in field A, then check for (depends="required") for field B 
and field C

can this be done in validation.xml ?


Thanx in Advance
 
Dinesh Samson J



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



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




ProcessAction - scaffold package

2003-01-28 Thread Senthivel U S

Greetings,

Actually in the failure of one action mapping , i am forwarding to
another action mapping which is not getting executed. (i.e if any
sqlexception from component, it has to execute another action)

Regards,
Sen

Greetings,

We are using ProcessAction and Access Layer. Our Access Layer Component
throws SQLException. If exception is thrown , it should be caught by
BaseAction but that is not happening in my case. 

It gives 

java.sql.SQLException: Could not process (--our error message from
stored procedure)
<>

in tomcat log.

Any suggestions is highly appreciated.

I am attaching herewith the tomcat stack trace. 

Regards,
Sen.

org.apache.commons.scaffold.lang.ResourceException: ResourceException: A require
d resource is not available.
at M2AAccessBase.findCollection(M2AAccessBase.java:110)
at BeneficiaryTestBean.execute(BeneficiaryTestBean.java:29)

at M2AProcessBeanBase.execute(M2AProcessBeanBase.java:232)
at M2AProcessBridgeAction.executeLogic(M2AProcessBridgeAc
tion.java:724)
at org.apache.struts.scaffold.BaseHelperAction.executeLogic(Unknown Sour
ce)
at org.apache.struts.scaffold.BaseAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
2)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperVal
ve.java:221)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:533)
at java.lang.Thread.run(Thread.java:484)
Caused by:
java.sql.SQLException: Could not process
<>

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


[OT] Obscure Computer Languages

2003-01-28 Thread James Turner
> From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, January 28, 2003 11:24 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] Synchronizing Session Objects
> 
> 
> LISP - Lots of InSignifigant Parens
> 
> Prolog is where it's at :-)

Don't go there man...

Not only was I once fluent in Prolog (How to shoot yourself in the foot
with Prolog: You look down and see a hole in your foot, and from that
infer that the gun was fired), but I have at one time or another
programmed in APL (it's all Greek to me), PL/1, OS/VS1 on a 370, and
SNOBOL (with it's compiler SPITBOL), not to mention such museum pieces
as WATFOR, Fortran II, and PDP-8 assembler.

I get stranger things than Prolog in my breakfast serial.

James Turner
Owner & Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author: 
MySQL & JSP Web Applications: 
Data Driven Programming Using Tomcat and MySQL
ISBN 0672323095; Sams, 2002

Co-Author: 
Struts Kick Start
ISBN 0672324725; Sams, 2002

Forthcoming:
JavaServer Faces Kick Start 
Sams, Fall 2003


> -Original Message-
> From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, January 28, 2003 11:24 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] Synchronizing Session Objects
> 
> 
> LISP - Lots of InSignifigant Parens
> 
> Prolog is where it's at :-)
> 
> 
> - Original Message -
> From: "Chappell, Simon P" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 28, 2003 10:16 AM
> Subject: RE: [OT] Synchronizing Session Objects
> 
> 
> Not something to admit in public!
> 
> Actually, I really enjoyed learning POP-11 back at 
> university. Ahh, those were the days.
> 
> >-Original Message-
> >From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, January 28, 2003 10:14 AM
> >To: 'Struts Users Mailing List'
> >Subject: RE: [OT] Synchronizing Session Objects
> >
> >
> >I actually taught myself Scheme (the MIT version) on the 
> Macintosh in 
> >the early 90s  :-)
> >
> >-Original Message-
> >From: James Turner [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, January 28, 2003 10:35 AM
> >>
> >> LISP boy is correct, and I brought this subject up about a 
> year ago 
> >> and Craig answered pretty definitively - try a search on 
> >> "synchronization" in the archive:
> >
> >LISP Boy?  Do I get the power to warp men's minds using my 
> LISPParens? 
> >Can I self-modify code in a single bound?  Does this make me the 
> >sidekick of SchemeMan?
> >
> >Holy PDL Stack Overflow, SchemeMan!
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> 
> For additional commands, e-mail: 
>  [EMAIL PROTECTED]>
> 
> 
> --
> To 
> unsubscribe, e-mail: 
> 
> For additional commands, e-mail: 
>  [EMAIL PROTECTED]>
> 
> 
> --
> To 
> unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
>  [EMAIL PROTECTED]>
> 



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




if-then-else condition in validation xml

2003-01-28 Thread Dinesh Samson J
Greetings,

Can we have something like an if-then-else block in validation.xml?

What I am looking for is that, 

a. if nothing is entered in field A, then do not validate field B and field C
b. if something is entered in field A, then check for (depends="required") for field B 
and field C

can this be done in validation.xml ?


Thanx in Advance
 
Dinesh Samson J



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




RE: [OT] Obscure Programming Languages

2003-01-28 Thread Mark Galbreath
Close:

http://www.paulgraham.com/jargon96.html

I have the hard copy of this book - it's great!

"POP-11?"

-Original Message-
From: Jacob J. Hookom [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 11:24 AM

LISP - Lots of InSignifigant Parens

Prolog is where it's at :-)

- Original Message -
From: "Chappell, Simon P" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>

Not something to admit in public!

Actually, I really enjoyed learning POP-11 back at university. Ahh, those
were the days.

>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 10:14 AM
>
>I actually taught myself Scheme (the MIT version) on the Macintosh in 
>the early 90s  :-)
>
>-Original Message-
>From: James Turner [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 10:35 AM
>>
>> LISP boy is correct, and I brought this subject up about a year ago 
>> and Craig answered pretty definitively - try a search on 
>> "synchronization" in the archive:
>
>LISP Boy?  Do I get the power to warp men's minds using my LISPParens? 
>Can I self-modify code in a single bound?  Does this make me the 
>sidekick of SchemeMan?
>
>Holy PDL Stack Overflow, SchemeMan!



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




Re: [OT] Synchronizing Session Objects

2003-01-28 Thread Jacob J. Hookom
LISP - Lots of InSignifigant Parens

Prolog is where it's at :-)


- Original Message -
From: "Chappell, Simon P" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 10:16 AM
Subject: RE: [OT] Synchronizing Session Objects


Not something to admit in public!

Actually, I really enjoyed learning POP-11 back at university. Ahh, those
were the days.

>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 10:14 AM
>To: 'Struts Users Mailing List'
>Subject: RE: [OT] Synchronizing Session Objects
>
>
>I actually taught myself Scheme (the MIT version) on the
>Macintosh in the
>early 90s  :-)
>
>-Original Message-
>From: James Turner [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 10:35 AM
>>
>> LISP boy is correct, and I brought this subject up about a
>> year ago and Craig answered pretty definitively - try a
>> search on "synchronization" in the archive:
>
>LISP Boy?  Do I get the power to warp men's minds using my
>LISPParens? Can I
>self-modify code in a single bound?  Does this make me the sidekick of
>SchemeMan?
>
>Holy PDL Stack Overflow, SchemeMan!
>
>
>
>--
>To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Cannot find global ActionForward for

2003-01-28 Thread jmattucci

no its not a typo



   
  
  Jarnot Voytek Contr  
  
  AU HQ/SC   To:   "'Struts Users Mailing 
List'" 
   
  
  ELL.AF.MIL>cc:   
  
 Subject:  RE: Cannot find global 
ActionForward for  
  01/28/2003 11:14 AM  
  
  Please respond to
  
  "Struts Users
  
  Mailing List"
  
   
  
   
  




the path in  doesn't match (case) the path in  - is
that a typo, or the source of your problem?

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 28, 2003 10:06 AM
> To: Struts Users Mailing List
> Subject: Cannot find global ActionForward for
>
>
>
> Im new to struts. Bought several books and now starting to
> put a simple
> program
> together. My web app simply contains one page and im trying
> to register the
> number of hits. Im getting the following error. I cant figure
> out why.If
> you require more info please let me know. Thank you all for your time
>
>
> org.apache.jasper.JasperException: Cannot find global
> ActionForward for
> name welcome
>  at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:248)
>
>
>  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:289)
>
> --
> --
> <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
> 
>
> <%--
>
> Redirect default requests to Welcome action.
>
> --%>
> --
> ---
>
> 
>
>"-//Apache Software Foundation//DTD Struts
> Configuration 1.0//EN"
>
> "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
>
> 
> 
>
> 
>  name="welcome"
> path="/Welcome.do"/>
> 
>
> 
>
> 
> path="/welcome"
> type="binary.solutions.BinaryAction"
>
>  
> 
>
> 
>
> **
> **
> *
>
> This message is intended for the use of the individual or
> entity to which
> it is addressed and may contain information that is confidential and
> privileged and exempt from disclosure under applicable law.
> If the reader
> of this message is not the intended recipient, you are hereby
> notified that
> any dissemination, distribution, or copying of this communication is
> strictly prohibited.  If you have received this communication
> in error,
> please contact the sender immediately and delete it from your system.
> Thank you
> **
> **
> *
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>

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




*

This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you

RE: Java Pet Store rewritten with Flash Remoting Front End

2003-01-28 Thread Haseltine, Celeste
Micael, 

My company does not use Flash remoting at this time, although we do use JRUN
as our application server for our internal J2EE applications.  The owner of
this company cannot afford the costs of BEA Weblogic or IBM Websphere, and I
prefer NOT to try to run Tomcat on a Windows server(unfortunately, I cannot
convince the owner to move over to Linux for the web servers).  The web site
I listed in my earlier email is Macromedia's site, and there are two
versions of the Java Pet Store (renamed Pet Market) you can view.  One is
for a screen resolution of 800x600, and the other is for 1024x768.  Select
whichever resolution you are interested in, and that will open a second
browser window with the application running inside of it.  The selection
option is just below the jpeg for the PetMarket application.

The URL again is 

http://www.macromedia.com/desdev/mx/blueprint/


Also, do NOT get confused between traditional Flash movie clips, and Flash
remoting.  Flash remoting has a rich GUI that can replace HTML in your
jsp's, AND requires that the Flash remoting service be installed on the
server machine.  Traditional Flash only requires your user to download the
Flash component on his/her machine to run your Flash movie clip.  Flash
remoting requires BOTH the flash component on your user's machine, AND the
flash remoting service installed on the server.  JRUN and ColdFusion MX both
come with Flash remoting service, and I believe that the Flash remoting
service can either be purchased or obtained for free, to run with any other
J2EE application server.

Celeste 


-Original Message-
From: Micael [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 9:25 PM
To: Struts Users Mailing List
Subject: Re: Java Pet Store rewritten with Flash Remoting Front End


I went to your website, celeste, and could not see the flash component you 
are talking about.  Have I got it mixed up?

At 03:34 PM 1/27/03 -0500, you wrote:
>But wouldn't the world be better off if someone shut JRun down? Dear God
>will some one stop it.
>
>BAL
>- Original Message -
>From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Sent: Monday, January 27, 2003 3:16 PM
>Subject: Java Pet Store rewritten with Flash Remoting Front End
>
>
> > For all those who are considering Flash remoting as another GUI
>alternative
> > to HTML, here is the URL to the Java pet store that Macromedia reworked
>with
> > a Flash remoting front end.  You can download the code and run it on
your
> > local machine also, if you are interested.  The second link is for FAQ
> >
> > http://www.macromedia.com/desdev/mx/blueprint/
> >
> >
>http://www.macromedia.com/desdev/mx/blueprint/articles/faq.html#pm_accessib
l
> > e
> >
> > We been using Macromedia JRUN server as our application server for the
>past
> > two years, and have used some of the macromedia products in our shop,
>along
> > with Eclipse 2.02, for our JSP, Servlet, EJB development.  I did look at
> > using Flash remoting for our current project when it came out a year
ago,
> > but decided to give it some time in the market place before actually
using
> > it.  My main concern with Flash remoting at that time was how long it
>would
> > take for someone on a modem (vs a T1 or cable modem) to navigate and use
>our
> > web site. If anyone does actually use it in their apps instead of HTML,
I
> > would be interested in knowing how it worked out for both you and your
> > customers.
> >
> > One last note.  It is rumored in the DFW, TX area that Microsoft is
> > considering a hostile takeover of Macromedia, and that if this does
>happen,
> > that Flash remoting would be "bundled" with .NET, and would not continue
>to
> > support J2EE applications.  Since we use JRUN as our application server,
> > I've been keeping my ear to the ground regarding these rumors, as JRUN
is
> > another one of the Macromedia suite of products that MS would probably
>kill,
> > if a hostile takeover was successful.  That is something that probably
> > should be taken into consideration if you choose to utilize this
>technology
> > in any new application.  I don't know about any of the rest of you, but
I
> > have been burned by using proprietary code in previous apps, and been
left
> > holding the bag and no source code,  when the company went bankrupt.  I
>now
> > utilize and advocate open source code whenever possible.
> >
> > Celeste
> >
> >
> >
> > -Original Message-
> > From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 27, 2003 1:09 PM
> > To: Struts Users Mailing List
> > Subject: Re: Flash+Struts how?
> >
> >
> > Mark Galbreath wrote:
> > > Only a weenie programmer would use Flash with Struts...]
> >
> > Nice attitude. I hope I misunderstood that reply...
> >
> > Anyway, to answer the original inquiry:
> > A part of the UI of our app is a flash movie, and we chose to integrate
> > it using XML. The Flash sends requests to our struts actions (they loo

Re: AW: Transforming a String to valid HTML encoding

2003-01-28 Thread Affan Qureshi
Hi,

I was facing the same problem in displaying the copyright and trademark
symbols. Did you find some solution for this? I shall be greatfeul if you
can share you experience with me.

What I did was I created a utility class which transforms special characters
into their HTML encodings and also decodes the same. But Struts transforms
them again e.g if I encode ˱ for one symbol Struts will encode the '&'
to & and hence my effort to encode will not work because my symbol would
become ˱. Now either I want to know if I can turn the
ResponseUtils.filter OFF or I can have it filter for my characters too (it
currently only filters 4 characters).

BTW I cam not talking about URL encoding here. I am talking about HTML
encoding for my forms and otherwise.

Thanks,

Affan

- Original Message -
From: "Hirschmann, Bernhard" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 2:16 PM
Subject: AW: AW: Transforming a String to valid HTML encoding



Thank you for your help, Craig.

I don't know if you got me completely right.. or maybe I didn't understand.

What I want to do is to transform the regional characters of a String like
"ü" into "ü"

The reason is, that I don't want to use utf-8, but ISO-8859-1 for my html
pages. And if a "ü" appears in the ISO-8859-1 characterset in the browser,
it is not displayed correctly in a browser using the english locale. But it
is displayed correctly if "ü" is used. (what is the name for this
format?)

As far as I could learn, java.net.URLEncoder transforms into
"application/x-www-form-urlencoded MIME format", used for the URLs. But this
format is not for the body of a html page, right?


Regards,
Bernhard


-Ursprüngliche Nachricht-
Von: Craig R. McClanahan
Gesendet: Dienstag, 14. Januar 2003 19:06
An: Struts Users Mailing List
Betreff: Re: AW: Transforming a String to valid HTML encoding

On Tue, 14 Jan 2003, Hirschmann, Bernhard wrote:

> Date: Tue, 14 Jan 2003 17:31:03 +0100
> From: "Hirschmann, Bernhard" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: AW: Transforming a String to valid HTML encoding
>
>
> I wonder if this problem is too easy or too hard - may please somebody
> comment this?
>

ResponseUtils is only worried about filtering the characters that could
cause security problems -- it is not designed to be a general purpose URL
encoder.  For that, check out the java.net.URLEncoder class.

> Craig?
>
> Thank you very much

Craig


>
>
> - original message -
>
> I still have the problem to transform a String containing national special
> characters to the appropriate HTML encoding.
>
> i.e.: "schön & reich" --> "schön & reich"
>
> The class org.apache.struts.util.ResponseUtils only transforms the 4
> characters <, >, & and " into their html representative.
>
> Is there another transformer around?
>
> Any hints highly appreciated.
>
> Regards,
> Bernhard
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: [OT] Synchronizing Session Objects

2003-01-28 Thread Chappell, Simon P
Not something to admit in public!

Actually, I really enjoyed learning POP-11 back at university. Ahh, those were the 
days.

>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 28, 2003 10:14 AM
>To: 'Struts Users Mailing List'
>Subject: RE: [OT] Synchronizing Session Objects
>
>
>I actually taught myself Scheme (the MIT version) on the 
>Macintosh in the
>early 90s  :-)
>
>-Original Message-
>From: James Turner [mailto:[EMAIL PROTECTED]] 
>Sent: Tuesday, January 28, 2003 10:35 AM
>> 
>> LISP boy is correct, and I brought this subject up about a
>> year ago and Craig answered pretty definitively - try a 
>> search on "synchronization" in the archive:
>
>LISP Boy?  Do I get the power to warp men's minds using my 
>LISPParens? Can I
>self-modify code in a single bound?  Does this make me the sidekick of
>SchemeMan?
>
>Holy PDL Stack Overflow, SchemeMan!
>
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




  1   2   >