RE: Running struts without servlet

2003-10-22 Thread Fenderbosch, Eric
You don't even need to use an extension. Right now, all my URLs are in the form /webapp/do/action. Examples: /track/do/login /track/do/query /track/do/summary etc... -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 10:19 To: Struts

fmt:message vs bean:message Tiles

2003-10-15 Thread Fenderbosch, Eric
Maybe this would be better off in the taglibs group, but since it is also Tiles related, I thought I'd ask here first. I'm trying to get rid of all instances of bean:message in favor of fmt:message, but I'm not getting it to work when referencing a tiles attribute. tiles-config.xml:

RE: message vs bean:message Tiles [SOLVED]

2003-10-15 Thread Fenderbosch, Eric
Reading jstl-1_0-fr-spec.pdf helped. I needed fmt:message key=${titleKey}/ -Original Message- From: Fenderbosch, Eric Sent: Wednesday, October 15, 2003 10:05 To: [EMAIL PROTECTED] Subject: fmt:message vs bean:message Tiles Maybe this would be better off in the taglibs group, but since

RE: ugly ugly ugly [SOLVED]

2003-10-14 Thread Fenderbosch, Eric
I finally got it to work like this: fmt:message key=message.benefits fmt:parambean:message key=href.shippingToolkit//fmt:param /fmt:message -Original Message- From: Fenderbosch, Eric Sent: Monday, October 13, 2003 12:05 To: Struts Users Mailing List Subject: RE: ugly ugly ugly I'm

RE: ugly ugly ugly [SOLVED]

2003-10-14 Thread Fenderbosch, Eric
Yeah... Changed it to that about 10 minutes after posting. :o -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 13:04 To: Struts Users Mailing List Subject: RE: ugly ugly ugly [SOLVED] --- Fenderbosch, Eric [EMAIL PROTECTED] wrote: I

RE: ugly ugly ugly

2003-10-13 Thread Fenderbosch, Eric
I'm not getting the parameter substitution to work correctly. Resource: message.benefits=The FedEx Custom Criticalnbsp;a href={0}Shipping Toolkit/anbsp;enables you to: I've tried two different methods to perform the substitution. fmt:message key=message.benefits fmt:param value=bean:message

How to use tiles for Error Pages?

2003-10-10 Thread Fenderbosch, Eric
I've been able to use tiles for most of my pages, but how can I use it for an error page, like 404.jsp or 500.jsp? For my normal pages, I've declared them in my tiles-config.xml and then the JSP is quite simple, and that is all working fine. Since I need to define my error pages in my

RE: How to use tiles for Error Pages? [SOLVED]

2003-10-10 Thread Fenderbosch, Eric
Thanks! This works: %@ page language=java% %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert definition=track.default tiles:put name=titleKey value=title.404/

RE: Struts 1.2 - When?

2003-10-10 Thread Fenderbosch, Eric
*waits patiently for validWhen* -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 16:07 To: Struts Users Mailing List Subject: Re: Struts 1.2 - When? I believe there's an issue with some of the tests right now. Once those are resolved, I

ugly ugly ugly

2003-10-10 Thread Fenderbosch, Eric
The whole use-a-named-property-for-everything is great so that marketing can change the text/copy without involving a HTML/JSP developer, as well as the future ability to I18N a site down the road. However some things just get ugly. Example: Old line of HTML: The FedEx Custom Critical a

RE: redirect problem

2003-10-09 Thread Fenderbosch, Eric
I'm doing something similar like this: logic:present name=contactCookie scope=session logic:forward name=track/ /logic:present logic:notPresent name=contactCookie scope=session logic:forward name=login/ /logic:notPresent Then I have both of those defined in my

RE: [OT] JSTL Taglib Definition in WEB.XML

2003-10-08 Thread Fenderbosch, Eric
What happens if java.sun.com isn't available for whatever reason? Will compilation fail? Will it not display correctly? What's the correct uri for the Struts taglibs? -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 10:58 To: Struts

RE: [OT] JSTL Taglib Definition in WEB.XML

2003-10-08 Thread Fenderbosch, Eric
, October 08, 2003 11:14 To: 'Struts Users Mailing List' Subject: RE: [OT] JSTL Taglib Definition in WEB.XML The URI is only used to identify the taglib, no internet lookups are made. -Mensaje original- De: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] Enviado el: miƩrcoles, 08 de octubre de

RE: Struts and user-authentication

2003-10-08 Thread Fenderbosch, Eric
Use a global-forward. Example: struts-config.xml: global-forwards forward name=track path=/do/track redirect=true/ forward name=login path=/do/login redirect=true/ forward name=logout path=/do/logout redirect=true/ /global-forwards index.jsp (which is my welcome file): %@ page

Normal Application Flow?

2003-10-08 Thread Fenderbosch, Eric
This is how I'm envisioning my application flow. Is this standard, completely out of whack, or somewhere in between? 1. User enters/clicks on context URL, like /track. 2. Appserver finds welcome file, index.jsp. 3. index.jsp does a forward, via global-forward w/ redirect, to /track/do/login.

RE: maxlength validator implies required???

2003-10-07 Thread Fenderbosch, Eric
Take a look at the maxlength definition inside validator-rules.xml. validator name=maxlength classname=org.apache.struts.validator.FieldChecks method=validateMaxLength methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction,

RE: Simple validator question

2003-10-03 Thread Fenderbosch, Eric
I haven't tried it, but would something like this work? field property=emailField depends=email arg0 key=${var:emailField} resource=false/ /field -Original Message- From: Jeroen Breedveld [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 08:53 To: 'Struts Users

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

2003-10-03 Thread Fenderbosch, Eric
Hmmm... that sounds a little strange. J2EE 1.3 classloading changed from 1.2. The EJBs are all loaded in 1 classloader, then each WAR is loaded in its own that is a child of the EJB classloader. So, the classes that use your EJBs shouldn't need any additional jars, like a client JAR w/ homes

RE: Using multiple validators on one jsp

2003-10-02 Thread Fenderbosch, Eric
I had a similar question a week or so ago. I think you can use requiredIf, but that is being deprecated in favor of validWhen. I'm using a hidden input to tell which submit button was pressed and which field to validate. Once validWhen makes it in to a non-beta release, I'll probably use

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

2003-10-02 Thread Fenderbosch, Eric
Have you tried prefer-web-inf-classes? The prefer-web-inf-classes element, if set to true, will cause classes located in the WEB-INF directory of a Web application to be loaded in preference to classes loaded in the application or system classloader. The default value is false. A value

Application Resources Error messages

2003-09-30 Thread Fenderbosch, Eric
I'm confused on how error messages work. I've created a properties file TrackMessageResource.properties in the proper package structure and specified it in my struts-config like this: message-resources null=false parameter=com.*.cc.track.struts.TrackMessageResources/ I'm using the

RE: Application Resources Error messages

2003-09-30 Thread Fenderbosch, Eric
: Fenderbosch, Eric Sent: Tuesday, September 30, 2003 15:56 To: [EMAIL PROTECTED] Subject: Application Resources Error messages I'm confused on how error messages work. I've created a properties file TrackMessageResource.properties in the proper package structure and specified it in my struts

RE: Application Resources Error messages

2003-09-30 Thread Fenderbosch, Eric
message respectively. Check how you have it defined. -Tim -Original Message- From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 4:11 PM To: Struts Users Mailing List Subject: RE: Application Resources Error messages Agh! I just didn't have

RE: Application Resources Error messages

2003-09-30 Thread Fenderbosch, Eric
I finally got smart and downloaded the storefront example from O'Reilly. This is working just fine: field property=userName depends=required,minlength,maxlength arg0 key=label.userName/ arg1 name=minlength key=${var:minlength} resource=false/ arg2 name=maxlength

RE: Action re-running on page refresh?

2003-09-29 Thread Fenderbosch, Eric
I think using redirect=true for your success action-foward will get what you want. -Original Message- From: Kat Luna [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 08:24 To: [EMAIL PROTECTED] Subject: Action re-running on page refresh? Hi! I'm just starting with Struts and

How-to hide JSPs in WEB-INF (OT?)

2003-09-29 Thread Fenderbosch, Eric
Is there a how-to on hiding JSPs in WEB-INF? I keep getting 404 errors after moving them there. I google'd the problem, but didn't really find a how-to, but did find a couple posts that say this might be impossible with WebLogic 6.1. Can anyone confirm or deny that? Thanks. Eric

RE: How-to hide JSPs in WEB-INF (OT?)

2003-09-29 Thread Fenderbosch, Eric
, September 29, 2003 14:24 To: Struts Users Mailing List Subject: Re: How-to hide JSPs in WEB-INF (OT?) I use tiles, and map all the JSPs (in my WEB-INF directory) to tile definitions. Works fine... -jeff On Monday, September 29, 2003, at 01:22 PM, Fenderbosch, Eric wrote: Is there a how

RE: How-to hide JSPs in WEB-INF (OT?)

2003-09-29 Thread Fenderbosch, Eric
, September 29, 2003 14:35 To: Struts Users Mailing List Subject: Re: How-to hide JSPs in WEB-INF (OT?) Okay, then map all your action forwards to /WEB-INF JSP pages in your struts-config file. that will work too. -jeff On Monday, September 29, 2003, at 01:26 PM, Fenderbosch, Eric wrote: I'll keep

RE: How-to hide JSPs in WEB-INF (OT?)

2003-09-29 Thread Fenderbosch, Eric
: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] Is there a how-to on hiding JSPs in WEB-INF? I keep getting 404 errors after moving them there. I google'd the problem, but didn't really find a how-to, but did find a couple posts that say this might be impossible with WebLogic 6.1. Can anyone

RE: How do I populate a DynaValidatorForm?

2003-09-26 Thread Fenderbosch, Eric
Where do you specify the @struts.form-field (0..*) tags so that XDoclet creates the form for you? Right now, I have a hand coded form and XDoclet creates the form-bean/ section of my struts-config for me, but I'm not creating the actual ActionForm subclass with XDoclet. -Original

RE: error page

2003-09-26 Thread Fenderbosch, Eric
Actually, that's part of the Servlet spec, not even Struts. You could add something like this to your web.xml: error-page error-code500/error-code location/500.jsp/location /error-page -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 26,

RE: How to expose DynaValidator in Action?

2003-09-25 Thread Fenderbosch, Eric
Just did this earlier today for the first time. DynaValidatorForm dynaForm = (DynaValidatorForm) form; String email = (String) dynaForm.get(email); -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 14:08 To: Struts Users Mailing List

Conditional Validation

2003-09-23 Thread Fenderbosch, Eric
I've been given a page design that has 4 text boxes and 4 submit buttons. I only need to validate the text box associated with the submit button that was clicked. required and requiredIf don't seem to be what I'm looking for. Right now, my action form's validate looks like this: public

RE: getting the current thread inside an action

2003-09-23 Thread Fenderbosch, Eric
Thread currentThread = Thread.currentThread(); ??? -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 10:49 To: Struts (E-mail) Subject: getting the current thread inside an action Is there a way to get reference to the current thread from

RE: Conditional Validation

2003-09-23 Thread Fenderbosch, Eric
their own validation in your validation.xml. It's early and I haven't had my coffee so let me know if that makes sense. -Tim -Original Message- From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:28 AM To: [EMAIL PROTECTED] Subject: Conditional Validation

RE: getting the current thread inside an action

2003-09-23 Thread Fenderbosch, Eric
Would HttpSession.getId() be a better temporary unique id instead of the thread? -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:14 To: 'Struts Users Mailing List' Subject: RE: getting the current thread inside an action I have a