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 String
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 ac
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 bas
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 switch
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 tag look at the "validate"
attribute in the config?
Scott Mulligan
L PROTECTED]
-Original 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 java
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) {
i
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 "erro
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 th
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 whic
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 parame
My actionForm has an ArrayList of objects that I display in my JSP for update
using indexed properties (see below JSP code):
My Action Form looks like this:
public ArrayList getObjectCollection() {return
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 (forward.getName().sta
I don't know if this is what you're looking for, but I created an
application that consists of two separate web apps. The first one is a
channel application that handles user interface and basic edits. It
forwards to a second application that has the business logic. The
thinking here is that other
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:
',
'<%= rowIndex.toString() %>','editExternalNote')"/>
The problem is the dastardly single quote embedded in the nested:write
property, for example (Chris's
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 Str
ome File
Just have your web.xml point to a jsp. I call mine index.jsp, but you can
use whatever.
/index.jsp
The jsp contents would be:
Wiebe
-Original Message-
From: Mulligan, Scott H [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 12:37 PM
To: Struts Use
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
-
ubject: Re: Forwarding to another struts application
On Fri, 30 Jul 2004 08:27:38 -0500, Mulligan, Scott H
<[EMAIL PROTECTED]> wrote:
> 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 a
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
forward
21 matches
Mail list logo