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
g
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 HttpServletRequest
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 PROTECTE
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
---
It seems logical to do, but steadfastly avoided. So I'm wondering if this is
a bad idea or not-
Example:
You have a series of i18N'd CRUD screens. On one of them, you allow the user
to retrieve some data, edit it, and save it back.
On this type of screen, it really makes life easier if
).getDisplayLanguage(request.getLocale) %>
>
> This displays 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-
> Fr
).getDisplayLanguage(request.getLocale) %>
>
> This displays 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-
> Fr
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
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 to be retaining the user 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.
> >
&g
s to be retaining the user 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.
> >
&g
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 i
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 i
it. Have you tried it already? All
> 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
>
>
it. Have you tried it already? All
> 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
>
>
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 [mailt
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 [mailt
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 diff
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 diff
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
Se
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
Se
PROTECTED]
> Sent: Sunday, 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'
PROTECTED]
> Sent: Sunday, 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'
om: 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
om: 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
...
Tx for making sure I wasn't spacing.
> -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 Her
...
Tx for making sure I wasn't spacing.
> -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 Her
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 Prop
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 Prop
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
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
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 u
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 u
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. Ultimate
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. Ultimate
ling issue, 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/su
ling issue, 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/su
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 eve
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 eve
There's one improvement on that method:
errors.prefix=
errors.suffix=
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
Ted has a good page on this:
http://husted.com/struts/ti
There's one improvement on that method:
errors.prefix=
errors.suffix=
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
Ted has a good page on this:
http://husted.com/struts/ti
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 painfull
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 painfull
ged. 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
ged. 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
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 D
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 D
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 [mailt
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 [mailt
traight forward to plug in your own mechanism by
> overriding the createActionForm() method. You can get it to
> default to your own config implementation either by having
> your own ModuleConfig flavour or through the struts-config...
>
>
>
>
>
> Niall
>
>
traight forward to plug in your own mechanism by
> overriding the createActionForm() method. You can get it to
> default to your own config implementation either by having
> your own ModuleConfig flavour or through the struts-config...
>
>
>
>
>
> Niall
>
>
setPathValidation(true);
> }
> }
>
> ... and then cofigure it in the usual way.
>
>type="myPackage.PathBeanValidatorForm "/>
>
> Niall
>
> - Original Message -
> From: "Joe Hertz" <[EMA
setPathValidation(true);
> }
> }
>
> ... and then cofigure it in the usual way.
>
>type="myPackage.PathBeanValidatorForm "/>
>
> Niall
>
> - Original Message -
> From: "Joe Hertz" <[EMA
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).
FORM
/do/LoginRequired
/do/LoginError
/do/SuccessfulLogin
If so, it should b
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).
FORM
/do/LoginRequired
/do/LoginError
/do/SuccessfulLogin
If so, it should b
gt; }
>
> ... and then cofigure it in the usual way.
>
>type="myPackage.PathBeanValidatorForm "/>
>
> Niall
>
> - Original Message -
> From: "Joe Hertz" <[EMAIL PROTECTED]>
> Sent: Monday, February 07, 2005 5:37 PM
>
&
gt; }
>
> ... and then cofigure it in the usual way.
>
>type="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:
How can I get to the resulting form object to setPathValidation(true)?
Is there a way I can tell Struts what particular BeanValidatorFom subclass
to be using? Going to 1.2.6 is not an option right now.
TIA
-Joe
-
I'm using Struts 1.2.4.
If in my struts-config I have something like this:
How can I get to the resulting form object to setPathValidation(true)?
Is there a way I can tell Struts what particular BeanValidatorFom subclass
to be using? Going to 1.2.6 is not an option right now.
TIA
-Joe
-
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 va
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 va
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]
>
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]
>
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 N
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 N
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
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.
>
rt this new style and hope
> to have another release out soon.
>
> 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 Consol
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
ho I'm hosted with.
>
> -Original Message-
> 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
>
ho I'm hosted with.
>
> -Original Message-
> 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
>
MAIL PROTECTED]> wrote:
> Joe
>
> I use Hibernate on one of my JavaServletHosting.com sites
> without any problems. They set up a DBCP connection pool for
> me and I took it from there.
>
> Thanx, PLA
>
>
> Joe Hertz wrote:
>
> >JavaServletHosting is t
MAIL PROTECTED]> wrote:
> Joe
>
> I use Hibernate on one of my JavaServletHosting.com sites
> without any problems. They set up a DBCP connection pool for
> me and I took it from there.
>
> Thanx, PLA
>
>
> Joe Hertz wrote:
>
> >JavaServletHosting is t
Something like this if youre using 1.2.x:
test
((item1 != null) or (item2 != null) or (*this* !=
null))
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Laurent Duperval
> Sent: Monday, October 25, 2004 5:13 PM
> To: [EMAIL PROTECTED]
> Subject: Implementing
ction 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. :-(
> >
>
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 addition
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 S
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.
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
Cocoon
>
> so it overrides the "true","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.
>
1) 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 make the
html:o
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
> 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 valida
7;s why I came up the original
> question: How to associate two form beans to one
> action?
>
> Thanks.
> Tong
> --- 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.
nd end up in j2. Currently, I let
> a1 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
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 , 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 data in a f
> 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. :-)
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 PROTE
This sounds so obvious and your idea so 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
Par
I have a number of property values that will be internationalized and need
non-breaking spaces between each word in them.
I could put 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) would
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 re
The Pager taglib looks real nice for search results that are generated by
request query params e.g.
http://hostname/MySearchAction.do?param1=2¶m2=ABC&etcetc
So I figure, use the html:link tag's paramId, paramName, paramProperty
attributes, but you can only use these for one parameter right? (and
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 l
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 actionMapp
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 im
> 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 fo
1 - 100 of 214 matches
Mail list logo