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
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:
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
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
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
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
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
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/
*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
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
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
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
, 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
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
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.
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,
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
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
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
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
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
: 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
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
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
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
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
, 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
, 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
: 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
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
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,
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
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
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
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
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
36 matches
Mail list logo