Currently the app Im working on is using an xhtml front end (with struts of
course) but Ive been asked to look at XForms with an eye to migrating to it
in the future (and probably throwing in a migration to JSF while Im there).
Currently the XForms spec is only a candidate release with afaik very
Yes, I agree that it is not good programming to replace the ActionForm
with ValueObject.
But let me know your view about having both ActionForm and ValueObject
and use some kind of mapping to get the ValueObject instance from the
ActionForm instance.
Example is available at
I just went thrugh its main features. One major drawback is that it doesnt
support primitives.
You can write your own fn in the form class to convert it into VO/DTO.
Cheers
Ashwani Kalra
http://www.geocities.com/ashwani_kalra/
-Original Message-
From: Viral_Thakkar [mailto:[EMAIL
Yeh. In my case I wasnt event going that far, just jumping from a beta to a
final of 1.1
What bugs me though is that the method is still there and not deprecated.
The first I knew that there was a problem was when QA defected me for the
UnsupportedOperationException that gets thrown :-(
I cannot do that though because the port and the physical server is resolved
automatically from the interface file.
Any more suggestions?
Thanks for help anyway
Chirag
Jimmy Emmanual wrote:
try adding the port # and a database name.
set-property property=url
Thanks for you effort in resolving this issue its working perfectly now.
It might be a good idea to include the changes i've made to the
DisplayMenuTag class i.e.
in the doStartTag() method after we fetch the menu from the repository we
could add the following:
/* If no menu was found
I'm just starting to use it myself. And it's a bit of a pain in the RS
really. I think that it will become a standard next year, as for use within
static sites it's an extremely easy thing to use. (The wizard can knock up a
form page in about 2 minutes, and saves a boat load of typing)
However,
In my struts application I save a text file in an oracle database.
Whenever I retrieve the file from the database, it is always 8kb smaller.
Has any one of you ever experienced this problem?
Sam
-
To unsubscribe, e-mail: [EMAIL
Will this still validate the request parameters when there are actually
request parameters present?
-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 6:04 PM
To: 'Struts Users Mailing List'
Subject: RE: DynaValidatorForm question
Set validate
Are you using a input stream to load the file in the database? If so make
sure that you flush the stream and close it.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 4:59 AM
To: [EMAIL PROTECTED]
Subject: Strange Problem saving and
Hi,
Has anyone got any ideas on how to use a message key as an argument in a
bean:message call.
e.g. bean:message key=field.lookupbutton arg0Key=customer.label/
At the moment I am using a scriptlet to access the message resources and
assign the message for the argument to a page variable. e.g.
How do you get Constants (or anything none scoped ie app/sess/req) into a
jsp for use in EL
I can do
%@ page import=com.blah.Const %
%= Const.MY_CONST %
but not
c:out value=${Const.MY_CONST}/
This probably demonstrates a fundamental none understanding!
TIA
--
Mike W
c:set var=yourVar%= Const.MY_CONST %/c:set
-Original Message-
From: Mike Whittaker [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 7:33 AM
To: Struts List
Subject: simple - import
How do you get Constants (or anything none scoped ie app/sess/req)
into a
jsp for use in
hi,
u can't send the key as the argument to the bean:message, though u
might want to consider this
bean:define id="realValue"
bean:message key="customer.label"
//bean:define
bean:message key="field.lookupbutton"
arg0="%=realLabel%"/--
c:set var=yourVar%= Const.MY_CONST %/c:set
Good grief is this the only way?
a/ isn't the aim to do without scriptlets/expressions?
b/ all the data exists, server side in the app, why do I have to jump
through hoops, copying CONSTANTS over to another variable???
:-(
--
Mike W
Thansk - that's ceryainly a lot neater. I keep forgetting that lots of tags
can have stuff defined in their body - I always seem to look at example
which have no body.
cheers,
Paul
-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: 01 August 2003 12:47
To:
I think that I may be missing something here. When using struts, how do you
load say a html form (using a jsp file) to the user initially without having
the Action class actually being processed and then being forwarded to the
view? I defintely want to use the Validator class but I only want it
Not sure. I'm in this for the money ;)
--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx
- Original Message -
From: message message [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 01, 2003 1:48 AM
Subject: Re:
Hi all.
We are a team that develop an online application using struts.
Inside the team exists two groups: the software developers and the interface
designers.
Our designers needs to give expression to the interface accross the JSP's
and we want use a WYSIWYG tool.
Can you give me a clue or
If you can use jstl, you can also try
fmt:message key=field.lookupbutton
fmt:param
fmt:message key=customer.label/
/fmt:param
/fmt:message
Cheers,
Krishna
-Original Message-
Having a look at JSTL is on my todo list:-)
-Original Message-
From: Krishnakumar N [mailto:[EMAIL PROTECTED]
Sent: 01 August 2003 13:10
To: Struts Users Mailing List
Subject: RE: Using a key as an argument to bean:message
If you can use jstl, you can also try
Easy way:
You can always use the unstandard tags. Works great for me:
un:bind type=com.company.project.Const field=SOME_CONST var=yourVar/
c:if test=${$yourVar == 'some value'}
c:out value=${yourVar}/
/c:if
Not so easy way:
---
(by Kris Schneider on taglib-users)
Put
Hello,
I have JSP1 from which I go to JSP2. The JSP2 should come prepopulated with some
values that I set in action class associated with JSP1. I am using the same formbean
for both JSP 1 and JSP 2. I set the value that I need in JSP2 in Action class1 and I
can see they are getting set in the
Thanks. I have solved the problem. I was calling a BufferReaeder.readLine() method
earlier before
loading the InputStream in the database.
Cheers!!!
-Ursprungliche Nachricht-
Von: Jones, Marty B. [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 1. August 2003 13:10
An: Struts Users Mailing
If one is to start another OSS project, what would it be? ;)
I think there isn't one idea that hasn't been thought of and put into open
source now days.
But like James, I'm in it for the money too. What can I say, Love
programming and of course $.
--Alen
- Original Message -
From:
My gut reaction would be to use a depends=required on both fields. This
should give you the behavior you desire.
-Original Message-
From: Jones, Marty B. [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 5:37 PM
To: [EMAIL PROTECTED]
Subject: DynaValidatorForm question
I have a
I currently have that setting that you mentioned. That is exactly the
problem that I am seeing. If a user goes directly to the /login url. The
LoginAction is being instatiated and the validator trys to validate
parameters that the user never had a chance to enter.
-Original Message-
Try overriding reset() such that it doesn't do anything. Otherwise, the
reset() method in ActionForm will set all primitives to their defaults and
all objects to null.
- Original Message -
From: Goldy J [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 01, 2003 7:20 AM
I think the easiest way is to actually set validate to false on your
action and do it manually first thing in your execute:
// check for null values if there are just display the page otherwise
ActionErrors errors = yourForm.validate (...);
If (!errors.isEmpty ()) { return input mapping }
//
Is XForms really going to be the next stage in the evolution of forms on
the
browser or is it just some hyped up hot air thats really a wild goose
chase?
IMHO it's hard to say, XForms has been perculating for along time. I think
if you speak to some vendors (Like Novell) they think so. But in
That is what I figured.
Thanks for your help.
-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 8:01 AM
To: 'Struts Users Mailing List'
Subject: RE: DynaValidatorForm question
I think the easiest way is to actually set validate to false
JSTL won't handle static methods. If you add a method to your Const class
that returns a Const instance (ideally a singleton so you don't keep
creating these), you can keep a Const on your ActionForm bean and set it in
your ActionForm. Then your JSP would look like this:
c:out
Alternatively, you could load this into session or application scopes and do
this:
c:out value=${sessionScope.constants.myVal}
or
c:out value=${applicationScope.constants.myVal}
- Original Message -
From: David Chelimsky [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
Thanks a lot David for the prompt reply . Iam actually not using reset method. I have
couple of text fields and combobox in JSP2 which I need to prepopulate from JSP1. Do
you still recommend using reset or there is any other way. If you can refer to any
working example it would be great.
Even if you don't write a reset method, the ActionForm's reset method is called on
every request. Your only option (that I'm aware of) is to override it:
public void reset(ActionMapping mapping, HttpServletRequest request) {}
This will cause reset to do nothing and all your values will remain
Thanks for the response Imran.
plea-for-help
I'd rather not do a custom validator if it's not necessary, but if nobody
else reponds I might have to bite the bullet and create one...
I'm surprised I haven't gotten any other responses, this seems like
something that many other people would have run
All these ideas rely on the use of a single class/interface for declaring
constants.
I don't like this workaround to what SDK1.5 will solve.
My constants are in the right places, the classes to which they logically
belong.
I suppose with 1.5 I will be importing these constants to one class which
Mike,
The whitespace and formatting really bugged me as well, so I wrote a servlet
filter to run the generated html through the Java port of Html tidy
(http://sourceforge.net/projects/jtidy/) to format it and clean up the
whitespace.
[It does have the side effect of not displaying your page,
After reading a somewhat interesting post by Russell Beattie in which he
mentions the desire to separate the URL that a user sees from the actual
logic and data that it represents, it got me thinking about the approaches
that one can take in Struts to achieve something similar. I don't think the
What really would be cool if Jasper would have a setting to get rid of
those extra whitespaces, but after your first post I looked up jasper's
config settings and there does not seem to be one, or maybe there is any
Tomcat experts here? I am wondering if other containers have this
feature
The implementation of reset in ActionForm is empty. Overriding reset in your
descendants to do nothing will have no effect.
Paul
-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: 01 August 2003 14:34
To: Struts Users Mailing List
Subject: Re: Formbean Scope
Even
I am getting the following error when I try to set the name and type
attribute of the html:form tag. I have included a snippet of my login.jsp
file and my struts-config.xml file
The main reason I am trying to set them is because if I don't set them and
let the form tag configure itself with the
Hi,
I m deploying xpetstore sourceforge project
on bea weblogic 7.0
But in my client browser threre is a blank page.
WHY?
Help Me!!!
The log:
Starting WebLogic Server...
1 ao¹t 03 16:02:53 CEST Notice Management 140005 Loading
configuration C:\bea\user_projects\xpetstore\.\config.xml
1 ao¹t
You can forward to a .jsp page directly, i.e., without using an action forward
in struts-config. That way the action class won't be called initially.
Then by setting the form name and form field the same as the FormBean, you can
still submit to whichever action that handles your request.
How to download attachments using JSPs
Regards,
Jagan.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Chirag,
I may be coming in late on this one, but heres what I know on the issue u're
experiencing..
When u use most native (or ODBC) Sybase drivers, they go through the Sybase Open
Client (CTLIB or DBLIB), doing a translation of the logical server name to the
physical server name (and port
Hi,
i was looking at
http://black-sun.sourceforge.net/
which is the editor for jsp???
Ashish
--- [EMAIL PROTECTED] wrote:
Thanx a lot!!! works great for me
--mohan
I am using the blacksun plugin. It does have a
find start/end tag
feature.
http://black-sun.sourceforge.net/
Goldy, Paul is correct (and corrected I stand...).
Paul - do you have a recommendation for Goldy's situation?
- Original Message -
From: Paul McCulloch [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, August 01, 2003 9:07 AM
Subject: RE: Formbean Scope
Afraid not - I'm a newbie who happened to look at the source for ActionForm
yesterday. Sorry.
-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: 01 August 2003 15:54
To: Struts Users Mailing List
Subject: Re: Formbean Scope
Goldy, Paul is correct (and corrected I
I think so mate.
Thanks for the help!
Chirag
OFlaherty, Colm wrote:
Chirag,
I may be coming in late on this one, but heres what I know on the issue u're
experiencing..
When u use most native (or ODBC) Sybase drivers, they go through the Sybase Open
Client (CTLIB or DBLIB), doing a
I've been able to get Struts working with the Websphere 4.01 plugin on z/OS
(recently upgraded from OS/390). We are using JSP 1.1 and Servlet 2.2. The
only changes that I needed to make after running the Struts example .war
file through wartowebapp were to extract the dtd's under
Thks for the info Cindy,
I'm trying to check with the admin to see if it's reading the
webapp-name.webapp file to initialize itself on startup with our
admin(The joy of working with/through an admin). And I'll try
extracting the DTD files like you said just in case(as soon as the
admin let
All,
I have been strugling with this for a while. I looked at the archive and found
similar questions but no answers there.
I have a form that has two fields - a bean and a String field.
My jsp displays the two fields. I was able to get to the JSP by calling
ssoXref.do?operation=showSsoXref.
Just provide a link the document, the browser will try to open it, if it can not it
will pop up a message to download it.
José.
-Original Message-
From: Jagannayakam [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 4:33 PM
To: Struts Users Mailing List (E-mail)
Subject:
What do you mean by 'attachment'? Are you talking about an email attachment
or something else?
-R
-Original Message-
From: Jagannayakam [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 7:33 AM
To: Struts Users Mailing List (E-mail)
Subject: Downloading files using JSP
How to
I have the following tag declaration in a jsp file:
html:form name=loginForm action=/login focus=username method=POST
type=com.dailyaccess.actions.LoginBean
The jsp compiles correct and views correctly. The issue that I am having is
that the action attribute in the html form that is created is
I don't know if it was resolved, but this thread
should be of interest to you:
http://marc.theaimsgroup.com/?l=struts-userm=105943092932593w=2
HTH
m
--- Jones, Marty B. [EMAIL PROTECTED]
wrote:
I have the following tag declaration in a jsp file:
html:form name=loginForm action=/login
Martin Naskovski wrote:
Hello all. Is there an app that demonstrates the use of Struts EJB as a
persistence layer? I checked out Struts-Resume from Matt Raible, but it
uses Hibernate... Is there anything available w/EJB's? Thanks.
http://xpetstore.sf.net/
There are two implementations of
Hi, I am building a web site. The primary functions
of this site are for authors to submit their research
papers. The research papers will go through a
screening process (screened by peers in the field).
Visiors can view the published articles online.
Authors and peers are the registered users
Hey,
I had the same syptoms and the problem was an incorrect servlet-mapping in
my web.xml. We had /*.do instead of *.do. because of that, the
RequestUtils.getActionMappingURL() would not parse the action correctly. YOu
might want to start looking there.
Chuck
-Original Message-
From:
message message wrote:
How come there is so much free ware available especially from sourceforge ?
The whole point of sourceforge is to foster the development of open
source/free software by providing web hosting, CVS repositories, mailing
lists, and most other needs traditionally used by
Thanks for the info. I will take a look.
-Original Message-
From: Canning, Chuck [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Html Form Tag Question
Hey,
I had the same syptoms and the problem was an incorrect
Take out the type and name attributes out of the form tag. They should
already be mapped in the struts-config and you don't need them in the JSP.
-Original Message-
From: Jones, Marty B. [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 11:34 AM
To: [EMAIL PROTECTED]
Subject:
Maybe EJB should be used with JSF (and blue prints
http://java.sun.com/blueprints/code/index.html) instead of Struts.
Struts is more like this http://ibatis.com/jpetstore/jpetstore.html.
.V
Erik Price wrote:
Martin Naskovski wrote:
Hello all. Is there an app that demonstrates the use of
Thanks Michael.
-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:40 AM
To: Struts Users Mailing List
Subject: Re: Html Form Tag Question
I don't know if it was resolved, but this thread
should be of interest to you:
A beginner question:
When my date field is shown in my jsp it appears in a different way,
although my Locale object is correctly set.
Anyone knows how to solve this problem?
Thanks.
-
To unsubscribe, e-mail: [EMAIL
Chuck,
Sure enough, that was it. The action attribute is now being set as it
should.
Thanks for all your help.
-Original Message-
From: Canning, Chuck [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Html Form Tag Question
with type is your date, java.sql or java.util?
-Original Message-
From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:27 AM
To: 'Struts Users Mailing List'
Subject: Date format
A beginner question:
When my date field is shown in my jsp it
java.util.Date
-Mensagem original-
De: Tamia Ramírez [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 1 de agosto de 2003 13:33
Para: Struts Users Mailing List
Assunto: RE: Date format
with type is your date, java.sql or java.util?
-Original Message-
From: Silverio Wagner
Hey everyone,
I'm working on a custom validator right now, and all the validation method
does is return false. That means it fails that validation, right?
Anyway, when I submit the form, I get a NoSuchMethod error. What would
cause this? All of my regular validations work, just not this custom
Hi,
Has anyone used display taglib from the following
address:
http://edhill.its.uiowa.edu/
It seems this tag does not have data-formating ability
to
align titles or data. Does anyone konw a workaround
about this?
regards,
__
Do you Yahoo!?
Yahoo! SiteBuilder
THIS CODE BECOME A JAVA.UTIL.DATE WITH FORMAT: dd/MM/ to a date MMM dd,
:
SimpleDateFormat dateFormatter = new SimpleDateFormat(MMM dd, );
String new_Date = dateFormatter.format(myDate);
reservacion.setFechaSalString(new_Date);
you may need to import java.text first.
I hope it can
I'm trying to swich from version 1.0.2 to version 1.1 of Struts. I've
downloaded the new version and replaced the *.tld files in my web-inf
directory, and the *.jar files in web-inf\lib.
When I try to run my system, I get a strange error. This system uses
bean:define... tags, which worked fine
Hi,
I am trying to use the Struts Validator to generate Javascript validation on
a Map-backed action form, but I keep getting type is null or not an object
javascript error (I am using Struts 1.1). Non map-backed properties on the
form work fine.
In the JSP I am creating text boxes using:
On Fri, 1 Aug 2003, Slattery, Tim - BLS wrote:
Date: Fri, 1 Aug 2003 13:13:56 -0400
From: Slattery, Tim - BLS [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts User List ([EMAIL PROTECTED])
[EMAIL PROTECTED]
Subject: Conversion to 1.1 troubles
I'm
I don't think this is legal, i.e., you can not have a bracket inside of property
attribute:
field property=volume()
You form should have the getter method for getVolume().
-Original Message-
From: Cordingley, Charles [mailto:[EMAIL PROTECTED]
Sent: August 1, 2003 11:24 AM
HI All
I have a form which contains an array of other forms
along with other data. I am putting this form in session. when I
submit I am writing data to database and then removing the form
from session. and going to another page. Now if user hit on BACK
button of browser, It takes him
Yes it does.
style type=text/css
.tableRowHeader {
align:center;
}
.tableRowOdd {
align:center;
}
.tableRowEven {
align:center;
}
...
/style
-Original Message-
From: victor gusz [mailto:[EMAIL PROTECTED]
Sent: August 1, 2003
I'm trying to swich from version 1.0.2 to version 1.1 of Struts. I've
downloaded the new version and replaced the *.tld files in my web-inf
directory, and the *.jar files in web-inf\lib.
When I try to run my system, I get a strange error. This system uses
bean:define... tags, which worked
We've got all our tiles definitions in tiles-def.xml in the web-inf folder,
and we were wondering if it is possible to somehow call a definition and
load it from a jsp?
For example if a user comes to our site thats not logged in we wanted to
direct him to a jsp that uses one of our tiles def's
Thanks,
Does it? How do you use this stylesheet in its
display:table
display:column
tags? The following stylesheet is used in its
examples'
html pages, its not in its jsp source, just because
its
tags cannot format data? Maybe I am just not clear
about this, please clarify.
regards,
Victor
Hi,
Has anyone used display taglib from the following
address:
http://edhill.its.uiowa.edu/
How do you specify the requestURI parameter of
display:table if I want to display multiple pages
if number of results is huge? The taglib's examples
seem to link results pages to different pages,
It's the default classname for the rows and columns, etc. if you take a look at
the source code.
Presentation in html should be separated from the content, that's what css is
all about:). Try CSS, you will discover the power of it.
Use the style anywhere you want, external, internal, as long
You could put the tile-def on the JSP
-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 2:11 PM
To: Struts Mailing List
Subject: Calling a tiles definition from a jsp?
We've got all our tiles definitions in tiles-def.xml in the web-inf
Since you are relying on the browser anyways, I'd use javascript for this.
The numbers would stay formatted as you change them then. As a caveat, you
really need to check the values on the server side afterwards.
Steve
-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Thanks,
You are right. But it seems it only renders internal
stylesheets.
regards,
--- Yansheng Lin [EMAIL PROTECTED] wrote:
It's the default classname for the rows and columns,
etc. if you take a look at
the source code.
Presentation in html should be separated from the
content,
Not sure how best to set this up and indeed, if it is possible so any advice
would be appreciated.
I have an ActionForm called 'RegisterForm' that allows a new user to enter
their details (name, email, school name and school address) or, an existing
registered user to edit these fields.
- Original Message -
From: Caroline Jen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:42 AM
Subject: ActionForm Design Question
Hi, I am building a web site. The primary functions
of this site are for authors to submit their research
papers. The research
Yan,
Why not use a windowpop up javascript for your school search and then
set the school var on the parent page then submit the form
marcos
-Original Message-
From: yan [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:18 AM
To: [EMAIL PROTECTED]
Subject: 2 different
Use JavaScript to change the submit action based upon the criteria you listed:
function doSubmit() {
if (someCondition) {
document.yourForm.action = 'html:rewrite action=/actionNumeroUno
/';
} else {
document.yourForm.action = 'html:rewrite
Well, so much for the helpfulness of this list.
I politely asked a few completely reasonable questions in the past few days,
and they were questions that could easily be of interest to others as well.
They were also pretty simple issues that I'm sure other people have
encountered or would have
Give a different value to every submit... in your form make just one submit
and ask for its value, so you can know with one they chosse:
input type=submit value=Login
input type=submit value=request
-Original Message-
From: yan [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003
On Aug 1, 2003, yan [EMAIL PROTECTED] wrote:
|My query is this: I am aware that I have 2 html: form action =someAction
|'s, one for the 'Find School' submit button and one for the 'Register
|Me/Update Details' submit button.
The way I did this was to use a LookupDispatchAction and have both
How about supplying more information like the name of the method that is not
being found?
Regards,
Richard
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 12:00 PM
To: 'Struts Users Mailing List'
Subject: RE:
Hey,
Thanks a bunch for the reply. It's the validateRange method that's not
being found, the one responsible for doing the validation.
Has anyone else run into anything like this while trying to do custom
validation?
- Keith
-Original Message-
From: Yee, Richard K,,DMDCWEST
Just a quick guess your paramaters are probably messed up?
This is what you have in your descriptor
java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
Keith,
Yes, I think you are missing the javax.servlet.ServletContext in your method
signature
Or your methodParams has an extra parameter.
-Richard
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 12:07 PM
To: 'Struts
Thanks for your response David. Correct me if I'm
wrong, but isn't this exactly what I had in my
example? Maybe I'm just not grasping something...
It looks to me like I'm still having to add two
definition blocks for each form I want to add.
Under your form_page definition you point to form1
I can see there are several issues here. First I think you might want to supply
the ServletContext as well. Second, you want to add the error to Errors
collection by adding:
errors.add(field.getKey(), ValidatorUtil.getActionError(servletContext,
request, va, field));
before the return
Hi all,
Well, i recommend using JSTL tag formatNumber with type='currency'.
You can do this way:
%@ taglib uri=http://java.sun.com/jstl/fmt; prefix=fmt %
fmt:setLocale value=pt_BR/
fmt:formatNumber value=${your_property} type=currency/
It worked for me.
Regards,
Daniel Silva
---
1 - 100 of 124 matches
Mail list logo