RE: Any Web Development Environments that incorporate Struts?

2002-10-22 Thread Frederic Laub
Hi,

Your list would be helpfull I'm starting to design my HTML view components,
and I didn't decide yet which Ide I'll use for that.
Thanks in advance

Frederic

-Original Message-
From: Haseltine, Celeste [mailto:CHaseltine@;magticket.com]
Sent: 22 October 2002 21:12
To: 'Struts Users Mailing List'
Subject: RE: Any Web Development Environments that incorporate Struts?


Out of curiosity, what version of Together are you using?  I've seen the
product, but the version that was demo'd for us a while back was way to
expensive for a small shop like ours to afford.

We are using Eclipse 2.0.1 with the Struts plugin and several additional
plugins for JSP, EJB, XML, and HTML development.  We also have a copy of
Dreamweaver MX and FlashMX, so on occasion, we will design HTML templates to
convert to JSP templates/pages and/or flash graphics inside of the
Macromedia Suite.  Although Dreamweaver MX does support JSP development,
it's not that great of a JSP development environment.  We prefer to stick
with Eclipse 2.0.1 unless we need to create or tweak a very "involved" JSP
that was derived from an HTML template.

If you need a list of plugins and the web links to find them for Eclipse,
let me know.  Eclipse is free, and so are all the plugins we are using.

Celeste Haseltine, PE
MTL, Inc
Dallas, TX

-Original Message-
From: McLure, David [mailto:David.McLure@;fmr.com]
Sent: Tuesday, October 22, 2002 12:57 PM
To: '[EMAIL PROTECTED]'; 'Steven Headley'
Cc: '[EMAIL PROTECTED]'
Subject: RE: Any Web Development Environments that incorporate Struts?


I use Together by TogetherSoft.  You can download a free evaluation copy at
http://www.togethersoft.com.  I have been using Together to design, as well
as compile, debug, test, and deploy (to it's own bundled Tomcat instance)
Struts-based web applications for nearly a year now.  We use the product at
work at Fidelity Investments, and I like it so much, I use it as my own
personal development tool at home as well.

Not only is Togethersoft an awesome product, but the company has an
excellent staff.  One TogetherSoft support rep named James Banks assembled
an on-line tutorial on how to setup Together to build and deploy the Struts
example web application.  I have been tweaking it fixing a few bugs and
adding a workaround or two and I have posted the current tutorial on my web
site: http://www.mclures.net (just click on the "Struts Info" link, or type
in the full URL of
http://www.mclures.net/java/struts/Together/Getting_Started_with_Struts_and_
Together.html).

Enjoy!

Dave McLure
Internet Technology Group
Fidelity e-Business (FeB) Company
Fidelity Investments
[508-35]7-5226
[EMAIL PROTECTED]
pager: (800)759- pin:1257875



-Original Message-
From: Steven Headley [mailto:sheadley@;swbell.net]
Sent: Tuesday, October 22, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: Any Web Development Environments that incorporate Struts?


Hello All,
I have started a web development project and want to incorporate struts
into the plan. I want to be able to use MVC to separate the programmers from
the web designers. Are their any packages avaiable that will allow the
designers the ability to manipulate screens like coldfusion, dreamweaver,
etc which incorporate struts? Curently My designers must work with the html
to move struts code to around. What alternative do I have?



Steven H.


--
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: JDK 1.4 and struts

2002-10-22 Thread Reinhard Spisser
I'm using Struts 1.1b2, jdk1.4.1_01 without problems on my laptop
running RedHat 8.0. 

We've been working with Struts 1.1b2 and jdk 1.4, both on Linux (7.3,
8.0) and Windows 2000 since July and we didn't have any problems with
it.


Reinhard 

Il dom, 2002-10-20 alle 02:21, email ha scritto:
> 
> There were a couple of messages the other day concerning Struts failing
> to work correctly under the 1.4 JDK. I'd like to add some evidence to that.
> 
> Sun's 1.4 JDK (at least the Linux version) seems to have serious
> problems w/ the classpath. After upgrading to 1.4.0_01, and then
> 1.4.1_01, Struts no longer works on my machine. Specifically, when
> dispatching to an Action subclass, the JVM cannot seem to find
> org.apache.struts.action.Action -- despite knowing all about
> ActionServlet and a bunch of other classes in the struts.jar file. 
> 
> Someone stated recently that Struts DOES WORK w/ JDK1.4. Which OS is
> that? And does anyone have positive experience using Struts w/ JDK1.4 on 
> Linux?
> 
> ---
> John Byrd
> [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




RE: IllegalStateException while using

2002-10-22 Thread Craig R. McClanahan
A  or RequestDispatcher.forward() call -- which is what
Struts does for you after your Action returns -- is only legal if the
response for the current request has not been committed yet.  It's OK to
start writing to the response, but only if you haven't filled the output
buffer yet.

The same goes for a redirect -- once the response is committed, a redirect
is no longer legal.  Technically, what happens is that when you call
response.sendRedirect() to perform the redirection, the internal
implementation calls response.reset() in order to clear any previously
written headers and data, and then proceeds to write the appropriate
headers to perform the redirect.

Without seeing your code, it's not possible to pinpoint *why* this is
happening to you, but something along this line is definitely the cause of
the exception you are getting.

Craig

On Wed, 23 Oct 2002, James Mitchell wrote:

> Date: Wed, 23 Oct 2002 00:37:10 -0400
> From: James Mitchell <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: IllegalStateException while using 
>
> Did you ever get an answer to this?
>
> This often occurs when doing a forward or redirect after writing to the
> browser.
>
>
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
>
> "Only two things are infinite, the universe and human stupidity, and I'm not
> sure about the former."
> - Albert Einstein (1879-1955)
>
>
> > -Original Message-
> > From: atta ur-rehman [mailto:attaurrehman@;kapsconsulting.com]
> > Sent: Tuesday, October 22, 2002 3:32 PM
> > To: struts users mailing list
> > Subject: IllegalStateException while using 
> >
> >
> > Dear all,
> >
> > While conditionally forwarding to another jsp page my
> > Struts/Tiles page throws this exception:
> >
> > java.lang.IllegalStateException: reset() failed - data has
> > already been sent to client
> >
> > I don't understand what's going on. Any help would be greatly appreciated.
> >
> > Regards,
> >
> > ATTA
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Tiles vs Template Tags

2002-10-22 Thread Affan Qureshi
I want the layout of my application in such a way that if I want to change it I have 
to make changes in a minimum number of places. What should I use Tiles or Template 
Tags? Can someone highlight the difference between the two?

Also when iterating a collection i want to check whether a value is null or not. 
Should I use  tag? Or how else?

Thanks a lot.



Re: Validator and required dependency

2002-10-22 Thread Rob Leland
Comments inline, also
see:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13526

Peterkofsky, Don wrote:

I'm not sure of the background on this thread, but there may be some
misunderstanding with this.

I looked at the canned rule sets, and was confused by the use of the
"depends" attribute in the rules file, which appears to be the same as the
"depends" attribute in the validation file.  However, my experiments showed
that the "required" dependency in the rules file doesn't have the
effect/behavior that you would assume, like the attribute in the validation
file.  The "required" dependency in the rule set did not appear to evaluate
the "required" rule; in other words, when a rule is used in the validation
file, and the rule definition has the "required" dependency, it does not
seem to embed the "required" rule in the evaluation.  

For example, I could use the "maxlength" rule, and leave the form field
empty, and no validation error would result.  My interpretation of this is
that the "required" dependency in the rules file has a different meaning
than in the validation file, or perhaps is not used. If anyone has a better
understanding or contradictory experience I'd be interested to hear and
understand.

Thanks for your experimentation, I had suspected something like this. In 
July patches were applied to the Validator that changes its behavior. 
Specifically it no longer ignored blank fields. I was waiting till this 
weekend when I get a solid block of time, so I could analyze the intent 
and purpose of these rules.

I believe James Turner asked a similar question back in July and Dave 
replied that 'depends' determines if the field is evaluated 
individually, or all together with the form as a whole. Like I said I 
will take a better look at it this weekend.
I am still new at using the Validator so right now what I say needs to 
be 'taken with a grain of salt', evaluated by considering my experience.

-Rob



-Original Message-
From: James Turner [mailto:turner@;blackbear.com]
Sent: Tuesday, October 22, 2002 12:24 PM
To: [EMAIL PROTECTED]
Subject: Validator and required dependency




At 11:33 AM 10/22/2002, Eddie Bush <[EMAIL PROTECTED]> wrote:
 >
 >Point noted :-) I'll let someone else explain what the rationale was for 
doing that. I don't know. I am aware
 >that there is change taking place in commons-validator, and also in the 
struts-specific validator, but I
 >couldn't really speak to what changes have been effected by that change.

I don't know the original rationale, but there is a bug report and patch 
filed to remove the required dependency from the canned rulesets. Hopefully 
someone will apply it soon

James



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




RE: IllegalStateException while using

2002-10-22 Thread James Mitchell
Did you ever get an answer to this?

This often occurs when doing a forward or redirect after writing to the
browser.


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: atta ur-rehman [mailto:attaurrehman@;kapsconsulting.com]
> Sent: Tuesday, October 22, 2002 3:32 PM
> To: struts users mailing list
> Subject: IllegalStateException while using 
>
>
> Dear all,
>
> While conditionally forwarding to another jsp page my
> Struts/Tiles page throws this exception:
>
> java.lang.IllegalStateException: reset() failed - data has
> already been sent to client
>
> I don't understand what's going on. Any help would be greatly appreciated.
>
> Regards,
>
> ATTA
>


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




RE: Form submission

2002-10-22 Thread James Mitchell
LOLthanks Eddie ;)

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 22, 2002 3:18 PM
> To: Struts Users Mailing List
> Subject: Re: Form submission
>
>
> Sorry -- Out of Luck.
>
> That's the nice way to put it ;-)  Different people substitute different
> words for the S.  I'll leave alternatives to your imagination ...
>
> Kyrre Lugg wrote:
>
> > James Mitchell wrote:
> >
> >> This means you are in a status of SOL.
> >>
> >
> > SOL?
> >
> > Kyrre Lugg
>
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Netscape v4.7x browser, style sheet and font problems

2002-10-22 Thread Andrew Hill
IMHO people who use NS4.7 dont deserve struts ;-)

Hard to understand how it could look so different in the 'copied' page - but
with NS4 anything can go wrong and usually does.

Is the copied page still accessing your stylesheet?
How does it look when you dont use the stylesheet?
Is it just your 4.7 installation or everyone sees the problem?

I seem to remember something about being able to override stylesheets from
one of the browser menus (which was actually quite a popular feature as
people could crank up font sizes to make small writing readable regardless
of the stylesheet used...).

-Original Message-
From: ajTreece [mailto:aj.treece@;sun.com]
Sent: Wednesday, October 23, 2002 03:34
To: [EMAIL PROTECTED]
Subject: Netscape v4.7x browser, style sheet and font problems


Afternoon folks...

This is weird and is really driving me crazy (even though it could be a
short drive). I'm building a webapp using struts 1.1b1 utilizing tiles
and the whole nine yards. I'm also using style sheets to somewhat
control the fonts used and the font sizes on the screen. Using Netscape
v6 or 7, the Mozilla browsers and even Internet Explorer work
beautifully. My problem arises when using v4.7x of the Netscape browser.
Granted this browser is years behind when it comes to current technology,
but there is a big dependence for this browser in my company so I must
make sure everything is A.O.K. for that platform.

When a page is rendered on the v4.7x browser all text on the page
whether controlled by the style sheet or not is displayed as one font
style and one font size. I can't say for sure but the font looks like
Verdana around 48pt. For the longest time I assumed it was just a style
sheet issue, but I'm not convinced. It's not very scientific, but I
copied the source from the rendered v4.7x screen into a new html file
and when I displayed that html file the fonts looked perfect.

This is a big problem for me because I'm in the process of
"evangelizing" struts technology to the rest of my development group for
use in all of our applications, but Netscape v4.7x is sticking point
that I can't get around.


I'm open for any suggestions...

Thanks, ajTreece


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: [Logging] How to make the darn logs work again?

2002-10-22 Thread Andrew Hill
Eddie & James,

Many thanks for your help!

It seems to be working now - no more error message and Im seeing a few
messages from struts now too. :-)
Im using the code Eddie sent, and I also had to follow his advice re.
updating the commons-logging.jar file before it would work.
Seems struts 1.1b1 also has the problem (I havent upgraded to b2 yet
(lazy)).
Now when I get a chance I suppose I better look up what all the incantations
in the property file actually mean so I can tune it to my needs...

cheers
Andrew

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 23, 2002 02:43
To: Struts Users Mailing List
Subject: Re: [Logging] How to make the darn logs work again?


Andrew Hill wrote:

>Nope. I dont have a log4j.properties
>
Past the lines I showed you into a log4j.properties file then ;-)

>At this point methinks me shall go home (11pm) before me throws me computer
>out the window in a fit of anger at having to learn how to set up
>(re-install?) yet another technology (log4j) while me is in the middle of
>trying to learn digester (which is pretty cool btw!).
>
HEH - you're making it too hard :-)  Be sure you grab the latest
commons-logging-1.0.1.jar before you get too fired up.  Drop it in your
lib.  There was a build error that ... well, you want to get a different
JAR than is with b2 if you're using log4j ;-)

>Ill try and chase up a property file in the morning - but where should this
>file have come from in the first place so I know where to get it from?
>
You create it.  There isn't one anywhere I'm aware of.  See the log4j
site on how to setup your config - that little snippet I gave you before
should get you started on the "right track".  Just drop another post if
you keep having fits.  Be sure you upgrade your commons-logging though.
 I think I forgot to mention that earlier.

--
Eddie Bush




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: with JavaScript

2002-10-22 Thread Todd Pierce
If you want to be struttier you should try using  instead of
that scriptlet stuff. Html:rewrite resolves an url just like html:link, but
without generating all of the  html.

If you use javascript a lot for dialogs and popups, it's fairly trivial to
create a custom tag that extends the Link Tag and generates the HTML however
you like it. 

- Todd

-Original Message-
From: Tuan H. Le [mailto:tuan.le@;phsadc.com]
Sent: Wednesday, 23 October 2002 6:17 AM
To: Struts Users Mailing List
Subject: RE:  with JavaScript


ok, I replaced  with  and it works fine. It seems like
the scriptlet <%=%> can not be parsed within the  tag.

Thanks!
Tuan

-Original Message-
From: Tuan H. Le 
Sent: Tuesday, October 22, 2002 1:01 PM
To: 'Struts Users Mailing List'
Subject: RE:  with JavaScript


Jeff,

Thanks for your response! I tried your suggestion, but it seems that
<%=employee.getId() %> does not get parsed within  tag. When I
view the html source on the browser, it shows



Other suggestions?

Thanks!
Tuan

-Original Message-
From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw@;nlgroup.ca]
Sent: Tuesday, October 22, 2002 11:02 AM
To: Struts Users Mailing List
Subject: Re:  with JavaScript




Try:

  
  
  






"Tuan H. Le" <[EMAIL PROTECTED]> on 10/22/2002 12:33:02 PM

Please respond to "Struts Users Mailing List"
   <[EMAIL PROTECTED]>

To:"Struts Users Mailing List (E-mail)"
   <[EMAIL PROTECTED]>
cc:

Subject: with JavaScript


Hi

Can some one please show me a tip on how to pass a dynamic value into a
JavaScript function within  tag? What I need is to pass an
employee ID in the openModal( '/editSalary.do?id=### ).

Here's my code



  function openModal( theURL ){
 window.showModalDialog(theURL,'','dialogWidth:662px;, dialogHeight:180px;
 help:no; scroll:no; status:no; center:yes; resizable:no; unadorned:yes;');
 }



  
  
  




I know how to create a  that generates an HREF with a passing
dynamic parameter value as such



The code above works fine, but I need a way to open a modal dialog window
with a specific size.

Thanks in advance!
Tuan





(See attached file: winmail.dat)
--
To unsubscribe, e-mail:   <
mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:struts-user-help@;jakarta.apache.org>





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




Re: struts-user Digest 23 Oct 2002 02:31:16 -0000 Issue 2166

2002-10-22 Thread James Turner
At 10:31 PM 10/22/2002,  "Andy Kriger" <[EMAIL PROTECTED]> wrote:

From: "Andy Kriger" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: how do i get a Field object in Validator?
Date: Tue, 22 Oct 2002 16:13:23 -0400
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Essentially, yes. Lets say I have 2 fields A & B. I am validating A but it
requires B. If B fails, I'd like to get the arg0 value from B's Field object
and use that in the error message (since there's a key to the display name
in that arg).

I've worked around this by passing in keys as a separate var but like I said
earlier, it's ugly.


You might want to start by looking at the new "requiredif" rule in the 
latest Struts builds, it takes advantage of changes in Commons Validator 
that lets you access the Validator (and from it, all of it's resources) in 
any rule.

For example, to get the value of field X in a rule:

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

   Object form = validator.getResource(Validator.BEAN_KEY);
String dependVal = ValidatorUtil.getValueAsString(form, "X");
.
.
.
}

To get the internal Validator representation of the ageOfTheUniverse field, 
you actually should ask Struts, not the Validator.  This is because the 
Validator doesn't expose it's resources, it expects the call application to 
keep track of them.  In Struts, you can get a handle on the Validator 
resources with:

ValidatorResources res = 
servlet.getServletContext().getAttribute(ValidatorPlugin.VALIDATOR_KEY +
  config.getPrefix(), 
resources);

where config is the current ApplicationConfig.

Once you have a handle on the ValidatorResources, you can get a Field 
definition using:

Form form = res.get(locale, formKey);

(where locale is the desired local and formKey is the name of the form.

Field f = form.getFieldMap().get("ageOfTheUniverse");

Hope this helps,
James



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



RE: Validator and required dependency

2002-10-22 Thread James Turner
At 10:31 PM 10/22/2002, "Peterkofsky, Don" <[EMAIL PROTECTED]> wrote:


I'm not sure of the background on this thread, but there may be some
misunderstanding with this.

I looked at the canned rule sets, and was confused by the use of the
"depends" attribute in the rules file, which appears to be the same as the
"depends" attribute in the validation file.  However, my experiments showed
that the "required" dependency in the rules file doesn't have the
effect/behavior that you would assume, like the attribute in the validation
file.  The "required" dependency in the rule set did not appear to evaluate
the "required" rule; in other words, when a rule is used in the validation
file, and the rule definition has the "required" dependency, it does not
seem to embed the "required" rule in the evaluation.


Well, depending on which build of Validator you were using, this might or 
might not be true.  There were some interesting quirks in Commons Validator 
that have just recently been cleaned up.  The intent of the depends field 
in a validation rule has also been to say that it only is run if the 
dependent rule passes, and this is how it works in the latest builds of 
Validator (which bit at least one person I know of who was depending on the 
old "broken" behavior)

James



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



Zero-copy persistence with Struts?

2002-10-22 Thread Bryan Field-Elliot
I'm banging my brain against the sides of my skull trying to think of a
way to do zero-copy JDBC persistence with Struts.

What I mean by zero-copy is, basically, pass as much "raw data" as
possible between the Model layer and the View layer. In pragmatic terms,
this probably means taking a JDBC ResultSet in the Model layer,
decorating it somehow (e.g. wrapping it in a DynaBean, or otherwise),
and setting it into the Request attribute context, where the JSP page
can iterate through and display it.

Why bother? Performance.

So here's the catch... if I insert the ResultSet into the request
context, then somewhere later I need to close the ResultSet, and
probably also the Statement which produced it and possibly even the
Connection which was queried in the first place. It wouldn't make sense
from a design standpoint to put this plumbing in each JSP page.

My thinking is to build a Filter (Servlet 2.3) which, after all Model
and View classes are called (e.g. Struts actions and JSP pages), close
all the ResultSets, Statements, etc. This seems a little complex but
it's the best pattern I can come up with. I was hoping for some (expert)
opinions on this approach.

The basic flow would be:

1. Struts Action does the following:
   1a. grabs a connection from the pool
   1b. create a Statement (or PreparedStatement), do the JDBC work,
obtain a ResultSet
   1c. Decorate the ResultSet as needed (e.g. wrap it inside a
ResultSetDynaClass)
   1d. Push the original Connection, Statement, and ResultSet onto a
request context "stack" of some kind (with an agreed-upon key name).
2. JSP page does the following:
   2a. Iterate through the ResultSet (or it's wrapper) as if it were a
standard collection of standard beans.
3. Filter does the following cleanup:
   3a. Retrieve the "stack" of open JDBC primitives from the request
context.
   3b. Close them all.

This seems to achieve a nice level of zero-copyness without bothering
the JSP page with messy plumbing details. Comments?

Thanks,
Bryan



RE: [OT] Tomcat not extracting war

2002-10-22 Thread James Mitchell
> If yes, verigy that the Account it is running under has authorized
  ^
That's "verify".


No, I wasmn't drikin wen I rote that ;)


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: James Mitchell [mailto:jmitchtx@;telocity.com]
> Sent: Tuesday, October 22, 2002 9:58 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] Tomcat not extracting war
>
>
>
> If this is really due to:
>
> > 2002-10-22 13:05:39 StandardContext[/aguard]: Error initializing
> > resources: Document base C:\tools\tomcat\webapps\aguard does not
> > exist or is not a readable directory
>
> ...and you are on Win2k
>
> What version of Tomcat?
> Are you running as Service?
> If yes, verigy that the Account it is running under has authorized
> permissions for that directory?
>
> Have you tried downloading another version of Tomcat?
>
>
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
>
> "Only two things are infinite, the universe and human stupidity,
> and I'm not
> sure about the former."
> - Albert Einstein (1879-1955)
>
>
> > -Original Message-
> > From: Mark Silva [mailto:msilva@;authenex.com]
> > Sent: Tuesday, October 22, 2002 4:09 PM
> > To: Struts Users Mailing List
> > Subject: RE: [OT] Tomcat not extracting war
> >
> >
> > took me a while to get back to testing this out
> >
> > The permissions look fine (running under WIN 2000)
> >
> > i just found this extract from my log files.  i am not sure i
> > understand it.  the war file is called aguard.war, which should
> > extract to /webapps/aguard.  it says the dir does not exisit.
> > shouldn't tomcat create the dir for me?
> >
> > 2002-10-22 13:05:38 WebappLoader[/manager]: Deploying class
> > repositories to work directory
> > C:\tools\tomcat\work\Standalone\localhost\manager
> > 2002-10-22 13:05:38 StandardManager[/manager]: Seeding random
> > number generator class java.security.SecureRandom
> > 2002-10-22 13:05:38 StandardManager[/manager]: Seeding of random
> > number generator has been completed
> > 2002-10-22 13:05:38 ContextConfig[/manager]: Added certificates
> > -> request attribute Valve
> > 2002-10-22 13:05:38 ContextConfig[/manager]: Configured an
> > authenticator for method BASIC
> > 2002-10-22 13:05:38 StandardWrapper[/manager:default]: Loading
> > container servlet default
> > 2002-10-22 13:05:39 default: init
> > 2002-10-22 13:05:39 StandardWrapper[/manager:invoker]: Loading
> > container servlet invoker
> > 2002-10-22 13:05:39 invoker: init
> > 2002-10-22 13:05:39 jsp: init
> > 2002-10-22 13:05:39 StandardContext[/aguard]: Error initializing
> > resources: Document base C:\tools\tomcat\webapps\aguard does not
> > exist or is not a readable directory
> > 2002-10-22 13:05:39 StandardContext[/aguard]: Context startup
> > failed due to previous errors
> > 2002-10-22 13:05:39 StandardContext[/aguard]: Exception during
> > cleanup after start failed
> > LifecycleException:  Container StandardContext[/aguard] has not
> > been started
> > at
> > org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
> > at
> > org.apache.catalina.core.StandardContext.stop(StandardContext.java:3495)
> > at
> >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3434)
> > at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> > at
> > org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
> > at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> > at
> > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
> > at
> > org.apache.catalina.core.StandardService.start(StandardService.java:388)
> > at
> > org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
> > at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> > at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
> > pl.java:39)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
> > cessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> >
> > 2002-10-22 13:05:39 StandardHost[localhost]: Installing web
> > application at context path  from URL file:C:\tools\tomcat\webapps\ROOT
> > 2002-10-22 13:05:39 WebappLoader[]: Deploying class repositories
> > to work directory C:\tools\tomcat\work\Standalone\localhost\_
> > 2002-10-22 13:05:39 StandardManager[]: Seeding random number
> > generator class java.security.SecureRandom
> > 2
> >
> >

Error Higlighting capability of Struts Tags

2002-10-22 Thread bachan s

Hi,

Does the input tags in struts have any inbuild error highlighting capability .

What I mean is if the validate / any other method sets an error message with the key 
as the field name of a field , will the tag look into the ActionErrors object for each 
of the input fields and check whether the key is contained in the error object and do 
the following .

1. Give focus to the first error field even if the error there is a field given for 
the focus attribute in the form.

2. Give a different style background color/ text color to all the error filed.

 

Also is it advisable to use struts tags /JSTL tags for tags like logic ,bean etc 

Thanks !

Bachan



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


RE: [OT] Tomcat not extracting war

2002-10-22 Thread James Mitchell

If this is really due to:

> 2002-10-22 13:05:39 StandardContext[/aguard]: Error initializing
> resources: Document base C:\tools\tomcat\webapps\aguard does not
> exist or is not a readable directory

...and you are on Win2k

What version of Tomcat?
Are you running as Service?
If yes, verigy that the Account it is running under has authorized
permissions for that directory?

Have you tried downloading another version of Tomcat?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Mark Silva [mailto:msilva@;authenex.com]
> Sent: Tuesday, October 22, 2002 4:09 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] Tomcat not extracting war
>
>
> took me a while to get back to testing this out
>
> The permissions look fine (running under WIN 2000)
>
> i just found this extract from my log files.  i am not sure i
> understand it.  the war file is called aguard.war, which should
> extract to /webapps/aguard.  it says the dir does not exisit.
> shouldn't tomcat create the dir for me?
>
> 2002-10-22 13:05:38 WebappLoader[/manager]: Deploying class
> repositories to work directory
> C:\tools\tomcat\work\Standalone\localhost\manager
> 2002-10-22 13:05:38 StandardManager[/manager]: Seeding random
> number generator class java.security.SecureRandom
> 2002-10-22 13:05:38 StandardManager[/manager]: Seeding of random
> number generator has been completed
> 2002-10-22 13:05:38 ContextConfig[/manager]: Added certificates
> -> request attribute Valve
> 2002-10-22 13:05:38 ContextConfig[/manager]: Configured an
> authenticator for method BASIC
> 2002-10-22 13:05:38 StandardWrapper[/manager:default]: Loading
> container servlet default
> 2002-10-22 13:05:39 default: init
> 2002-10-22 13:05:39 StandardWrapper[/manager:invoker]: Loading
> container servlet invoker
> 2002-10-22 13:05:39 invoker: init
> 2002-10-22 13:05:39 jsp: init
> 2002-10-22 13:05:39 StandardContext[/aguard]: Error initializing
> resources: Document base C:\tools\tomcat\webapps\aguard does not
> exist or is not a readable directory
> 2002-10-22 13:05:39 StandardContext[/aguard]: Context startup
> failed due to previous errors
> 2002-10-22 13:05:39 StandardContext[/aguard]: Exception during
> cleanup after start failed
> LifecycleException:  Container StandardContext[/aguard] has not
> been started
>   at
> org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
>   at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:3495)
>   at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3434)
>   at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>   at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
>   at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>   at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
>   at
> org.apache.catalina.core.StandardService.start(StandardService.java:388)
>   at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
>   at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
> pl.java:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
> cessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>
> 2002-10-22 13:05:39 StandardHost[localhost]: Installing web
> application at context path  from URL file:C:\tools\tomcat\webapps\ROOT
> 2002-10-22 13:05:39 WebappLoader[]: Deploying class repositories
> to work directory C:\tools\tomcat\work\Standalone\localhost\_
> 2002-10-22 13:05:39 StandardManager[]: Seeding random number
> generator class java.security.SecureRandom
> 2
>
>
> thanks,
> mark
>
> -Original Message-
> From: Sean Harrison [mailto:sharrison@;licor.com]
> Sent: Friday, October 18, 2002 2:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [OT] Tomcat not extracting war
>
>
>
>
>
>
> Mark,
>
> If you're getting a FileNotFoundException when Tomcat tries to
> unpack the war
> file, check the permissions of your webapps directory. I had the
> same problem. I
> resolved it by giving the tomcat4 group write permissions to the webapps
> directory so it could create the necessary folders/files.
>
> Sean Harrison
> Internet Services Administrator
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:


RE: how do i get a Field object in Validator?

2002-10-22 Thread Padma Ginnaram
Andy,

Its possible but you have to extend the commons validator, override the
validate method and add the form fields (validation resources not action
form) as a resource under . 

Extend the ValidatorActionForm and use your version of the validator.

Default method parameters are defined in the ValidatorAction (class
corresponding to the validator specified in the resource files). You can
override this when you define your validator in the xml file by specifying
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors,
javax.servlet.http.HttpServletRequest,

I am trying to do something similar to pass the validation results for some
of my validators like daterange so I can compare the parsed value saved of
in the result map by the date validator using parsed values associated to
other form fields as min/max values.

-Padma
-Original Message-
From: Andy Kriger [mailto:akriger@;greaterthanone.com]
Sent: Tuesday, October 22, 2002 2:45 PM
To: Struts Users Mailing List
Subject: RE: how do i get a Field object in Validator?


That much I understand - but is it possible to get a reference to the Field
objec that represents that 2nd property? For example, if you wanted to get
message arguments from the other field.

-Original Message-
From: Jerry Jalenak [mailto:Jerry.Jalenak@;LABONE.com]
Sent: Tuesday, October 22, 2002 14:19
To: 'Struts Users Mailing List'
Subject: RE: how do i get a Field object in Validator?


In your validator-rules.xml file, add the following for each form field you
need access to:




secondProperty-Label
secondProperty-Value




secondProperty-Label would be what you want to call the variable in your
custom routine; secondProperty-Value would be the actual form field name
that contains the entered value.  Then in your custom routine you can access
these values by

public static boolean yourCustomRoutine(Object object,
ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest
request)
{
String fp = ValidatorUtil.getValueAsString(object,
field.getProperty());
String sp = ValidatorUtil.getValueAsString(object,
field.getVarValue("secondProperty-Label"));

... do something ...
return true;  // or false if the validation fails
}

HTH,

Jerry

> -Original Message-
> From: Andy Kriger [mailto:akriger@;greaterthanone.com]
> Sent: Tuesday, October 22, 2002 11:33 AM
> To: Struts Users Mailing List
> Subject: how do i get a Field object in Validator?
>
>
> I am writing a custom rule and I need to know how I can get a
> handle to a
> different Field object? (not the one passed into the method
> in the first
> place)
>
> thx
> a
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>

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



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: with JavaScript

2002-10-22 Thread Tuan H. Le
ok, I replaced  with  and it works fine. It seems like the 
scriptlet <%=%> can not be parsed within the  tag.

Thanks!
Tuan

-Original Message-
From: Tuan H. Le 
Sent: Tuesday, October 22, 2002 1:01 PM
To: 'Struts Users Mailing List'
Subject: RE:  with JavaScript


Jeff,

Thanks for your response! I tried your suggestion, but it seems that 
<%=employee.getId() %> does not get parsed within  tag. When I view the 
html source on the browser, it shows



Other suggestions?

Thanks!
Tuan

-Original Message-
From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw@;nlgroup.ca]
Sent: Tuesday, October 22, 2002 11:02 AM
To: Struts Users Mailing List
Subject: Re:  with JavaScript




Try:

  
  
  






"Tuan H. Le" <[EMAIL PROTECTED]> on 10/22/2002 12:33:02 PM

Please respond to "Struts Users Mailing List"
   <[EMAIL PROTECTED]>

To:"Struts Users Mailing List (E-mail)"
   <[EMAIL PROTECTED]>
cc:

Subject: with JavaScript


Hi

Can some one please show me a tip on how to pass a dynamic value into a
JavaScript function within  tag? What I need is to pass an
employee ID in the openModal( '/editSalary.do?id=### ).

Here's my code



  function openModal( theURL ){
 window.showModalDialog(theURL,'','dialogWidth:662px;, dialogHeight:180px;
 help:no; scroll:no; status:no; center:yes; resizable:no; unadorned:yes;');
 }



  
  
  




I know how to create a  that generates an HREF with a passing
dynamic parameter value as such



The code above works fine, but I need a way to open a modal dialog window
with a specific size.

Thanks in advance!
Tuan





(See attached file: winmail.dat)
--
To unsubscribe, e-mail:   <
mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:struts-user-help@;jakarta.apache.org>





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




RE: how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
Essentially, yes. Lets say I have 2 fields A & B. I am validating A but it
requires B. If B fails, I'd like to get the arg0 value from B's Field object
and use that in the error message (since there's a key to the display name
in that arg).

I've worked around this by passing in keys as a separate var but like I said
earlier, it's ugly.

-Original Message-
From: Jerry Jalenak [mailto:Jerry.Jalenak@;LABONE.com]
Sent: Tuesday, October 22, 2002 15:29
To: 'Struts Users Mailing List'
Subject: RE: how do i get a Field object in Validator?


Not quite sure I understand your question then.  Are you wanting to
manipulate the error message that is being returned?  In other words, if one
of the 'other' variables fails, then return a message for that failure ?

Jerry

> -Original Message-
> From: Andy Kriger [mailto:akriger@;greaterthanone.com]
> Sent: Tuesday, October 22, 2002 1:45 PM
> To: Struts Users Mailing List
> Subject: RE: how do i get a Field object in Validator?
>
>
> That much I understand - but is it possible to get a
> reference to the Field
> objec that represents that 2nd property? For example, if you
> wanted to get
> message arguments from the other field.
>
> -Original Message-
> From: Jerry Jalenak [mailto:Jerry.Jalenak@;LABONE.com]
> Sent: Tuesday, October 22, 2002 14:19
> To: 'Struts Users Mailing List'
> Subject: RE: how do i get a Field object in Validator?
>
>
> In your validator-rules.xml file, add the following for each
> form field you
> need access to:
>
>   
>depends="yourCustomRoutine">
>   
>
> secondProperty-Label
>
> secondProperty-Value
>   
>   
>   
>
> secondProperty-Label would be what you want to call the
> variable in your
> custom routine; secondProperty-Value would be the actual form
> field name
> that contains the entered value.  Then in your custom routine
> you can access
> these values by
>
>   public static boolean yourCustomRoutine(Object object,
> ValidatorAction va, Field field, ActionErrors errors,
> HttpServletRequest
> request)
>   {
>   String fp = ValidatorUtil.getValueAsString(object,
> field.getProperty());
>   String sp = ValidatorUtil.getValueAsString(object,
> field.getVarValue("secondProperty-Label"));
>
>   ... do something ...
>   return true;  // or false if the validation fails
>   }
>
> HTH,
>
> Jerry
>
> > -Original Message-
> > From: Andy Kriger [mailto:akriger@;greaterthanone.com]
> > Sent: Tuesday, October 22, 2002 11:33 AM
> > To: Struts Users Mailing List
> > Subject: how do i get a Field object in Validator?
> >
> >
> > I am writing a custom rule and I need to know how I can get a
> > handle to a
> > different Field object? (not the one passed into the method
> > in the first
> > place)
> >
> > thx
> > a
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
> This transmission (and any information attached to it) may be
> confidential
> and is intended solely for the use of the individual or
> entity to which it
> is addressed. If you are not the intended recipient or the person
> responsible for delivering the transmission to the intended
> recipient, be
> advised that you have received this transmission in error and
> that any use,
> dissemination, forwarding, printing, or copying of this information is
> strictly prohibited. If you have received this transmission
> in error, please
> immediately notify LabOne at (800)388-4675.
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



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



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: [TILES] Problem using struts actions in tile's template

2002-10-22 Thread James Mitchell
Ken, (long time no type)

It's hard (for me at least) to determine the problem from those spots of
code, but I have a working example that (I think) will demonstrate just what
you are trying to do.

The site it listed below (in my sig block) and the source is available here:
http://www.open-tools.org/struts-atlanta/downloads



James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Ken Riley [mailto:kriley@;allconnect.com]
> Sent: Tuesday, October 22, 2002 5:19 PM
> To: Struts Users Mailing List
> Subject: [TILES] Problem using struts actions in tile's template
>
>
> I'm probably being dense here (not an uncommon occurance) but I
> seem to be unable to
> create a tile layout that uses multiple actions. I have a sample
> below that I'm using to
> test. When I run this, I don't get any output for the header.do
> action call. Ultimately I would
> like to have a layout that calls 4 or 5 actions but I'd like to
> get my test app working first :).
>
> struts-config.xml---
> 
>
>"-//Apache Software Foundation//DTD Struts
> Configuration 1.0//EN"
>   "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> 
>   
>
>   
> type="com.mycompany.test.HeaderAction">
>   
>
> 
>
> type="com.mycompany.test.HeaderAction">
>   
>
> 
>   
> 
> ---END struts-config.xml-
>
> --temptest.jsp---
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> 
> 
> 
> 
> 
> --END temptest.jsp---
>
> --template.jsp---
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
>
> 
> 
> 
> 
>  cellpadding="0">
> 
> 
> 
>
>
>
>
>
>
> 
> 
> 
> 
> 
> --END template.jsp---
>
> --header.jsp-
> THIS IS THE HEADER
> --END header.jsp-
>
> --content.jsp
> THIS IS THE CONTENT!!
> --END content.jsp
>
> Note:HeaderAction and ContentAction are identical except for
> their name. just used for testing
> --ContentAction.java-
> package com.mycompany.test;
>
> import org.apache.struts.action.*;
> import javax.servlet.http.*;
> import javax.servlet.*;
> import java.io.*;
>
> public class ContentAction extends Action {
>
> public ActionForward perform(ActionMapping mapping,
>  ActionForm form,
>  HttpServletRequest request,
>  HttpServletResponse response)
> throws IOException, ServletException {
>
> return mapping.findForward("success");
> }
>
> }
> -END ContentAction.java--
>
> The output I get (Struts 1.1b2/Tomcat 4.1.12)
> [Exception in:/header.do] Cannot forward after response has been
> committed
> [Exception in:/content.do] Cannot forward after response has been
> committed
>
> Thanks for any help/suggestions!
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




struts 1.1 b2 + Weblogic 7.0 = ....

2002-10-22 Thread Louis Leung
Hi all,

 

Previously my app is deployed in WL (weblogic) 7.0 with struts 1.1 b1
and everything works fine.  Then, I upgraded to struts 1.1 b2 by using
the new jar files and tld.  Now the app "crashes" randomly, usually when
a validation is firing.

 

The crash that I experienced is the app will just halt when a form is
submitted, and WL console shows nothing.  Is like the response is going
thru an infinite loop.  Sometimes I get java.lang.OutOfMemoryException
in the WL console and I have to restart the server.  Yup, not just
redeploy, but a restart.

 

I'm pretty sure is not something in my code since I didn't change my
source when I upgrade from struts 1.1 b1, and it was working fine with
beta 1.

 

Had anyone experienced this ?  Any input is appreciated.  Thanks in
advance.

 

 

 

Louis




Re: Security Best-Practices?

2002-10-22 Thread Troy Hart
You can use the same database for CMA and user profile storage, if your
container supports JAAS authentication. All you need to do is write a
LoginModule (see JAAS docs on sun's site) that accesses the user profile
database. When your LoginModule is accessed to login a user it will need
to create a Subject that contains a single "user" Principal who's name
is the id/name of the user in the database. The type of the "user"
Principal must be consistent with what your container expects in order
to implement the HttpServletRequest method:

getUserPrincipal()

Your Subject can also contain multiple "group" principals and other
arbitrary principals. You need to understand the requirements of your
container in this regard, and understand JAAS authorization in general.

My current project is targeted at weblogic 7, so I had to implement one
of their security service provider apis in addition to the LoginModule,
but it works great. When I need to access a user profile object in order
to get an address, or a credit card number, or whatever...I lookup a
user profile for the id returned by:

request.getUserPrincipal().getName()

You obviously need to fill in the gaps here. I have only provided a high
level view of the solution. For example, I haven't mentioned anything
about what you would use to "lookup a user profile". You would NOT use
your LoginModule for this purpose. In my solution my LoginModule uses a
UserProfileStore object that abstracts access to a store of user profile
information. I use this same UserProfileStore from a struts action when
I need to associate a UserProfile object with an HttpSession.

I think this is a pretty clean solution. Hopefully I will have given you
some helpful information.

Good Luck,

Troy



On Tue, 2002-10-22 at 12:14, Adam Sherman wrote:
> Taylor, Jason wrote:
> > Search the mail archive for container-managed authentication (CMA).  There
> > was a lot of discussion on the subject a week or two ago.  Craig McClanahan
> > has posted some good rants on the subject...
> 
> Good reading, thanks.
> 
> I'm thinking that I will have to implement an application-specific user 
> database, and create a new entry in it for every new authenticated user 
> that comes down from the container. Kinda hackish, but I don't see 
> another way.
> 
> That, or use SecurityFilter (http://securityfilter.sourceforge.net/), 
> then move to CMA if I have to.
> 
> Thanks,
> 
> A.
> 
> 
> -- 
> Adam Sherman
> Software Developer
> Teach and Travel Inc.
> +1.613.241.3103
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




RE: [OT] Tomcat not extracting war

2002-10-22 Thread Mark Silva
took me a while to get back to testing this out

The permissions look fine (running under WIN 2000)

i just found this extract from my log files.  i am not sure i understand it.  the war 
file is called aguard.war, which should extract to /webapps/aguard.  it says the dir 
does not exisit.  shouldn't tomcat create the dir for me?

2002-10-22 13:05:38 WebappLoader[/manager]: Deploying class repositories to work 
directory C:\tools\tomcat\work\Standalone\localhost\manager
2002-10-22 13:05:38 StandardManager[/manager]: Seeding random number generator class 
java.security.SecureRandom
2002-10-22 13:05:38 StandardManager[/manager]: Seeding of random number generator has 
been completed
2002-10-22 13:05:38 ContextConfig[/manager]: Added certificates -> request attribute 
Valve
2002-10-22 13:05:38 ContextConfig[/manager]: Configured an authenticator for method 
BASIC
2002-10-22 13:05:38 StandardWrapper[/manager:default]: Loading container servlet 
default
2002-10-22 13:05:39 default: init
2002-10-22 13:05:39 StandardWrapper[/manager:invoker]: Loading container servlet 
invoker
2002-10-22 13:05:39 invoker: init
2002-10-22 13:05:39 jsp: init
2002-10-22 13:05:39 StandardContext[/aguard]: Error initializing resources: Document 
base C:\tools\tomcat\webapps\aguard does not exist or is not a readable directory
2002-10-22 13:05:39 StandardContext[/aguard]: Context startup failed due to previous 
errors
2002-10-22 13:05:39 StandardContext[/aguard]: Exception during cleanup after start 
failed
LifecycleException:  Container StandardContext[/aguard] has not been started
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3495)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3434)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-10-22 13:05:39 StandardHost[localhost]: Installing web application at context 
path  from URL file:C:\tools\tomcat\webapps\ROOT
2002-10-22 13:05:39 WebappLoader[]: Deploying class repositories to work directory 
C:\tools\tomcat\work\Standalone\localhost\_
2002-10-22 13:05:39 StandardManager[]: Seeding random number generator class 
java.security.SecureRandom
2


thanks,
mark

-Original Message-
From: Sean Harrison [mailto:sharrison@;licor.com]
Sent: Friday, October 18, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Tomcat not extracting war






Mark,

If you're getting a FileNotFoundException when Tomcat tries to unpack the war
file, check the permissions of your webapps directory. I had the same problem. I
resolved it by giving the tomcat4 group write permissions to the webapps
directory so it could create the necessary folders/files.

Sean Harrison
Internet Services Administrator






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


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




RE: Validator and required dependency

2002-10-22 Thread Peterkofsky, Don
I'm not sure of the background on this thread, but there may be some
misunderstanding with this.

I looked at the canned rule sets, and was confused by the use of the
"depends" attribute in the rules file, which appears to be the same as the
"depends" attribute in the validation file.  However, my experiments showed
that the "required" dependency in the rules file doesn't have the
effect/behavior that you would assume, like the attribute in the validation
file.  The "required" dependency in the rule set did not appear to evaluate
the "required" rule; in other words, when a rule is used in the validation
file, and the rule definition has the "required" dependency, it does not
seem to embed the "required" rule in the evaluation.  

For example, I could use the "maxlength" rule, and leave the form field
empty, and no validation error would result.  My interpretation of this is
that the "required" dependency in the rules file has a different meaning
than in the validation file, or perhaps is not used. If anyone has a better
understanding or contradictory experience I'd be interested to hear and
understand.


-Original Message-
From: James Turner [mailto:turner@;blackbear.com]
Sent: Tuesday, October 22, 2002 12:24 PM
To: [EMAIL PROTECTED]
Subject: Validator and required dependency




At 11:33 AM 10/22/2002, Eddie Bush <[EMAIL PROTECTED]> wrote:
 >
 >Point noted :-) I'll let someone else explain what the rationale was for 
doing that. I don't know. I am aware
 >that there is change taking place in commons-validator, and also in the 
struts-specific validator, but I
 >couldn't really speak to what changes have been effected by that change.

I don't know the original rationale, but there is a bug report and patch 
filed to remove the required dependency from the canned rulesets. Hopefully 
someone will apply it soon

James



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




[OT] Re: Netscape v4.7x browser, style sheet and font problems

2002-10-22 Thread David Graham
This is not a struts issue because struts doesn't do anything to your 
stylesheets.  It's the container, Netscape, or your stylesheet .

David



From: ajTreece <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Netscape v4.7x browser, style sheet and font problems
Date: Tue, 22 Oct 2002 14:34:25 -0500

Afternoon folks...

This is weird and is really driving me crazy (even though it could be a 
short drive). I'm building a webapp using struts 1.1b1 utilizing tiles and 
the whole nine yards. I'm also using style sheets to somewhat control the 
fonts used and the font sizes on the screen. Using Netscape v6 or 7, the 
Mozilla browsers and even Internet Explorer work beautifully. My problem 
arises when using v4.7x of the Netscape browser. Granted this browser is 
years behind when it comes to current technology,
but there is a big dependence for this browser in my company so I must make 
sure everything is A.O.K. for that platform.

When a page is rendered on the v4.7x browser all text on the page whether 
controlled by the style sheet or not is displayed as one font style and one 
font size. I can't say for sure but the font looks like Verdana around 
48pt. For the longest time I assumed it was just a style sheet issue, but 
I'm not convinced. It's not very scientific, but I copied the source from 
the rendered v4.7x screen into a new html file and when I displayed that 
html file the fonts looked perfect.

This is a big problem for me because I'm in the process of "evangelizing" 
struts technology to the rest of my development group for use in all of our 
applications, but Netscape v4.7x is sticking point that I can't get around.


I'm open for any suggestions...

Thanks, ajTreece


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp


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



RE: with JavaScript

2002-10-22 Thread Tuan H. Le
Jeff,

Thanks for your response! I tried your suggestion, but it seems that 
<%=employee.getId() %> does not get parsed within  tag. When I view the 
html source on the browser, it shows



Other suggestions?

Thanks!
Tuan

-Original Message-
From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw@;nlgroup.ca]
Sent: Tuesday, October 22, 2002 11:02 AM
To: Struts Users Mailing List
Subject: Re:  with JavaScript




Try:

  
  
  






"Tuan H. Le" <[EMAIL PROTECTED]> on 10/22/2002 12:33:02 PM

Please respond to "Struts Users Mailing List"
   <[EMAIL PROTECTED]>

To:"Struts Users Mailing List (E-mail)"
   <[EMAIL PROTECTED]>
cc:

Subject: with JavaScript


Hi

Can some one please show me a tip on how to pass a dynamic value into a
JavaScript function within  tag? What I need is to pass an
employee ID in the openModal( '/editSalary.do?id=### ).

Here's my code



  function openModal( theURL ){
 window.showModalDialog(theURL,'','dialogWidth:662px;, dialogHeight:180px;
 help:no; scroll:no; status:no; center:yes; resizable:no; unadorned:yes;');
 }



  
  
  




I know how to create a  that generates an HREF with a passing
dynamic parameter value as such



The code above works fine, but I need a way to open a modal dialog window
with a specific size.

Thanks in advance!
Tuan





(See attached file: winmail.dat)
--
To unsubscribe, e-mail:   <
mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:struts-user-help@;jakarta.apache.org>





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




[TILES] Problem using struts actions in tile's template

2002-10-22 Thread Ken Riley
I'm probably being dense here (not an uncommon occurance) but I seem to be unable to 
create a tile layout that uses multiple actions. I have a sample below that I'm using 
to 
test. When I run this, I don't get any output for the header.do action call. 
Ultimately I would
like to have a layout that calls 4 or 5 actions but I'd like to get my test app 
working first :).

struts-config.xml---


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

  

  

  

  

  

  

---END struts-config.xml-

--temptest.jsp---
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>





--END temptest.jsp---

--template.jsp---
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>









   
   
   
   
   






--END template.jsp---

--header.jsp-
THIS IS THE HEADER
--END header.jsp-

--content.jsp
THIS IS THE CONTENT!!
--END content.jsp

Note:HeaderAction and ContentAction are identical except for their name. just used for 
testing
--ContentAction.java-
package com.mycompany.test;

import org.apache.struts.action.*;
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;

public class ContentAction extends Action {

public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException {

return mapping.findForward("success");  
}

}
-END ContentAction.java--

The output I get (Struts 1.1b2/Tomcat 4.1.12)
[Exception in:/header.do] Cannot forward after response has been committed   
[Exception in:/content.do] Cannot forward after response has been committed  

Thanks for any help/suggestions! 

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




Re: Precompiling JSP Question

2002-10-22 Thread David M. Karr
> "Kwok" == Kwok Ng  writes:

Kwok> If I want to precomile the jsp files, is that mean I need to change all
Kwok> forwards' paths in the struts-conf.xml?  In addition, I got the
Kwok> NoClassDefFoundError when I tries to compile the jsp files with the following
Kwok> tag in the build.xml

Kwok>destdir="build.classes"
Kwok>   verbose="1"
Kwok>   srcdir="src"
Kwok>   package="com.mydomain.myapp">
Kwok>   
Kwok> 

Kwok> Do you know what was wrong?

Whatever you do to precompile JSP pages, it's important to make sure that the
result does not change the path to each JSP.  When you precompile, you have to
build "servlet-mapping" elements into your "web.xml" file to preserve the
original JSP path.  Each web container has different ways to produce that
output.

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


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




Re: Error Higlighting capability of Struts Tags and JSTL Usage

2002-10-22 Thread David M. Karr
> "bachan" == bachan s  writes:

bachan> Hi,

bachan> Does the input tags in struts have any inbuild error highlighting 
capability .

bachan> What I mean is if the validate / any other method sets an error message 
with the key as the field name of a field , will the tag look into the ActionErrors 
object for each of the input fields and check whether the key is contained in the 
error object and do the following .

bachan> 1. Give focus to the first error field even if the error there is a field 
given for the focus attribute in the form.
bachan> 2. Give a different style background color/ text color to all the error 
filed.

Struts will not do any of this automatically.  You'll have to design this
behavior into your application.

Much of this logic will be in your Action class.  If you detect an error, you
can create an ActionError class, but you can also do creative things like:

1. Using a hashmap in your form bean whose keys are the property names and
whose values are CSS style classes, set the value associated with the property
in error to the style that makes it display in red, or highlighted in some way.

2. Set a property in your form bean that specifies which field is supposed to
get the focus.  Have a javascript block in your JSP that automatically sets the
focus to that field.  Have your Action class determine which field that will
be, depending on which field is in error (if any).

bachan> Also is it advisable to use struts tags /JSTL tags for tags like logic 
,bean etc 

I'm not exactly certain what you mean by this.  There's nothing to prevent you
from using the normal Struts tag library along with the JSTL.  Some of the JSTL
tags provide all of the functionality some of the Struts tags do, so you could
concievably use certain JSTL tags in place of certain Struts tags.

In addition, in the nightly build, there is a new package called "Struts-EL",
which provides a tag library all of whose tags are subclasses of the Struts
tags, but which evaluates attribute values using the JSTL EL engine, instead of
using runtime expression values (scriptlets).  Using this can make some things
less painful, for instance, building a javascript event handler from
concatenated pieces.  This is real ugly in a scriptlet expression (escaped
quotes, etc.), but is nice and clean in the JSTL EL syntax.

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


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




RE: re. i18n

2002-10-22 Thread James Mitchell
Yes, the struts-example (from the distribution) takes advantage of i18n.

Change (or add) browsers settings to use Russian [ru] or Japanese [ja], make
sure the order of precedence is first for one of those.  And hit your
running app. (you might need to restart tomcat to kill the session if you've
already hit the app using the default locale).

Should work fine from there.

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Jeff Born [mailto:jborn@;gr.com]
> Sent: Tuesday, October 22, 2002 2:32 PM
> To: Struts Users Mailing List (E-mail)
> Subject: re. i18n
>
>
> I've had JSTL on my plate of things to look at for some time now.  If it
> makes i18n implementation easier then I'm sold.
>
> However I still want to see how i18n works in struts.  Does anyone have a
> small war file that has i18n working that they could send me?
>
> Any help finding a working war file that I can drop into Tomcat
> 4.1 would be
> appreciated.
>
> Thanks,
>
> jb
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




Redirect Question

2002-10-22 Thread Billy Ng
I am trying to create a redirect method.  What I am trying is following things in the 
Action.  but I got the error saying I can't set the Response since it is already 
commited.  If I don;t want to specify a redirect forward in the struts-conf.xml, how 
can I do it in the Action?

HttpServeletResponse.sendRedirect(url);
return null;

Thanks!

Billy Ng





Re: [J2EE] Does struts follow Sun's Core J2EE patterns

2002-10-22 Thread Kevin . Bedell



I have copy of the J2EE core patterns book on my desk here and I took an
application to production once that was based on Sun's Pet Store app. That
doesn't make me an expert - but I have a couple thoughts...

First - here's a link to Sun's J2EE patterns:
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/

To begin with, Sun publishes a 'catalog' of patterns, not just 'a pattern',
so it's difficult to know specifically which he was referring to.

The closest pattern in the Sun catalog is probably the 'Front Controller'
pattern. I'd say the Front Controller version that uses the 'Servlet Front
Strategy' to be specific.

Looking at the sample code provided by Sun to implement this pattern, what
you find is a 'stripped down' version of the Struts ActionServlet. By
stripped down, I mean:

 - No loading configuration info from XML,
 - the 'forwards' are codified - meaning ActionForwards are not
declarative, you put them in compiled code.
 - The logging is not configurable as commons Logging is
 - The RequestProcessor isn't pluggable
 -  No support for plug-ins, datasources, message resources or i18n

In addition, the pattern has no support for encapsulating error messages,
automatic validation, view building utilities such as tiles, etc, etc, etc.

In other words, it is just a pattern - not a well-developed framework.

However, that being said, your friend is right. He could start with a set
of patterns and build each project that way. He'd even have code to reuse
from old projects to get started with. But the question is, "Why?".

Here are the reasons Struts is superior:

 1. It's much more solid. In Eric Raymond's "Cathedral and the Bazaar"
(http://www.tuxedo.org/~esr/writings/cathedral-bazaar/) he states:

  "Given a large enough beta-tester and co-developer base, almost every problem 
will be characterized quickly and the fix obvious to someone."

  "Or, less formally, ``Given enough eyeballs, all bugs are shallow.'' I dub this: 
``Linus's Law''."

Really, this is the best reason to use Struts. So many people use it that
the bugs are found quickly. If you start with patterns and code the app
yourself, then the end product by definition can't be as robust. This is
also why the Apache web server is so solid and why Linux is much more
stable than anything MS will ever make.

But there are other reasons -

2. HE may understand all the patterns and be able to knock out code quickly
with few bugs, but can everyone on his development team do the same thing?
One of the values of struts is that it hides a lot of the complexity of
coding complex apps. Building Action classes and form beans is much easier
than designing from scratch. All members of the team can be productive
quickly and make fewer mistakes.

3. With Struts much more knowledge is retained from project to project. If
you start with patterns at the beginning of each project, then there will
be a tendency to customize the patterns to fit the particulars of each
project. In fact, many who start with patterns would call this a strength
of that approach. But the downside of this is that your team has to learn
much more each time a new project is started - the way the previous project
worked doesn't always apply.

4. It's also just a lot more work. Why, for example, write and debug code
on your own to initialize data sources when a servlet initializes? Struts
already has that and it's debugged. Why write code for error handling and
form processing and screen building and whatever Sure there are
patterns to follow, but why?

I guess in the end, the reasons above are the problems that Craig saw a
couple years ago when he spent all day on the Tomcat list helping people
build JSP apps (yes, you were answering my questions even back then!).
These are the reasons Struts exists.

Sorry this went a bit long and turned into a bit of a rant -

Kevin








Rick Reumann <[EMAIL PROTECTED]> on 10/22/2002 02:14:05 PM

Please respond to "Struts Users Mailing List"
   <[EMAIL PROTECTED]>

To:Struts List <[EMAIL PROTECTED]>
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[J2EE] Does struts follow Sun's Core J2EE patterns


Over lunch I was discussing struts with someone that works at another
company. He hasn't implemented struts at all but only has looked at
some articles, and doesn't see what all they 'hype' is about. In his
opinion, building a j2ee controller that follow's Sun's J2EE pattern
is not that difficult and using the JSTL he feels more comfortable
using for the view (than say struts tags). He also still questions if
it follows Sun's core J2EE patterns.

I actually explained what I thought most impressive is how the
controller relates to taking in an ActionForm. He feels this breaks
Sun's standard (although I'm not sure why.. time was short).

Does anyone have comments or links to articles where Struts is
supported by those that came up with Sun's J2EE pattern? I've been
searching Google but it's really har

ResultSetDynaClass

2002-10-22 Thread Howard Miller
Hi,

Stupid question alert:

Before I make more work for myself can I ask is there any way (or 
any taglibs) for iterating over a ResultSetDynaClass in a JSP??

It isn't descended from collection, so doesn't work with 
 - shame!!

Howard Miller

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




Netscape v4.7x browser, style sheet and font problems

2002-10-22 Thread ajTreece
Afternoon folks...

This is weird and is really driving me crazy (even though it could be a 
short drive). I'm building a webapp using struts 1.1b1 utilizing tiles 
and the whole nine yards. I'm also using style sheets to somewhat 
control the fonts used and the font sizes on the screen. Using Netscape 
v6 or 7, the Mozilla browsers and even Internet Explorer work 
beautifully. My problem arises when using v4.7x of the Netscape browser. 
Granted this browser is years behind when it comes to current technology,
but there is a big dependence for this browser in my company so I must 
make sure everything is A.O.K. for that platform.

When a page is rendered on the v4.7x browser all text on the page 
whether controlled by the style sheet or not is displayed as one font 
style and one font size. I can't say for sure but the font looks like 
Verdana around 48pt. For the longest time I assumed it was just a style 
sheet issue, but I'm not convinced. It's not very scientific, but I 
copied the source from the rendered v4.7x screen into a new html file 
and when I displayed that html file the fonts looked perfect.

This is a big problem for me because I'm in the process of 
"evangelizing" struts technology to the rest of my development group for 
use in all of our applications, but Netscape v4.7x is sticking point 
that I can't get around.


I'm open for any suggestions...

Thanks, ajTreece


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



RE: how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
Thanks - I've got code like that to validate that 2 fields are equal (sounds
like we could all donate some code to expand the basic rules available to
Validator).

But what I want is the actual Field object (like the one you pass into a
validate method) for another field. I need this so I can get a message
resource from that field (as opposed to passing them in using a var, which I
am now, but don't like because the code is uglier and it duplicates other
validation.xml settings).

-Original Message-
From: Dave Derry [mailto:dderry@;acm.org]
Sent: Tuesday, October 22, 2002 15:18
To: Struts Users Mailing List
Subject: Re: how do i get a Field object in Validator?


Heres a method that I use to validate that one date entered by the user is
earlier than another.

public static boolean validateDateBefore( Object bean, ValidatorAction
va,
 Field field, ActionErrors
errors,
 HttpServletRequest
request )
{
// verify that the bean contains a valid date in the specified
'field'
Date targetDate = StrutsValidator.validateDate( bean, va, field,
errors, request );
if( targetDate == null )
return false;

// get the date to compare to
String later = field.getVarValue( "dateBefore" );
if( GenericValidator.isBlankOrNull( later ) )
{
errors.add( field.getKey(),
StrutsValidatorUtil.getActionError(request, va, field) );
return false;
}
String lDate = ValidatorUtil.getValueAsString( bean, later );
Date laterDate = StrutsValidator.validateDate( lDate, va, field,
errors, request );
if( lDate == null )
return false;

// now we can compare the 2 dates
if( ! isDateAfter( laterDate, targetDate ) )
{
StringBuffer buffer = new StringBuffer( field.getProperty() );
buffer.append( " must be earlier than " ).append( lDate );
errors.add( field.getKey(),
StrutsValidatorUtil.getActionError(request, va, field) );
return false;
}

return true;
}


And this is the entry from validation.xml


 


 dateBefore
 finalDate




The finalDate referenced by var-value is another attribute of my
ValidatorForm.

Does this help?

Dave Derry


- Original Message -
From: "Andy Kriger" <[EMAIL PROTECTED]>


> That much I understand - but is it possible to get a reference to the
Field
> objec that represents that 2nd property? For example, if you wanted to get
> message arguments from the other field.
>
> -Original Message-
> From: Jerry Jalenak [mailto:Jerry.Jalenak@;LABONE.com]
>
>
> In your validator-rules.xml file, add the following for each form field
you
> need access to:
>
> 
> 
> 
> secondProperty-Label
> secondProperty-Value
> 
> 
> 
>
> secondProperty-Label would be what you want to call the variable in your
> custom routine; secondProperty-Value would be the actual form field name
> that contains the entered value.  Then in your custom routine you can
access
> these values by
>
> public static boolean yourCustomRoutine(Object object,
> ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest
> request)
> {
> String fp = ValidatorUtil.getValueAsString(object,
> field.getProperty());
> String sp = ValidatorUtil.getValueAsString(object,
> field.getVarValue("secondProperty-Label"));
>
> ... do something ...
> return true;  // or false if the validation fails
> }
>
> HTH,
>
> Jerry
>
> > -Original Message-
> > From: Andy Kriger [mailto:akriger@;greaterthanone.com]
> >
> >
> > I am writing a custom rule and I need to know how I can get a
> > handle to a
> > different Field object? (not the one passed into the method
> > in the first
> > place)
> >
> > thx
> > a
> >
> >



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Any Web Development Environments that incorporate Struts?

2002-10-22 Thread Jerry Jalenak
We are also using Eclipse, but I would still be interested in seeing your
list of plug-ins.

TIA,

Jerry

> -Original Message-
> From: Haseltine, Celeste [mailto:CHaseltine@;magticket.com]
> Sent: Tuesday, October 22, 2002 2:12 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Any Web Development Environments that incorporate Struts?
> 
> 
> Out of curiosity, what version of Together are you using?  
> I've seen the
> product, but the version that was demo'd for us a while back 
> was way to
> expensive for a small shop like ours to afford.
> 
> We are using Eclipse 2.0.1 with the Struts plugin and several 
> additional
> plugins for JSP, EJB, XML, and HTML development.  We also 
> have a copy of
> Dreamweaver MX and FlashMX, so on occasion, we will design 
> HTML templates to
> convert to JSP templates/pages and/or flash graphics inside of the
> Macromedia Suite.  Although Dreamweaver MX does support JSP 
> development,
> it's not that great of a JSP development environment.  We 
> prefer to stick
> with Eclipse 2.0.1 unless we need to create or tweak a very 
> "involved" JSP
> that was derived from an HTML template.
> 
> If you need a list of plugins and the web links to find them 
> for Eclipse,
> let me know.  Eclipse is free, and so are all the plugins we 
> are using.  
> 
> Celeste Haseltine, PE
> MTL, Inc
> Dallas, TX
> 
> -Original Message-
> From: McLure, David [mailto:David.McLure@;fmr.com]
> Sent: Tuesday, October 22, 2002 12:57 PM
> To: '[EMAIL PROTECTED]'; 'Steven Headley'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: Any Web Development Environments that incorporate Struts?
> 
> 
> I use Together by TogetherSoft.  You can download a free 
> evaluation copy at
> http://www.togethersoft.com.  I have been using Together to 
> design, as well
> as compile, debug, test, and deploy (to it's own bundled 
> Tomcat instance)
> Struts-based web applications for nearly a year now.  We use 
> the product at
> work at Fidelity Investments, and I like it so much, I use it 
> as my own
> personal development tool at home as well.
> 
> Not only is Togethersoft an awesome product, but the company has an
> excellent staff.  One TogetherSoft support rep named James 
> Banks assembled
> an on-line tutorial on how to setup Together to build and 
> deploy the Struts
> example web application.  I have been tweaking it fixing a 
> few bugs and
> adding a workaround or two and I have posted the current 
> tutorial on my web
> site: http://www.mclures.net (just click on the "Struts Info" 
> link, or type
> in the full URL of
> http://www.mclures.net/java/struts/Together/Getting_Started_wi
th_Struts_and_
Together.html).

Enjoy!

Dave McLure
Internet Technology Group
Fidelity e-Business (FeB) Company
Fidelity Investments
[508-35]7-5226
[EMAIL PROTECTED]
pager: (800)759- pin:1257875



-Original Message-
From: Steven Headley [mailto:sheadley@;swbell.net]
Sent: Tuesday, October 22, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: Any Web Development Environments that incorporate Struts?


Hello All,
I have started a web development project and want to incorporate struts
into the plan. I want to be able to use MVC to separate the programmers from
the web designers. Are their any packages avaiable that will allow the
designers the ability to manipulate screens like coldfusion, dreamweaver,
etc which incorporate struts? Curently My designers must work with the html
to move struts code to around. What alternative do I have?



Steven H.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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



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




Re: [J2EE] Does struts follow Sun's Core J2EE patterns

2002-10-22 Thread Kevin . Bedell



I have copy of the J2EE core patterns book on my desk here and I took an
application to production once that was based on Sun's Pet Store app. That
doesn't make me an expert - but I have a couple thoughts...

First - here's a link to Sun's J2EE patterns:
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/

To begin with, Sun publishes a 'catalog' of patterns, not just 'a pattern',
so it's difficult to know specifically which he was referring to.

The closest pattern in the Sun catalog is probably the 'Front Controller'
pattern. I'd say the Front Controller version that uses the 'Servlet Front
Strategy' to be specific.

Looking at the sample code provided by Sun to implement this pattern, what
you find is a 'stripped down' version of the Struts ActionServlet. By
stripped down, I mean:

 - No loading configuration info from XML,
 - the 'forwards' are codified - meaning ActionForwards are not
declarative, you put them in compiled code.
 - The logging is not configurable as commons Logging is
 - The RequestProcessor isn't pluggable
 -  No support for plug-ins, datasources, message resources or i18n

In addition, the pattern has no support for encapsulating error messages,
automatic validation, view building utilities such as tiles, etc, etc, etc.

In other words, it is just a pattern - not a well-developed framework.

However, that being said, your friend is right. He could start with a set
of patterns and build each project that way. He'd even have code to reuse
from old projects to get started with. But the question is, "Why?".

Here are the reasons Struts is superior:

 1. It's much more solid. In Eric Raymond's "Cathedral and the Bazaar"
(http://www.tuxedo.org/~esr/writings/cathedral-bazaar/) he states:

  "Given a large enough beta-tester and co-developer base, almost every problem 
will be characterized quickly and the fix obvious to someone."

  "Or, less formally, ``Given enough eyeballs, all bugs are shallow.'' I dub this: 
``Linus's Law''."

Really, this is the best reason to use Struts. So many people use it that
the bugs are found quickly. If you start with patterns and code the app
yourself, then the end product by definition can't be as robust. This is
also why the Apache web server is so solid and why Linux is much more
stable than anything MS will ever make.

But there are other reasons -

2. HE may understand all the patterns and be able to knock out code quickly
with few bugs, but can everyone on his development team do the same thing?
One of the values of struts is that it hides a lot of the complexity of
coding complex apps. Building Action classes and form beans is much easier
than designing from scratch. All members of the team can be productive
quickly and make fewer mistakes.

3. With Struts much more knowledge is retained from project to project. If
you start with patterns at the beginning of each project, then there will
be a tendency to customize the patterns to fit the particulars of each
project. In fact, many who start with patterns would call this a strength
of that approach. But the downside of this is that your team has to learn
much more each time a new project is started - the way the previous project
worked doesn't always apply.

4. It's also just a lot more work. Why, for example, write and debug code
on your own to initialize data sources when a servlet initializes? Struts
already has that and it's debugged. Why write code for error handling and
form processing and screen building and whatever Sure there are
patterns to follow, but why?

I guess in the end, the reasons above are the problems that Craig saw a
couple years ago when he spent all day on the Tomcat list helping people
build JSP apps (yes, you were answering my questions even back then!).
These are the reasons Struts exists.

Sorry this went a bit long and turned into a bit of a rant -

Kevin

















Rick Reumann <[EMAIL PROTECTED]> on 10/22/2002 02:14:05 PM

Please respond to "Struts Users Mailing List"
   <[EMAIL PROTECTED]>

To:Struts List <[EMAIL PROTECTED]>
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:[J2EE] Does struts follow Sun's Core J2EE patterns


Over lunch I was discussing struts with someone that works at another
company. He hasn't implemented struts at all but only has looked at
some articles, and doesn't see what all they 'hype' is about. In his
opinion, building a j2ee controller that follow's Sun's J2EE pattern
is not that difficult and using the JSTL he feels more comfortable
using for the view (than say struts tags). He also still questions if
it follows Sun's core J2EE patterns.

I actually explained what I thought most impressive is how the
controller relates to taking in an ActionForm. He feels this breaks
Sun's standard (although I'm not sure why.. time was short).

Does anyone have comments or links to articles where Struts is
supported by those that came up with Sun's J2EE pattern? I've been
searching Google but it's r

Precompiling JSP Question

2002-10-22 Thread Kwok Ng
If I want to precomile the jsp files, is that mean I need to change all
forwards' paths in the struts-conf.xml?  In addition, I got the
NoClassDefFoundError when I tries to compile the jsp files with the following
tag in the build.xml


  


Do you know what was wrong?

Thanks

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




Error Higlighting capability of Struts Tags and JSTL Usage

2002-10-22 Thread bachan s

Hi,

Does the input tags in struts have any inbuild error highlighting capability .

What I mean is if the validate / any other method sets an error message with the key 
as the field name of a field , will the tag look into the ActionErrors object for each 
of the input fields and check whether the key is contained in the error object and do 
the following .

1. Give focus to the first error field even if the error there is a field given for 
the focus attribute in the form.

2. Give a different style background color/ text color to all the error filed.

Also is it advisable to use struts tags /JSTL tags for tags like logic ,bean etc 

Thanks !

Bachan



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


[OT] Tomcat not extracting war

2002-10-22 Thread Mark Silva
took me a while to get back to testing this out

The permissions look fine (running under WIN 2000)

i just found this extract from my log files.  i am not sure i understand it.  the war 
file is called aguard.war, which should extract to /webapps/aguard.  it says the dir 
does not exisit.  shouldn't tomcat create the dir for me?

2002-10-22 13:05:38 WebappLoader[/manager]: Deploying class repositories to work 
directory C:\tools\tomcat\work\Standalone\localhost\manager
2002-10-22 13:05:38 StandardManager[/manager]: Seeding random number generator class 
java.security.SecureRandom
2002-10-22 13:05:38 StandardManager[/manager]: Seeding of random number generator has 
been completed
2002-10-22 13:05:38 ContextConfig[/manager]: Added certificates -> request attribute 
Valve
2002-10-22 13:05:38 ContextConfig[/manager]: Configured an authenticator for method 
BASIC
2002-10-22 13:05:38 StandardWrapper[/manager:default]: Loading container servlet 
default
2002-10-22 13:05:39 default: init
2002-10-22 13:05:39 StandardWrapper[/manager:invoker]: Loading container servlet 
invoker
2002-10-22 13:05:39 invoker: init
2002-10-22 13:05:39 jsp: init
2002-10-22 13:05:39 StandardContext[/aguard]: Error initializing resources: Document 
base C:\tools\tomcat\webapps\aguard does not exist or is not a readable directory
2002-10-22 13:05:39 StandardContext[/aguard]: Context startup failed due to previous 
errors
2002-10-22 13:05:39 StandardContext[/aguard]: Exception during cleanup after start 
failed
LifecycleException:  Container StandardContext[/aguard] has not been started
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3495)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3434)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-10-22 13:05:39 StandardHost[localhost]: Installing web application at context 
path  from URL file:C:\tools\tomcat\webapps\ROOT
2002-10-22 13:05:39 WebappLoader[]: Deploying class repositories to work directory 
C:\tools\tomcat\work\Standalone\localhost\_
2002-10-22 13:05:39 StandardManager[]: Seeding random number generator class 
java.security.SecureRandom
2


thanks,
mark

-Original Message-
From: Sean Harrison [mailto:sharrison@;licor.com]
Sent: Friday, October 18, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Tomcat not extracting war






Mark,

If you're getting a FileNotFoundException when Tomcat tries to unpack the war
file, check the permissions of your webapps directory. I had the same problem. I
resolved it by giving the tomcat4 group write permissions to the webapps
directory so it could create the necessary folders/files.

Sean Harrison
Internet Services Administrator






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


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




No action instance for path /html/LogonAction could be created

2002-10-22 Thread Vikas Malla

 
 
Consequently, I am getting this error in my junit test:


[junit] was expecting '/app/html/home.jsp' but received '/appnull'
[junit] junit.framework.AssertionFailedError: was expecting '/awf/html/index
.jsp?s=2' but received '/awfnull'
[junit] at servletunit.struts.Common.verifyForwardPath(Common.java:104)
[junit] at servletunit.struts.CactusStrutsTestCase.verifyForward(CactusS
trutsTestCase.java:418)
[junit] at MyTest.testSuccessfulLogin(Unkno
wn Source)
[junit] at org.apache.cactus.AbstractTestCase.runServerTest(AbstractTest
Case.java:332)
[junit] at org.apache.cactus.AbstractTestCase.runBareServerTest(Abstract
TestCase.java:235)
[junit] at org.apache.cactus.server.AbstractWebTestCaller.doTest(Abstrac
tWebTestCaller.java:149)
[junit] at org.apache.cactus.server.AbstractWebTestController.dispatch87
_handleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspe
ct.aj(1k):125)
[junit] at org.apache.cactus.server.AbstractWebTestController.around87_h
andleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect
.aj(1k):1149)
[junit] at org.apache.cactus.server.AbstractWebTestController.handleRequ
est(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):1
01)
[junit] at org.apache.cactus.server.ServletTestRedirector.dispatch113_do
Post(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):123)
[junit] at org.apache.cactus.server.ServletTestRedirector.around113_doPo
st(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1149)
[junit] at org.apache.cactus.server.ServletTestRedirector.doPost(Servlet
TestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):109)
[junit] at org.apache.cactus.server.ServletTestRedirector.dispatch112_do
Get(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):96)
[junit] at org.apache.cactus.server.ServletTestRedirector.around112_doGe
t(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1149)
[junit] at org.apache.cactus.server.ServletTestRedirector.doGet(ServletT
estRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):92)
[junit] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[junit] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[junit] at org.apache.catalina.core.ApplicationFilterChain.internalDoFil
ter(ApplicationFilterChain.java:247)
[junit] at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
icationFilterChain.java:193)
[junit] at org.apache.catalina.core.StandardWrapperValve.invoke(Standard
WrapperValve.java:243)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:566)
[junit] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
line.java:472)
[junit] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
ava:943)
[junit] at org.apache.catalina.core.StandardContextValve.invoke(Standard
ContextValve.java:190)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:566)
[junit] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
line.java:472)
[junit] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
ava:943)
[junit] at org.apache.catalina.core.StandardContext.invoke(StandardConte
xt.java:2343)
[junit] at org.apache.catalina.core.StandardHostValve.invoke(StandardHos
tValve.java:180)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:566)
[junit] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorD
ispatcherValve.java:170)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:564)
[junit] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor
tValve.java:170)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:564)
[junit] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVal
ve.java:468)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:564)
[junit] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
line.java:472)
[junit] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
ava:943)
[junit] at org.apache.catalina.core.StandardEngineValve.invoke(StandardE
ngineValve.java:174)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:566)
[junit] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
line.java:472)
[junit] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
ava:943)
[junit] at org.apache.catalina.connector.http.HttpProcessor.process(Http
Processor.java:1012)
[junit] at org.apache.catalina.connector.http.HttpProcessor.run(HttpProc
essor.java:1107)
[junit] at java.lang.Thread.run(Thread.java:484)

 


  
  



My server side error log tells me - "The server encountered an internal error (No 
action instance for path /html/LogonAction could be created) that prevented it from 
fulfilling this request.

RE: struts Newbie - login screen

2002-10-22 Thread bachan s

Struts can help yon in this .If you ever use a back button and go back you can make 
use of struts feature to take user to an error page .
You have to make a call to saveToken() method in your ActionClasses.
Thanks !
Bachan
 Sri Sankaran <[EMAIL PROTECTED]> wrote:This is one of the arguments that can go on 
for a long time. My thoughts on this subject are that the server can make no 
assumptions about the client other than what it knows. This philosophy permeates more 
than the 'back' button issue. It applies to validation, authentication etc.

The server doesn't know that the user used the 'back' button. There are client-side 
technologies, such as JavaScript as your pointed out, that can aid in passing the 
server additional information. However, there could be other mitigating factors that 
makes using JavaScript or cookies not worth it in the long term.

Think about the various sites on the web that authenticate the user. Majority of them 
don't do anything to prevent the user from re-logging in.

Finally, if re-authenticating a user is such a hassle, one technique that isn't 
anathema in all situations is to trigger a new window to start your application upon 
user authentication.

Sri

-Original Message-
From: deepank [mailto:deepank@;sasken.com] 
Sent: Monday, October 21, 2002 9:44 AM
To: Struts Users Mailing List
Subject: Re: struts Newbie - login screen 


Why should a new session be initialized for nothing!!!
- Original Message -
From: "Sri Sankaran" 
To: "Struts Users Mailing List" 
Sent: Monday, October 21, 2002 7:01 PM
Subject: RE: struts Newbie - login screen


> What's wrong if the user navigates back and views the login screen?
>
> Your application can just discard the earlier session and 
> re-initialize.
>
> Don't try to circumvent standard browser behavior.
>
> Sri
>
> -Original Message-
> From: deepank [mailto:deepank@;sasken.com]
> Sent: Monday, October 21, 2002 9:33 AM
> To: Struts Users Mailing List
> Subject: struts Newbie - login screen
>
>
> Hi,
> This question is not exclusive to Struts but i am hopeful Stuts must 
> be
having a solution for this.
>
> Once i authenticate a user and store his user information in session, 
> i
dont want that the login screen should appear again, unless ofcourse the user logs out 
or the session expires. As of now in my application, the user can always click the 
"BACK" button
> on the browser and access the login screen. MUST i use JAVASCRIPT to
prevent this, or Struts can help me here.
>
> Deepank
>
> --
> 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: 



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


Re: Form submission

2002-10-22 Thread Eddie Bush
Sorry -- Out of Luck.

That's the nice way to put it ;-)  Different people substitute different 
words for the S.  I'll leave alternatives to your imagination ...

Kyrre Lugg wrote:

James Mitchell wrote:


This means you are in a status of SOL.



SOL?

Kyrre Lugg 


--
Eddie Bush




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




RE: Any Web Development Environments that incorporate Struts?

2002-10-22 Thread Haseltine, Celeste
Out of curiosity, what version of Together are you using?  I've seen the
product, but the version that was demo'd for us a while back was way to
expensive for a small shop like ours to afford.

We are using Eclipse 2.0.1 with the Struts plugin and several additional
plugins for JSP, EJB, XML, and HTML development.  We also have a copy of
Dreamweaver MX and FlashMX, so on occasion, we will design HTML templates to
convert to JSP templates/pages and/or flash graphics inside of the
Macromedia Suite.  Although Dreamweaver MX does support JSP development,
it's not that great of a JSP development environment.  We prefer to stick
with Eclipse 2.0.1 unless we need to create or tweak a very "involved" JSP
that was derived from an HTML template.

If you need a list of plugins and the web links to find them for Eclipse,
let me know.  Eclipse is free, and so are all the plugins we are using.  

Celeste Haseltine, PE
MTL, Inc
Dallas, TX

-Original Message-
From: McLure, David [mailto:David.McLure@;fmr.com]
Sent: Tuesday, October 22, 2002 12:57 PM
To: '[EMAIL PROTECTED]'; 'Steven Headley'
Cc: '[EMAIL PROTECTED]'
Subject: RE: Any Web Development Environments that incorporate Struts?


I use Together by TogetherSoft.  You can download a free evaluation copy at
http://www.togethersoft.com.  I have been using Together to design, as well
as compile, debug, test, and deploy (to it's own bundled Tomcat instance)
Struts-based web applications for nearly a year now.  We use the product at
work at Fidelity Investments, and I like it so much, I use it as my own
personal development tool at home as well.

Not only is Togethersoft an awesome product, but the company has an
excellent staff.  One TogetherSoft support rep named James Banks assembled
an on-line tutorial on how to setup Together to build and deploy the Struts
example web application.  I have been tweaking it fixing a few bugs and
adding a workaround or two and I have posted the current tutorial on my web
site: http://www.mclures.net (just click on the "Struts Info" link, or type
in the full URL of
http://www.mclures.net/java/struts/Together/Getting_Started_with_Struts_and_
Together.html).

Enjoy!

Dave McLure
Internet Technology Group
Fidelity e-Business (FeB) Company
Fidelity Investments
[508-35]7-5226
[EMAIL PROTECTED]
pager: (800)759- pin:1257875



-Original Message-
From: Steven Headley [mailto:sheadley@;swbell.net]
Sent: Tuesday, October 22, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: Any Web Development Environments that incorporate Struts?


Hello All,
I have started a web development project and want to incorporate struts
into the plan. I want to be able to use MVC to separate the programmers from
the web designers. Are their any packages avaiable that will allow the
designers the ability to manipulate screens like coldfusion, dreamweaver,
etc which incorporate struts? Curently My designers must work with the html
to move struts code to around. What alternative do I have?



Steven H.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




IllegalStateException while using

2002-10-22 Thread atta ur-rehman
Dear all, 

While conditionally forwarding to another jsp page my Struts/Tiles page throws this 
exception:

java.lang.IllegalStateException: reset() failed - data has already been sent to client

I don't understand what's going on. Any help would be greatly appreciated.

Regards,

ATTA



RE: how do i get a Field object in Validator?

2002-10-22 Thread Jerry Jalenak
Not quite sure I understand your question then.  Are you wanting to
manipulate the error message that is being returned?  In other words, if one
of the 'other' variables fails, then return a message for that failure ?

Jerry

> -Original Message-
> From: Andy Kriger [mailto:akriger@;greaterthanone.com]
> Sent: Tuesday, October 22, 2002 1:45 PM
> To: Struts Users Mailing List
> Subject: RE: how do i get a Field object in Validator?
> 
> 
> That much I understand - but is it possible to get a 
> reference to the Field
> objec that represents that 2nd property? For example, if you 
> wanted to get
> message arguments from the other field.
> 
> -Original Message-
> From: Jerry Jalenak [mailto:Jerry.Jalenak@;LABONE.com]
> Sent: Tuesday, October 22, 2002 14:19
> To: 'Struts Users Mailing List'
> Subject: RE: how do i get a Field object in Validator?
> 
> 
> In your validator-rules.xml file, add the following for each 
> form field you
> need access to:
> 
>   
>depends="yourCustomRoutine">
>   
>   
> secondProperty-Label
>   
> secondProperty-Value
>   
>   
>   
> 
> secondProperty-Label would be what you want to call the 
> variable in your
> custom routine; secondProperty-Value would be the actual form 
> field name
> that contains the entered value.  Then in your custom routine 
> you can access
> these values by
> 
>   public static boolean yourCustomRoutine(Object object,
> ValidatorAction va, Field field, ActionErrors errors, 
> HttpServletRequest
> request)
>   {
>   String fp = ValidatorUtil.getValueAsString(object,
> field.getProperty());
>   String sp = ValidatorUtil.getValueAsString(object,
> field.getVarValue("secondProperty-Label"));
> 
>   ... do something ...
>   return true;  // or false if the validation fails
>   }
> 
> HTH,
> 
> Jerry
> 
> > -Original Message-
> > From: Andy Kriger [mailto:akriger@;greaterthanone.com]
> > Sent: Tuesday, October 22, 2002 11:33 AM
> > To: Struts Users Mailing List
> > Subject: how do i get a Field object in Validator?
> >
> >
> > I am writing a custom rule and I need to know how I can get a
> > handle to a
> > different Field object? (not the one passed into the method
> > in the first
> > place)
> >
> > thx
> > a
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> 
> This transmission (and any information attached to it) may be 
> confidential
> and is intended solely for the use of the individual or 
> entity to which it
> is addressed. If you are not the intended recipient or the person
> responsible for delivering the transmission to the intended 
> recipient, be
> advised that you have received this transmission in error and 
> that any use,
> dissemination, forwarding, printing, or copying of this information is
> strictly prohibited. If you have received this transmission 
> in error, please
> immediately notify LabOne at (800)388-4675.
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:



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



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




Re: [J2EE] Does struts follow Sun's Core J2EE patterns

2002-10-22 Thread V. Cekvenich
" building a j2ee controller that follow's Sun's J2EE pattern
is not that difficult", so I guess Struts must have taken 1-2 programers 
 a very short time to design, implement, debug, P&T, and document? :-)

There are 2 types of people, people that drive a car to work.
And people that get under the car a fix the car.

You can either write both the framework and the application, or just 
start with a working framework and write the application.
One allows you to focus on the business problem issues.

The other one is more a hobbies approach of hey, lets' play with 
technology and see if the company will pay for it.

I like to drive the car, no need to worry about the combustion engine.

Why do you care if he fails? It is sort of like being an MD and knocking 
on someones door and saying I'd like to give you a shot. If an 
organizations wants to be more effective, they will look ask on their 
own (or fail in IT).


.V



Rick Reumann wrote:
Over lunch I was discussing struts with someone that works at another
company. He hasn't implemented struts at all but only has looked at
some articles, and doesn't see what all they 'hype' is about. In his
opinion, building a j2ee controller that follow's Sun's J2EE pattern
is not that difficult and using the JSTL he feels more comfortable
using for the view (than say struts tags). He also still questions if
it follows Sun's core J2EE patterns.

I actually explained what I thought most impressive is how the
controller relates to taking in an ActionForm. He feels this breaks
Sun's standard (although I'm not sure why.. time was short).

Does anyone have comments or links to articles where Struts is
supported by those that came up with Sun's J2EE pattern? I've been
searching Google but it's really hard to get a foothold on the best/
most pertinent stuff.

Thanks for any information anyone could provide.






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




Validator and required dependency

2002-10-22 Thread James Turner


At 11:33 AM 10/22/2002, Eddie Bush <[EMAIL PROTECTED]> wrote:
>
>Point noted :-) I'll let someone else explain what the rationale was for 
doing that. I don't know. I am aware
>that there is change taking place in commons-validator, and also in the 
struts-specific validator, but I
>couldn't really speak to what changes have been effected by that change.

I don't know the original rationale, but there is a bug report and patch 
filed to remove the required dependency from the canned rulesets. Hopefully 
someone will apply it soon

James



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



No action instance for path /html/LogonAction could be created

2002-10-22 Thread Vikas Malla

Consequently, I am getting this error in my junit test:
[junit] was expecting '/app/html/index.jsp' but received '/appnull'
[junit] junit.framework.AssertionFailedError: was expecting '/awf/html/index
.jsp?s=2' but received '/awfnull'
[junit] at servletunit.struts.Common.verifyForwardPath(Common.java:104)
[junit] at servletunit.struts.CactusStrutsTestCase.verifyForward(CactusS
trutsTestCase.java:418)
[junit] at MyTest.testSuccessfulLogin(Unkno
wn Source)
[junit] at org.apache.cactus.AbstractTestCase.runServerTest(AbstractTest
Case.java:332)
[junit] at org.apache.cactus.AbstractTestCase.runBareServerTest(Abstract
TestCase.java:235)
[junit] at org.apache.cactus.server.AbstractWebTestCaller.doTest(Abstrac
tWebTestCaller.java:149)
[junit] at org.apache.cactus.server.AbstractWebTestController.dispatch87
_handleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspe
ct.aj(1k):125)
[junit] at org.apache.cactus.server.AbstractWebTestController.around87_h
andleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect
.aj(1k):1149)
[junit] at org.apache.cactus.server.AbstractWebTestController.handleRequ
est(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):1
01)
[junit] at org.apache.cactus.server.ServletTestRedirector.dispatch113_do
Post(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):123)
[junit] at org.apache.cactus.server.ServletTestRedirector.around113_doPo
st(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1149)
[junit] at org.apache.cactus.server.ServletTestRedirector.doPost(Servlet
TestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):109)
[junit] at org.apache.cactus.server.ServletTestRedirector.dispatch112_do
Get(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):96)
[junit] at org.apache.cactus.server.ServletTestRedirector.around112_doGe
t(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1149)
[junit] at org.apache.cactus.server.ServletTestRedirector.doGet(ServletT
estRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):92)
[junit] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[junit] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[junit] at org.apache.catalina.core.ApplicationFilterChain.internalDoFil
ter(ApplicationFilterChain.java:247)
[junit] at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
icationFilterChain.java:193)
[junit] at org.apache.catalina.core.StandardWrapperValve.invoke(Standard
WrapperValve.java:243)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:566)
[junit] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
line.java:472)
[junit] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
ava:943)
[junit] at org.apache.catalina.core.StandardContextValve.invoke(Standard
ContextValve.java:190)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:566)
[junit] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
line.java:472)
[junit] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
ava:943)
[junit] at org.apache.catalina.core.StandardContext.invoke(StandardConte
xt.java:2343)
[junit] at org.apache.catalina.core.StandardHostValve.invoke(StandardHos
tValve.java:180)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:566)
[junit] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorD
ispatcherValve.java:170)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:564)
[junit] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor
tValve.java:170)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:564)
[junit] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVal
ve.java:468)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:564)
[junit] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
line.java:472)
[junit] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
ava:943)
[junit] at org.apache.catalina.core.StandardEngineValve.invoke(StandardE
ngineValve.java:174)
[junit] at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:566)
[junit] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
line.java:472)
[junit] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
ava:943)
[junit] at org.apache.catalina.connector.http.HttpProcessor.process(Http
Processor.java:1012)
[junit

Re: Form submission

2002-10-22 Thread Adam Sherman
Kyrre Lugg wrote:

James Mitchell wrote:


This means you are in a status of SOL.



SOL?


Sh*t Out of Luck.

A.

--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



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




Re: how do i get a Field object in Validator?

2002-10-22 Thread Dave Derry
Heres a method that I use to validate that one date entered by the user is
earlier than another.

public static boolean validateDateBefore( Object bean, ValidatorAction
va,
 Field field, ActionErrors
errors,
 HttpServletRequest
request )
{
// verify that the bean contains a valid date in the specified
'field'
Date targetDate = StrutsValidator.validateDate( bean, va, field,
errors, request );
if( targetDate == null )
return false;

// get the date to compare to
String later = field.getVarValue( "dateBefore" );
if( GenericValidator.isBlankOrNull( later ) )
{
errors.add( field.getKey(),
StrutsValidatorUtil.getActionError(request, va, field) );
return false;
}
String lDate = ValidatorUtil.getValueAsString( bean, later );
Date laterDate = StrutsValidator.validateDate( lDate, va, field,
errors, request );
if( lDate == null )
return false;

// now we can compare the 2 dates
if( ! isDateAfter( laterDate, targetDate ) )
{
StringBuffer buffer = new StringBuffer( field.getProperty() );
buffer.append( " must be earlier than " ).append( lDate );
errors.add( field.getKey(),
StrutsValidatorUtil.getActionError(request, va, field) );
return false;
}

return true;
}


And this is the entry from validation.xml


 


 dateBefore
 finalDate




The finalDate referenced by var-value is another attribute of my
ValidatorForm.

Does this help?

Dave Derry


- Original Message -
From: "Andy Kriger" <[EMAIL PROTECTED]>


> That much I understand - but is it possible to get a reference to the
Field
> objec that represents that 2nd property? For example, if you wanted to get
> message arguments from the other field.
>
> -Original Message-
> From: Jerry Jalenak [mailto:Jerry.Jalenak@;LABONE.com]
>
>
> In your validator-rules.xml file, add the following for each form field
you
> need access to:
>
> 
> 
> 
> secondProperty-Label
> secondProperty-Value
> 
> 
> 
>
> secondProperty-Label would be what you want to call the variable in your
> custom routine; secondProperty-Value would be the actual form field name
> that contains the entered value.  Then in your custom routine you can
access
> these values by
>
> public static boolean yourCustomRoutine(Object object,
> ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest
> request)
> {
> String fp = ValidatorUtil.getValueAsString(object,
> field.getProperty());
> String sp = ValidatorUtil.getValueAsString(object,
> field.getVarValue("secondProperty-Label"));
>
> ... do something ...
> return true;  // or false if the validation fails
> }
>
> HTH,
>
> Jerry
>
> > -Original Message-
> > From: Andy Kriger [mailto:akriger@;greaterthanone.com]
> >
> >
> > I am writing a custom rule and I need to know how I can get a
> > handle to a
> > different Field object? (not the one passed into the method
> > in the first
> > place)
> >
> > thx
> > a
> >
> >



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




Re: Form submission

2002-10-22 Thread Kyrre Lugg
James Mitchell wrote:

This means you are in a status of SOL.



SOL?

Kyrre Lugg


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




RE: Any Web Development Environments that incorporate Struts?

2002-10-22 Thread McLure, David
I use Together by TogetherSoft.  You can download a free evaluation copy at
http://www.togethersoft.com.  I have been using Together to design, as well
as compile, debug, test, and deploy (to it's own bundled Tomcat instance)
Struts-based web applications for nearly a year now.  We use the product at
work at Fidelity Investments, and I like it so much, I use it as my own
personal development tool at home as well.

Not only is Togethersoft an awesome product, but the company has an
excellent staff.  One TogetherSoft support rep named James Banks assembled
an on-line tutorial on how to setup Together to build and deploy the Struts
example web application.  I have been tweaking it fixing a few bugs and
adding a workaround or two and I have posted the current tutorial on my web
site: http://www.mclures.net (just click on the "Struts Info" link, or type
in the full URL of
http://www.mclures.net/java/struts/Together/Getting_Started_with_Struts_and_
Together.html).

Enjoy!

Dave McLure
Internet Technology Group
Fidelity e-Business (FeB) Company
Fidelity Investments
[508-35]7-5226
[EMAIL PROTECTED]
pager: (800)759- pin:1257875



-Original Message-
From: Steven Headley [mailto:sheadley@;swbell.net]
Sent: Tuesday, October 22, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: Any Web Development Environments that incorporate Struts?


Hello All,
I have started a web development project and want to incorporate struts
into the plan. I want to be able to use MVC to separate the programmers from
the web designers. Are their any packages avaiable that will allow the
designers the ability to manipulate screens like coldfusion, dreamweaver,
etc which incorporate struts? Curently My designers must work with the html
to move struts code to around. What alternative do I have?



Steven H.


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




RE: [J2EE] Does struts follow Sun's Core J2EE patterns

2002-10-22 Thread Greg.Reddin
Sun's J2EE Blueprints book lists Struts as one of three "frameworks of
particular interest" when discussing web-tier frameworks.  Struts is
mentioned second.  The first one mentioned is the "J2EE BluePrints Web
Application Framework (WAF)", which "forms the infrastructure of the
sample application."  If you read the description of this framework it
sounds *a lot* like Struts, conceptually.  In fact, I read somwhere a
year or so ago (JavaPro maybe?) that Struts was going to be integrated
into the Blueprints.  I don't know if that meant WAF would be based on
Struts or what.

At any rate, there's no basis for claims that Struts does not follow
Sun's J2EE paterns.  It's listed as a "Model" framework in their
blueprints book.

Your friend is right that building a controller is not that difficult,
but it's even less difficult to just use one that's already built.
Plus, it lessens much of the desire to keep adding useless features to
the one you build.

Greg

> -Original Message-
> From: Rick Reumann [mailto:maillist@;reumann.net]
> Sent: Tuesday, October 22, 2002 1:14 PM
> To: Struts List
> Subject: [J2EE] Does struts follow Sun's Core J2EE patterns
> 
> 
> Over lunch I was discussing struts with someone that works at another
> company. He hasn't implemented struts at all but only has looked at
> some articles, and doesn't see what all they 'hype' is about. In his
> opinion, building a j2ee controller that follow's Sun's J2EE pattern
> is not that difficult and using the JSTL he feels more comfortable
> using for the view (than say struts tags). He also still questions if
> it follows Sun's core J2EE patterns.
> 
> I actually explained what I thought most impressive is how the
> controller relates to taking in an ActionForm. He feels this breaks
> Sun's standard (although I'm not sure why.. time was short).
> 
> Does anyone have comments or links to articles where Struts is
> supported by those that came up with Sun's J2EE pattern? I've been
> searching Google but it's really hard to get a foothold on the best/
> most pertinent stuff.
> 
> Thanks for any information anyone could provide.
> 
> -- 
> 
> Rick
> mailto:maillist@;reumann.net
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:



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




RE: Security Best-Practices?

2002-10-22 Thread Wendy Smoak
> I'm thinking that I will have to implement an application-specific user 
> database, and create a new entry in it for every new authenticated user 
> that comes down from the container. Kinda hackish, but I don't see 
> another way.

We have a campus-wide single sign-on thing-- it issues you a cookie, and
each page has a tag that checks back against the database to make sure that
cookie belongs to that IP address and hasn't expired.

Ours is kept under wraps, but I understand from Shawn Bayern that Yale has a
similar system and that theirs is open source.  Maybe check the Yale website
for info, or check with Shawn.  I had a link to it at one point but can't
find it now.

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



Re: [Logging] How to make the darn logs work again?

2002-10-22 Thread Eddie Bush
Andrew Hill wrote:


Nope. I dont have a log4j.properties


Past the lines I showed you into a log4j.properties file then ;-)


At this point methinks me shall go home (11pm) before me throws me computer
out the window in a fit of anger at having to learn how to set up
(re-install?) yet another technology (log4j) while me is in the middle of
trying to learn digester (which is pretty cool btw!).


HEH - you're making it too hard :-)  Be sure you grab the latest 
commons-logging-1.0.1.jar before you get too fired up.  Drop it in your 
lib.  There was a build error that ... well, you want to get a different 
JAR than is with b2 if you're using log4j ;-)

Ill try and chase up a property file in the morning - but where should this
file have come from in the first place so I know where to get it from?


You create it.  There isn't one anywhere I'm aware of.  See the log4j 
site on how to setup your config - that little snippet I gave you before 
should get you started on the "right track".  Just drop another post if 
you keep having fits.  Be sure you upgrade your commons-logging though. 
I think I forgot to mention that earlier.

--
Eddie Bush




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



RE: how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
That much I understand - but is it possible to get a reference to the Field
objec that represents that 2nd property? For example, if you wanted to get
message arguments from the other field.

-Original Message-
From: Jerry Jalenak [mailto:Jerry.Jalenak@;LABONE.com]
Sent: Tuesday, October 22, 2002 14:19
To: 'Struts Users Mailing List'
Subject: RE: how do i get a Field object in Validator?


In your validator-rules.xml file, add the following for each form field you
need access to:




secondProperty-Label
secondProperty-Value




secondProperty-Label would be what you want to call the variable in your
custom routine; secondProperty-Value would be the actual form field name
that contains the entered value.  Then in your custom routine you can access
these values by

public static boolean yourCustomRoutine(Object object,
ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest
request)
{
String fp = ValidatorUtil.getValueAsString(object,
field.getProperty());
String sp = ValidatorUtil.getValueAsString(object,
field.getVarValue("secondProperty-Label"));

... do something ...
return true;  // or false if the validation fails
}

HTH,

Jerry

> -Original Message-
> From: Andy Kriger [mailto:akriger@;greaterthanone.com]
> Sent: Tuesday, October 22, 2002 11:33 AM
> To: Struts Users Mailing List
> Subject: how do i get a Field object in Validator?
>
>
> I am writing a custom rule and I need to know how I can get a
> handle to a
> different Field object? (not the one passed into the method
> in the first
> place)
>
> thx
> a
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>

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



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Problems with logic:iterate

2002-10-22 Thread Gekka
Thanks!! I've been struggling with this all day :D

Gekka

On Tue, 2002-10-22 at 20:19, Karr, David wrote:
> > -Original Message-
> > From: Gekka [mailto:gekka@;bluezone.no]
> > Sent: Tuesday, October 22, 2002 10:57 AM
> > 
> > I'm using Struts 1.1b2 and Tomcat 4.1.12 on Windows 2000 and 
> > I have some
> > problems with the logic iterate tag. What I do is that I set a
> > Collection (HashSet) in the request object inside execute() 
> > in an action
> > and then pass control to a jsp to iterate over the results. 
> > Here's what
> > I do in the jsp:
> > 
> >  > type="bean.HTMLLink">
> >  > property="url"/>">
> > 
> > 
> > 
> 
> You can't directly reference a custom tag in the attribute value of a custom
> tag.  You normally have to use a scriptlet to reference the value.
> 
> It has to look like this:
> 
> 
> 
> Alternatively, using the Struts-EL package in the nightly build, it would
> be:
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



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




Re: tiles logging

2002-10-22 Thread Eddie Bush
Grab a nightly.  Tiles has been patched to use commons-logging now, I 
believe.

Dennis Muhlestein wrote:

I was so excited when I added a commons-logging.properties file in my
classpath and told struts to use log4j as the logger.  I was even more
excited when I added a logger property that told struts to log only the
ERROR level instead of DEBUG so that I had much less output.

Only problem is, tiles doesn't seem to honor the commons-logging rules. 
It's printing to System.err/out.

Does anyone know if this is reported as something that needs to be
changed?  Should I file A bug?

Sure would be nice to clean out the amount of times I see the following
in my log file:

processActionForward(tiles.members.viewprofile, false)
 'tiles.members.viewprofile' - processed as definition


Thanks
Dennis


--
Eddie Bush



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




Re: [J2EE] Does struts follow Sun's Core J2EE patterns

2002-10-22 Thread Rick Reumann
On Tuesday, October 22, 2002, 2:14:05 PM, Rick wrote:

RR> Does anyone have comments or links to articles where Struts is
RR> supported by those that came up with Sun's J2EE pattern?

I think this link answers it all.
http://developer.java.sun.com/developer/community/chat/JavaLive/2001/jl0424.html
considering down on the page one of the authors of Sun's Core J2EE
patterns book mentions this:

Jack: How do the presentation patterns relate to Struts?

Dan Malks: Great question, Jack. Actually, Struts applies several
of the J2EE patterns and strategies. Though the framework and the
patterns were developed independently, there is tremendous synergy
between the two. It makes sense too, given the following comment
from Ralph Johnson, Doug Schmidt, and Mohamed Fayad in 'Building
Application Frameworks', Wiley 1999. They say: "Patterns are the
architectural elements of frameworks." I agree with this
sentiment, and it is good to see this relationship between the
Struts Framework and the J2EE Patterns catalog.



-- 

Rick
mailto:maillist@;reumann.net


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




re. i18n

2002-10-22 Thread Jeff Born
I've had JSTL on my plate of things to look at for some time now.  If it
makes i18n implementation easier then I'm sold.

However I still want to see how i18n works in struts.  Does anyone have a
small war file that has i18n working that they could send me?

Any help finding a working war file that I can drop into Tomcat 4.1 would be
appreciated.

Thanks,

jb

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




Struts Tip #5 - Use coarse-grained ActionForms

2002-10-22 Thread Derek Richardson
I have a question about Ted Husted's Struts Tip #5 (read it at
http://www.jguru.com/faq/view.jsp?EID=915895). In it, he draws a distinction
between ActionForms and form-beans. I do not understand this. I know what an
ActionForm is, but I have no idea what a form-bean is separate from an
ActionForm.

I'll appreciate it if someone will explain what a form-bean is and how it
identifies which ActionForm to use; sample code would be great.

Derek Richardson


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




RE: Problems with logic:iterate

2002-10-22 Thread Karr, David
> -Original Message-
> From: Gekka [mailto:gekka@;bluezone.no]
> Sent: Tuesday, October 22, 2002 10:57 AM
> 
> I'm using Struts 1.1b2 and Tomcat 4.1.12 on Windows 2000 and 
> I have some
> problems with the logic iterate tag. What I do is that I set a
> Collection (HashSet) in the request object inside execute() 
> in an action
> and then pass control to a jsp to iterate over the results. 
> Here's what
> I do in the jsp:
> 
>  type="bean.HTMLLink">
>property="url"/>">
>   
>   
> 

You can't directly reference a custom tag in the attribute value of a custom
tag.  You normally have to use a scriptlet to reference the value.

It has to look like this:



Alternatively, using the Struts-EL package in the nightly build, it would
be:



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




RE: how do i get a Field object in Validator?

2002-10-22 Thread Jerry Jalenak
In your validator-rules.xml file, add the following for each form field you
need access to:




secondProperty-Label
secondProperty-Value




secondProperty-Label would be what you want to call the variable in your
custom routine; secondProperty-Value would be the actual form field name
that contains the entered value.  Then in your custom routine you can access
these values by

public static boolean yourCustomRoutine(Object object,
ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest
request)
{
String fp = ValidatorUtil.getValueAsString(object,
field.getProperty());
String sp = ValidatorUtil.getValueAsString(object,
field.getVarValue("secondProperty-Label"));

... do something ...
return true;  // or false if the validation fails
}

HTH,

Jerry

> -Original Message-
> From: Andy Kriger [mailto:akriger@;greaterthanone.com]
> Sent: Tuesday, October 22, 2002 11:33 AM
> To: Struts Users Mailing List
> Subject: how do i get a Field object in Validator?
> 
> 
> I am writing a custom rule and I need to know how I can get a 
> handle to a
> different Field object? (not the one passed into the method 
> in the first
> place)
> 
> thx
> a
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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



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




Re: Security Best-Practices?

2002-10-22 Thread Adam Sherman
Taylor, Jason wrote:

Search the mail archive for container-managed authentication (CMA).  There
was a lot of discussion on the subject a week or two ago.  Craig McClanahan
has posted some good rants on the subject...


Good reading, thanks.

I'm thinking that I will have to implement an application-specific user 
database, and create a new entry in it for every new authenticated user 
that comes down from the container. Kinda hackish, but I don't see 
another way.

That, or use SecurityFilter (http://securityfilter.sourceforge.net/), 
then move to CMA if I have to.

Thanks,

A.


--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



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



[J2EE] Does struts follow Sun's Core J2EE patterns

2002-10-22 Thread Rick Reumann
Over lunch I was discussing struts with someone that works at another
company. He hasn't implemented struts at all but only has looked at
some articles, and doesn't see what all they 'hype' is about. In his
opinion, building a j2ee controller that follow's Sun's J2EE pattern
is not that difficult and using the JSTL he feels more comfortable
using for the view (than say struts tags). He also still questions if
it follows Sun's core J2EE patterns.

I actually explained what I thought most impressive is how the
controller relates to taking in an ActionForm. He feels this breaks
Sun's standard (although I'm not sure why.. time was short).

Does anyone have comments or links to articles where Struts is
supported by those that came up with Sun's J2EE pattern? I've been
searching Google but it's really hard to get a foothold on the best/
most pertinent stuff.

Thanks for any information anyone could provide.

-- 

Rick
mailto:maillist@;reumann.net


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




tiles logging

2002-10-22 Thread Dennis Muhlestein
I was so excited when I added a commons-logging.properties file in my
classpath and told struts to use log4j as the logger.  I was even more
excited when I added a logger property that told struts to log only the
ERROR level instead of DEBUG so that I had much less output.

Only problem is, tiles doesn't seem to honor the commons-logging rules. 
It's printing to System.err/out.

Does anyone know if this is reported as something that needs to be
changed?  Should I file A bug?

Sure would be nice to clean out the amount of times I see the following
in my log file:

processActionForward(tiles.members.viewprofile, false)
  'tiles.members.viewprofile' - processed as definition


Thanks
Dennis

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




Re: with JavaScript

2002-10-22 Thread Jeff_Mychasiw


Try:

  
  
  






"Tuan H. Le" <[EMAIL PROTECTED]> on 10/22/2002 12:33:02 PM

Please respond to "Struts Users Mailing List"
   <[EMAIL PROTECTED]>

To:"Struts Users Mailing List (E-mail)"
   <[EMAIL PROTECTED]>
cc:

Subject: with JavaScript


Hi

Can some one please show me a tip on how to pass a dynamic value into a
JavaScript function within  tag? What I need is to pass an
employee ID in the openModal( '/editSalary.do?id=### ).

Here's my code



  function openModal( theURL ){
 window.showModalDialog(theURL,'','dialogWidth:662px;, dialogHeight:180px;
 help:no; scroll:no; status:no; center:yes; resizable:no; unadorned:yes;');
 }



  
  
  




I know how to create a  that generates an HREF with a passing
dynamic parameter value as such



The code above works fine, but I need a way to open a modal dialog window
with a specific size.

Thanks in advance!
Tuan





(See attached file: winmail.dat)
--
To unsubscribe, e-mail:   <
mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:struts-user-help@;jakarta.apache.org>







winmail.dat
Description: Binary data
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Problems with logic:iterate

2002-10-22 Thread Gekka
Hi,

I'm using Struts 1.1b2 and Tomcat 4.1.12 on Windows 2000 and I have some
problems with the logic iterate tag. What I do is that I set a
Collection (HashSet) in the request object inside execute() in an action
and then pass control to a jsp to iterate over the results. Here's what
I do in the jsp:


">




When I hit this code Tomcat tells me:

org.apache.jasper.JasperException: /menu.jsp(6,47)
jsp.error.attribute.noequal
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:417)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:723)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:808)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:836)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:757)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:808)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:219)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
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:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:93)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: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.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache

Re: testing your Struts JSPs

2002-10-22 Thread David Graham
Cactus might do this.

David




From: "Andy Kriger" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: testing your Struts JSPs
Date: Tue, 22 Oct 2002 12:33:15 -0400

What JUnit extension or JUnit-like tools do folks use to test their JSPs? I
am aware of StrutsTestCase but in this instance I need to test form
validation on an action that uses an ActionForward directly (no associated
Action class). So direct JSP testing makes more sense.

-a



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp


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



with JavaScript

2002-10-22 Thread Tuan H. Le
Hi

Can some one please show me a tip on how to pass a dynamic value into a JavaScript 
function within  tag? What I need is to pass an employee ID in the 
openModal( '/editSalary.do?id=### ). 

Here's my code



  function openModal( theURL ){
window.showModalDialog(theURL,'','dialogWidth:662px;, dialogHeight:180px; 
help:no; scroll:no; status:no; center:yes; resizable:no; unadorned:yes;');
}



  
  
  




I know how to create a  that generates an HREF with a passing dynamic 
parameter value as such



The code above works fine, but I need a way to open a modal dialog window with a 
specific size.

Thanks in advance!
Tuan






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


RE: Security Best-Practices?

2002-10-22 Thread Taylor, Jason
Search the mail archive for container-managed authentication (CMA).  There
was a lot of discussion on the subject a week or two ago.  Craig McClanahan
has posted some good rants on the subject...

-Original Message-
From: Adam Sherman [mailto:adam@;teachandtravel.com]
Sent: Tuesday, October 22, 2002 8:02 AM
To: Struts Users Mailing List
Subject: Security Best-Practices?


Can anybody point me to a best practices guide for security in webapps? 
I'm building it from scratch.

Struts 1.1 has integrated support for JAAS, hows does affect Servlet 
"Realm" security?

I'm completly new at this, so just some suggestions would be helpfull. 
Not detailed imlpementation stuff.

Thanks,

A.

-- 
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: Security Best-Practices?

2002-10-22 Thread Adam Sherman
Adam Sherman wrote:

Can anybody point me to a best practices guide for security in webapps? 
I'm building it from scratch.

Struts 1.1 has integrated support for JAAS, hows does affect Servlet 
"Realm" security?

I'm completly new at this, so just some suggestions would be helpfull. 
Not detailed imlpementation stuff.

Should an application maintain a separate user information database, 
keyed on the username return by the Container?

Some advice would be appreciated.

Thanks,

A.

--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



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



Re: & building columns

2002-10-22 Thread Adam Sherman
Sri Sankaran wrote:
> I wonder if the docs refer to the rules for the 'collection'
> attribute and not to the collection returned by the 'property'
> attribute.

From the docs, 'collection':
> A runtime expression that evaluates to a collection (conforming to
> the requirements listed above) to be iterated over.

'property':
> Name of the property, of the JSP bean specified by name, whose getter
> returns the collection to be iterated.

Not quite sure what each of them is for...

Notice though that they both use the term "Collection". A Set *is* a 
Collection... (-:

Thanks,

A.

--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



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



Behavior of app layers wrt date/phone validation/conversion?

2002-10-22 Thread Karr, David
I'm sure this has been talked about many times, but I couldn't find a
succinct discussion about this in the archives.

The question is, what are the best, or common, practices with respect to
where and how validation and conversion is done between "view" values and
"model" values, and with date/phone values, in particular?

In my particular context, I'm not interested in how the Validator framework
should fit into this, only because the consensus opinion in my team was to
not use the Validator framework at this time (because they wanted to reduce
training/information overload).

I ask this partly to review the principles for myself, but also to get
information to back up my views on this in my team.

In my opinion, the form bean value should contain exactly the string that is
displayed in the browser.  The business logic layer, however, should contain
the value as it is represented in the domain layer, being a Date value or a
ten character numeric string (for a phone number).

The stickier question is where the conversion and validation is done, and
what layer "owns" the algorithms for this.  I think it's a good idea to have
the form bean "own" the conversion algorithms (define the from/to code in
form bean methods), but drive the validation process in the Action.
However, I believe there are different opinions on this.

I've heard that there are some people who believe the formatting and format
validation should be done in the business logic (below the Action), which I
find hard to believe.

With respect to phone numbers, there's some question about whether it's
better to provide a single text field to enter a phone number, or to have
three fields for the three pieces of the number.  If the single field is
used, then the value stored in the form bean would be like "(nnn) nnn-"
(if you assume that the form bean stores exactly what is displayed on the
screen), and you use javascript on "blur" to convert an entered ten-digit
string to the proper format.  If three fields are used, the formatting is a
little easier, and the only javascript (if at all) is to set focus to the
next field when the field fills up (so they can enter ten digits
consecutively without stopping).

I'd appreciate people's carefully crafted opinions on this, and any useful
references.

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




testing your Struts JSPs

2002-10-22 Thread Andy Kriger
What JUnit extension or JUnit-like tools do folks use to test their JSPs? I
am aware of StrutsTestCase but in this instance I need to test form
validation on an action that uses an ActionForward directly (no associated
Action class). So direct JSP testing makes more sense.

-a



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




how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
I am writing a custom rule and I need to know how I can get a handle to a
different Field object? (not the one passed into the method in the first
place)

thx
a



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




Re: [Digester] Version?

2002-10-22 Thread Craig R. McClanahan


On Tue, 22 Oct 2002, Andrew Hill wrote:

> Date: Tue, 22 Oct 2002 21:07:30 +0800
> From: Andrew Hill <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: [Digester] Version?
>
> Which version of Digester is struts (1.1b1) using? Can I upgrade this to the
> current version or is the current version included with struts 1.1b2?
>

Struts 1.1b1 used whatever version of Digester was current when it came
out (in January), which is probably at least a couple of revs out of date.

> Ive just discovered that this version doesnt have half the stuff Ive been
> making notes about and I have to use the deprecated methods that I ignored
> when I was reading up on it! :-(
>

I suspect you'll have problems just dumpting the JARs in, but it would
work if you recompiled Struts 1.1b1 against the new Digester classes.

Craig


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




Re: [PlugIn] Order of initialisation

2002-10-22 Thread Craig R. McClanahan


On Tue, 22 Oct 2002, Andrew Hill wrote:

> Date: Tue, 22 Oct 2002 19:35:22 +0800
> From: Andrew Hill <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: [PlugIn] Order of initialisation
>
> About to use struts Plug-In functionality for the first time to initialise
> some config data (for which I plan to use Digester :-> ).
>
> Are any plug ins I create called in the order they are specified in
> struts-config, and can I assume that the second plugins init() wont be
> called until after the first one has completed?
>

Yes.  They are all initialized on a single thread, so the init() call for
the previous plugin completes first.

> (I can have multiple plug-ins right?)

Yes.

Craig


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




Re: Bean Utils - Help needed

2002-10-22 Thread Craig R. McClanahan


On 22 Oct 2002, Podhigai Thendral wrote:

> Date: 22 Oct 2002 08:04:01 -
> From: Podhigai Thendral <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  Podhigai Thendral <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Bean Utils - Help needed
>
> Hi all,
>
> I see a commons-beanutils.jar file that comes with struts. I would
> like to know the functionalities offered by this package.

See the package description in the JavaDocs at:

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

Similar URLs will lead you to the Javadocs for the other commons packages
that are included with (and used by) Struts.

> I read
> somewhere that this is the one that helps in auto population of
> the form beans. Is it right ?

Yes.

> Please help.
>
> Thanks in advance.
>
> -Thendral
>

Craig


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




Re: Storing HTML in database

2002-10-22 Thread Dennis Muhlestein
Use a PreparedStatement instead of Statement to do the insert if you
can.  It'll do the escaping for you.

-Dennis


On Tue, 2002-10-22 at 08:07, Robert Misior wrote:
> Hello,
> 
> I'm looking for a good approach of storing HTML in mysql database (field 
> type is text).  Currently I'm converting any character other then a 
> number or  alpha character to it's ASCII value before the table is 
> updated.  So far this  is working fine  except extra overhead and 
> storage space.  The main reason why I'm doing it this way is  because I 
> had problems with the sql statement being truncated  at the first 
> appearance of a  ' in the HTML.
>  Would searching for ' and replacing them with \' be a bather solution 
> or would using PreparedStatement fix this problem with '?
> 
> Thanks for any suggestions,
> Robert 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


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




making struts and velocity share the same datasource

2002-10-22 Thread Anthony Mutiso 2
Hi folks,

I am trying to use velocity templates from a database within a struts
application. I have configured velocity to use the
"org.apache.velocity.runtime.resource.loader.DataSourceResourceLoader"
resouce loader, but my templates are never found. I suspect this is because
I cannot tell velocity the correct name of the datasource.

Anyone have some insight as to how to configure velocity to find the same
datasouce that struts is using. My struts config has the typical 


  
   
   
   
   
   
   
  


On a secondary issue: If I se the data-source key property to a string, say
"MyAppDataSource" and use it in my Action classes to get the datasource, it
fails. If it use the default name "Action.DATA_SOURCE_KEY" it works. Why am
I not able to use my own name.

I am using struts 1.1-b2

Thanks for the help.

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




Re: [Logging] How to make the darn logs work again?

2002-10-22 Thread Eddie Bush
One additional note:  Since it's apparant you're using log4j, you may 
have problems using the commons-logging.jar that came with 1.1b2.  There 
was a build issue.  You'll want to grab the "latest and greatest" 
commons-logging-1.0.1.jar and dump that in your lib folder.

--
Eddie Bush




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



Re: Tomcat/Apache and .do

2002-10-22 Thread Brian Hickey
Marc,

The simple answer is:
Struts uses the action mapping, not Tomcat/Any other web server.

The action mappings are defined in struts-config.xml.

Tomcat also uses (by default) port 8080. Do you have Apache installed
w/Tomcat/whatever?

Brian


- Original Message -
From: "Marc AMIR-TAHMASSEB" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 22, 2002 10:49 AM
Subject: Tomcat/Apache and .do


> Hi,
>
> i have a login page and every thing works well when i use the 8080 port :
> http://server:8080/test/index.jsp
> the login.do isasked and the action is realised.
>
> But when i use http://server/test/index.jsp and that i submit the form,
> then the following url is displayed wue a "not found page"
> http://server/test/Login.do
>
> why ?
>
> thank's
>
> Marc
>
> --
> Marc AMIR-TAHMASSEB
> [EMAIL PROTECTED]
> +33.3.90.40.00.00 | +33.6.16.99.27.85
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




RE: re. i18n

2002-10-22 Thread Russ Bonsall

Vernon,

The last time I checked the Pet Store application does not use Struts.  If
you look at the Struts source code you will find that the user's locale is
stored in session and is later used when reconciling which message resources
to use.  Look at the processLocale() method from the RequestProcessor below
(very similar to the processLocale() in ActionServlet for 1.0.2).


Jeff, 

It appears you are doing everything right.  I think you're right in saying
there is something small that you're missing.  You shouldn't need to change
any localization settings through Control Panel.  The browser setting is
what is sent with your request.  I'm sorry I couldn't be of more help.

Russ


protected void processLocale(HttpServletRequest request,
 HttpServletResponse response) {

// Are we configured to select the Locale automatically?
if (!appConfig.getControllerConfig().getLocale()) {
return;
}

// Has a Locale already been selected?
HttpSession session = request.getSession();
if (session.getAttribute(Action.LOCALE_KEY) != null) {
return;
}

// Use the Locale returned by the servlet container (if any)
Locale locale = request.getLocale();
if (locale != null) {
if (log.isDebugEnabled()) {
log.debug(" Setting user locale '" + locale + "'");
}
session.setAttribute(Action.LOCALE_KEY, locale);
}

}

-Original Message-
From: Vernon Wu [mailto:vernonw@;gatewaytech.com]
Sent: Monday, October 21, 2002 4:30 PM
To: [EMAIL PROTECTED]
Subject: re. i18n



I saw the following statement in today mail archive.

Also keep in mind that the locality is stored in session.  This
means you
cannot switch languages while using the same session.  The best way
to test
is by setting your language, close and reopen your browser.

This statement is not true. The Pet Store allows users change the locale
anywhere in the middle of session. You can 
test out yourself by driving a demo version from 
http://developer.java.sun.com/developer/technicalArticles/J2EE/deployathon3/

BTW, the locale information management, including changing locale method,
demonstrated in the latest version PS is 
not the best way by today's standard. Take a look at JSP/JSTL articales on
onjava.com by Hans Bergsten.

Hope this helps.

Vernon



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




RE: Form submission

2002-10-22 Thread James Mitchell
This means you are in a status of SOL.

I've seen people in the state a few times..its not pretty.

I can't help you then.


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)






> -Original Message-
> From: Kyrre Lugg [mailto:kyrre.lugg@;tomra.no]
> Sent: Tuesday, October 22, 2002 5:32 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: Form submission
>
>
> Andrew Hill wrote:
> > Submit
>
> Thanx for your suggestion, but unfortunately javascript is not an option.
>
> Kyrre Lugg
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




RE: [Logging] How to make the darn logs work again?

2002-10-22 Thread James Mitchell
Eddie gave you one.

I'll attach an example that Chuck used in his Beer4All demo.

Just put it in WEB-INF/classes/



James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Andrew Hill [mailto:andrew.david.hill@;gridnode.com]
> Sent: Tuesday, October 22, 2002 11:02 AM
> To: Struts Users Mailing List
> Subject: RE: [Logging] How to make the darn logs work again?
>
>
> Nope. I dont have a log4j.properties
>
> At this point methinks me shall go home (11pm) before me throws
> me computer
> out the window in a fit of anger at having to learn how to set up
> (re-install?) yet another technology (log4j) while me is in the middle of
> trying to learn digester (which is pretty cool btw!).
>
> Ill try and chase up a property file in the morning - but where
> should this
> file have come from in the first place so I know where to get it from?
>
> -Original Message-
> From: Eddie Bush [mailto:ekbush@;swbell.net]
> Sent: Tuesday, October 22, 2002 22:42
> To: Struts Users Mailing List
> Subject: Re: [Logging] How to make the darn logs work again?
>
>
> Andrew Hill wrote:
>
> >Quite a long time ago my colleagues fiddled with my Tomcat
> installation to
> >make something work. Dont know what they did, but a side effect
> of this was
> >they they killed the logging for struts.
> >
> >Ive been ignoring this for ages (since I tend to use System.out for
> >debugging my stuff)
> >
> shame-shame!  
>
> >however now that Im trying to use Digester I need to be
> >able to log stuff again...
> >
> >I get the following in my console window at startup & again when I try to
> >use digester in my plugin class:
> >
> >log4j:ERROR No appenders could be found for category
> >(org.apache.commons.digester.Digester).
> >log4j:ERROR Please initialize the log4j system properly.
> >
> >
> log4j.rootLogger=DEBUG,A1
> log4j.appender.A1=org.apache.log4j.ConsoleAppender
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
>
> Do you have similar lines in your log4j.properties file?  (You have this
> file, right?  ... in WEB-INF/classes/log4j.properties?)
>
> >I am absolutely clueless in regards to how this logging stuff
> works (other
> >than that it doesnt)
> >
> LOL :-)
>
> >and would appreciate some times on how to initialise it
> >"properly" - right now I dont even know how to initialise it improperly
> :-(!
> >
> You don't really have to initialize it.  What you DO have to do is have
> a configuration file.  For tips on using commons-logging in *your* code
> see the user guide online.  For resolving this, try making sure you have
> the above information where I mentioned.
>
> Hopefully that fixes you up - I hate "broke" Andrews ;-)
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:





log4j.properties
Description: Binary data
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Validation Question

2002-10-22 Thread Bhamani, Nizar A TL56E
I have layed out my application to use tiles in which, it has the usual
tiles like
header, footer, bodyContent etc, inwhich the bodyContent is dynamic. For
each page
I have a form that redirects it to the tiles/template and appropriately
setting the
dynamic bodyContent page.

The sequence goes like :

1) MainPage
2) UserInfoPage
3) AdditionalUserInfoPage
and so on.

I had set up the struts application to call the Validation info on
the UserInfoPage to set certain required fields. It worked fine.
Recently I inserted a new page 'LoginPage' between the 'MainPage'
and 'UserInfoPage', which also had its own validation for userId 
and password. 

Since I have added this page, whenever the validation fails on
either the LoginPage or the UserInfoPage, it redirects to
the MainPage  

Am I missing anything ?

Nizar.

CONFIDENTIALITY
This e-mail and any attachments are confidential and also may be privileged.
If you are not the named recipient, or have otherwise received this 
communication in error, please delete it from your inbox, notify the sender
immediately, and do not disclose its contents to any other person, 
use them for any purpose, or store or copy them in any medium. 
Thank you for your cooperation. 



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




Re: Tomcat/Apache and .do

2002-10-22 Thread Eddie Bush
Have you gotten the Tomcat examples to work yet?  Once you've done that 
you'll need to be sure you map *.do to be processed by Tomcat (Just like 
you had to do so that the JSP pages would work).  This is really a 
tomcat-user question :-)

Marc AMIR-TAHMASSEB wrote:

Hi,

i have a login page and every thing works well when i use the 8080 port :
http://server:8080/test/index.jsp
the login.do isasked and the action is realised.

But when i use http://server/test/index.jsp and that i submit the 
form, then the following url is displayed wue a "not found page"
http://server/test/Login.do

why ?

thank's

Marc

--
Eddie Bush




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




Security Best-Practices?

2002-10-22 Thread Adam Sherman
Can anybody point me to a best practices guide for security in webapps? 
I'm building it from scratch.

Struts 1.1 has integrated support for JAAS, hows does affect Servlet 
"Realm" security?

I'm completly new at this, so just some suggestions would be helpfull. 
Not detailed imlpementation stuff.

Thanks,

A.

--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



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



RE: [Logging] How to make the darn logs work again?

2002-10-22 Thread Andrew Hill
Nope. I dont have a log4j.properties

At this point methinks me shall go home (11pm) before me throws me computer
out the window in a fit of anger at having to learn how to set up
(re-install?) yet another technology (log4j) while me is in the middle of
trying to learn digester (which is pretty cool btw!).

Ill try and chase up a property file in the morning - but where should this
file have come from in the first place so I know where to get it from?

-Original Message-
From: Eddie Bush [mailto:ekbush@;swbell.net]
Sent: Tuesday, October 22, 2002 22:42
To: Struts Users Mailing List
Subject: Re: [Logging] How to make the darn logs work again?


Andrew Hill wrote:

>Quite a long time ago my colleagues fiddled with my Tomcat installation to
>make something work. Dont know what they did, but a side effect of this was
>they they killed the logging for struts.
>
>Ive been ignoring this for ages (since I tend to use System.out for
>debugging my stuff)
>
shame-shame!  

>however now that Im trying to use Digester I need to be
>able to log stuff again...
>
>I get the following in my console window at startup & again when I try to
>use digester in my plugin class:
>
>log4j:ERROR No appenders could be found for category
>(org.apache.commons.digester.Digester).
>log4j:ERROR Please initialize the log4j system properly.
>
>
log4j.rootLogger=DEBUG,A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

Do you have similar lines in your log4j.properties file?  (You have this
file, right?  ... in WEB-INF/classes/log4j.properties?)

>I am absolutely clueless in regards to how this logging stuff works (other
>than that it doesnt)
>
LOL :-)

>and would appreciate some times on how to initialise it
>"properly" - right now I dont even know how to initialise it improperly
:-(!
>
You don't really have to initialize it.  What you DO have to do is have
a configuration file.  For tips on using commons-logging in *your* code
see the user guide online.  For resolving this, try making sure you have
the above information where I mentioned.

Hopefully that fixes you up - I hate "broke" Andrews ;-)

--
Eddie Bush




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Tomcat/Apache and .do

2002-10-22 Thread Marc AMIR-TAHMASSEB
Hi,

i have a login page and every thing works well when i use the 8080 port :
http://server:8080/test/index.jsp
the login.do isasked and the action is realised.

But when i use http://server/test/index.jsp and that i submit the form, 
then the following url is displayed wue a "not found page"
http://server/test/Login.do

why ?

thank's

Marc

--
Marc AMIR-TAHMASSEB
[EMAIL PROTECTED]
+33.3.90.40.00.00 | +33.6.16.99.27.85



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



Re: Single sign on?

2002-10-22 Thread Adam Sherman
Ryan Cornia wrote:

What I do is encrypt a domain level session cookie. Then, in all my apps
I can check for/decrypt the cookie to know if the user is logged in, and
who the user is. (I put username/email in the cookie, but you could put
whatever information you want.) I encrypt it so that its more secure and
can't be "faked".


How do you prevent "replay" attacks? Where someone simply steals the 
cookie and uses it another time.

A.


--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



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



Re: [Logging] How to make the darn logs work again?

2002-10-22 Thread Eddie Bush
Andrew Hill wrote:


Quite a long time ago my colleagues fiddled with my Tomcat installation to
make something work. Dont know what they did, but a side effect of this was
they they killed the logging for struts.

Ive been ignoring this for ages (since I tend to use System.out for
debugging my stuff)


shame-shame!  


however now that Im trying to use Digester I need to be
able to log stuff again...

I get the following in my console window at startup & again when I try to
use digester in my plugin class:

log4j:ERROR No appenders could be found for category
(org.apache.commons.digester.Digester).
log4j:ERROR Please initialize the log4j system properly.



log4j.rootLogger=DEBUG,A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

Do you have similar lines in your log4j.properties file?  (You have this 
file, right?  ... in WEB-INF/classes/log4j.properties?)

I am absolutely clueless in regards to how this logging stuff works (other
than that it doesnt)


LOL :-)


and would appreciate some times on how to initialise it
"properly" - right now I dont even know how to initialise it improperly :-(!


You don't really have to initialize it.  What you DO have to do is have 
a configuration file.  For tips on using commons-logging in *your* code 
see the user guide online.  For resolving this, try making sure you have 
the above information where I mentioned.

Hopefully that fixes you up - I hate "broke" Andrews ;-)

--
Eddie Bush




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



RE: [Logging] How to make the darn logs work again?

2002-10-22 Thread James Mitchell
I believe its trying to use log4j without a configuration file.

Have you tried adding a generic log4j.properties file to the classpath?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Andrew Hill [mailto:andrew.david.hill@;gridnode.com]
> Sent: Tuesday, October 22, 2002 10:31 AM
> To: Struts Users Mailing List
> Subject: [Logging] How to make the darn logs work again?
>
>
> Quite a long time ago my colleagues fiddled with my Tomcat installation to
> make something work. Dont know what they did, but a side effect
> of this was
> they they killed the logging for struts.
>
> Ive been ignoring this for ages (since I tend to use System.out for
> debugging my stuff) however now that Im trying to use Digester I
> need to be
> able to log stuff again...
>
> I get the following in my console window at startup & again when I try to
> use digester in my plugin class:
> 
> log4j:ERROR No appenders could be found for category
> (org.apache.commons.digester.Digester).
> log4j:ERROR Please initialize the log4j system properly.
> 
>
> I am absolutely clueless in regards to how this logging stuff works (other
> than that it doesnt) and would appreciate some times on how to
> initialise it
> "properly" - right now I dont even know how to initialise it
> improperly :-(!
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Struts and Tiles and bean:message

2002-10-22 Thread Chen, Gin
Thank you so much cedric!
I found out what the ??en_us?? error was.
I had ant put the applicationresource into the wrong directory :-P
-Tim

-Original Message-
From: Cedric Dumoulin [mailto:cedric@;apache.org]
Sent: Monday, October 21, 2002 12:53 PM
To: Struts Users Mailing List
Subject: Re: Struts and Tiles and bean:message



This question has already been asked. It should be in the struts 
archives ;-)
Here is a solution:

* Specify the resource key in your . This will create a
  tile's attribute.
* Retrieve the tiles attribute value, and use it. 
  o Tiles attribute are stored in the tile context. You can
import them in any jsp context with 
  o Use the value as any other bean: 


  Cedric

Chen, Gin wrote:

>Hi all,
>   I have an application that defines a specific value in my resource
>properties file as:
>
>order.status.title=Order Status
>
>   Since I am using tiles in my application. My main layout file cannot
>use:
>
>
>
>   because it is being used for other pages as well.
>
>   Therefore, for ever subdefinition I define a value page.title:
>
>
>
>   How can I retrieve this to be used for the bean:message? Is there
>another solution?
>
>Thanks,
>-Tim
>
>--
>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: FW: {Validator] Required Fields

2002-10-22 Thread Eddie Bush
Point noted :-)  I'll let someone else explain what the rationale was 
for doing that.  I don't know.  I am aware that there is change taking 
place in commons-validator, and also in the struts-specific validator, 
but I couldn't really speak to what changes have been effected by that 
change.

Jerry Jalenak wrote:

Eddie,

Yeah, I do - and I do this alot.  I've written several 'custom' validate
routines and use them without any problems.  My question/concern is to the
motive behind having the default validator-rules.xml always have the
'depend=required' attribute.  As Adam pointed out, some fields only need to
be validated if they contain a value.  Unless someone overrides the default
validator-rules or writes a custom method, there is no way to do this -
using mask, min, max, etc. will also force a 'required' condition...

Jerry



--
Eddie Bush




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




[Logging] How to make the darn logs work again?

2002-10-22 Thread Andrew Hill
Quite a long time ago my colleagues fiddled with my Tomcat installation to
make something work. Dont know what they did, but a side effect of this was
they they killed the logging for struts.

Ive been ignoring this for ages (since I tend to use System.out for
debugging my stuff) however now that Im trying to use Digester I need to be
able to log stuff again...

I get the following in my console window at startup & again when I try to
use digester in my plugin class:

log4j:ERROR No appenders could be found for category
(org.apache.commons.digester.Digester).
log4j:ERROR Please initialize the log4j system properly.


I am absolutely clueless in regards to how this logging stuff works (other
than that it doesnt) and would appreciate some times on how to initialise it
"properly" - right now I dont even know how to initialise it improperly :-(!


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




RE: presence of an forward mapping

2002-10-22 Thread Lacerda, Wellington (AFIS)
Hi Marcus,

You can use the bean:struts tag with the forward parameter to retrieve
GLOBAL forward config:



Then you can check the xyz bean at page scope.

Wellington L. S. da Silva
Author of "JSP and Tag Libraries for Web Development"
FAO of the UN - Consultant

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel@;bmw.de]
Sent: Tuesday, October 22, 2002 4:06 PM
To: [EMAIL PROTECTED]
Subject: presence of an forward mapping


How to ask for the presence of an forward mapping in your jsp ???

If you write return mapping.findForward("ActionDone");
How to ask for it's presence in your jsp file ???
 mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:



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




Re: [PlugIn] Order of initialisation

2002-10-22 Thread Eddie Bush
I believe you are correctamundo.

Andrew Hill wrote:


About to use struts Plug-In functionality for the first time to initialise
some config data (for which I plan to use Digester :-> ).

Are any plug ins I create called in the order they are specified in
struts-config, and can I assume that the second plugins init() wont be
called until after the first one has completed?

(I can have multiple plug-ins right?)



--
Eddie Bush




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




  1   2   >