For starters, you should generally be using String properties in your form
bean because this is what the JSP sends to you. If you declare an integer in
your form bean, and the user enters character data into the text field,
youre going to get an exception thrown before you (or the validator) ever
It's a little off-topic (and I may have already sent this once here). I asked
on tomcat-users but that list seems to get 15 questions for every answer.
Hoping someone here can help.
My Struts (1.2.7) App uses a custom HttpRequest and HttpResponse.
That is to say, I extend the
How do I get to a MessageResource bundle like I would with
Action.getResources() from the inside of my RequestProcessor or Plugin
implementation?
I assume from the moduleConfig, but I keep hitting dead ends in the API
javadocs.
TIA
I should say... A roadblock short of reimplementing the code in the protected
method Action.getResources() elsewhere.
No cleaner way?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
An utter shot in the dark here..
I'm trying to force the printing of language names into their native
languages. That is to say English is English and French would be
francais.
I realize that if I know what language I want to put display it in, I don't
_really_ need a bean:message tag, but it's
An utter shot in the dark here..
I'm trying to force the printing of language names into their native
languages. That is to say English is English and French would be
francais.
I realize that if I know what language I want to put display it in, I don't
_really_ need a bean:message tag, but it's
the language of the locale in the locale you specify. If
you don't specify a locale it will use the default locale of the system.
Regards,
Thad Smith
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Monday, March 28, 2005 11:57 AM
To: 'Struts Users Mailing List
the language of the locale in the locale you specify. If
you don't specify a locale it will use the default locale of the system.
Regards,
Thad Smith
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Monday, March 28, 2005 11:57 AM
To: 'Struts Users Mailing List
I'm going to try again, stripping this question down to its fundamentals.
If in a RequestProcessor processActionPerform() method, is it safe for me to
return a mapping.findForward() directly without calling
super.processActionPerform?
Or do I need to call super.processActionPerform with with
I'm going to try again, stripping this question down to its fundamentals.
If in a RequestProcessor processActionPerform() method, is it safe for me to
return a mapping.findForward() directly without calling
super.processActionPerform?
Or do I need to call super.processActionPerform with with
Badly written again:
I should say, is it EVER safe for me to do this directly. I want to
redirect the user under certain circumstances.
I think by merely asking it, I answered it myself, No you idiot Joe.
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Monday
Badly written again:
I should say, is it EVER safe for me to do this directly. I want to
redirect the user under certain circumstances.
I think by merely asking it, I answered it myself, No you idiot Joe.
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Monday
processActionPerform() does is call the Action's execute() method,
then pass exceptions to processException() if it gets any. If you
want to skip the action execution for a reason you deem valid, go
ahead.
Hubert
On Mon, 21 Mar 2005 10:59:37 -0500, Joe Hertz [EMAIL PROTECTED]
wrote:
I'm
processActionPerform() does is call the Action's execute() method,
then pass exceptions to processException() if it gets any. If you
want to skip the action execution for a reason you deem valid, go
ahead.
Hubert
On Mon, 21 Mar 2005 10:59:37 -0500, Joe Hertz [EMAIL PROTECTED]
wrote:
I'm
Correction: It's happening on my dev box too.
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Monday, March 21, 2005 11:37 AM
To: 'Struts Users Mailing List'
Subject: RE: RequestProcessor question (redux)
I did try it. Worked fine on my development box
Correction: It's happening on my dev box too.
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Monday, March 21, 2005 11:37 AM
To: 'Struts Users Mailing List'
Subject: RE: RequestProcessor question (redux)
I did try it. Worked fine on my development box
after a redirect.
This seems to be beyond Struts. Perhaps ask the Tomcat user list?
On Mon, 21 Mar 2005 11:36:42 -0500, Joe Hertz [EMAIL PROTECTED]
wrote:
I did try it. Worked fine on my development box.
But when I deployed it at my hosting company I found that httpSession
information
after a redirect.
This seems to be beyond Struts. Perhaps ask the Tomcat user list?
On Mon, 21 Mar 2005 11:36:42 -0500, Joe Hertz [EMAIL PROTECTED]
wrote:
I did try it. Worked fine on my development box.
But when I deployed it at my hosting company I found that httpSession
information
I've got an application I'm trying to deploy that works perfectly on my
Windows development system.
I deploy it on a Suze box, and the following behavior occurs.
User Logs in fine. My Request Processor has an overridden
processActionPerform() which checks and sees if he has signed the Terms of
I'm sorry about how lame this question seems. I'm staring quite stunned at
what I'm seeing in my debugger right now, and I'm hoping someone can explain
the behavior.
Using Struts 1.2.4 (BeanUtils 1.7).
I have two objects: A UserEntity and a User. The User is a subclass of
UserEntity.
I call
I'm sorry about how lame this question seems. I'm staring quite stunned at
what I'm seeing in my debugger right now, and I'm hoping someone can explain
the behavior.
Using Struts 1.2.4 (BeanUtils 1.7).
I have two objects: A UserEntity and a User. The User is a subclass of
UserEntity.
I call
.
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 2:24 PM
To: Joe Hertz; 'Struts Users Mailing List'
Subject: Re: BeanUtils hates me...
At 2:15 PM -0500 3/13/05, Joe Hertz wrote:
I'm sorry about how lame this question seems. I'm staring quite stunned
.
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 2:24 PM
To: Joe Hertz; 'Struts Users Mailing List'
Subject: Re: BeanUtils hates me...
At 2:15 PM -0500 3/13/05, Joe Hertz wrote:
I'm sorry about how lame this question seems. I'm staring quite stunned
[mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 2:24 PM
To: Joe Hertz; 'Struts Users Mailing List'
Subject: Re: BeanUtils hates me...
At 2:15 PM -0500 3/13/05, Joe Hertz wrote:
I'm sorry about how lame this question seems. I'm staring quite stunned
at
what I'm seeing in my debugger right
[mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 2:24 PM
To: Joe Hertz; 'Struts Users Mailing List'
Subject: Re: BeanUtils hates me...
At 2:15 PM -0500 3/13/05, Joe Hertz wrote:
I'm sorry about how lame this question seems. I'm staring quite stunned
at
what I'm seeing in my debugger right
, March 13, 2005 3:03 PM
To: Joe Hertz; 'Struts Users Mailing List'
Subject: RE: BeanUtils hates me...
At 2:33 PM -0500 3/13/05, Joe Hertz wrote:
That's the behavior I'd expect too. This did work at one point. No, it's
not
unintuitive. Least not for C programmers :-)
But I've got smoking gun
, March 13, 2005 3:03 PM
To: Joe Hertz; 'Struts Users Mailing List'
Subject: RE: BeanUtils hates me...
At 2:33 PM -0500 3/13/05, Joe Hertz wrote:
That's the behavior I'd expect too. This did work at one point. No, it's
not
unintuitive. Least not for C programmers :-)
But I've got smoking gun
Vic writes:
:snip:
The point is... I use ArrayList of Maps now for my DTO,VO and ever as a
message object for WS/SOA.
Wherever I used to use a bean, now I use a collection, and I like
DynaMaps.
maybe one day you guys catch up;-)
I think I'm buying what you say in a big kinda way. I've
Vic writes:
:snip:
The point is... I use ArrayList of Maps now for my DTO,VO and ever as a
message object for WS/SOA.
Wherever I used to use a bean, now I use a collection, and I like
DynaMaps.
maybe one day you guys catch up;-)
I think I'm buying what you say in a big kinda way. I've
This approach is also useful for other logged in redirection type things on
login, such as checking to see a logged in user has agreed to the latest
Terms of Service.
-Original Message-
From: Günther Wieser [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 7:04 PM
To: 'Struts
This approach is also useful for other logged in redirection type things on
login, such as checking to see a logged in user has agreed to the latest
Terms of Service.
-Original Message-
From: Günther Wieser [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 7:04 PM
To: 'Struts
If you want the validator to pick it up based on the Form name (as opposed
to the Action Path name) you should use a ValidatorForm instead of a
ValidatorActionForm.
You might need to use datePatternStrict too. There's some (or used to be
anyway) some weirdness with the javascript not catching it
If you want the validator to pick it up based on the Form name (as opposed
to the Action Path name) you should use a ValidatorForm instead of a
ValidatorActionForm.
You might need to use datePatternStrict too. There's some (or used to be
anyway) some weirdness with the javascript not catching it
Curious as to which concept Struts/Hibernate implementers like more for
implementation:
#1- Ted Husted's example of Struts and Hibernate. Stick the Hibernate
Session object into the httpServletRequest. Every action has a fresh
Hibernate Session raring to go if it needs it. Then again it has it
Curious as to which concept Struts/Hibernate implementers like more for
implementation:
#1- Ted Husted's example of Struts and Hibernate. Stick the Hibernate
Session object into the httpServletRequest. Every action has a fresh
Hibernate Session raring to go if it needs it. Then again it has it
, but it got me wondering about where the
bathwater began and where the baby ended.
-Original Message-
From: Brandon Mercer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 4:48 PM
To: Struts Users Mailing List
Subject: Re: Hibernate and Struts Usage Pattern question/survey
Joe Hertz
, but it got me wondering about where the
bathwater began and where the baby ended.
-Original Message-
From: Brandon Mercer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 4:48 PM
To: Struts Users Mailing List
Subject: Re: Hibernate and Struts Usage Pattern question/survey
Joe Hertz
This particular application (tiny, not used much, never will be, and was
written in a hurry and not by me) implementing it after the fact ain't going
to happen. Not worth the cost to the customer.
In general though, youre quite correct (and I'm cutting through the layers
of abstraction.
This particular application (tiny, not used much, never will be, and was
written in a hurry and not by me) implementing it after the fact ain't going
to happen. Not worth the cost to the customer.
In general though, youre quite correct (and I'm cutting through the layers
of abstraction.
There's one improvement on that method:
errors.prefix=li
errors.suffix=/li
So you don't need to put the markup into each error definition in your
properties file.
If you don't want markup in it at all, you can do something like
logic:messagesPresent
UL
html:messages id=error
LIbean:write
There's one improvement on that method:
errors.prefix=li
errors.suffix=/li
So you don't need to put the markup into each error definition in your
properties file.
If you don't want markup in it at all, you can do something like
logic:messagesPresent
UL
html:messages id=error
LIbean:write
My app has been quite happy using SecurityFilter.
I've got a new requirement to do something radical...
Like to redirect a logged in user to the TOS Acceptance page based upon a
user record flag. Yeah, like this is the first app to EVER have that
requirement :-)
Implementing this is painfully
My app has been quite happy using SecurityFilter.
I've got a new requirement to do something radical...
Like to redirect a logged in user to the TOS Acceptance page based upon a
user record flag. Yeah, like this is the first app to EVER have that
requirement :-)
Implementing this is painfully
Why do you care about how it comes into the form bean?
Usually the big deal is how it winds up in the business object and there are
tools for that. FormDef does a really nice job, especially if you have to
deal with international date formats.
-Original Message-
From: Mark Bennett
Why do you care about how it comes into the form bean?
Usually the big deal is how it winds up in the business object and there are
tools for that. FormDef does a really nice job, especially if you have to
deal with international date formats.
-Original Message-
From: Mark Bennett
DynaActionForm df = (DynaActionForm) form;
System.out.println(df.get(name));
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 3:38 PM
To: user@struts.apache.org
Subject: DynaActionForms Question
Hello,
I have a question about using
DynaActionForm df = (DynaActionForm) form;
System.out.println(df.get(name));
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 3:38 PM
To: user@struts.apache.org
Subject: DynaActionForms Question
Hello,
I have a question about using
. It is best practice to
use java.util.Date instead.
3) want to know if it can be done
Mark
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 3:39 PM
To: 'Struts Users Mailing List'
Subject: RE: java.util.Date vs java.sql.Timestamp
Why do you care
. It is best practice to
use java.util.Date instead.
3) want to know if it can be done
Mark
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 3:39 PM
To: 'Struts Users Mailing List'
Subject: RE: java.util.Date vs java.sql.Timestamp
Why do you care
-
From: Joe Hertz [EMAIL PROTECTED]
Sent: Wednesday, February 09, 2005 4:59 AM
How about a simpler case then
My real goal is to have DynaForms that are backed my experimental
semi-lazy-dynabean.
BeanValidatorForm (while an impressive piece of work IMHO)
isn't actually
subclass
-
From: Joe Hertz [EMAIL PROTECTED]
Sent: Wednesday, February 09, 2005 4:59 AM
How about a simpler case then
My real goal is to have DynaForms that are backed my experimental
semi-lazy-dynabean.
BeanValidatorForm (while an impressive piece of work IMHO)
isn't actually
subclass
=myPackage.PathBeanValidatorForm /
Niall
- Original Message -
From: Joe Hertz [EMAIL PROTECTED]
Sent: Monday, February 07, 2005 5:37 PM
I'm using Struts 1.2.4.
If in my struts-config I have something like this:
form-bean name=LazyBean
type=org.apache.commons.beanutils.LazyDynaBean
=myPackage.PathBeanValidatorForm /
Niall
- Original Message -
From: Joe Hertz [EMAIL PROTECTED]
Sent: Monday, February 07, 2005 5:37 PM
I'm using Struts 1.2.4.
If in my struts-config I have something like this:
form-bean name=LazyBean
type=org.apache.commons.beanutils.LazyDynaBean
I'm using Struts 1.2.4.
If in my struts-config I have something like this:
form-bean name=LazyBean
type=org.apache.commons.beanutils.LazyDynaBean/
How can I get to the resulting form object to setPathValidation(true)?
Is there a way I can tell Struts what particular BeanValidatorFom subclass
I'm using Struts 1.2.4.
If in my struts-config I have something like this:
form-bean name=LazyBean
type=org.apache.commons.beanutils.LazyDynaBean/
How can I get to the resulting form object to setPathValidation(true)?
Is there a way I can tell Struts what particular BeanValidatorFom subclass
BeanValidatorForm {
public LazyValidatorForm() {
super(new LazyDynaBean());
setPathValidation(true);
}
}
... and then cofigure it in the usual way.
form-bean name=LazyBean
type=myPackage.PathBeanValidatorForm /
Niall
- Original Message -
From: Joe
A shot in the dark here: Are the request params in SecurityFilter still
around if you forward to a Struts action.
Say like this? (I do this, but I don't try to access the params).
login-config
auth-methodFORM/auth-method
form-login-config
A shot in the dark here: Are the request params in SecurityFilter still
around if you forward to a Struts action.
Say like this? (I do this, but I don't try to access the params).
login-config
auth-methodFORM/auth-method
form-login-config
Janice,
Does this snippet work if you move all of the bean:defines insidea of your
logic:iterate?
I haven't tested this myself, but I strongly suspect that the problem is the
fact that bean:define declares the variable in the resulting servlet code
that gets generated. It's trying to declare a
Janice,
Does this snippet work if you move all of the bean:defines insidea of your
logic:iterate?
I haven't tested this myself, but I strongly suspect that the problem is the
fact that bean:define declares the variable in the resulting servlet code
that gets generated. It's trying to declare a
Create your own ActionMessages object in your Action (ActionErrors would be
all but deprecated by nowexcept for the validate method).
Add ActionMessage objects to it.
Call this.saveErrors(ActionMessages object) in your Action Method.
Return an ActionForward to the page you want to go to.
Create your own ActionMessages object in your Action (ActionErrors would be
all but deprecated by nowexcept for the validate method).
Add ActionMessage objects to it.
Call this.saveErrors(ActionMessages object) in your Action Method.
Return an ActionForward to the page you want to go to.
H.
Don't suppose you've tried building the Validator on the HP-UX machine?
I'd be curious if it worked packaged up if you did that.
You've obviously found something that is both subtle and significant in
terms of a problem (jar extraction is pretty darn basic!). I assume the Win
and HP-UX
H.
Don't suppose you've tried building the Validator on the HP-UX machine?
I'd be curious if it worked packaged up if you did that.
You've obviously found something that is both subtle and significant in
terms of a problem (jar extraction is pretty darn basic!). I assume the Win
and HP-UX
The Struts Validator guide is pretty sparse on the subject.
What are the rules governing Default Formsets vs Locale Specific Formsets
(using Struts 1.2.4)?
To wit:
I have a Default Formset with validation rules for N forms.
I want also want language specific validations for one or more of the
The Struts Validator guide is pretty sparse on the subject.
What are the rules governing Default Formsets vs Locale Specific Formsets
(using Struts 1.2.4)?
To wit:
I have a Default Formset with validation rules for N forms.
I want also want language specific validations for one or more of the
As it happens-
You apparently CANNOT have a language specific validator rule for a property
that is not present in the default formset. You don't have to have any rules
for it, but it *must* be declared.
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Monday
As it happens-
You apparently CANNOT have a language specific validator rule for a property
that is not present in the default formset. You don't have to have any rules
for it, but it *must* be declared.
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Monday
.
James
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 4:12 PM
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Struts Console v4.8 - GUI tool
James, thank you! I've been looking forward to this.
Out of curiousity, it doesn't
James, thank you! I've been looking forward to this.
Out of curiousity, it doesn't look like it handles the new and improved
way of defining args in validator.xml files as mentioned at the end of
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29004
Do the arg0, arg1, arg2 attributes really
James, thank you! I've been looking forward to this.
Out of curiousity, it doesn't look like it handles the new and improved
way of defining args in validator.xml files as mentioned at the end of
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29004
Do the arg0, arg1, arg2 attributes really
connection pool for
me and I took it from there.
Thanx, PLA
Joe Hertz wrote:
JavaServletHosting is the one with the problem.
And I *really* like them in all other respects. :-(
-Joe
http://javaservlethosting.com/ works for me.
Thanx, PLA
connection pool for
me and I took it from there.
Thanx, PLA
Joe Hertz wrote:
JavaServletHosting is the one with the problem.
And I *really* like them in all other respects. :-(
-Joe
http://javaservlethosting.com/ works for me.
Thanx, PLA
-
From: Rick Reumann[EMAIL PROTECTED]
Sent: 10/26/04 11:21:04 PM
To: Struts Users Mailing List[EMAIL PROTECTED]
Subject: Re: [OT] Hosting Companies
Joe Hertz wrote the following on 10/23/2004 2:23 AM:
I dont see Struts supporting hosting companies on the
wiki
-
From: Rick Reumann[EMAIL PROTECTED]
Sent: 10/26/04 11:21:04 PM
To: Struts Users Mailing List[EMAIL PROTECTED]
Subject: Re: [OT] Hosting Companies
Joe Hertz wrote the following on 10/23/2004 2:23 AM:
I dont see Struts supporting hosting companies on the
wiki
Something like this if youre using 1.2.x:
field property=propName depends=validwhen
var
var-nametest/var-name
var-value((item1 != null) or (item2 != null) or (*this* !=
null))/var-value
/var
/field
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Laurent Duperval
there.
Thanx, PLA
Joe Hertz wrote:
JavaServletHosting is the one with the problem.
And I *really* like them in all other respects. :-(
-Joe
http://javaservlethosting.com/ works for me.
Thanx, PLA
I dont see Struts supporting hosting companies on the wiki. It used to be on
the site before the resources link pointed you to the wiki IARC.
RANT
I just found out that the hosting company I use decided that they won't let
you deploy anything using Hibernate (or Swing, or Tapestry...or Jive or
Er Spring, not Swing.
No Frameworks for you. Next!
:-)
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 23, 2004 2:24 AM
To: 'Struts Users Mailing List'
Subject: [OT] Hosting Companies
I dont see Struts supporting hosting companies
JavaServletHosting is the one with the problem.
And I *really* like them in all other respects. :-(
-Joe
http://javaservlethosting.com/ works for me.
Thanx, PLA
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Anyone aware of if there is a way to specify the default behavior for the
secure set-property for Actions when using SSLExt?
I'm taking an existing struts app and adding https pages to it with SSLExt.
Simple enough.
But it seems as if an action, should secure be unspecified, will default
to the
1) bean:message is already smart enough to do what you want, so I don't
see the necessity of making bean:write locale sensitive. You get the right
text from some place, and if it's the property file, you already have what
you need.
2) I think there is an existing feature request in BugZilla to
,any,false setting as you desire.
Unless, of course, I'm pointing you to the wrong default
variable's name. :)
I hope these two simple ideas for a solution help. Please
let me know.
Regards,
David
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Wednesday
Joe, do u mean checking the field with validwhen using
validation.xml or
implement the actionForm.validate() ?
I really want to use the basic struts validation framework instead of
implementing validate() function to minimize the maintainence cost.
You can do it both ways.
Use
--- Joe Hertz [EMAIL PROTECTED] wrote:
What you want is for A1 to forward to J2. Not A2.
J2 will display and then submit F2 to A2.
Forwarding from one action to another is almost
always bad (Okay, I admit
that I've done it in some cases where I *know* the
Action won't ever care
about
It would help if you described this in more detail. I hope this explains it
for you.
If you have a JSP that submits a form using html:form, you have to have
that action associated to that form, otherwise you will get an exception
when that JSP is loaded.
If you have a JSP that wants to display
associate f1, and forward to another action a2, a2
associate with f2. But the server always says no
getter mathod for the checkbox. But there is a getter
method in form bean f2.
Any help will be appreciated!
tong
--- Joe Hertz [EMAIL PROTECTED] wrote:
It would help if you described
From: Caroline Jen
A property in my form, 'theFile',is of the
org.apache.struts.upload.FormFile type.
In my struts-config.xml file, do I still give a
java.lang.String type:
Nope.
You said it yourself. Since it's a FormFile in your form, you declare it as
a FormFile in the form. :-)
and
I'll add my 2 p/cents/yen to this one-
I'm in the outside of the WebApp's file system crowd (a directory on the
same level with WebApp's since Tomcat doesn't know anything else. I could
make a link if I had to to some other place more convenient.
So unless the server allows for a /../ in a
I have a number of property values that will be internationalized and need
non-breaking spaces between each word in them.
I could put nbsp; into each space, but that
1) is going to confuse my native language translators who know nothing of
HTML. 2 words in english could be 3 in language-x).
2)
interesting that I'm sure I've to be
missing something.
Could you please be a little bit more illustrative?
Thanx,
Freddy.
-Mensaje original-
De: Joe Hertz [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 14 de octubre de 2004 0:12
Para: 'Struts Users Mailing List'
Asunto: i18n and nbsp;
I
I heard that support for this was dicey. Is that not the case?
Could you use the CSS rule
.myStyleClass{
white-space: nowrap
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
The Pager taglib looks real nice for search results that are generated by
request query params e.g.
http://hostname/MySearchAction.do?param1=2param2=ABCetcetc
So I figure, use the html:link tag's paramId, paramName, paramProperty
attributes, but you can only use these for one parameter right?
Youre probably validating the action each time in. Guessing that the
validations flunk because fields werent filled in (how could they be? it's a
new screen!).
I have an action that goes to the screen specifically that doesn't do
validation. The Submit action for it does the validation.
You can
Currently I'm storing un-entered optional dates as 1/1/1970.
When I come to display an optional date field on a form, I
need to decide
whether to display a formatted date or a blank (by comparing
the date to
1/1/1970).
Surely there's a better way?
What's wrong with storing null for an
Absolutely. You have access to all of the response object methods you would
in a servlet to do this with.
Set the correct content type and content length headers and spit it to the
outputstream. Return a null findForward.
I've done this with pdf files, (and this week I asked on this list about
More or less.
Note that you can set the response headers with methods of the response
object. Far safer. The example Niall posted does this.
So, you mean something like this?
public class FileXferAction extends Action {
public ActionForward execute(
ActionMapping actionMapping,
This has probably been asked before. Apologies if so, I didn't see anything
close enough.
This exact scenario is a bit different and more complicated than this, but
if this problem can be solved, I can work out the rest.
Say I want people to upload images using html:file, and have implemented
Okay, the action attribute was actually the obvious choice (matching the
same attribute on the link tag).
So how does one do this?
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 12, 2004 6:56 PM
To: 'Struts Users Mailing List'
Subject
RequestProcessor.
Hope this help you,
João
On Sun, 12 Sep 2004 18:56:13 -0400, Joe Hertz
[EMAIL PROTECTED] wrote:
This has probably been asked before. Apologies if so, I
didn't see anything
close enough.
This exact scenario is a bit different and more complicated
than
1 - 100 of 165 matches
Mail list logo