I am trying to use a map-backed property but my form values are not
getting into the Map.
When I debug the code I see the descriptor being returned by
PropertyUtils is a MappedPropertyDescriptor, but the mappedWriteMethod
is null. The mappedReadMethod looks good though (name=getHostInfo).
My
I figured out my problem and decided to post the answer in case anyone
else runs into it.
Apparently, the BeanInfo class looks for a setter method with the same
parameter type as the getter method. In my case I was getting a String
but setting an Object.
Changing the Object parameter to a
In my Struts application, when I load a Resource Bundle (Property file)
that has Unicode characters (\u1234) they get interpreted as single
characters. However, when I read a file using a FileInputStream the
Unicode characters get interpreted as a String \u1234.
I know I am missing something
I worked on a project a couple of years ago where I had the need to
forward between different web apps. Thanks to Craig McClanahan's advise
I was able to extend the RequestProcessor to do this. This was done in
Struts 1.1. Basically I set up specific forward name prefixes to
indicate when to
Angelo,
I like your solution using the DispatchAction and setting
validate=false. I am currently using multiple action mappings.
However, will the client-side javascript validation be generated using
that scheme? Does the html:javascript tag look at the validate
attribute in the config?
Scott
Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 7:10 AM
To: Struts Users Mailing List
Subject: Re: Validator stops when an error is encountered
On 5/4/06, Mulligan, Scott H [EMAIL PROTECTED] wrote:
The validate javascript function that gets generated
I just started playing with the commons-validator and came across a
problem with how I have my Struts application structured. I am using
dispatch actions that have load and save methods. In the load I
retrieve the reference data needed to build the page and then forward to
the jsp page. In the
If your web site needs to be multi-lingual you should place your message
in the Resource bundle. If your message isn't predefined, you could set
up a general error message in your resource bundle that takes an
argument: error.general={0}. Then you just create an ActionMessage
using a key of
The validate javascript function that gets generated by the validator
stops processing once one of the validation routines finds an error. Is
there a way to override the with so that I can get all errors
at once? If so, where would I do this?
function validateSignIn(form) {
if
I need to customize the order in which resource bundles are read for messages.
Specifically, I have default bundles for groups to which a country belongs.
First I search the bundle for the language/country (fr_FR). If I can't find the
property, I want to search the group resource bundles to
I have a Struts 1.1 application running for my employer. Now I am being asked
if I can create a web service that acts as a front door to the Struts
application. Has anyone ever done this? Is there a way to extend Struts to read
a SOAP body in the HttpRequest instead of the regular request
My actionForm has an ArrayList of objects that I display in my JSP for update
using indexed properties (see below JSP code):
logic:iterate id=objectVO name=FormConfig
property=objectCollection type=com.xxx.MyType
html:text name=objectVO
I extended the RequestProcessor to forward between two web applications. The
following code is what I use to forward to an action that the other web
application has. Then the other web application can define an action that can
handle forwarding to whatever jsp it wants.
if
Has anyone run into this, and if so do you have a work around?
I have a Struts bean:write tag inside a JavaScript onClick command like
so:
tdinput type=image src=images/EditIcon.gif alt=Add/Edit External
Note
onClick=showExtNoteModal('nested:write
property=pendingExtNote/nested:write',
'%=
Yeah...
Print it on your forehead and walk around the mall. There's people on E-Bay
that will do it for you too!
Scott
-Original Message-
From: t t [mailto:[EMAIL PROTECTED]
Sent: Friday, January 28, 2005 11:04 AM
To: Struts Users Mailing List
Subject: [OT] Advertising website
Hi,
I have a Struts application that has (for failover reasons) implemented its
own SessionFacade to serialize session information to a database. I am
trying to figure out if Struts requires the Locale to be saved in the
HttpSession or if I can save it in my SessionFacade. Is there any place in
the
I am trying to set my application's welcome file to a struts dispatch action
(login.do?method=load), but it isn't being found. Is there any reason I
can't use a dispatch action as my welcome page? Is there a better way to do
this?
Scott Mulligan
I have two distinct Struts applications running in Tomcat. I would like to
forward a request from one application to the other and still be able to
access the request attributes. Is this possible to do in the Struts
framework without customizing the Controller? It seems that Struts can only
18 matches
Mail list logo