This is probably a java question rather than a struts question, but I
hope someone will bear with me here.
I'm using DynaValidatorForms and usually stick to strings, but for
argument's sake I'm passing in some other custom objects today. I can
access everything great in the form itself, such as:
You should have declared them in a element in your
struts-config.xml - if you have it will find them.
Niall
- Original Message -
From: "Metal KoRn" <[EMAIL PROTECTED]>
Sent: Friday, May 06, 2005 3:48 AM
OK I got it but i have a doubt with this
errors.add(field.getKey(), Resources.getA
OK I got it but i have a doubt with this
errors.add(field.getKey(), Resources.getActionMessage(request, va, field));
Where is declared the object Resources Im getting a cannot resolve
symbol with the method getActionMessage
On 5/5/05, Niall Pemberton <[EMAIL PROTECTED]> wrote:
> In your validat
In your validateLicenciaMaestro() you need to add a message to the
ActionMessages object (if validation fails) - look at Strut's FieldChecks
class if you want an example.
Niall
- Original Message -
From: "Metal KoRn" <[EMAIL PROTECTED]>
Sent: Friday, May 06, 2005 3:29 AM
IT WORKS , but
IT WORKS , but im not getting the error sent by the validator
On 5/5/05, Niall Pemberton <[EMAIL PROTECTED]> wrote:
> As I said the method signatures don't match - you're missing the "Validator"
> parameter. Change your config file to the following:
>
> classname="validator.V
As I said the method signatures don't match - you're missing the "Validator"
parameter. Change your config file to the following:
Niall
- Original Message -
From: "Metal KoRn" <[EMAIL PROTECTED]>
Sent: Friday, May 06, 2005 2:50 AM
This is the code for the validator form
publi
Hey guys Im having a bit of problems by applying my own validators.
The thing is that I create my validator class, for testing reasons the
calling method returns a false, this only for checkin if the validator
is working good.
But Im getting the following Exception.
Im using Struts 1.2.4 version
This is the code for the validator form
public class ValidatorLicenciaMaestro implements Serializable{
public static boolean validateLicenciaMaestro(Object
bean,ValidatorAction va, Field field,ActionMessages
errors,org.apache.commons.validator.Validator
validator,HttpServletRequest requ
Hi Erik,
thank you so much for your information. it really helps me go in the
right direction. i will do more homework on XMPP and Smack first.
really appreciate your help !
lixin
On 5/6/05, Erik Weber <[EMAIL PROTECTED]> wrote:
> See my other post, please, if you are limited to using HTTP.
>
>
I solved this problem with a mysql db blob field and a servlet
with params to dynamically resize the image.
The code can be found at http://www.draegoonz.com/downloads.do
I haven't done anything with the site in a while, so let me know if you have
problems.
From: "Scott Purcell" <[EMAIL PROTECTE
If you know where to forward, you can create a custom ActionForward in
runtime. ActionMapping.findForward() that everyone usually use, is
just a convenience method. You can create your own instance of
ActionForward class with whatever path and request method you like.
Don't change ActionForward ins
I am working on struts interface that will support a core set of functionality
upon which products can add functionality. Several products may be installed on
one system, all sharing the core functionality. The products that adopt the
core functionality cannot change it, they can only add to it
> There are these tickets related to this:
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=6847
> http://issues.apache.org/bugzilla/show_bug.cgi?id=25963
> http://issues.apache.org/bugzilla/show_bug.cgi?id=29807
Hmm, yeah ok, I'll look at these. It would be nice if this were fixed
before 1
Apologies, I'm not an expert in FileUpload. However I believe the Commons
FileUpload will handle multiple files - since what it does is basically
parse the request and return a list of items. I think the issue is probably
in Struts. There are these tickets related to this:
http://issues.apache.org
Upon further investigation, it appears that commons-fileupload does not
support uploading multiple files with the same parameter name. I'm
going to take this discussion (with myself) over to commons list.
- Dave
> -Original Message-
> From: Durham David R Jr Ctr 805 CSPTS/SCE
> Sent: T
Look at ImageIO for read/write and RescaleOp for your scaling.
Erik
Scott Purcell wrote:
Not truly struts related, but I would assume that people on this list know a
solution, or workaround for what appears to be a common dilemma.
I have created a ECommerce type site, in which there are three disp
Carl, sorry it took me so long to respond.
http://struts.apache.org/userGuide/dev_validator.html
Please see the section on date validation. You can specify the date
pattern you want to use with a datePattern or datePatternStrict variable
(within your "field" element). Since you are not including
I very highly recommend DataVision. I wrote an article some time ago
that serves as an introduction to it, specifically with using it in a
webapp (pure servlets in the full example that accompanies the article)...
http://www.omnytex.com/articles/
Frank
Shajee wrote:
Hi,
I'm new to the group and
You could use Sun's Java Advanced Imaging, as well.
http://java.sun.com/products/java-media/jai/
JAI gives you about everything you could need to manipulate many formats of
bitmap images, though the API seems daunting at first. I found one article
that provides a good discussion and examples of
See my other post, please, if you are limited to using HTTP.
The modifications I made to Smack (1.4.2) are subtle, and the classes
are pretty small, but they require some detail to explain properly. The
library does work as is. It uses two threads -- one that parses incoming
XML and dumps the ge
Tried using a property like this:
But I get the following class cast exception:
org.apache.commons.beanutils.ConversionException: Cannot assign value of
type
rg.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFile'
to property 'files' of type '[org.apache.struts.upload.FormF
If it's OK for you to create the thumbnails during deploy-time,
the Ant-task is very convenient, however the filtering algorithm
can't be specified
and the default one is not so high quality (I guess it just uses
"nearest neightbour").
Aron Gombas
3NF Corporation
www.3nf.com
-Original M
I keep forgetting what forum I'm in here -- I mostly use Swing, not HTML
browsers, with Struts, etc. This makes it a lot easier for me to use
whatever protocol I want for whichever service. If you are stuck using
an HTML browser as your vehicle for a user interface for the messaging
system, you
Hi,
My scenarion is that I need all URLs into our domain to route to the struts
controller. Furthermore, we do not want to add new action mappings when we come
up with new pages. Our "pages" are actually database driven by the inbound URL,
e.g
http://www.domain.com/this/is/a/page
http://www.do
Hi,
I am also interested in integrating a chat engine with my Struts
application - with very similar requirements. In fact I posted a msg
here before checking this thread !
I am not familar with any of the Sockets, ServerSockets, XML API or
Threads. So looks like building from scratch is not an op
Although it's not Apache based, I am a Crystal Reports fan. Crystal
Reports Developer Edition costs $500 at http://www.businessobjects.com/
. In the current Crystal XI version, the reporting engine is written in
Java and they provide a tag library to use it from JSP (develop your
reports under Wind
XMPP and HTTP are nothing alike. XMPP is a stateful protocol and HTTP is
a stateless protocol. XMPP pushes out alerts actively while with HTTP
you have to poll when doing messaging. XMPP is all XML (and extendable)
in addition. If you are going to use XMPP (and you should, instead of
hacking a
Im having trouble figuring out how to use jstl's fmt:message tag to use 2
properties files.
Can anyone help? It appears that if i use struts bean tags i can do this
pretty easily but i want to stick with JSTL if i can.
THjanks
---
Nothing I am aware of is integrated as part of the Struts dist.
I've looked at JasperReports, it does all you ask and it is pretty
flexibile as to what data can be used, but there is lately a little
bit of controversy around the project, google "jasperreports
site:slashdot.org".
You can also use
tarek.nabil wrote:
Although the validator declares that it depends on required, so (as far
as I understand) that means it should not be triggered if the value is
null or blank. Nevertheless, it is, and it shows the error that the date
is invalid. I checked the source for the class that perfor
take a look to:
http://jasperreports.sourceforge.net/
this is a powerful report engine (exports in pdf, xls, html, cvs)
and
http://ireport.sourceforge.net/
the best open source jasper report editor tool
Bye, Marco ;)
-
To un
Hi,
I'm new to the group and Struts Framework. There're a few urgent
queries for which i'm unable to get some good answers. Thought you guys
might be helpful
Is there any inbuilt functionality in struts framework for
implementing reports.
Are there any Apache based tools/model for reporting in
What about jmagick?
http://www.yeo.id.au/jmagick/
The problem with using awt is that you need an X installation on your
server, which you normally haven't. And running
AWT in headless mode is not that easy. Beside this, jmagick provide better
quality of image resizement as awt.
Regards
Leon
>
What about jmagick?
http://www.yeo.id.au/jmagick/
The problem with using awt is that you need an X installation on your
server, which you normally haven't. And running
AWT in headless mode is not that easy. Beside this, jmagick provide better
quality of image resizement as awt.
Regards
Leon
>
:) Me too. Its on my list of things to do but from some research I did last
week I found this gem
http://developers.sun.com/solaris/tech_topics/java/articles/awt.html
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: 05 May 2005 14:07
To: user@struts.apache.org
Subje
Not truly struts related, but I would assume that people on this list know a
solution, or workaround for what appears to be a common dilemma.
I have created a ECommerce type site, in which there are three display sized
images. A 125x125 thumb, a 256x256 preview, and a 100% original view for a
p
Sorry, but what exactly you mean by "unique" validation?
> -Ursprüngliche Nachricht-
> Von: Nathan Coast [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 5. Mai 2005 13:58
> An: Struts Users Mailing List
> Betreff: Re: unique field validation
>
> thanks,
>
> I tried overriding the val
Sorry, but what exactly you mean by "unique" validation?
> -Ursprüngliche Nachricht-
> Von: Nathan Coast [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 5. Mai 2005 13:58
> An: Struts Users Mailing List
> Betreff: Re: unique field validation
>
> thanks,
>
> I tried overriding the val
thanks,
I tried overriding the validate method and it seems to work fine.
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
{
ActionErrors errors = super.validate(mapping, request);
// if fail unique validation
A
The Struts-London group are holding our 9th Birds of a Feather session
at the Oracle offices in the City of London on Monday 9th.
The agenda this time will kick off with a brief session on Shale to
follow on from our JSF introduction last time, followed by a discussion
on what we're going to do
Hi everyone,
For some sort of reason, I'm using Struts version 1.1b2. I have a search
screen where the user can search using some date fields. I put the
following field declaration in my validations.xml file
datePattern
${dateFormat}
The date validator is declare
hi,
I am looking for a chat engine that I can integrate it into my Struts
based web application. basically, my application wants to do the
following things:
- get notified when a client wants to open a chat
- redirect to the target audience for the incoming chat request based
on pre-configured lo
I think this kind of validation has to be done in the business logic, behind
struts.
Neither in the action form, nor in the action.
The business logic should throw appropriate exception, which then can be
handled by struts part of the application.
Regards
Leon
> -Ursprüngliche Nachricht
I think this kind of validation has to be done in the business logic, behind
struts.
Neither in the action form, nor in the action.
The business logic should throw appropriate exception, which then can be
handled by struts part of the application.
Regards
Leon
> -Ursprüngliche Nachricht
Hi,
Is there a standard way to handle validations that can only occur
server-side? e.g. unique fields.
I'm guessing you don't have to include the unique validation in any of
your validation configuration.
Is it simply a case of overriding the validate method in my action form?
public ActionErr
If you have to embed it in your site, and in your site only, forget about
sockets, xml and other "complicated" staff.
3 actions (getmessage, sendmessage, checkmessage) 2 html pages, a bit
javascript (for reloads) and
5-10 classes on the business logic will be enough.
Don't make things unneccessa
If you have to embed it in your site, and in your site only, forget about
sockets, xml and other "complicated" staff.
3 actions (getmessage, sendmessage, checkmessage) 2 html pages, a bit
javascript (for reloads) and
5-10 classes on the business logic will be enough.
Don't make things unneccessa
Hi
We are proving struts in webserver SUNONE 6.1 SP03
We download the "struts-examples" from struts home page.
We try this example in netbeans and it works fine.
Now, we make a .war archive, and install in SUNONE 6.1 SP03, and we have this
problems:
1) If we go to http:/machine:port/https-age
Hi all,
I have a form which contains a couple of drop down boxes and i use the
validator framework to verify the values. I set the given values for the
drop down box in the request.
My Problem is, that this variables after a failed validation are empty.
What is the common solution for this probl
49 matches
Mail list logo