Cross Module Forms

2003-10-13 Thread Dennis Muhlestein
It's been a while since I posted.  Been busy.  We've been using 
struts/tiles for quite a while now.  Currently we're using version 1.1. 

Everything works great and the more we convert to struts, the more we 
like it.  We have one issue though that I just can't seem to find a good 
solution for.

We have a lot of modules.  We try to stick each new section of the site 
in a new module.  If we didn't we'd have way too many action and tile 
definitions for one xml file.  We don't much like the idea of listing 
multiple struts-config files in the default module and bypassing modules 
either because then we can't as easily take module and deploy them on 
other applications.

The problem is starting to arise that we have lots of places in the 
application that need to be tied together but are in different modules.  
This always works with links but when a form is involved a tile in one 
module can't find the form bean of an action that is in another module.  
I know this is a known issue.  I'm just wondering what the best practise 
would be to get around it. 

One thing we have already tried are listing those specific module 
crossing actions in a "struts-globals.xml" file.  Add struts-globals.xml 
to the web.xml in each module then the action in question is simply 
defined in all modules.  That seems to me like wasting resources a bit 
though.

Another way might be to make an xml file that just contains a specific 
action and then to only include that extra xml file within modules that 
needs the action in question.  That seems like it'd get kind of messy 
after a while too.

So, does anyone have a patch that fixes this?  Or has this been changed 
post 1.1?  Any other ideas for getting around the issue?

Comments Appreciated.
-Dennis
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [OT] Session Management using EJB

2003-07-10 Thread Dennis Muhlestein
Thanks Eric , for your feedback . 
I am aware of the fact that container takes care of duplicating the Session
across the cluster . 
But then if I have 10 servers , it would be an big overhead as the server
has to make 10 copies of Session object.
Typically, although I could be miles from the truth, If you have more than a few servers to cluster, you would have multiple clusters.  I've heard that for best performance, you should have clusters of no more than 3 or 4 servers.

To have more than one cluster, you need to have a load balancer capable of handling sticky sessions though.  ie: once you get a session from a server in a cluster (cluster A), the lb always knows to send your http requests back to cluster A.

For 10 servers, you might have two clusters of 3 and one cluster of 4.


If I maintain the user state on the App Server level (EJB) . I could manage
to bring down this overhead .
Would it really be any less overhead?

But then I need to roll out my own session implementation (which at Web Tier
,Servlet/JSP container already implemnts).
I am also aware of the fact that then my getAttribute() , setAttribute()
calls would be network calls , and hence expensive

So this I m doing just to make sure that overhead of session object
replication is not there.

Now my question is .. do you feel I have some point here ??? 
or you feel that  its more coding for less gain ?? 


If you have enough traffic to actually need 10 servers in your pool, and you are generating revenue with those servers, you could probably use some of it to by a load balance with sticky session capability.  If not, I'd stick with http session management at the web tier and only cluster 3 or 4 of the servers.

Just my thoughts on a complex topic :-)
-Dennis


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


RE: [OT] Webapp Archives

2003-03-18 Thread Dennis Muhlestein
We have anthill.  We can watch the ant wars being performed ;-)

On Tue, 2003-03-18 at 12:16, Emilio Suarez wrote:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> You should use:
> 
> ant war
> 
> ;-)
> 
> > -Original Message-
> > From: Ray Madigan [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 18, 2003 11:32 AM
> > To: Struts Users Mailing List
> > Subject: [OT] Webapp Archives
> > 
> > 
> > I really wished sun would have called web application archives
> > something different the war's.
> > 
> > By 10:30AM I am already tired of:
> > 
> > make war 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: DTD's and TLD's in Struts.jar Why?

2003-03-17 Thread Dennis Muhlestein
DTDS
They are used to validate xml files at deploy time.  Without them you
could 1) turn off the validation (not recommended) 2) The validator
would reference the dtds off the web site if they are not found in the
jar. (Probably not good either).

TLDS  
You can either put tlds in /WEB-INF/*.tld and reference them by there
hard coded location.  Or you can reference them by putting a reference
in web.xml and then using that (ie: /tags/struts-html )

But with a newer servlet container (2.3 and above I believe), you can
just put the url of the tld in your jsp (ie "<[EMAIL PROTECTED]
uri="http://jakarta.apache.org/struts/tld/struts-html"; prefix="html"%> )
Thus, the reason they are included in the jar file.

That said.. 
Why would removing the dtds speed or ease deployment?  Seems like wasted
effort to me.  Leave the jar file as it is and enjoy the power of
struts.  

-Dennis


On Mon, 2003-03-17 at 10:02, Greg Hess wrote:
> Hi All,
>  
> One of my co workers is optimizing the deployment of my Struts based web
> application. He has asked me why the Struts.jar contains DTD's and TLD's
> and if not used would like to remove them to improve speed of
> deployment. The only reason I can think of is for documentation and to
> provide the users of the framework a complete resource for the Struts
> framework. 
>  
> Is there any other reason they are included and am I correct with my
> assumption?
>  
> Can the DTD's and TLD's in the Struts.jar be referenced within the
> application?
>  
> Thanks,
>  
> Greg


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



Re: validate business data

2003-03-14 Thread Dennis Muhlestein
We have a couple different approaches.  But one is to create some custom
validator Fields that can be plugged in to the validator.  Then all
errors, buisiness or otherwise, are done by the DynaValidatorForm.

Makes our actions simpler.

-Dennis

On Fri, 2003-03-14 at 14:47, Dan Allen wrote:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> Naturally all screening of data should be done by the
> ActionForm/Validator interface, but when it comes time to looking
> for duplicate usernames/emails or other such business conflicts,
> this must be done in the business logic layer.
> 
> How do most of you handle this?  Do you create a validateData()
> method in your Action class or is this something that the Model
> objects should be able to handle?
> 
> Dan


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



[OT] sslext (1.1b3) has a bug with modules

2003-03-14 Thread Dennis Muhlestein
sslext does not function as expected with modules.

Specifically, when operating withing a module (ie: subappfoo), the
 does not find the ModuleConfig for
the subapplication.  Instead, it finds the ModuleConfig for the root
module.

The reason the example applications in sslext works correctly with
subappfoo is that the main module and the subappfoo module have the
exact same action mappings and secure properties.  Therefore, when you
request the true or false page from the subapp, you get a ModuleConfig
and SecureActionConfig from the root module that look identical to what
you expect to get from the subappfoo module.

To demonstrate the bug, change the struts-config-subapp.xml's /true
secure property to be false.  After this change, you should see neither
page going to https.  You will see however, that the true page still
goes to https (when you are within subappfoo).  This is because the
secure config used by sslext:link came from the root module.

Now go to the root module's index file.  You'll see that the links to
the true/false pages for the subapp are now correct (neither goes to
https).  This is because when you specify the module prefex (ie:
page="/subappfoo/true.do" ) in the sslext:link tags forward,href, or
page attribute, the sub application's correct ModuleConfig is found.

You can further see that this doesn't function properly by deploying a
sub application that does not have the same action mappings as the root
application.  Then, sslext:link will not find the action requested in
the tag, it won't get a ModuleConfig, and it won't be able to tell
whether or not your action is supposed to be secure.  The links will
never change between https and http.  They stay on the protocol made by
the request that generates the page.

The workaround for right now, is to use the href attribute instead of
the page attribute on the sslext:link tag and specify the entire url
relative to the root module (ie: href="/myModule/myPage.do" ).

If you have any questions or would like more details let me know.

Thanks
Dennis


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



Struts-console 3.3 and tiles

2003-03-07 Thread Dennis Muhlestein
A bug report for James and all who may be affected.

In Struts-Console 3.3, when generating my tiles-defs.xml file.  I had
the following xml output:

 

note how there is a path="" as well as an extends attribute of the
definition.  Desired behavior is to extend a definition but not have a
path for this definition.

The resulting problem occurs when trying to forward to that tile (Using
1.1rc1)

java.lang.IllegalArgumentException: Path  does not start with a "/"
character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:590)


Had to fix this by hand editing the xml and removing the path=""
attribute.

Just thought you might like to know.
-Dennis


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



Re: action form error messages

2003-02-28 Thread Dennis Muhlestein
Because it doesn't matter what the name of your bean is.  Stuts always
sets it as an attribute in your selected scope.  The name of that
attribute happens to be org.apache.struts.taglib.html.BEAN.

if you were to call getClass() on that bean, you would see your class.


I think that is right but might be completely and 100% incorrect


-dennis

On Fri, 2003-02-28 at 10:54, Alex McLintock wrote:
> Hi folks,
> 
> I am using traditional action forms rather than DynaActionForms and when I 
> get it slightly wrong (eg by missing out get/set methods) I get the 
> following error
> 
> No getter method for property seriesnumber of bean 
> org.apache.struts.taglib.html.BEAN
> 
> Why is it telling me the problem is within the class 
> org.apache.struts.taglib.html.BEAN and not within my ActionForm.
> 
> Cheers.
> 
> Alex
> 
> 
> Available for java/perl/C++/web development in London, UK or nearby.
> Apache FOP, Cocoon, Turbine, Struts,XSL:FO, XML, Tomcat, JSP
> http://www.OWAL.co.uk/
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Action without FormBean

2003-02-26 Thread Dennis Muhlestein
Use an image instead of a form button?? 
ie: 

-Dennis

On Wed, 2003-02-26 at 11:48, Chen, Gin wrote:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> Hi James,
>   I did use links before. But they want to see buttons instead of href
> links.
> D*mn users. ;P
> -Tim
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 1:34 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Action without FormBean
> 
> 
> So your [View] and [Delete] are submit buttons?
> 
> Why can't you use links within an iterator?
> 
> 
> 
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> 
> 
> 
> 
> > -Original Message-
> > From: Chen, Gin [mailto:[EMAIL PROTECTED] 
> > Sent: mercredi 26 février 2003 13:24
> > To: 'Struts Users Mailing List'
> > Subject: RE: Action without FormBean
> > 
> > 
> > Thanks David.
> > That's what I figured.
> > Unfortunately it just seems like an unnecessary step sometimes.
> > For example I have a collection that is returned to me and I 
> > show it as such
> > 
> > x   [View] [Delete]
> > x   [View] [Delete]
> > x   [View] [Delete]
> > x   [View] [Delete]
> > 
> > To set this up using struts i have to make a form bean that 
> > is simply a
> > container for my collection
> > Cant do this with dynaform cause it doesnt handle collections >:[
> > Is there a better way to do this?
> > Or should I just break away from struts for this?
> > -Tim
> > 
> > -Original Message-
> > From: David Graham [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 1:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Action without FormBean
> > 
> > 
> >  must have a form bean.  Form beans are the 
> > framework's way of 
> > dealing with forms.
> > 
> > David
> > 
> > 
> > 
> > >From: "Chen, Gin" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" 
> > <[EMAIL PROTECTED]>
> > >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > >Subject: Action without FormBean
> > >Date: Wed, 26 Feb 2003 13:05:29 -0500
> > >
> > >I set up the following:
> > >
> > > > >parameter="userAction"/>
> > >
> > >//myJsp.jsp
> > >
> > >
> > >
> > >
> > >Thats it nothing in between the form tags and I get 
> > exception can not 
> > >access
> > >formbean null.
> > >
> > >Well I dont want a formbean.
> > >Is this not a legal form?
> > >
> > >I do this all the time from anchor hrefs but this is the 
> > first time I've
> > >tried it in html:form style.
> > >I can't find anywhere in the docs that says that a html:form 
> > MUST have a
> > >related formbean.
> > >Is this just an implied rule?
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > _
> > Tired of spam? Get advanced junk mail protection with MSN 8. 
> > http://join.msn.com/?page=features/junkmail
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: websites that use Struts..

2003-02-26 Thread Dennis Muhlestein
http://www.datemate.com

On Wed, 2003-02-26 at 08:42, James Prance wrote:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> The list on the Apache website, half the links dont work...
> does anyone know of some websites out there on the old 'interweb' that are
> currently live using struts..
> I need to find some good examples to convince our PM's that this is our way
> forward..
> 
> James
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Mutliform validation using a DynaValidatorForm

2003-02-19 Thread Dennis Muhlestein
There is a bug.  "page" property on DynaValidatorForm (Or DynaActionForm
for all I know) isn't set when then form is submitted.  Don't know if
this is a filed issue.. haven't checked.  I had to make my own formbean
to have a multi page form.

Another issue you need to be aware of:
If you have checkboxes, your reset method needs to be aware of what page
is being submitted and only reset the checkboxes for the page you are
submitting.  Otherwise, you might check a box on page 1, only to have it
be unchecked when you submit page 2.

-Dennis

On Wed, 2003-02-19 at 02:57, Brian Blignaut wrote:
> Hi,
> 
> Has anyone attempted to use the 'page' property of a field, with a 
> DynaValidatorForm? It seems to me that there is a bug around doing this?
> 
> Thanks
> Brian
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: TilesRequestProcessor to support HTTP/HTTPS switching

2003-02-18 Thread Dennis Muhlestein
we use sslext with no problems.
check sf.net/projects/sslext

It is a struts plug in for managing ssl.

-Dennis

On Tue, 2003-02-18 at 10:24, Greg Hess wrote:
> Hi,
>  
> I would like to incorporate tiles into my application but I require
> HTTP/HTTPS switching. Has anyone implemented this ability by extending
> the TilesRequestProcessor or will this feature be added soon?
>  
> The only way I have been able to do it is by using sub-applications, but
> I can't justify this design for my current project so I am stuck using
> struts template tags.
>  
> Greg


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




Re: Sell me on tiles

2003-02-18 Thread Dennis Muhlestein
We migrated from using <%@include ... to tiles last year.
Development for is on an order of magnitude easier for our graphics
designer.  Instead of ugly header.jsp/footer.jsp type logic, you have 
template.jsp with body.jsp/sidebar.jsp stuff like that.  No need from
broken html in include files any more.

-Dennis


On Tue, 2003-02-18 at 09:34, Southard, Don wrote:
> We are starting a fairly new project using struts.  We are at a point where
> we need to make a decision on using tiles or not using tiles. On one hand
> it's not too hard to implement (one developer already has it working with
> our project).  On the other hand we haven't seen any added functionality
> that would really make us want to go with this feature. 
> 
> All that said can someone give me some brief points on why we should use
> tiles? 
> 
> -- L. Don Southard
>303 218 4823
>x4823
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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




Re: Out of my Mind/Struts Bug???

2003-01-24 Thread Dennis Muhlestein
println("First failure");
>return false;
> } else if (v.size() != number){
>System.out.println(v.size());
>System.out.println("Second failure");
>   
> errors.add(field.getKey(),StrutsValidatorUtil.getActionError(request,va,fiel
> d));
>return false;
> } else {
>//check to see if port nums make min max values
> enum = v.elements ();
> while (enum.hasMoreElements ()){
>   test = (Integer)enum.nextElement();
>   System.out.println("TEST: " + test);
>       if (test.intValue() < 1 ||
> test.intValue() > 65535){
>   System.out.println("Third
> failure");
>   return false;
>   }
> }
> 
> 
> }
>   return true;
>   }
> 
> Thanks
> 
> Jeremy Weber
> [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Dennis Muhlestein <[EMAIL PROTECTED]>
ZServe Corporation


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




RE: RequiredIf Example Request

2003-01-24 Thread Dennis Muhlestein
re?  Currently I am having a heck of time figuring out how to make
> this work...  
> 
> I have checked out all the online examples, but I am unclear as to what this
> stuff means...
> 
> If you have this in your struts-config.xml...
> 
>  name="dependentlistForm"
> type="org.apache.struts.webapp.validator.forms.ValidatorForm">
>  name="dependents"
> type="org.apache.struts.webapp.validator.Dependent[]"
> initial="{'','','','','','','','','','',''}"/>
>  name="insureDependents"
> type="java.lang.Boolean"
> initial="false"/>
> 
> 
> My form properties look like...
> 
>type="com.vendorsite.install.beans.InstallConfigurationFormBean"/>
> 
> 
> So I am missing the type and initial fields.  Can anybody help me see the
> light?  I need a checkbox to control whether or not 3 addiotional text
> fields are required.
> 
> Thanks,
> 
> Jeremy Weber
> [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Dennis Muhlestein <[EMAIL PROTECTED]>
ZServe Corporation


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




Re: Why is the reset method called when I submit the form?

2003-01-23 Thread Dennis Muhlestein
checkboxes work great with the reset method if the default is false, but
I have a situation where the default is true.  If they uncheck the
checkbox, then the property is not submitted and the value is still
true.

Has anyone dealt with this turn of the problem?

-Dennis


On Thu, 2003-01-23 at 06:49, Nicolas De Loof wrote:
> 1. Struts find the formbean on scope or creates a new one
> 2. formbean.reset() is called to set all properties to default values
> 3. formbean is populated from request parameters
> 4. formbean.validate() is called (if configured)
> 5. formbean is passed to action
> 
> reset() is used to set all property to default. It is mandatory for HTML
> checkbox, wich values sent into request when checked : If you uncheck a
> checkbox, they're will be no parameter in request. reset() allow you to set
> default to false, so
> 
> . if checkbox has been checked -> populate will set property to true.
> . if checkbox has not been checked -> reset has set property to false.
> Your formbean datas conforms with what showed HTML browser.
> 
> Nico.
> 
> >
> >
> > I had similar behavior that I found odd with 1.0.2, the actionform would
> be
> > populated, reset was then called, and then validate was called.
> >
> > Jeremy, my *solution* was to overwrite reset() to do nothing at all. By
> > creating another method to mimic the reset, I now call reset when it's
> more
> > advantageous.
> >
> >
> > >I guess struts calls reset in order to save all
> > > your input and then does the validation
> >
> > I don't get that on two assumptions, (clarification appreciated.)
> >
> > 1) Isn't reset() to clear out old data from a bean being recycled, as
> > opposed to a method for saving that old data?
> > 2) Isn't the very role of validating to prevent unruly, non-conforming
> data
> > from being saved?
> >
> > Loren
> >
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 22, 2003 1:47 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Why is the reset method called when I submit the form?
> >
> >
> > I guess struts calls reset in order to save all your input and then does
> the
> > validation
> >
> > Regards,
> >
> >
> > PQ
> >
> > "This Guy Thinks He Knows Everything"
> > "This Guy Thinks He Knows What He Is Doing"
> >
> > -Original Message-
> > From: Jeremy Cavagnolo [mailto:[EMAIL PROTECTED]]
> > Sent: January 22, 2003 2:53 PM
> > To: [EMAIL PROTECTED]
> > Subject: Why is the reset method called when I submit the form?
> >
> > It seems that when I submit my form, the reset method is called before
> > the validate method.  I am using struts 1.0.2.
> >
> > Any insight?
> >
> > -Jeremy
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Dennis Muhlestein <[EMAIL PROTECTED]>
ZServe Corporation


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




RE: DynaValidatorForm and multipage forms

2003-01-23 Thread Dennis Muhlestein
Thanks for the input, I've had great success with the DynaValidatorForm
in single page environments, if you have opportunity to use it in a
single page environment, I recommend it.

Maybe a bug needs filed for the multi-page DynaValidatorForm - I
couldn't find one in the bug tracker.

-Dennis

On Thu, 2003-01-23 at 09:25, [EMAIL PROTECTED] wrote:
> Nope.  I got no responses.  For now I've abandoned the DynaValidatorForms.
> I'm new to Struts so I'm just trying a lot of different things to see what
> works.  You might try submitting your question separately from mine to see
> if you get any bites.
> 
> Good luck
> 
> john
> 
> -Original Message-
> From: Dennis Muhlestein [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, January 22, 2003 5:18 PM
> To: Struts Users Mailing List
> Subject: Re: DynaValidatorForm and multipage forms
> 
> 
> Did you figure anything out with this problem?  I have the exact same
> problem.  I'd like to make a multipage form with DynaValidatorForm instead
> of extending ValidatorForm
> 
> Thanks 
-- 
Dennis Muhlestein <[EMAIL PROTECTED]>
ZServe Corporation


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




Re: Value of Struts?

2003-01-22 Thread Dennis Muhlestein
You also mention that you are on 1.0
1.1 has many more features that further reduce coding time.  Play around
with DynaValidatorForm for instance...


On Wed, 2003-01-22 at 16:07, Gene Campbell wrote:
> I've been using Struts (1.0) for a few months now, and
> I'm not seeing a big advantage to using it other than
> that it does Model 2 (which is very very wise) and
> hides some of the heavy lifting.  
> 
> ActionForms get you server side form validation and
> HTTP parameters->bean mapping.  
> 
> The taglibs get you reduced scriplet code and hooks to
> the form bean.
> 
> Actions get you a clean place to write controller code
> and a way to easily forward to presentation jsps.
> 
> Is that all Struts does?  Or are there features I'm
> missing?  Is it just a framework abstracting away the
> easy stuff into easier stuff?
> 
> I'm not trying to start a war - I'm sorry if I'm
> coming of antagonistic.  I'm not intending any ill
> will.  I'm just having a hard time figuring out why
> Struts is so popular.  
> 
> thanks - gene
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Dennis Muhlestein <[EMAIL PROTECTED]>
ZServe Corporation


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




Re: DynaValidatorForm and multipage forms

2003-01-22 Thread Dennis Muhlestein
Did you figure anything out with this problem?  I have the exact same
problem.  I'd like to make a multipage form with DynaValidatorForm
instead of extending ValidatorForm

Thanks 
-- 
Dennis Muhlestein <[EMAIL PROTECTED]>
ZServe Corporation

On Tue, 2003-01-21 at 12:44, [EMAIL PROTECTED] wrote:
> Is it even possible to use the DynaValidatorForm with multipage forms?
> Because BeanUtils.setProperty() ignores any property that hasn't been
> declared in struts-config.xml, there seems to be no way to set the page
> number.   doesn't work for dyna
> forms.  If this isn't possible, is there a reason other than that no one has
> gotten around to implementing it?
>  
> thanks
>  
> john gregg
> Wells Fargo Services Company
> Minneapolis, MN



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




Re: toggling ssl functionality with sslext

2003-01-22 Thread Dennis Muhlestein
If I recall right, and I may be wrong, but sslext has a plugin that you
define in your struts-config.xml.  The parameters let you define the
ports that insecure and secure should go to.

Couldn't you just put them both to port 80 or (8080 or whatever) for
development, and then change one to port 443 for production?  

I just installed an ssl server and generated a fake certificate for
developement.  Then I didn't have to worry about changing the
properties.

-Dennis

On Wed, 2003-01-22 at 10:37, Robert Taylor wrote:
> I'm looking over the Struts SSL extension package and don't see a way to
> toggle the ssl functionality for the PageSchemeTag and the SecureForm tag.
> For example, we aren't really concerned with SSL functionality during
> development, so it would be nice to "neutralize" the protocol switching. It
> seems like the the SecurePlugIn would have a property for this which could
> be accessed by the secure tags, but I don't see one.
> 
> 
> robert
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Dennis Muhlestein <[EMAIL PROTECTED]>
ZServe Corporation


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




Re: html:errors and logic:greaterThan w/out having to use scriptlets

2002-12-03 Thread Dennis Muhlestein
ok, I found the messagesPresent tag in the logic tags.  I still have a
problem though:

What if I need the logic to display for two specific properties:
It would be nice if I could do something like this:

Some Logic
Here


Any Suggestions?

Thanks
Dennis


On Tue, 2002-12-03 at 14:22, Dennis Muhlestein wrote:
> In addition to displaying errors by a specific field, i'd like to
> display some additional information.
> 
> ie:
> 
> 
> <% if errors.size( "someField" ) > 0 { %>
>   Some Additional Info ..
> <% } %>
> 
> Problem is, I can't see a way to do that with any of the logic tags
> because there is no property that represents the number of errors for a
> specific field
> 
> I'd like to do something like this:
> 
>  value="0">
>   Some Additional Info...
> 
> 
> 
> That way I don't have to have the scriptlets in the jsp.
> 
> Anyone have a way to do this without the scriptlets??
> 
> TIA
> -Dennis
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




html:errors and logic:greaterThan w/out having to use scriptlets

2002-12-03 Thread Dennis Muhlestein
In addition to displaying errors by a specific field, i'd like to
display some additional information.

ie:


<% if errors.size( "someField" ) > 0 { %>
Some Additional Info ..
<% } %>

Problem is, I can't see a way to do that with any of the logic tags
because there is no property that represents the number of errors for a
specific field

I'd like to do something like this:


Some Additional Info...



That way I don't have to have the scriptlets in the jsp.

Anyone have a way to do this without the scriptlets??

TIA
-Dennis


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




Re: Final release for Struts 1.1

2002-11-05 Thread Dennis Muhlestein
Get a nightly. Rename it 1.1 Final.  If anyone asks questions... Lie.

On Tue, 2002-11-05 at 12:24, Xuefeng Wang wrote:
> Hi, all,
> I'm using Struts 1.1B1 to develop our product, I want to know when Struts 
> 1.1 final will be release.
> 
> thanks,
> 
> James
> 
> 
> 
> 
> 
> _
> Surf the Web without missing calls! Get MSN Broadband.  
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




Re: [ANNOUNCE] Struts Console v3.0

2002-10-30 Thread Dennis Muhlestein
We've been using the struts validation package and I'm wondering if it
isn't wise to change now.  Any suggestions on the easiest way to update?

Can we just download the commons validation?  What do we need to do to
integrate with struts?

Thanks
Dennis

On Wed, 2002-10-30 at 13:28, James Holmes wrote:
> Your validation.xml files need to have this DOCTYPE to
> work with Struts Console:
> 
>   "-//Apache Software Foundation//DTD Commons
> Validator Rules Configuration 1.0//EN"
> 
> "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
> 
> This is the official DOCTYPE for Validator config
> files as of last week.
> 
> -james
> http://www.jamesholmes.com/struts/
> 
> 
> --- Dennis Muhlestein <[EMAIL PROTECTED]> wrote:
> > Seems there is no validator 1.0 dtd on
> > jakarta.apache.org/struts/dtds/..
> > I can't open my validation.xml file because it uses
> > the 1.1 dtd so I
> > tried the 1.0 to see how that would work, but I got
> > 404 error.
> > 
> > Can you just put a dtd somewhere?
> > 
> > Thanks
> > Dennis
> > 
> > BTW it's true, James is Arnie.
> > 
> > On Wed, 2002-10-30 at 11:50, James Holmes wrote:
> > > Struts Console version 3.0 is now available.
> > > 
> > > http://www.jamesholmes.com/struts/
> > > 
> > > Download Now:
> > >
> >
> http://www.jamesholmes.com/struts/struts-console-3.0.zip
> > >   -- OR --
> > >
> >
> http://www.jamesholmes.com/struts/struts-console-3.0.tar.gz
> > > 
> > > Struts Console is FREE software.
> > > 
> > > Eclipse plugin support and Validator config file
> > > support is finally here.  This release also makes
> > > working with DynaActionForms more convenient.
> > > 
> > > Changes with Struts Console v3.0
> > > 
> > >   *) Fixed bug where Forwards' "Configuration
> > Class"
> > >  attribute was incorrect.
> > > 
> > >   *) Added support for Validator config files.
> > > 
> > >   *) Added plugin support for Eclipse.
> > > 
> > >   *) Added support for "className" attribute of
> > >   elements.
> > > 
> > >   *) Added support for "className" attribute of
> > >   elements.
> > > 
> > >   *) Added support for "className" attribute of
> > >   elements.
> > > 
> > >   *) Added support for "className" attribute of
> > >   elements.
> > > 
> > >   *) Added support for adding 
> > elements
> > >  to  elements.
> > > 
> > >   *) Added drop down list of values for "Type"
> > field
> > >  of Form Properties for FormBeans.
> > > 
> > >   *) Added drop down list of values for
> > >  FormBean's "Type" field.
> > > 
> > > 
> > > Thanks,
> > > 
> > > -james
> > > [EMAIL PROTECTED]
> > > http://www.jamesholmes.com/struts/
> > > 
> > > 
> > > 
> > > __
> > > Do you Yahoo!?
> > > HotJobs - Search new jobs daily now
> > > http://hotjobs.yahoo.com/
> > > 
> > > --
> > > 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:  
> > <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-user-help@;jakarta.apache.org>
> > 
> 
> 
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
> 
> --
> 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:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: [ANNOUNCE] Struts Console v3.0

2002-10-30 Thread Dennis Muhlestein
Nevermind my last post.. 
I listed it as struts, but I just found out it is in commons.. ah ha..

Thanks James.

On Wed, 2002-10-30 at 11:50, James Holmes wrote:
> Struts Console version 3.0 is now available.
> 
> http://www.jamesholmes.com/struts/
> 
> Download Now:
> http://www.jamesholmes.com/struts/struts-console-3.0.zip
>   -- OR --
> http://www.jamesholmes.com/struts/struts-console-3.0.tar.gz
> 
> Struts Console is FREE software.
> 
> Eclipse plugin support and Validator config file
> support is finally here.  This release also makes
> working with DynaActionForms more convenient.
> 
> Changes with Struts Console v3.0
> 
>   *) Fixed bug where Forwards' "Configuration Class"
>  attribute was incorrect.
> 
>   *) Added support for Validator config files.
> 
>   *) Added plugin support for Eclipse.
> 
>   *) Added support for "className" attribute of
>   elements.
> 
>   *) Added support for "className" attribute of
>   elements.
> 
>   *) Added support for "className" attribute of
>   elements.
> 
>   *) Added support for "className" attribute of
>   elements.
> 
>   *) Added support for adding  elements
>  to  elements.
> 
>   *) Added drop down list of values for "Type" field
>  of Form Properties for FormBeans.
> 
>   *) Added drop down list of values for
>  FormBean's "Type" field.
> 
> 
> Thanks,
> 
> -james
> [EMAIL PROTECTED]
> http://www.jamesholmes.com/struts/
> 
> 
> 
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




Re: [ANNOUNCE] Struts Console v3.0

2002-10-30 Thread Dennis Muhlestein
Seems there is no validator 1.0 dtd on jakarta.apache.org/struts/dtds/..
I can't open my validation.xml file because it uses the 1.1 dtd so I
tried the 1.0 to see how that would work, but I got 404 error.

Can you just put a dtd somewhere?

Thanks
Dennis

BTW it's true, James is Arnie.

On Wed, 2002-10-30 at 11:50, James Holmes wrote:
> Struts Console version 3.0 is now available.
> 
> http://www.jamesholmes.com/struts/
> 
> Download Now:
> http://www.jamesholmes.com/struts/struts-console-3.0.zip
>   -- OR --
> http://www.jamesholmes.com/struts/struts-console-3.0.tar.gz
> 
> Struts Console is FREE software.
> 
> Eclipse plugin support and Validator config file
> support is finally here.  This release also makes
> working with DynaActionForms more convenient.
> 
> Changes with Struts Console v3.0
> 
>   *) Fixed bug where Forwards' "Configuration Class"
>  attribute was incorrect.
> 
>   *) Added support for Validator config files.
> 
>   *) Added plugin support for Eclipse.
> 
>   *) Added support for "className" attribute of
>   elements.
> 
>   *) Added support for "className" attribute of
>   elements.
> 
>   *) Added support for "className" attribute of
>   elements.
> 
>   *) Added support for "className" attribute of
>   elements.
> 
>   *) Added support for adding  elements
>  to  elements.
> 
>   *) Added drop down list of values for "Type" field
>  of Form Properties for FormBeans.
> 
>   *) Added drop down list of values for
>  FormBean's "Type" field.
> 
> 
> Thanks,
> 
> -james
> [EMAIL PROTECTED]
> http://www.jamesholmes.com/struts/
> 
> 
> 
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




Re: html:options ordering

2002-10-30 Thread Dennis Muhlestein
Thanks for the comments.  Seems to make more sense not to have 
any ordering functionality in the html:options tag anyway.

On Wed, 2002-10-30 at 10:40, Dennis Muhlestein wrote:
> I have a hashtable with key/value that get displayed by an html:options
> tag.  
> 
> Works ok, but they are ordered in reverse order of the id.  That isn't
> any performance problem, but it looks a little strange to the user.
> 
> For instance, what if you wanted the options in alphabetical order?  In
> my case, I need them ordered by the key for each options.
> 
> Any Suggestions?
> TIA
> -Dennis
> 
> 
> --
> 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:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




html:options ordering

2002-10-30 Thread Dennis Muhlestein
I have a hashtable with key/value that get displayed by an html:options
tag.  

Works ok, but they are ordered in reverse order of the id.  That isn't
any performance problem, but it looks a little strange to the user.

For instance, what if you wanted the options in alphabetical order?  In
my case, I need them ordered by the key for each options.

Any Suggestions?
TIA
-Dennis


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




Re: Confused about nightly builds and 1.1b2 bugs

2002-10-23 Thread Dennis Muhlestein
I haven't followed the issues being fixed too much.  I just know that we
updated to 20021022 and now I don't have billions(exaggeration) of tiles
print statements in my log files.  It's in production now and as far as
I know functions the same as 1.1b2 did.

-Dennis

On Wed, 2002-10-23 at 11:23, [EMAIL PROTECTED] wrote:
> 
> Thank you. That is what I wanted to hear.
> 
> What would be the recommendation for  the latest  'stable' build.
> I know this is based on the experience of those who tried the builds, but
> any opinions would be helpful.
> 
> Thanks again
> 
> 
> 
> 
> Eddie Bush <[EMAIL PROTECTED]> on 10/23/2002 12:20:45 PM
> 
> Please respond to "Struts Users Mailing List"
><[EMAIL PROTECTED]>
> 
> To:Struts Users Mailing List <[EMAIL PROTECTED]>
> cc:
> 
> Subject:Re: Confused about nightly builds and 1.1b2 bugs
> 
> 
> We don't have any fancy branching (at this point) like Tomcat etc do
> (that I am aware of).  The nightly builds reflect the current status of
> what will (eventually) be 1.1 final.
> 
> [EMAIL PROTECTED] wrote:
> 
> >Sorry for the dumb question and another thread on nightly builds
> >
> >Do the nighlty builds reflect the up comming release candidate for 1.1 (or
> >1.1b3) or
> >are they a separate branch for a future release.
> >
> >I am hearing about new  functionality in the nightly builds.
> >I would consider trying a 'stable nighlty' knowing that 1.1 final would
> >have that same functionality.
> >
> >Thanks.
> >
> 
> --
> Eddie Bush
> 
> 
> 
> 
> --
> 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: 
> 


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




Re: Struts Nightly Build

2002-10-23 Thread Dennis Muhlestein
In addition to swapping jars, I did have to change the dtd for the
tiles-defs.xml from tiles-config.dtd to tiles-config_1_1.dtd.

Also, the tag urls in struts.jar are upgraded if you use that method for
specifiying the tlds.  (tomcat 4.1.x only).

ie: <%@taglib uri="http://jakarta.apache.org/struts/tags-html-1.1";
prefix="html"%>
instead of
<%@taglib uri="http://jakarta.apache.org/struts/tags-html-1.0";
prefix="html"%>

Those are the only two things I changed.

-Dennis

On Wed, 2002-10-23 at 08:56, Vincent Stoessel wrote:
> Is upgrading struts a simple matter of swapping out struts.jar ?
> 
> 
> Chappell, Simon P wrote:
> > Thank goodness! You had me worried there. :-)
> > 
> > We're still using 1.1b2, so I haven't tried a nightly build lately. Someone else 
>will have to comment on that, or you can just try it anyway. (That's what I usually 
>do).
> > 
> > Simon
> > 
> > 
> >>-Original Message-
> >>From: Dennis Muhlestein [mailto:dennis@;zserve.com]
> >>Sent: Wednesday, October 23, 2002 9:24 AM
> >>To: Struts Users Mailing List
> >>Subject: RE: Struts Nightly Build
> >>
> >>
> >>No, No, I picked up the 20021022 build, I need the commons-logging
> >>integrated with the tiles package so that my logs don't fill up with
> >>thousands of lines tiles statements.  
> >>
> >>I won't upgrade again unless there is something else I need.  I'm just
> >>wondering if there is anything I should be aware of with the nightly
> >>builds lately??
> >>
> >>Thanks
> >>Dennis
> >>
> >>On Wed, 2002-10-23 at 08:12, Chappell, Simon P wrote:
> >>
> >>>Perhaps you could pick a specific nightly build that has the 
> >>
> >>extra functionality that you need, but I'm not going to 
> >>recommend updating with EVERY nightly build. I seriously hope 
> >>that this is not what you meant.
> >>
> >>>Simon
> >>>
> >>>-
> >>>Simon P. Chappell [EMAIL PROTECTED]
> >>>Java Programming Specialist  www.landsend.com
> >>>Lands' End, Inc.   (608) 935-4526
> >>>
> >>>
> >>>
> >>>>-Original Message-
> >>>>From: Dennis Muhlestein [mailto:dennis@;zserve.com]
> >>>>Sent: Wednesday, October 23, 2002 9:11 AM
> >>>>To: [EMAIL PROTECTED]
> >>>>Subject: Struts Nightly Build
> >>>>
> >>>>
> >>>>I'm about to change our production environment to use the 
> >>>>struts nightly
> >>>>build instead of 1.1b2 because of the non commons-logging 
> >>
> >>in the tiles
> >>
> >>>>package with 1.1b2.
> >>>>
> >>>>Does anyone know of any issues to be aware of?  Seems to 
> >>
> >>work ok in dev
> >>
> >>>>environment.
> >>>>
> >>>>TIA
> >>>>-Dennis
> >>>>
> >>>>--
> >>>>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:   
> > 
> > <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > 
> >>For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
> >>
> > 
> > 
> > --
> > 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:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
> 
> 
> -- 
> Vincent Stoessel
> Linux Systems Developer
> vincent xaymaca.com
> 
> 
> --
> 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:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: Struts Nightly Build

2002-10-23 Thread Dennis Muhlestein
No, No, I picked up the 20021022 build, I need the commons-logging
integrated with the tiles package so that my logs don't fill up with
thousands of lines tiles statements.  

I won't upgrade again unless there is something else I need.  I'm just
wondering if there is anything I should be aware of with the nightly
builds lately??

Thanks
Dennis

On Wed, 2002-10-23 at 08:12, Chappell, Simon P wrote:
> Perhaps you could pick a specific nightly build that has the extra functionality 
>that you need, but I'm not going to recommend updating with EVERY nightly build. I 
>seriously hope that this is not what you meant.
> 
> Simon
> 
> -
> Simon P. Chappell [EMAIL PROTECTED]
> Java Programming Specialist  www.landsend.com
> Lands' End, Inc.   (608) 935-4526
> 
> 
> >-Original Message-
> >From: Dennis Muhlestein [mailto:dennis@;zserve.com]
> >Sent: Wednesday, October 23, 2002 9:11 AM
> >To: [EMAIL PROTECTED]
> >Subject: Struts Nightly Build
> >
> >
> >I'm about to change our production environment to use the 
> >struts nightly
> >build instead of 1.1b2 because of the non commons-logging in the tiles
> >package with 1.1b2.
> >
> >Does anyone know of any issues to be aware of?  Seems to work ok in dev
> >environment.
> >
> >TIA
> >-Dennis
> >
> >--
> >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:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Struts Nightly Build

2002-10-23 Thread Dennis Muhlestein
I'm about to change our production environment to use the struts nightly
build instead of 1.1b2 because of the non commons-logging in the tiles
package with 1.1b2.

Does anyone know of any issues to be aware of?  Seems to work ok in dev
environment.

TIA
-Dennis

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




Re: tiles definitions including other definitions

2002-10-18 Thread Dennis Muhlestein
Thanks for letting me know that. I found a problem elsewhere and now it
works.

On Fri, 2002-10-18 at 08:53, Adam Sherman wrote:
> Dennis Muhlestein wrote:
> > In the tiles documentation, under the put attribute, it says the type
> > can be "definition".  Does this only apply to the tag library usage of
> > put, or can I use this in the xml file like this:
> > (Thanks to James for Providing pretty output with struts-console!)
> 
> > I think it would be extremely nice to do this, but When I try to forward
> > (via a forward Action) to tiles.members.layout1, I get the .basicLayout
> > but there is nothing in the body area.
> 
> It "Just Works" for me. I'm not using the type attribute at all.
> 
> A.
> 
> -- 
> Adam Sherman
> Software Developer
> Teach and Travel Inc.
> +1.613.241.3103
> 
> 
> 
> --
> 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:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




tiles definitions including other definitions

2002-10-18 Thread Dennis Muhlestein
Morning All,

In the tiles documentation, under the put attribute, it says the type
can be "definition".  Does this only apply to the tag library usage of
put, or can I use this in the xml file like this:
(Thanks to James for Providing pretty output with struts-console!)

Notice the third definition would be the first with the second inside
it.


  
  
  
  
   
   
  
  
  
   
   
  
  
   


I think it would be extremely nice to do this, but When I try to forward
(via a forward Action) to tiles.members.layout1, I get the .basicLayout
but there is nothing in the body area.

Any comments Suggestions?
Thanks
Dennis

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




Re: Exception Page

2002-10-18 Thread Dennis Muhlestein
Thanks, That's exactly what I needed.


And, BTW, when is struts 1.1 releasing :-)
He he just kidding.


On Thu, 2002-10-17 at 12:13, Joe Germuska wrote:
> At 10:56 AM -0600 2002/10/17, Dennis Muhlestein wrote:
> >I like the global exception handler in struts 1.1b2.
> >
> >I have a question I haven't found in the docs.  (Maybe I haven't looked
> >hard enough if someone can point the way).
> >
> >If Struts forwards to the global exception page, is there a request or
> >other attribute that contains a throwable object?  Like if you use the
> >jsp error page directive, you get an object called exception. 
> >
> >I'd rather just log the exception there, than catch it in the action,log
> >it, then throw it again.
> 
> In short, the answer is yes.  The default ExceptionHandler stores the 
> exception as a request attribute under the key 
> org.apache.struts.action.Action.EXCEPTION_KEY (a String constant 
> defined as "org.apache.struts.action.EXCEPTION")
> 
> This is part of the default behavior in 
> org.apache.struts.action.ExceptionHandler; you can subclass this and 
> specify your subclass as the handler for certain types of exceptions 
> in struts-config.
> 
> Joe
> 
> -- 
> --
> * Joe Germuska{ [EMAIL PROTECTED] }
> "It's pitiful, sometimes, if they've got it bad. Their eyes get 
> glazed, they go white, their hands tremble As I watch them I 
> often feel that a dope peddler is a gentleman compared with the man 
> who sells records."
>   --Sam Goody, 1956
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Exception Page

2002-10-18 Thread Dennis Muhlestein
I like the global exception handler in struts 1.1b2.

I have a question I haven't found in the docs.  (Maybe I haven't looked
hard enough if someone can point the way).

If Struts forwards to the global exception page, is there a request or
other attribute that contains a throwable object?  Like if you use the
jsp error page directive, you get an object called exception.  

I'd rather just log the exception there, than catch it in the action,log
it, then throw it again.

Any suggestions?

Thanks
Dennis



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




tomcat 4.1.12 issue

2002-10-10 Thread Dennis Muhlestein

I thought I'd upgrade my tomcat to 4.1.12 from 4.0.x.

I'm using struts 1.1b2, j2skd1.4.1, various linux distributions.

I only had issue.  I have one page that conditionally includes another
page.  With tomcat 4.0.x I've never had a problem.  When I upgraded, the
compiler could not compile that page.  I got many exceptions:

2002-10-10 05:25:01 Error compiling file:
/legacystamps/app/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/legacystamps/_/WEB-INF/pages/search/results_jsp.java
 [javac] Compiling 1 source file
[javac]
/legacystamps/app/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/legacystamps/_/WEB-INF/pages/search/results_jsp.java:103:108:103:184:
 Error: The method "javax.servlet.jsp.tagext.Tag get(java.lang.Class $1) throws 
javax.servlet.jsp.JspException;" can throw the checked exception 
"javax/servlet/jsp/JspException", so its invocation must be enclosed in a try 
statement that catches the exception, or else this method must be declared to throw 
the exception.

...This printed over an over about different line numbers.


Anyone have a similar experience?  Is it just the conditional include?
ie.. is this bad?..

<% if (...) { %><@include file="..."%><% } %>

Thanks for any input.
Dennis

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




Re: [commons-pool] Should I use commons-pool for this?

2002-10-09 Thread Dennis Muhlestein

Why not just use a queue.
Make one out of a java.util.Vector or something.  You can use wait and
notify to tell the consumer thread something has been placed in the
queue.

-Dennis

On Wed, 2002-10-09 at 08:45, Morycz, Felicia V wrote:
> I'm writing a service that runs continually and produces objects that I want
> to put into a keyed pool.  Then there are consumers that will get and remove
> the objects based on the key.  If the key is not found yet, the consumer
> should wait until it is there or a timeout period is reached.  I started
> looking at commons-pool and could not find any examples.  
> 
> 1.  Could you point me to some examples, possibly one that uses a keyed
> object pool?
> 
> 2.  I'm concerned about using commons-pool because it seems to be geared
> toward maintaining a pool of reusable objects.  I do not reuse the objects,
> I consume them.  Is there somewhere else I should look that better matches
> my needs?
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


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




Re: Action as Welcome File

2002-06-26 Thread Dennis Muhlestein

We use apache in from of tomcat.  Because there is no index.do, we would
get a directory listing (if that was turned on but it isn't because
well...).

Anyway, I added index.do to the list of files for apache to
automatically pull up and then just made a dummy file called index.do

tomcat gets the request and it works just fine.

-Dennis

On Wed, 2002-06-26 at 16:07, Jerry Jalenak wrote:
> Is it possible to do the following?
> 
> in web.xml..
> 
>   
>   action
>   .
>   .
>   .
>   
> 
>   
>   action
>   *.do
>   
> 
>   
>   index.do
>   
> 
> I am trying to get index.do to run first before anything else happens.  What
> I get is a directory listing of the web application folder.  I'm running
> this under Tomcat 3.3.1.  Is anyone doing this? Can it even be done?
> 
> Jerry
> 
> 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: 




Best Practice for mapping servlets

2002-06-25 Thread Dennis Muhlestein

I have two mappings for the actions servlet.  The reason is:
one mapping goes through a filter for login/session management.  The
other is public.

Mapping Extensions are dm=public-no filter, do=logged in-filtered

My problem is:
I specify 

in my jsp page but when the tag outputs the html it changes the action
to /Login.do which is filtered.  

That makes it so I can't log in.

Is there a better way to do this or is this a bug?  Seems to me struts
is ignoring what I type and looking up the action then printing the
extension from that.  If I change the order of my mappings in web.xml,
the opposite occurs.  My private pages then get mapped to the public
extension.  Whichever extension appears second in the web.xml is used.

Any suggestions?
Thanks
Dennis




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




Re: Tiles and Struts

2002-06-24 Thread Dennis Muhlestein

AFAIK If you configure tiles with an xml file, the
ActionComponentServlet is in charge of reading that configuration and
forwarding to the correct definitions.

If you just use a jsp page to tell which template/tiles to use, the
action servlet isn't used.

-Dennis


On Mon, 2002-06-24 at 14:26, Ricardo de Souza Moura wrote:
> Why I need to put org.apache.struts.tiles.ActionComponentServlet at the 
>  element in the web.xml file ?
> I noticed that if my servlet is the default action servlet of the Struts, my 
> Tile samples work fine too.
> 
> Why?
> 
> 
> _
> Chegou o novo MSN Explorer. Instale já. É gratuito: 
> http://explorer.msn.com.br
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




request attribute with tiles

2002-06-24 Thread Dennis Muhlestein

A while ago, there was reference to passing request parameters to a
tiles page with the put tag.  This allowed the included jsp to do a
little logic to appropriately select a menu item or something.

Can you do the same thing when configuring tiles with the
tiles-config.xml?  There doesn't seem to be a way to do this.  Anyone
tackled this problem with tiles before?

Thanks
Dennis




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




request attribute with tiles

2002-06-24 Thread Dennis Muhlestein

A while ago, there was reference to passing request parameters to a
tiles page with the put tag.  This allowed the included jsp to do a
little logic to appropriately select a menu item or something.

Can you do the same thing when configuring tiles with the
tiles-config.xml?  There doesn't seem to be a way to do this.  Anyone
tackled this problem with tiles before?

Thanks
Dennis




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




RE: HELP Tiles Action Component Servlet not being called

2002-06-21 Thread Dennis Muhlestein

Well, After extensivly searching the mail archive,
I found that I needed to include a controller in
my struts-config.




Even if you user ActionComponentServlet, it still does the
basic ActionServlet processing unless you change the controller too.





On Fri, 2002-06-21 at 14:47, Dennis Muhlestein wrote:
> Still a no-go.
> 
> Fixing the servlet parameters to be tiles specific helped load the
> servlet.  I turned the debug level up and verified the my servlet was
> being loaded.
> 
> The following from my catalina.out
> 
> Component Definitions debug level = 2
> factory loaded : {indexPage={name=indexPage,
> path=/globals/BlackBaseLayout.jsp, role=null, controller=null,
> controllerType=null, controllerInstance=null, attributes={header=,
> title=DateMate.com, body=}}
> }
> Factory initialized from file '/WEB-INF/component-definitions.xml'.
> 
> 
> 
> The problem still exists though.  When I access a page the exception
> printed suggests that the parent class is being used (See exception)
> 
> Is this a tomcat bug?
> 
> Thanks
> Dennis
> 
> 
> On Fri, 2002-06-21 at 14:37, [EMAIL PROTECTED] wrote:
> > 
> > No wait... I know this one...  I had the same problem...
> > 
> > 
> > here is my web.xml...  I have some differences from yours.  Try setting 
> > it up like this.  I had some issues with some old documentation on the 
> > site.
> > 
> > (another hint: on the tiles home page there is a link to a document 
> > called advanced tiles - which is geared better i think)
> > 
> > 
> > 
> > 
> > 
> > action
> > org.apache.struts.tiles.ActionComponentServlet > lass>
> > 
> > 
> > definitions-config
> > /WEB-INF/jsp/plantsec/tilesDefinitions.xml,/WEB-INF/jsp/com
> > mon/tiles/tilesGlobal.xml
> > 
> > 
> > 
> > 
> > definitions-debug
> > 2
> > 
> > 
> > 
> > definitions-parser-details
> > 0
> > 
> > 
> > 
> > definitions-parser-validate
> > true
> > 
> > 
> > 2
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -Original Message-
> > From: dennis [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 21, 2002 4:19 PM
> > To: struts-user
> > Subject: HELP Tiles Action Component Servlet not being called
> > 
> > 
> > I am trying to test out tiles.  I change my web.xml file to use the
> > tiles ActionComponent servlet and restarted tomcat but the exception
> > printed below appears to still be using the struts ActionServlet.
> > 
> > I've restarted tomcat multiple times and tried changing the names of the
> > servlet-class more than a few to make sure it was getting reloaded.  
> > 
> > This one has got me stumped.  Any Suggestions?
> > TIA:
> > Dennis
> > 
> > 
> > 
> > java.lang.IllegalArgumentException: Path indexPage does not start with a
> > "/" character
> > at
> > org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Applica
> > tionContext.java:570)
> > at
> > org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(A
> > pplicationContextFacade.java:174)
> > at
> > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
> > a:965)
> > at
> > org.apache.struts.action.RequestProcessor.processForward(RequestProcesso
> > r.java:548)
> > at
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> > 250)
> > at
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> > at 
> > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
> > 
> > 
> > My Action:
> >  > forward="indexPage"/> 
> > 
> > 
> > My important part of web.xml
> > 
> > action
> > org.apache.struts.tiles.ActionComponentServlet > lass>
> > 
> > application
> > ApplicationResources
> > 
> > 
> > config
> > /WEB-INF/struts-config.xml
> > 
> > 
> >instances-config
> >/WEB-INF/component-definitions.xml
> > 
> > 
> > debug
> > 2
> > 
> > 
> > detail
> > 9
> > 
> > 
> > validate
> > true
> > 
> > 2
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




RE: HELP Tiles Action Component Servlet not being called

2002-06-21 Thread Dennis Muhlestein

Same here 4.0.3 tomcat

my defs file:


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



  

  

  

  

  



This is being loaded ok.  This is a very strange error.

Thanks for you help
-Dennis



On Fri, 2002-06-21 at 15:09, [EMAIL PROTECTED] wrote:
> 
> I am on Tomcat 403 and it works.  I would not think it was a tomcat bug 
> because it is not really being handled by that...
> 
> What does your tiles definition file look like?  I had some issues in 
> there also.  I wish I could remember what I did to fix it...
> 
> 
> 
> 
> -Original Message-
> From: dennis [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 21, 2002 4:48 PM
> To: struts-user
> Subject: RE: HELP Tiles Action Component Servlet not being called
> 
> 
> Still a no-go.
> 
> Fixing the servlet parameters to be tiles specific helped load the
> servlet.  I turned the debug level up and verified the my servlet was
> being loaded.
> 
> The following from my catalina.out
> 
> Component Definitions debug level = 2
> factory loaded : {indexPage={name=indexPage,
> path=/globals/BlackBaseLayout.jsp, role=null, controller=null,
> controllerType=null, controllerInstance=null, attributes={header=,
> title=DateMate.com, body=}}
> }
> Factory initialized from file '/WEB-INF/component-definitions.xml'.
> 
> 
> 
> The problem still exists though.  When I access a page the exception
> printed suggests that the parent class is being used (See exception)
> 
> Is this a tomcat bug?
> 
> Thanks
> Dennis
> 
> 
> On Fri, 2002-06-21 at 14:37, [EMAIL PROTECTED] wrote:
> > 
> > No wait... I know this one...  I had the same problem...
> > 
> > 
> > here is my web.xml...  I have some differences from yours.  Try 
> setting 
> > it up like this.  I had some issues with some old documentation on the 
> 
> > site.
> > 
> > (another hint: on the tiles home page there is a link to a document 
> > called advanced tiles - which is geared better i think)
> > 
> > 
> > 
> > 
> > 
> > action
> > 
> org.apache.struts.tiles.ActionComponentServlet > lass>
> > 
> > 
> > definitions-config
> > 
> /WEB-INF/jsp/plantsec/tilesDefinitions.xml,/WEB-INF/jsp/com
> > mon/tiles/tilesGlobal.xml
> > 
> > 
> > 
> > 
> > definitions-debug
> > 2
> > 
> > 
> > 
> > definitions-parser-details
> > 0
> > 
> > 
> > 
> > definitions-parser-validate
> > true
> > 
> > 
> > 2
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -Original Message-
> > From: dennis [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 21, 2002 4:19 PM
> > To: struts-user
> > Subject: HELP Tiles Action Component Servlet not being called
> > 
> > 
> > I am trying to test out tiles.  I change my web.xml file to use the
> > tiles ActionComponent servlet and restarted tomcat but the exception
> > printed below appears to still be using the struts ActionServlet.
> > 
> > I've restarted tomcat multiple times and tried changing the names of 
> the
> > servlet-class more than a few to make sure it was getting reloaded.  
> > 
> > This one has got me stumped.  Any Suggestions?
> > TIA:
> > Dennis
> > 
> > 
> > 
> > java.lang.IllegalArgumentException: Path indexPage does not start with 
> a
> > "/" character
> > at
> > 
> org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Applica
> > tionContext.java:570)
> > at
> > 
> org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(A
> > pplicationContextFacade.java:174)
> > at
> > 
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
> > a:965)
> > at
> > 
> org.apache.struts.action.RequestProcessor.processForward(RequestProcesso
> > r.java:548)
> > at
> > 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> > 250)
> > at
> > 
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> > at 
> > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
> > 
> > 
> > My Action:
> >  > forward="indexPage"/> 
> > 
> > 
> > My important part of web.xml
> > 
> > action
> > 
> org.apache.struts.tiles.ActionComponentServlet > lass>
> > 
> > application
> > ApplicationResources
> > 
> > 
> > config
> > /WEB-INF/struts-config.xml
> > 
> > 
> >instances-config
> >/WEB-INF/component-definitions.xml
> > 
> > 
> > debug
> > 2
> > 
> > 
> > detail
> > 9
> > 
> > 
> > validate
> > true
> > 
> > 2
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> > For additional commands, e-mail: 
> 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   

RE: HELP Tiles Action Component Servlet not being called

2002-06-21 Thread Dennis Muhlestein

Still a no-go.

Fixing the servlet parameters to be tiles specific helped load the
servlet.  I turned the debug level up and verified the my servlet was
being loaded.

The following from my catalina.out

Component Definitions debug level = 2
factory loaded : {indexPage={name=indexPage,
path=/globals/BlackBaseLayout.jsp, role=null, controller=null,
controllerType=null, controllerInstance=null, attributes={header=,
title=DateMate.com, body=}}
}
Factory initialized from file '/WEB-INF/component-definitions.xml'.



The problem still exists though.  When I access a page the exception
printed suggests that the parent class is being used (See exception)

Is this a tomcat bug?

Thanks
Dennis


On Fri, 2002-06-21 at 14:37, [EMAIL PROTECTED] wrote:
> 
> No wait... I know this one...  I had the same problem...
> 
> 
> here is my web.xml...  I have some differences from yours.  Try setting 
> it up like this.  I had some issues with some old documentation on the 
> site.
> 
> (another hint: on the tiles home page there is a link to a document 
> called advanced tiles - which is geared better i think)
> 
> 
> 
> 
> 
> action
> org.apache.struts.tiles.ActionComponentServlet lass>
> 
> 
> definitions-config
> /WEB-INF/jsp/plantsec/tilesDefinitions.xml,/WEB-INF/jsp/com
> mon/tiles/tilesGlobal.xml
> 
> 
> 
> 
> definitions-debug
> 2
> 
> 
> 
> definitions-parser-details
> 0
> 
> 
> 
> definitions-parser-validate
> true
> 
> 
> 2
> 
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: dennis [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 21, 2002 4:19 PM
> To: struts-user
> Subject: HELP Tiles Action Component Servlet not being called
> 
> 
> I am trying to test out tiles.  I change my web.xml file to use the
> tiles ActionComponent servlet and restarted tomcat but the exception
> printed below appears to still be using the struts ActionServlet.
> 
> I've restarted tomcat multiple times and tried changing the names of the
> servlet-class more than a few to make sure it was getting reloaded.  
> 
> This one has got me stumped.  Any Suggestions?
> TIA:
> Dennis
> 
> 
> 
> java.lang.IllegalArgumentException: Path indexPage does not start with a
> "/" character
>   at
> org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Applica
> tionContext.java:570)
>   at
> org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(A
> pplicationContextFacade.java:174)
>   at
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
> a:965)
>   at
> org.apache.struts.action.RequestProcessor.processForward(RequestProcesso
> r.java:548)
>   at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 250)
>   at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
>   at 
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
> 
> 
> My Action:
>  forward="indexPage"/> 
> 
> 
> My important part of web.xml
> 
> action
> org.apache.struts.tiles.ActionComponentServlet lass>
> 
> application
> ApplicationResources
> 
> 
> config
> /WEB-INF/struts-config.xml
> 
> 
>instances-config
>/WEB-INF/component-definitions.xml
> 
> 
> debug
> 2
> 
> 
> detail
> 9
> 
> 
> validate
> true
> 
> 2
> 
> 
> 
> 
> --
> 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: 




HELP Tiles Action Component Servlet not being called

2002-06-21 Thread Dennis Muhlestein

I am trying to test out tiles.  I change my web.xml file to use the
tiles ActionComponent servlet and restarted tomcat but the exception
printed below appears to still be using the struts ActionServlet.

I've restarted tomcat multiple times and tried changing the names of the
servlet-class more than a few to make sure it was getting reloaded.  

This one has got me stumped.  Any Suggestions?
TIA:
Dennis



java.lang.IllegalArgumentException: Path indexPage does not start with a
"/" character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:570)
at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:174)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:965)
at
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:548)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:250)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)


My Action:
 


My important part of web.xml

action
org.apache.struts.tiles.ActionComponentServlet

application
ApplicationResources


config
/WEB-INF/struts-config.xml


   instances-config
   /WEB-INF/component-definitions.xml


debug
2


detail
9


validate
true

2




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




Re: 1.1b1 xml

2002-06-20 Thread Dennis Muhlestein

I got the 1.1b1 files.
I'm sure I'm using the correct ones because DynaActionForm works.

This could be another quirk with my system.  I've certainly had a few
during the upgrade process.  Maybe someone else can verify this.

To see the errors, I turned the debug level in my tomcat/conf/server.xml
of the ROOT context to 3 (or higher).


On Thu, 2002-06-20 at 15:50, James Holmes wrote:
> Which version of Struts are you using?  Only Struts
> 1.1b1 and the nightly builds will accept the 1.1
> config files.
> 
> You have to use a 1.0 config file for any other
> versions.
> 
> -james
> [EMAIL PROTECTED]
> http://www.jamesholmes.com/struts/
> 
> 
> --- Dennis Muhlestein <[EMAIL PROTECTED]> wrote:
> > I turned debugging up in tomcat just for the heck of
> > it.  (ROOT Context
> > debug="3")  Tomcat printed a whole bunch of xml
> > errors when I reload my
> > app.  The app worked correctly anyway (Go figure)
> > 
> > My xml validator validates my 1.1 xml ok.  If if
> > change the dtd to point
> > to the 1.0 version instead and try to validate the
> > xml, I get the same
> > errors that tomcat printed.
> > 
> > Basically, I think that no matter what dtd you
> > specify, Struts is using
> > the 1.0 dtd.
> > 
> > I had this in my struts-config.xml:
> > 
> >  >   "-//Apache Software Foundation//DTD
> > Struts Configuration
> > 1.1//EN"
> >
> "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> > 
> > 
> > Maybe someone is interested.
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




1.1b1 xml

2002-06-20 Thread Dennis Muhlestein

I turned debugging up in tomcat just for the heck of it.  (ROOT Context
debug="3")  Tomcat printed a whole bunch of xml errors when I reload my
app.  The app worked correctly anyway (Go figure)

My xml validator validates my 1.1 xml ok.  If if change the dtd to point
to the 1.0 version instead and try to validate the xml, I get the same
errors that tomcat printed.

Basically, I think that no matter what dtd you specify, Struts is using
the 1.0 dtd.

I had this in my struts-config.xml:

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


Maybe someone is interested.




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




Re: DynaActionForm ClassCastException

2002-06-20 Thread Dennis Muhlestein

This actually was a browser issue.  (Mozilla 1.0) I restarted Mozilla
and it worked.  

I have no idea how the browser could have anything to do with struts
though.  Somehow, the old form was cached.  

Got me.

On Thu, 2002-06-20 at 11:09, Dennis Muhlestein wrote:
> So I decide to take the plunge, try out 1.1b1 and see what it
> can do.
> 
> I have a form that has no properties, just a placeholder while I develop
> my app.  I changed it to be org.apache.struts.action.DynaActionForm
> instead.  Still no properties.
> 
>  type="org.apache.struts.action.DynaActionForm"/>
> 
> 
> After restarting tomcat and trying to access the Action with that form,
> I get the exception below.
> 
> Any Suggestions?
> -Dennis
> 
> 
> 
> 
> java.lang.ClassCastException: my.old.class.Here
>   at
> org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:573)
>   at
> 
>org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:349)
>   at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:243)
>   at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
>   at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>   at
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>   at com.datemate.util.SessionFilter.doFilter(SessionFilter.java:67)
>   at
> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>   at
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




DynaActionForm ClassCastException

2002-06-20 Thread Dennis Muhlestein

So I decide to take the plunge, try out 1.1b1 and see what it
can do.

I have a form that has no properties, just a placeholder while I develop
my app.  I changed it to be org.apache.struts.action.DynaActionForm
instead.  Still no properties.




After restarting tomcat and trying to access the Action with that form,
I get the exception below.

Any Suggestions?
-Dennis




java.lang.ClassCastException: my.old.class.Here
at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:573)
at
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:349)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:243)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at com.datemate.util.SessionFilter.doFilter(SessionFilter.java:67)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)


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




Re: Session Management Methodology

2002-06-12 Thread Dennis Muhlestein

I created a filter as advised by Greg.  It works wonderfully.
You could protect requests for any resource with Filters.

See suns j2ee web tutorial for a filter example.

On Wed, 2002-06-12 at 13:19, Dennis Muhlestein wrote:
> Using Struts 1.0.2
> 
> Some of my pages have ActionForms.
> Some only have Action Classes that do something.
> 
> Some have nothing but an action mapping in the config xml file.
> 
> Most of my pages however require a user to be logged in.  
> Before I used Struts, I put session management in a common servlet.
> That can still work with struts, but the problem is, ActionForms
> get called and instantiated before the request gets to the Servlet.
> 
> Is there a uniform place I could put session management that would apply
> to the Action before the ActionForm was called.  I would like to have
> the user redireced to the login page first instead of after the
> ActionForm.  
> 
> Thanks
> Dennis
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




Re: Session Management Methodology

2002-06-12 Thread Dennis Muhlestein

Thanks for the input.

I thought of that.  But what if My ActionForm needs to know who is
logged in before it can validate the data.  That's pushing it I know, I
probably shouldn't validate that much data in a form.  I don't think I
am... but what if?  

Is there a standard way to intercept that or would I have to modify
struts?

Thanks
Dennis


On Wed, 2002-06-12 at 13:32, Adam Hardy wrote:
> I extended the Action class to do that. I have one Action class that 
> does that and so on, and all my other Action classes extend it.
> 
> Adam
> 
> Dennis Muhlestein wrote:
> 
> >Using Struts 1.0.2
> >
> >Some of my pages have ActionForms.
> >Some only have Action Classes that do something.
> >
> >Some have nothing but an action mapping in the config xml file.
> >
> >Most of my pages however require a user to be logged in.  
> >Before I used Struts, I put session management in a common servlet.
> >That can still work with struts, but the problem is, ActionForms
> >get called and instantiated before the request gets to the Servlet.
> >
> >Is there a uniform place I could put session management that would apply
> >to the Action before the ActionForm was called.  I would like to have
> >the user redireced to the login page first instead of after the
> >ActionForm.  
> >
> >Thanks
> >Dennis
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
> >  
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




Session Management Methodology

2002-06-12 Thread Dennis Muhlestein

Using Struts 1.0.2

Some of my pages have ActionForms.
Some only have Action Classes that do something.

Some have nothing but an action mapping in the config xml file.

Most of my pages however require a user to be logged in.  
Before I used Struts, I put session management in a common servlet.
That can still work with struts, but the problem is, ActionForms
get called and instantiated before the request gets to the Servlet.

Is there a uniform place I could put session management that would apply
to the Action before the ActionForm was called.  I would like to have
the user redireced to the login page first instead of after the
ActionForm.  

Thanks
Dennis




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