Which methodology is better?

2004-12-28 Thread Manisha Sathe
I am very used to HTML/JavaScript. Normally i do all validations on clientside 
through JavaScript.
 
i just started Struts framework and i understand that "DynaActionForm" is to 
have validation on cliend side. (till now using ActionForm only).
 
Normally what is the practice ? Which way is better ?
 
regards
Manisha
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Validate only if existing

2004-12-28 Thread Erik Weber
The idea of requiredif is to require a value for a field depending on 
whether there is/isn't a value for another *field*. I'm not sure if you 
can use it to hinge on other (non-field) values.

For example, if a user lives in an apartment, you want him to indicate 
his apartment number. You have a checkbox field "isApartmentDweller" and 
with it a text field "apartmentNo". If the isApartmentDweller field 
value is true (checked), you want to require a value for apartmentNo. If 
the isApartmentDweller field value is false or null (unchecked), you 
don't want to require a value for apartmentNo. So you use requiredIf on 
apartmentNo to test for the presence of a value ("true") on the 
isApartmentDweller field.

It appears to me that you are trying a hack here (an unintended use of 
requiredif), unless I'm not understanding you (sorry if I'm not). I'm 
not sure if you will have any success.

But, I think there are other ways to solve your problem, assuming that 
you know if the DTO reference has a value at page rendering time.

You could make the field simply required, but only render the field if 
the DTO has a value. Then you could set the action URL, using a 
variable, differently, depending on whether this value is present, at 
page rendering time. The different action URLs are associated with 
different (but similar) form beans -- each with its own set of 
validation rules. One set of validation rules requires the field, the 
other doesn't. This solution is elegant (especially for reusing the same 
JSP for adds and updates where fields vary somewhat between add and 
update), but obviously requires a little work if you aren't already 
doing something like this.

Alternatively (I haven't tried this), you could set the value of a 
hidden field according to whether the DTO has a value at page rendering 
time. Then your requiredif rule could hinge on the value of the hidden 
field.

Hope that helps,
Erik

Daniel Lipofsky wrote:
I have a field I want to require only if the bean
it exists inside exists (is not null).
I cannot use validwhen because I am using struts 1.1.
I tried to use requiredif like this




field[0]
chargeTypeDTO


fieldTest[0]
NOTNULL



but I get
org.apache.commons.beanutils.NestedNullException:
Null property value for 'chargeTypeDTO'
I want to require chargeTypeDTO.name if and only if
chargeTypeDTO is not null.  Can I do this in struts 1.1?
Thanks,
Dan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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


RE: How to get the bean value inside JSP

2004-12-28 Thread Manisha Sathe
Thanks Daniel,
 
I had a look at JSTL and seems interesting - tried some samples. I think it is 
more straightforward than logic bean.
 
Will try it out,
 
It's good i am asking the queries in this forum, first of all i get answer and 
moreover i get direction to proceed.
 
Regards
Manisha
 

Daniel Lipofsky <[EMAIL PROTECTED]> wrote:
You should probably use bean:define instead of bean:parameter.
Even better learn JSTL and use c:set, c:if, and c:forEach to facilitate
you.
You will find JSTL has better versions of
everything in the struts "logic" and "bean" taglibs.

I don't think there is any readymade tags for grouping.
But if you datastructure reflected the grouping
(one top level bean for each leaguename with an
array of matchdetails inside) you could use nested
c:forEach tags (or logic:iterate tags) and maybe
get what you want. I would nest a table for
matchdetails inside each row for a leaguename
and use the nested loop tags to output it.
- Dan


> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 28, 2004 6:10 PM
> To: user@struts.apache.org
> Subject: How to get the bean value inside JSP
> 
> I am having an action handler, which pulls data from 
> database, puts inside data bean. From result set i create 
> array of databeans. This array of databeans i am putting back on JSP.
> 
> Inside my JSP i am looping thr
> --
> 
> > property="leaguename"/>  > "databean" property="matchdetails"/>

> 
> -
> 
> Above works fine. But now i need to perform some action 
> depending on leaguename. Each leaguename can have many 
> records of matchdetails. How i want to put is 
> 
> leaguename1 1) match details1
> 2)match details2
> ..
> 
> leaguename2 1) match details3
> 2)match details4
> 3)match details 5
> ..
> 
> Basically i do not want to repeat the leaguename tags. All my 
> records are in an order so i can check whether leaguename 
> changes - if yes display it else blank.
> 
> 1)i want to take the leaguename first into some variable. For 
> every loop iteration check with previous leaguename. 
> 
> I tried 
> 
> tried many combination such as leaguename, 
> databean.leaguename but not getting the value inside parameter.
> 
> 2)Btw is there any readymade tag which will faciliate the 
> grouping display?
> 
> 
> 
> Pls guide me
> 
> Thanks & regards
> Manisha


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



-
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.

RE: Error in "instantiate TagExtraInfo class"

2004-12-28 Thread mohan.radhakrishnan
 Hi,
This particular line 

"To use Struts, you must copy the .tld files that you require into your
WEB-INF directory, and copy struts.jar (and all of the commons-*.jar
files) into your WEB-INF/lib directory."

is not clear. Which .tld files ? Struts' .tld files are inside the
META-INF folder inside its JAR. This statement is true though because
the latest spec. can find them. Am I right ?

Mohan

-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 28, 2004 11:20 PM
To: Struts Users Mailing List
Subject: Re: Error in "instantiate TagExtraInfo class"

In addition to David's comments, this is what the Struts User Guide has
to say on the subject:

  http://struts.apache.org/userGuide/configuration.html#config_add

Craig


On Tue, 28 Dec 2004 12:33:56 -0500, David G. Friedman
<[EMAIL PROTECTED]> wrote:
> Manisha,
> 
> The application's /WEB-INF/lib directory is the preference for many of

> the Struts jars.  Unless you have only ONE Tomcat application using 
> Struts, putting Struts jars in any other place has been, if I recall 
> correctly.  I believe I read about reloading issues and possible 
> memory space conflicts issues if the Struts.jar (and some others) are 
> located in shared areas like Tomcat's common/lib or shared/lib 
> directories when more than one webapp uses Struts in that
container/Tomcat/Weblogic/etc.
> 
> Regards,
> David
> 
> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 28, 2004 1:04 AM
> To: Struts Users Mailing List
> Subject: RE: Error in "instantiate TagExtraInfo class"
> 
> Thanks David,
> 
> It worked, i put all jars inside Tomcat's /Common/lib directory and it

> worked. Btw, does this mean that automatically class path is set for 
> all jars which r inside /common/lib OR {yr application}/WEB-INF/lib - 
> which is having precedence ?
> 
> Thanks once again,
> 
> regards
> Manisha
> 
> "David G. Friedman" <[EMAIL PROTECTED]> wrote:
> Manisha,
> 
> I don't think setting the classpath with another framework will do the
job.
> You should still have the struts.jar in WEB-INF/classes because the 
> struts.jar should be copied into each webapp. Putting it in some
'global'
> place may cause errors, especially if multiple struts applications are

> running. Where is your struts.jar?
> 
> Regards,
> David
> 
> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 27, 2004 9:39 PM
> To: user@struts.apache.org
> Subject: Error in "instantiate TagExtraInfo class"
> 
> I am installing struts framework on another m/c. I copied all related 
> files
> + my application war file over there. Set class path for struts.jar. 
> + Now
> testing with one small program with struts.
> 
> ---
> 
> " rel="stylesheet"
> type="text/css">
> 
> Authorisation Form
> 
> --
> 
> But i am getting following error msgs
> 
> --
> org.apache.jasper.JasperException: Failed to load or instantiate 
> TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHa
> ndler
> .java:50)
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.ja
> va:37
> 8)
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.ja
> va:28
> 3)
> org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibrary
> InfoI
> mpl.java:422)
> org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoI
> mpl.j
> ava:248)
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.jav
> a:162)
> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418
> )
> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
> org.apache.jasper.compiler.Parser.parse(Parser.java:126)
> org.apache.jasper.compiler.ParserController.doParse(ParserController.j
> ava:2
> 20)
> org.apache.jasper.compiler.ParserController.parse(ParserController.jav
> a:101
> )
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:
> 511)
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:
> 274)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:29
> 2)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 
> root cause
> java.lang.ClassNotFoundException: 
> org.apache.struts.taglib.html.MessagesTei
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> er.ja
> va:1340)
> o

Displaying exceptions from declarative exception handling

2004-12-28 Thread Brandon Goodin
I am trying to display an exception caught by the Struts declarative
exception handling. I have tried to use the html:errors and
html;messages tags with no sucess. Does anyone have a sample they can
post on how to extract the exceptions that are being stored in the
ActionErrors?

Brandon

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



Struts versus Version versus MyEclipse I'm lost.

2004-12-28 Thread TedMitchell
I'm deturmined to learn and use Struts.  I'm confused when I attempt to
duplicate working examples in my application Eclipse flags them as errors.  I
lost a great deal of learning time on my first example where the ActionForm
called the "perform" versus the "execute" method.  I don't know if I'm fighting
yet again a version issue.  

In the struts-mailreader example that comes with Struts the index.jsp contains 2
lines. 

<%@ taglib uri="/tags/struts-logic" prefix="logic" %>


When I duplicate these in my application Eclipse complains with and "unexpected
action=..." Error.  The logic:redirect documentation seems to agree with Eclipse
that only a forward, href or a page attribute should follow a redirect.  

When I replace the "action" with a "forward" it fails to find the action.

So what am I missing?

Thanks


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



Re: Why download messages twice??

2004-12-28 Thread Frank W. Zammetti
I'm seeing the same thing actually, have been for over a week.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
James Mitchell wrote:
No, it's just you.

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - From: "Jorge Martín Cuervo" 
<[EMAIL PROTECTED]>
To: 
Sent: Tuesday, December 28, 2004 4:54 PM
Subject: Why download messages twice??


I don`t know why the messages of the list comes twice.
Does it happens to anyone?
---
Jorge Martin Cuervo
[EMAIL PROTECTED]
+34 660 026 384
---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



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


Re: Why download messages twice??

2004-12-28 Thread James Mitchell
No, it's just you.

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "Jorge Martín Cuervo" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, December 28, 2004 4:54 PM
Subject: Why download messages twice??


I don`t know why the messages of the list comes twice.
Does it happens to anyone?
---
Jorge Martin Cuervo
[EMAIL PROTECTED]
+34 660 026 384
---
-
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: Why download messages twice??

2004-12-28 Thread James Mitchell
No, it's just you.

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "Jorge Martín Cuervo" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, December 28, 2004 4:54 PM
Subject: Why download messages twice??


I don`t know why the messages of the list comes twice.
Does it happens to anyone?
---
Jorge Martin Cuervo
[EMAIL PROTECTED]
+34 660 026 384
---
-
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]


Validate only if existing

2004-12-28 Thread Daniel Lipofsky
I have a field I want to require only if the bean
it exists inside exists (is not null).

I cannot use validwhen because I am using struts 1.1.

I tried to use requiredif like this





field[0]
chargeTypeDTO


fieldTest[0]
NOTNULL




but I get

org.apache.commons.beanutils.NestedNullException:
Null property value for 'chargeTypeDTO'

I want to require chargeTypeDTO.name if and only if
chargeTypeDTO is not null.  Can I do this in struts 1.1?
Thanks,
Dan


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



RE: How to get the bean value inside JSP

2004-12-28 Thread Daniel Lipofsky
You should probably use bean:define instead of bean:parameter.
Even better learn JSTL and use c:set, c:if, and c:forEach to facilitate
you.
You will find JSTL has better versions of
everything in the struts "logic" and "bean" taglibs.

I don't think there is any readymade tags for grouping.
But if you datastructure reflected the grouping
(one top level bean for each leaguename with an
array of matchdetails inside) you could use nested
c:forEach tags (or logic:iterate tags) and maybe
get what you want.  I would nest a table for
matchdetails inside each row for a leaguename
and use the nested loop tags to output it.
- Dan


> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 28, 2004 6:10 PM
> To: user@struts.apache.org
> Subject: How to get the bean value inside JSP
> 
> I am having an action handler, which pulls data from 
> database, puts inside data bean. From result set i create 
> array of databeans. This array of databeans i am putting back on JSP.
>  
> Inside my JSP i am looping thr
> --
>   
>property="leaguename"/>   "databean" property="matchdetails"/>
> 
> -
>  
> Above works fine. But now i need to perform some action 
> depending on leaguename. Each leaguename can have many 
> records of matchdetails. How i want to put is 
>  
> leaguename1  1) match details1
>  2)match details2
>..
>  
> leaguename2 1) match details3
> 2)match details4
> 3)match details 5
>..
>  
> Basically i do not want to repeat the leaguename tags. All my 
> records are in an order so i can check whether leaguename 
> changes - if yes display it else blank.
>  
> 1)i want to take the leaguename first into some variable. For 
> every loop iteration check with previous leaguename. 
>  
> I tried 
>  
> tried many combination such as leaguename, 
> databean.leaguename  but not getting the value inside parameter.
>  
> 2)Btw is there any readymade tag which will faciliate the 
> grouping display?
> 
>  
>  
> Pls guide me
>  
> Thanks & regards
> Manisha


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



How to get the bean value inside JSP

2004-12-28 Thread Manisha Sathe
I am having an action handler, which pulls data from database, puts inside data 
bean. From result set i create array of databeans. This array of databeans i am 
putting back on JSP.
 
Inside my JSP i am looping thr
--
  
    

-
 
Above works fine. But now i need to perform some action depending on 
leaguename. Each leaguename can have many records of matchdetails. How i want 
to put is 
 
leaguename1  1) match details1
 2)match details2
   ..
 
leaguename2 1) match details3
2)match details4
3)match details 5
   ..
 
Basically i do not want to repeat the leaguename tags. All my records are in an 
order so i can check whether leaguename changes - if yes display it else blank.
 
1)i want to take the leaguename first into some variable. For every loop 
iteration check with previous leaguename. 
 
I tried 
 
tried many combination such as leaguename, databean.leaguename  but not getting 
the value inside parameter.
 
2)Btw is there any readymade tag which will faciliate the grouping display?

 
 
Pls guide me
 
Thanks & regards
Manisha
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 

 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Why download messages twice??

2004-12-28 Thread Jorge Martín Cuervo

I don`t know why the messages of the list comes twice.


Does it happens to anyone?

---
Jorge Martin Cuervo
 
[EMAIL PROTECTED]
+34 660 026 384
---


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



RE: [OT] I need to configure logs on my virtual hosting

2004-12-28 Thread Durham David R Jr Contr 805 CSPTS/SCE
> I need to configure logs on my virtual hosting. 
> How can I do it? Till 

Since this is OT, first a few words about "till" from Dictionary.com:

Usage Note: Till and until are generally interchangeable in both writing
and speech, though as the first word in a sentence until is usually
preferred: Until you get that paper written, don't even think about
going to the movies. *Till is actually the older word, with until having
been formed by the addition to it of the prefix un-, meaning "up to." In
the 18th century the spelling 'till became fashionable, as if till were
a shortened form of until. Although 'till is now nonstandard, 'til is
sometimes used in this way and is considered acceptable, though it is
etymologically incorrect.


> now logs are created at global logs directory to which I 
> don't have access. I need logs in my webapps directory.

Uh, what are you using for logging?  Presumably you're talking about
Struts' logs, so you're going to be dealing with the Commons-Logging
package.


- Dave

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



Getting applicationResources.properties keys

2004-12-28 Thread Jorge Martín Cuervo
Hello to all,

I've start working with jasperReports with struts, and i want to externalize
the labels to use in multilanguage environment.

I use a file applicationResources.properties (with the tag message-resources
in struts-config.xml) to the jsp labels without problems, but in my report
action i've to white java source like this:

MessageResources resources = getResources(request);
/*
 * params 4 jasperReports
 */
Map params = new HashMap(); 
params.put("L_TITLE",
resources.getMessage("label.report.xx.l_title"));
params.put("L_NAME",resources.getMessage("label.report.xx.l_name"));
params.put("L_SURNAME",
resources.getMessage("label.report.xx.l_surname"));
params.put("L_ADDRESS",
resources.getMessage("label.report.xx.l_address"));
...

And so on

I want to read the keys of the resources and match then with the prefix
"label.report.xx." to automate the process and don't have to do the same
thind twice (in action code & in applicationResources.properties).

Thanx for all!!

PD: I use struts 1.1

---
Jorge Martin Cuervo
 
[EMAIL PROTECTED]
+34 660 026 384
---


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



Can we get API's over on JSourcery?

2004-12-28 Thread David G. Friedman
Lately, I've found myself (somewhat) often skimming Struts JavaDocs AND the
SVN source code.  I just read about a project called JSourcery that has some
Open Sourced projects where the API had links next to each class name to
source code.  Can we easily do this on the Struts site too?  It could be
VERY useful.  To see what I mean, see http://www.jsourcery.com.  It even has
a Sun 1.4.2 based JDK APIdocs and source listed.

Just imagine the reference power if it had the current version of Struts
linked with source code, PLUS a link to previous versions.  It would be a
one-stop Struts reference shop.

-David, a newly converted Struts JavaDoc and Struts SVN addict


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



Re: Can we create group in Yahoo/MSN messenger to help those who need fast help

2004-12-28 Thread klute
My friend started this a while ago:

http://irc-logs.org/

it could be the solution to what's missing here: a
searchable irc logs for struts help

james

--- Don Brown <[EMAIL PROTECTED]> wrote:

> While I agree with everything James said, I do find
> use in IRC as
> sometimes, when working on a new Struts feature, I
> find it invaluable
> to get quick feedback from folks I know in the
> channel.  I could use
> dev or user, but then I'd have to sit around for
> days waiting for
> responses.
> 
> The IRC channel I and several other Struts folks
> hang out on is on
> Freenode - irc.freenode.net - and the channel is
> #struts  Feel free to
> stop by.
> 
> Don
> 
> 
> On Tue, 28 Dec 2004 08:51:00 -0700, Jim Barrows
> <[EMAIL PROTECTED]> wrote:
> > How would that be any faster then here?  Are you
> going to pay people to hang out and wait for a
> question?
> > 
> > If you really need fast help either pay for it
> or get really good at going through the source code.
> > 
> > 
> > > -Original Message-
> > > From: Amit Gupta
> [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, December 28, 2004 12:24 AM
> > > To: Struts Users Mailing List
> > > Subject: Can we create group in Yahoo/MSN
> messenger to help those who
> > > need fast help
> > >
> > >
> > > Can we create group in Yahoo/MSN messenger to
> help those who
> > > need fast help?
> > >
> > >
> > >
> > > Amit Gupta
> > >
> > > Mobile: 91-9818052171
> > >
> > > Yahoo IM: amitguptainn
> > >
> > > MSN IM : amitguptainn
> > >
> > >
> > >
> > >
> > 
> >
>
-
> > 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!? 
Jazz up your holiday email with celebrity designs. Learn more. 
http://celebrity.mail.yahoo.com

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



Re: Error in "instantiate TagExtraInfo class"

2004-12-28 Thread Craig McClanahan
In addition to David's comments, this is what the Struts User Guide
has to say on the subject:

  http://struts.apache.org/userGuide/configuration.html#config_add

Craig


On Tue, 28 Dec 2004 12:33:56 -0500, David G. Friedman
<[EMAIL PROTECTED]> wrote:
> Manisha,
> 
> The application's /WEB-INF/lib directory is the preference for many of the
> Struts jars.  Unless you have only ONE Tomcat application using Struts,
> putting Struts jars in any other place has been, if I recall correctly.  I
> believe I read about reloading issues and possible memory space conflicts
> issues if the Struts.jar (and some others) are located in shared areas like
> Tomcat's common/lib or shared/lib directories when more than one webapp uses
> Struts in that container/Tomcat/Weblogic/etc.
> 
> Regards,
> David
> 
> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 28, 2004 1:04 AM
> To: Struts Users Mailing List
> Subject: RE: Error in "instantiate TagExtraInfo class"
> 
> Thanks David,
> 
> It worked, i put all jars inside Tomcat's /Common/lib directory and it
> worked. Btw, does this mean that automatically class path is set for all
> jars which r inside /common/lib OR
> {yr application}/WEB-INF/lib - which is having precedence ?
> 
> Thanks once again,
> 
> regards
> Manisha
> 
> "David G. Friedman" <[EMAIL PROTECTED]> wrote:
> Manisha,
> 
> I don't think setting the classpath with another framework will do the job.
> You should still have the struts.jar in WEB-INF/classes because the
> struts.jar should be copied into each webapp. Putting it in some 'global'
> place may cause errors, especially if multiple struts applications are
> running. Where is your struts.jar?
> 
> Regards,
> David
> 
> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 27, 2004 9:39 PM
> To: user@struts.apache.org
> Subject: Error in "instantiate TagExtraInfo class"
> 
> I am installing struts framework on another m/c. I copied all related files
> + my application war file over there. Set class path for struts.jar. Now
> testing with one small program with struts.
> 
> ---
> 
> " rel="stylesheet"
> type="text/css">
> 
> Authorisation Form
> 
> --
> 
> But i am getting following error msgs
> 
> --
> org.apache.jasper.JasperException: Failed to load or instantiate
> TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler
> .java:50)
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:37
> 8)
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:28
> 3)
> org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoI
> mpl.java:422)
> org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.j
> ava:248)
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.jav
> a:162)
> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
> org.apache.jasper.compiler.Parser.parse(Parser.java:126)
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:2
> 20)
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:101
> )
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
> 511)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
> 274)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 
> root cause
> java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
> va:1340)
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
> va:1189)
> org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoI
> mpl.java:419)
> org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.j
> ava:248)
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.jav
> a:162)
> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
> org.apache.jasper.compiler.Parser.parse(Parser.java:126)
> org.apache.jasper.compiler.ParserController.doPa

RE: Validator what am I missing??

2004-12-28 Thread David G. Friedman
Vinicius,

What are you using as your struts-config.xml form-bean and action mapping?
A lot of people get the ValidatorForm and ValidatorActionForm reversed in
their minds/thinking. Your mappings for those two related items should
assist us in determining if that is the issue.

Regards,
David

-Original Message-
From: Vinicius Caldeira Carvalho
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 28, 2004 8:17 AM
To: Struts Users Mailing List
Subject: Validator what am I missing??


Hi there. I can't get validator to work (although I've done this before)
I know I'm missing something.
Here's my configuration files:

struts-config:





validation.xml












I have the original validator-rules.xml and the appResources has all the
default messages.

My form, extends ValidatorForm, and I have a validate method with this body:

ActionErrors errors = super.validate(mapping,request);
if(errors == null){
errors = new ActionErrors();
}
if(produtos.size() == 0){
errors.add("produto",new
ActionMessage("historicoNegociacao.erro.produtos"));
}

Problem is, the call to the super class always return an empty (not
null) ActionErrors. What could be wrong?

thanx


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



RE: [OT] I need to configure logs on my virtual hosting

2004-12-28 Thread David G. Friedman
Amit,

Can you define what you mean by 'needing logs'?  Struts (recent versions)
uses common logging so you could check the Struts site or Wiki on how to
turn that on.  If you add commons logging to your own webapp, one
configuration file can log all important struts and webapp errors to the log
file of your choosing.  For virtual host logging, it depends on your
Container.  For example, in Apache Tomcat servers, you can go into the
server's configuration files and add a Logger configuration component to
redirect error messages for a virtual host (a context with Alias) to a
particular file.  Then, when your application prints out standard error
messages or (gasp!) System.out messages, they would go by default to that
particular log file (per virtual host if you set up logger instances for
each).

More details on Tomcat Loggers at:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html

More details on Tomcat Alias (and virtual hosts) at:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html
(Aliases at that page's section "Host Name Aliases".

For other containers' virtual host settings, go read their manuals.  This
was just an accurate Tomcat example. :)

Regards,
David

-Original Message-
From: Amit Gupta [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 28, 2004 1:30 AM
To: Struts Users Mailing List
Subject: [OT] I need to configure logs on my virtual hosting


Hi,



I need to configure logs on my virtual hosting. How can I do it? Till now
logs are created at global logs directory to which I don't have access. I
need logs in my webapps directory.





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



RE: Error in "instantiate TagExtraInfo class"

2004-12-28 Thread David G. Friedman
Manisha,

The application's /WEB-INF/lib directory is the preference for many of the
Struts jars.  Unless you have only ONE Tomcat application using Struts,
putting Struts jars in any other place has been, if I recall correctly.  I
believe I read about reloading issues and possible memory space conflicts
issues if the Struts.jar (and some others) are located in shared areas like
Tomcat's common/lib or shared/lib directories when more than one webapp uses
Struts in that container/Tomcat/Weblogic/etc.

Regards,
David

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 28, 2004 1:04 AM
To: Struts Users Mailing List
Subject: RE: Error in "instantiate TagExtraInfo class"


Thanks David,

It worked, i put all jars inside Tomcat's /Common/lib directory and it
worked. Btw, does this mean that automatically class path is set for all
jars which r inside /common/lib OR
{yr application}/WEB-INF/lib - which is having precedence ?


Thanks once again,

regards
Manisha

"David G. Friedman" <[EMAIL PROTECTED]> wrote:
Manisha,

I don't think setting the classpath with another framework will do the job.
You should still have the struts.jar in WEB-INF/classes because the
struts.jar should be copied into each webapp. Putting it in some 'global'
place may cause errors, especially if multiple struts applications are
running. Where is your struts.jar?

Regards,
David

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED]
Sent: Monday, December 27, 2004 9:39 PM
To: user@struts.apache.org
Subject: Error in "instantiate TagExtraInfo class"


I am installing struts framework on another m/c. I copied all related files
+ my application war file over there. Set class path for struts.jar. Now
testing with one small program with struts.

---





" rel="stylesheet"
type="text/css">











Authorisation Form





--

But i am getting following error msgs

--
org.apache.jasper.JasperException: Failed to load or instantiate
TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler
.java:50)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:37
8)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:28
3)
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoI
mpl.java:422)
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.j
ava:248)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.jav
a:162)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:2
20)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101
)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
274)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

root cause
java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
va:1340)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
va:1189)
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoI
mpl.java:419)
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.j
ava:248)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.jav
a:162)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:2
20)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101
)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
511)
org.apache.jaspe

Re: Can we create group in Yahoo/MSN messenger to help those who need fast help

2004-12-28 Thread Don Brown
While I agree with everything James said, I do find use in IRC as
sometimes, when working on a new Struts feature, I find it invaluable
to get quick feedback from folks I know in the channel.  I could use
dev or user, but then I'd have to sit around for days waiting for
responses.

The IRC channel I and several other Struts folks hang out on is on
Freenode - irc.freenode.net - and the channel is #struts  Feel free to
stop by.

Don


On Tue, 28 Dec 2004 08:51:00 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote:
> How would that be any faster then here?  Are you going to pay people to hang 
> out and wait for a question?
> 
> If you really need fast help either pay for it or get really good at 
> going through the source code.
> 
> 
> > -Original Message-
> > From: Amit Gupta [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, December 28, 2004 12:24 AM
> > To: Struts Users Mailing List
> > Subject: Can we create group in Yahoo/MSN messenger to help those who
> > need fast help
> >
> >
> > Can we create group in Yahoo/MSN messenger to help those who
> > need fast help?
> >
> >
> >
> > Amit Gupta
> >
> > Mobile: 91-9818052171
> >
> > Yahoo IM: amitguptainn
> >
> > MSN IM : amitguptainn
> >
> >
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



RE: (newbie)preferred way of managing product catelog

2004-12-28 Thread Jim Barrows


> -Original Message-
> From: Sudheer [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 27, 2004 7:04 PM
> To: Struts Users Mailing List
> Subject: (newbie)preferred way of managing product catelog
> 
> 
> Hi,
> 
>   I am developing a JSP(2.0) shopping cart using struts(1.2)
> framework.
> 
>   I want to know which is the preferred way of managing
> a product catelog. I am using a mysql db, which has a
> category table and a product table, all products are
> categorised in a parent-child relation ship.
> 
>   Do I have to store all the products in a container in an
> application object? Or just store the category and store the 
> products(which
> fells under this category) only when the user
> select a particular category?

Depends on how much data in your catalog.  If you have a couple hundred items, 
that can get expensive to store in the application server.  If you  allow 
custom searches, it's usually easier to do that with a DB then by hand.
I typically assume that any data I'm displaying is in the thousands and so 
usually leave a bit on the DB.  I then implement pagination through the 
database (which may or may not have anything to do with pagination the viewer 
sees), and adjust the number of records in memory to optimum.  That way, if the 
catalog is samll you can configure your pagination routines to suck it into 
memory, and as the catalog grows, you don't have to worry about eating all your 
memore.

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



RE: Can we create group in Yahoo/MSN messenger to help those who need fast help

2004-12-28 Thread Jim Barrows
How would that be any faster then here?  Are you going to pay people to hang 
out and wait for a question?

If you really need fast help either pay for it or get really good at going 
through the source code.


> -Original Message-
> From: Amit Gupta [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 28, 2004 12:24 AM
> To: Struts Users Mailing List
> Subject: Can we create group in Yahoo/MSN messenger to help those who
> need fast help 
> 
> 
> Can we create group in Yahoo/MSN messenger to help those who 
> need fast help?
> 
>  
> 
> Amit Gupta
> 
> Mobile: 91-9818052171
> 
> Yahoo IM: amitguptainn
> 
> MSN IM : amitguptainn
> 
>  
> 
> 

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



Re: Can we create group in Yahoo/MSN messenger to help those who need fast help

2004-12-28 Thread James Mitchell
Thanks Bryce,
I'm well aware of gmane.  Also, I run a 200+ member group on Yahoo groups 
that was the first Struts Users Group in existence.

Problem is.that's still a mailing listthe same as this one.  Why 
would anyone participate on that list and not on this one?  For us 
(struts-atlanta)wellit is for our local (Atlanta, GA) group.  It is 
a private list now, because, when it was public, there were more spams than 
real traffic.

Why go through the hassle?
I believe the original intent was for a chat-style messaging client via MSN 
messenger (or AIM or Yahoo or Foo).  The only effective chat client I've 
seen work for anyone wanting to do this (broadcast vs 1 to 1), would be IRC. 
You will see that pop up from time to time (especially with some of the long 
standing members in our community).  I used to get on and have some fun with 
the folks there, but it lately I've just been too busy responding to users 
questions ;) and working.  The only problem with IRC is that there is a 
lot of OT noise (mostly from people like me ;) and has ..guess 
what"no history for people to google against".someone already said 
thathmmm ;)

I'm not trying to be a smart-a##, just realistic.
Have a good one!
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "Bryce Fischer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, December 28, 2004 9:14 AM
Subject: Re: Can we create group in Yahoo/MSN messenger to help those who 
need fast help


gmane.org
Google will return results from there.
James Mitchell wrote:
Why would you do this?  You will end up answering the same questions
over and over again because there is no history for people to google
against.
I get questions emailed directly to me from time to time.  My response
is usually something like"take it to the list, unless you want to
pay for my time".  Most usually ask on the list after that.  My
corporate rate is "business friendly", but not "college homework" or
"i'm too lazy to google" friendly ;)
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - From: "Amit Gupta"
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, December 28, 2004 2:23 AM
Subject: Can we create group in Yahoo/MSN messenger to help those who
need fast help
Can we create group in Yahoo/MSN messenger to help those who need fast
help?

Amit Gupta
Mobile: 91-9818052171
Yahoo IM: amitguptainn
MSN IM : amitguptainn


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





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

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


Re: Can we create group in Yahoo/MSN messenger to help those who need fast help

2004-12-28 Thread Bryce Fischer
gmane.org
Google will return results from there.
James Mitchell wrote:
Why would you do this?  You will end up answering the same questions 
over and over again because there is no history for people to google 
against.

I get questions emailed directly to me from time to time.  My response 
is usually something like"take it to the list, unless you want to 
pay for my time".  Most usually ask on the list after that.  My 
corporate rate is "business friendly", but not "college homework" or 
"i'm too lazy to google" friendly ;)

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - From: "Amit Gupta" 
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, December 28, 2004 2:23 AM
Subject: Can we create group in Yahoo/MSN messenger to help those who 
need fast help

Can we create group in Yahoo/MSN messenger to help those who need fast 
help?


Amit Gupta
Mobile: 91-9818052171
Yahoo IM: amitguptainn
MSN IM : amitguptainn


-
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: DispatchChainAction (Struts 1.3)

2004-12-28 Thread Joe Germuska
At 1:55 PM -0500 12/21/04, Benedict, Paul C wrote:
I noticed in Struts 1.3 there is a DispatchChainAction, and the parameter
attribute specifies the name of the chain to execute. Would somebody
consider that a security hole? It seems like anyone could arbitrarily
execute any chain command in the entire Struts app if they knew it -- unlike
a normal DispatchAction whose parameter is only relevant for that Action
class.
Also, I hope there will be a MappingDispatchChainAction too. The
MappingDispatchAction is, in my opinion, the absolute best feature of Struts
1.2 and secures the internals of the app better (i.e., not exposing method
names to the world). However, it seems that it would be impossible to
implement (currently) since the parameter attribute is already in use for
the chain command.
I just got back from a few days away.  In all the mail, I may have 
missed further discussion on this -- in fact, I kind of thought I'd 
replied to it before!

I think the dispatch chain action is flawed now that it takes two 
values to really look up a command to execute (the command name and 
the chain name).  I think it would make sense to derive a single 
string syntax which joins these two values, but that doesn't solve 
the security problem in any way.

I also think the base DispatchAction should not be furthered; 
instead, we should simply add a chain command which reads 
catalog/command values from the ActionMapping and does the same work. 
I'll bring this up on the dev list soon.

I agree that it would be nice to have some internal method dispatch 
in a command.  We use that style extensively at my day job.  I wonder 
if it's worth adding support for that in the chain package itself?

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Re: Can we create group in Yahoo/MSN messenger to help those who need fast help

2004-12-28 Thread James Mitchell
Why would you do this?  You will end up answering the same questions over 
and over again because there is no history for people to google against.

I get questions emailed directly to me from time to time.  My response is 
usually something like"take it to the list, unless you want to pay for 
my time".  Most usually ask on the list after that.  My corporate rate is 
"business friendly", but not "college homework" or "i'm too lazy to google" 
friendly ;)

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "Amit Gupta" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, December 28, 2004 2:23 AM
Subject: Can we create group in Yahoo/MSN messenger to help those who need 
fast help

Can we create group in Yahoo/MSN messenger to help those who need fast help?

Amit Gupta
Mobile: 91-9818052171
Yahoo IM: amitguptainn
MSN IM : amitguptainn


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


Validator what am I missing??

2004-12-28 Thread Vinicius Caldeira Carvalho
Hi there. I can't get validator to work (although I've done this before) 
I know I'm missing something.
Here's my configuration files:

struts-config:

   


validation.xml
   
   
   
   
   
   
   
   
   
   
I have the original validator-rules.xml and the appResources has all the 
default messages.

My form, extends ValidatorForm, and I have a validate method with this body:
ActionErrors errors = super.validate(mapping,request);
if(errors == null){
   errors = new ActionErrors();
}
if(produtos.size() == 0){
   errors.add("produto",new 
ActionMessage("historicoNegociacao.erro.produtos"));
}

Problem is, the call to the super class always return an empty (not 
null) ActionErrors. What could be wrong?

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


RES: [struts] Re: Dynamically adding an ActionMapping

2004-12-28 Thread Paulo Alvim
Hi!

I'm a Struts user since dez/2001 and we've been used this approach bellow in
order to pre-populating DynaActionForms for a long time in our company...

...But now I need to do it based on my own customized ActionMapping
properties. For example, we use this kind of extension to declare a DTO/VO
and many others Use Case "declarative tags":

 



(others...)


 

I couldn't find any array or map in the ActionConfig class...so how could I
get my specialized ActionMapping properties inside a Struts plugin?

Thanks in advance!

Paulo Alvim
Powerlogic - Brazil

-Mensagem original-
De: Craig McClanahan [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 25 de novembro de 2004 15:18
Para: Struts Users Mailing List; [EMAIL PROTECTED]
Assunto: [struts] Re: Dynamically adding an ActionMapping


You will not be able to do this in a ServletContextListener, because
that gets executed before the Struts servlet has initialized the data
structures representing the configuration information.  However, if
you write to the Struts PlugIn API, the init() method of this class is
called after the configuration file has been loaded, but before the
configuration is frozen -- so you can add your own configuration
objects at that time.

Craig



On Thu, 25 Nov 2004 00:04:00 -0800, Tony Li <[EMAIL PROTECTED]> wrote:
> Hi all -
>
> I haven't been able to locate much information about dynamically adding an
> ActionMapping.  I would like to do this at application startup through my
> StartupListener (courtesy of Matt Raible's AppFuse).  I'm really only
> interested in adding a few simple ForwardActions.
>
> Any ideas?
>
> Thanks,
>
> Tony
>
>

-
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: Unable to delete Object form Session scope - help needed

2004-12-28 Thread Radu Badita
Hi Peter,

I think you gave far too less information for someone to really be
able to help you with this problem.
However I do have an observation about your code: I suppose that the
"userSelection" HashMap is first retrieved from session, then modified
(by removing something). You don't need to remove it from session and
the put it back, as the modifications you make on an object you
retrieve from session are "live" on the session object.
I suggest you to try to keep your code simple and check if you are
really removing what you think you are removing from your session
HashMap (and not from somewhere else).

On Mon, 27 Dec 2004 21:50:14 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> I have a problem with an object(A hash map with wrapper objects) which I
> have put in the session scope on Page 1. On page 2 I modify it and
> delete some of the wrapper objects from the hash map. Aftwards I put the
> modified hash map back into the sessions scope.
> 
> Code:
> --
> HashMap  userSelection.remove(this.wertPosition);
>  request.getSession().removeAttribute("hashMap2");
> request.getSession().setAttribute("hashMap2", userSelection);
> --
> 
> When I return to page 1 to add new wrapper objects and switch to page 2
> the "deleted" objects reapear again altough I explicitly deleted them
> form the session scope.
> 
> What is wrong there? I simply don't understand it.
> The pages are configured to work in the session mode.
> 
> Regards ,
> 
> Peter
> 
> -
> 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: prevent reset of bean after submit

2004-12-28 Thread Radu Badita
As Hubert pointed out: your form won't hold the state from your
first.jsp unless you store it in session scope, as the request created
on first.jsp submit will cease to exist after second.jsp is run.
But if you really don't wanna keep it in user's session, the only
workaround I see possible it's copying the properties from your
first.jsp in hidden inputs in your second.jsp, this way the values
will be introduced in the second request.


On Tue, 28 Dec 2004 14:12:30 +0530, sachin <[EMAIL PROTECTED]> wrote:
> hi Cliff ,
> 
> > You may consider put all the fields which are populated from
> > frist.jsp in the second.jsp using hidden field.
> 
> This is one solution and it helps ..
> only problem is that if the first.jsp have a number of fields
> then the second.jsp will be overloaded with that much number of hidden fields.
> 
> and making the bean a session bean is also a solution , but it brings with
> some other problems in my project.
> 
> > I think there are so many solutions can solve this problem.
> 
> Please if u know any other solution to this problem , it will help me design
> the project in a better way . .
> 
> Regards,
> Sachin Hegde
> 
> 
> -- Original Message ---
> From: "Cliff" <[EMAIL PROTECTED]>
> To: struts-user@jakarta.apache.org
> Sent: Thu, 23 Dec 2004 02:21:16 -
> Subject: Re: prevent reset of bean after submit
> 
> > You may consider put all the fields which are populated from
> > frist.jsp in the second.jsp using hidden field.
> >
> > I think there are so many solutions can solve this problem.
> >
> > Good Luck
> > Merry Christmas
> >
> > Cliff
> >
> > --- In [EMAIL PROTECTED], Hubert Rabago <[EMAIL PROTECTED]> wrote:
> > > It's possible that you have your bean in request scope.  If so, a
> > new
> > > bean is being used for each request.  Try putting your bean in
> > session
> > > scope.
> > >
> > > Hubert
> > >
> > > On Tue, 21 Dec 2004 12:49:55 +0530, sachin <[EMAIL PROTECTED]>
> > wrote:
> > > > hi all ,
> > > >
> > > > On submit of a form , struts resets the bean before populating
> > the form .
> > > > For that perticular action can i stop the resetting of bean ?
> > > >
> > > > in my application i need to pupulate one bean from two forms .
> > > > It has following structure :-
> > > > JSP pages - First.jsp , Second.jsp
> > > > Actions   - FirstAction.java , SecondAction.java
> > > > which refer to same CommonBean.
> > > >
> > > > the commonBean is first populated from First.jsp
> > > > then it is forwarded to Second.jsp to populate the remaining
> > fields ..
> > > > But here the commonBean gets resetted ...
> > > > I tried to override reset action in CommonBean with a blank
> > method .. but it
> > > > not doing ..
> > > >
> > > > any help is appreciated
> > > > Thanks in advance
> > > >
> > > > Regards,
> > > > Sachin Hegde
> > > > Software Developer
> > > > Paradyne Infotech Limited
> > > > Mumbai
> > > > 022-38546711
> > > >
> > > > -
> > 
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > ---
> > --
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> --- End of Original Message ---
> 
> 
> -
> 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: prevent reset of bean after submit

2004-12-28 Thread sachin
hi Cliff , 

> You may consider put all the fields which are populated from 
> frist.jsp in the second.jsp using hidden field.

This is one solution and it helps ..
only problem is that if the first.jsp have a number of fields
then the second.jsp will be overloaded with that much number of hidden fields.

and making the bean a session bean is also a solution , but it brings with 
some other problems in my project.

> I think there are so many solutions can solve this problem.

Please if u know any other solution to this problem , it will help me design 
the project in a better way . .

Regards,
Sachin Hegde


-- Original Message ---
From: "Cliff" <[EMAIL PROTECTED]>
To: struts-user@jakarta.apache.org
Sent: Thu, 23 Dec 2004 02:21:16 -
Subject: Re: prevent reset of bean after submit

> You may consider put all the fields which are populated from 
> frist.jsp in the second.jsp using hidden field.
> 
> I think there are so many solutions can solve this problem.
> 
> Good Luck
> Merry Christmas
> 
> Cliff
> 
> --- In [EMAIL PROTECTED], Hubert Rabago <[EMAIL PROTECTED]> wrote:
> > It's possible that you have your bean in request scope.  If so, a 
> new
> > bean is being used for each request.  Try putting your bean in 
> session
> > scope.
> > 
> > Hubert
> > 
> > On Tue, 21 Dec 2004 12:49:55 +0530, sachin <[EMAIL PROTECTED]> 
> wrote:
> > > hi all ,
> > > 
> > > On submit of a form , struts resets the bean before populating 
> the form .
> > > For that perticular action can i stop the resetting of bean ?
> > > 
> > > in my application i need to pupulate one bean from two forms .
> > > It has following structure :-
> > > JSP pages - First.jsp , Second.jsp
> > > Actions   - FirstAction.java , SecondAction.java
> > > which refer to same CommonBean.
> > > 
> > > the commonBean is first populated from First.jsp
> > > then it is forwarded to Second.jsp to populate the remaining 
> fields ..
> > > But here the commonBean gets resetted ...
> > > I tried to override reset action in CommonBean with a blank 
> method .. but it
> > > not doing ..
> > > 
> > > any help is appreciated
> > > Thanks in advance
> > > 
> > > Regards,
> > > Sachin Hegde
> > > Software Developer
> > > Paradyne Infotech Limited
> > > Mumbai
> > > 022-38546711
> > > 
> > > -
> 
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > >
> > 
> > ---
> --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--- End of Original Message ---


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



Re: Can we create group in Yahoo/MSN messenger to help those who need fast help

2004-12-28 Thread yue pengfei
Good idea!
  Yahoo IM:yuepengfei1978
  MSN IM : [EMAIL PROTECTED]

Amit Gupta <[EMAIL PROTECTED]> wrote:
Can we create group in Yahoo/MSN messenger to help those who need fast help?



Amit Gupta

Mobile: 91-9818052171

Yahoo IM: amitguptainn

MSN IM : amitguptainn






-
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!