Dear all:
I'm having a problem with the Struts' html-el:img not being translated
when it is placed within a c:when (or c:set or any other JSTL 1.0 tag). If
the html-el:img tag is placed outside of the c tag, then it is translated
properly. I recall that this is part of the specification of JST
I'm not sure I understand you, but here goes...
When a request "hits" Struts, struts processes it with a "RequestProcessor",
the "standard" RequestProcessor does a number of things, the main steps
being:
* Either get or create the ActionForm associated with the mapping
* Populate the ActionForm f
Just to follow this up, the reson this works is that struts uses the
'name' of the form from your struts-config to store the actual object
under in the request or session scope, so as long as you keep your
naming synced up you can also duplicate this behavior, like I did below
when I populated
Miguel,
I had this problem alot when I was developing a management system. For
example, on my DeleteConfirmation pages, I wanted to show all the info
for the entity I was erasing (for example, a User). So how I set that up
was 2 actions in my struts-config:
So the idea here is t
I see what you think:
1) do common validation stuff (required..)
2) if it pass go to action execute
3) do others validation with BusinessDelegate
4) -> success OR go back with errors: return mapping.getInputForward();
the problem is different.
If validator finds some errors it will go back to inpu
> >
> > I'll try your suggestion.
> >
> I tried \w+\s\w+ (plus instead of * in order to require at
> least one),
> and it still accepts more than two strings, e.g. "xxx yyy zzz"...
Are you including the special start of line "^" and end of line "$"
characters in your regular expression. Unless y
Thnx Niall but i don't understand how to set up that.
Here's my situation
i got one action MyAction.
and MyForm.
i have a very basic validation
MyAction if has parameter="Submit" it will do prevalidation stuff like
loading beans to populate fileds otherwise it will let ActionForm validate
and exe
This sounds easy, but I couldn't figure out how?
Suppose I have two resource files for two locales:
OnlineResource.properties (for default locale)
OnlineResource_it.properties (for locale Italian)
In my jsp, I can use to retrieve the default locale value
for myKey, then how to retrieve the pro
--> Since version 1.1, the regular expression must start with a ^ and
end with a $ (see example below).
(http://jakarta.apache.org/struts/userGuide/dev_validator.html)
> -Original Message-
> From: Leonard Sitongia [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 10:55 PM
> To: St
Hey your welcome.
Niall
- Original Message -
From: "Nimmons, Buster" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 10:48 PM
Subject: RE: using multiple error messages
> That was it... I just kept looking over it and never noticed
Hello!
I want to display a JSP when a user clicks on a link on a previous
page. The JSP has a form that must be populated with data before being
displayed for the first time. How can I populate the form before
showing it?
Yours
Miguel Arroz
Hi All,
I have one combobox in my Jsp:
(It´s work very well!!!)
I want to mark up that specific option with SELECTED -
How do I do this ?
I have an object that contains the value of the
attribute numBanco on my request.
For example:
BB
BB2
BrB <--- I want
that opti
Is there a way to include html pages that are residing on a different server using
tiles framework?
I am declaring my definitions in xml configuration file:
http://localhost/test.html";>
I get following error when I execute this page:
[ServletException in:http:
That was it... I just kept looking over it and never noticed the missing
taglib directive... Thanks for your patience and help
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 4:12 PM
To: Struts Users Mailing List
Subject: Re: using multiple er
Answer: It won't work. I suppose you might get lucky if both instances use
*exactly* the same configuration, but then there wouldn't be any point to
doing that in the first place. Struts stores almost all of its config data
in the servlet context, so if you try to have more than one instance,
they'
The only thing I can see is the bean taglib is missing from your jsp
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
Niall
- Original Message -
From: "Nimmons, Buster" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 9:59 P
here is the snippet of code which produces the ActionErrors object
Long id = new Long(System.currentTimeMillis());
ActionErrors errors = new ActionErrors();
errors.add( ActionErrors.GLOBAL_ERROR, new
ActionError("error.folders.po.saveFileException",id.toString()) );
saveErrors(
On May 11, 2004, at 2:52 PM, Leonard Sitongia wrote:
On May 11, 2004, at 2:44 PM, Leonard Sitongia wrote:
I'll try your suggestion.
I tried \w+\s\w+ (plus instead of * in order to require at least one),
and it still accepts more than two strings, e.g. "xxx yyy zzz"...
This worked:
^\w+\s\w+$
Well, works for me and dubugging your stuff without seeing your code is
difficult.
Niall
- Original Message -
From: "Nimmons, Buster" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 9:44 PM
Subject: RE: using multiple error messages
On May 11, 2004, at 2:44 PM, Leonard Sitongia wrote:
I'll try your suggestion.
I tried \w+\s\w+ (plus instead of * in order to require at least one),
and it still accepts more than two strings, e.g. "xxx yyy zzz"...
-
To unsubs
Do that kind of validation in your Action rather than ActionForm, that way
you can use the struts exception handling.
In the Action's execute method
if (errors from Business Delegate) {
ActionErrors errors = new ActionErrors();
errors.Add();
saveErrors(request, errors);
return map
I do in fact have and on the page to test for the existence
of errors and it does display the errors
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 3:44 PM
To: Struts Users Mailing List
Subject: Re: using multiple error messages
It only ou
On May 11, 2004, at 2:39 PM, Robert McBride wrote:
That regualar expression will only match exactly one word character
then one whitespace character
then another word character. (A word character is in the set of
a-zA-Z0-9_)
Thanks, I appreciate your reply.
\w\s\w has been working for me for s
It only outputs the headers if there are messages - are the message keys in
your application resources? If you put on the same page do
you see the error messages correctly?
Niall
- Original Message -
From: "Nimmons, Buster" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL P
Hello!
Here is my problem:
On ActionForm validate method i have a BusinessDelagate who access some DAO
resources.
Because of that, probably my businessdelegate will throw some kind of
exceptions i.e. MyDAOException.
Is there any kind of solution to handle such exceptions?
On Actions i can catch
Leonard,
Lets see if I can help, I hope my regex skills aren't totally rusty.
That regualar expression will only match exactly one word character then
one whitespace character
then another word character. (A word character is in the set of a-zA-Z0-9_)
Try using this regex ^\w*\s\w*$ hopefully i
Sathish,
What you probably will want to do is use the Struts logic:iterate and
bean:write tags to generate the array *within* the JavaScript function.
Thnx a lot!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You could subclass the ActionServlet with your own instance that in its init
method reads the properties file...
I think this should do the trick, please fix the path when necessary:
Properties properties = new
Properties().load(MyActionServlet.getClass().getResourceAsStream("ApplicationResource
I'm using Struts 1.1. I have an html:text input field.
I'm trying to constrain the input field to be two strings separated by
a space.
I have tried
\w\s\w
but that allows two *or more* strings separated by spaces, such as "xxx
yyy zzz".
I have tried using the boundary matchers,
Hi, I was wondering if there's a chance to read the
ApplicationResources.propoerties file outside the struts frame work (a
servlet) and what the best way to do so.
Thanks
Hi all,
I have a problem, I have deployed my application on
JBoss3.2.3. While accessing a method of stateless
session beans from war module, it gives the following
exception:
5:40:42,102 ERROR [DispatchAction] Dispatch
[/manutencaoDeficiencia] to method pesquisarTodas
returned an exception
jav
The code suggested below seems to work as far as displaying the appropriate
header message if errors are present but none of the actual error messages
get printed.. any ideas why
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 11:19 AM
To: Str
Well, for anyone following my posts over the past few days, I now have a
rather useful little file manager application working. Just the bare
minimums at the moment (file system hierarchy traversal, all drives on the
system accessible, downloading files, deleting and renaming files and
directo
We capture and persist this information as well, but are not so
concerned about the small percentage that actually don't completely
download the file. If this is one of your requirements, then it
appears you may have a valid solution.
robert
> -Original Message-
> From: John Moore [mailt
John Moore wrote:
Neat! Yes, this is the way. Thanks Niall and Robert too.
I just recalled one of the reasons why I wanted to do it the way I did.
In my original version, where I actually handle the file download, I
record in a database what has been downloaded by whom and when, which I
can do
Oh sorry, i misreported. I am getting the following error from my app.
May 11, 2004 12:30:38 PM org.apache.struts.util.PropertyMessageResources
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true
May 11, 2004 12:30:54 PM org.apache.commons.validator.Validato
Is there anything else I need to do besides replace my
validation-rules.xml? I still can't get it to work after updating my
validation-rules.xml I went to revision 1.34 because when I tried the
latest revision I was getting errors from the validator. 1.34 has no
problems (except validwhen won't w
Jesse Alexander (KXT) wrote:
use a certificate. validation of valid-timerange is almost free.
And that's what I decided to do.
I get a cert from a keystore and check its validity. I catch
'CertificateExpiredException' and 'CertificateNotYetValidException' and
output error messages accordingly.
You know, it's kinda funny you mention it but the past few days I actually
HAVE been having fun learning Struts! After havng my head in the clouds
architecting large systems and having to do so based on homegrown framework
solutions that are less than optimal (and that's being very polite!), St
Niall Pemberton wrote:
I don't believe you can (although I would be interested if there was a way).
How about doing it the other way round, forward to your page with the
instructions on and use the meta refresh tag to redirect to your download
action. Something like this:
Download Page
I don't believe you can (although I would be interested if there was a way).
How about doing it the other way round, forward to your page with the
instructions on and use the meta refresh tag to redirect to your download
action. Something like this:
Download Page
If do
John, we have a similar process where by we allow a customer to download a file.
Instead of the Struts handling the actual downloading, we direct the user to
the informational page for the file. That page contains either javascript or
a meta-refresh tag which redirects the request to the file to be
Woops I just reread your message and noticed that I missed that part. But you
found it, so nice job.
Have fun strusting
On Tuesday 11 May 2004 10:13 am, None None wrote:
> Wow, it really is that easy, isn't it?!? :) The only problem is that, as I
> understand it, this will check if the myList B
> So, my question simply is what tag can I use, and
> with what syntax, to check if a collection in a bean
> is null before starting my logic:iterate tag? I of course
> found logic:equal. but it doesn't seem like it would do
> what I want. logic:notEmpty or maybe logic:notPresent
> might be
Anyone...help?
> Platform websphere/struts 1.0 (updating to 1.1 out of question)
>
> Question: Are there any draw backs of declaring multiple controller
> servlets in one web app ??
>I've heard that it is not recommended because they will share the
> same servlet context which will ca
Wow, it really is that easy, isn't it?!? :) The only problem is that, as I
understand it, this will check if the myList BEAN is present, I actually
need to see if a given property of a bean is null. I answered that part
myself though... there's a property attribute, just like logic:iterate, an
logic:notEmpty is the correct answer
Paul
Global Equity Derivatives Technology
Deutsche Bank [/]
"None None" <[EMAIL PROTECTED]>
11/05/2004 18:03
Please respond to "Struts
...
...
...
On Tuesday 11 May 2004 10:03 am, None None wrote:
> Hi folks... this should be a simple one, but I've been reading for about 30
> minutes now without finding the answer...
>
>
Hi folks... this should be a simple one, but I've been reading for about 30
minutes now without finding the answer...
I have a collection that I iterate over with logic:iterate, building a
table... normal stuff... problem is, the collection might be null, which the
tag handles just fine, except
I suppose what I am trying to do is impossible, but I just wanted to
make sure. I have a link where people can download a file, which is
handled by a DownloadAction. Below is the relevant code to download the
file, from the execute method. What I want to have happen is that, when
the file is do
Josh Cronemeyer wrote:
A kludge eh? Well, I've got one for you. Perhaps we can compare
kludges to see who has the ugliest one.
Now that's fightin' talk! NO-ONE does uglier kludges than me! :-)
I used this devious little tag: . It allows you to store as a
variable the evaluated result of ano
By default it looks for action errors under the same key as
does (Globals.ERROR_KEY) or you can specify a message="true" attribute which
causes it to look under the Globals.MESSAGE_KEY instead, or you can specify
your own key with the "name" attribute.
The id is something different, you specify a
Anthing you want, it stores each message under a page context attribute
that you name in "id"
- Original Message -
From: "Nimmons, Buster" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 4:54 PM
Subject: RE: validwh
Sorry I replied to the wrong post earlier I noticed the API
documentation stated that the messages tag could Iterate over the
ActionErrors but does not say what the ActionErrors bean is saved as so I
don't know what to specify in the id attribute.. Does struts define a
constant somewhere defini
I did do something along the lines of using patterns and posted a patch, but
it had limitations and didn't go anywhere:
http://issues.apache.org/bugzilla/show_bug.cgi?id=26151
I would like to revisit it at some point, but in the mean time I used a
regexp validator instead:
integer_com
what do I specify as the id to iterate over the ActionErrors in the page
scope
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 10:48 AM
To: Struts Users Mailing List
Subject: Re: validwhen validation
I was under the (mistaken) impression it
I am using a page with frameset (frameset.jsp) and tiles definitions for
the frameset and each of two frames.
I have an action that submits a value in one frame (entry_frame-jsp) and
sends it to another frame (list_frame.jsp). I get focus on the
that does the submitting. However, I cannot ge
I recently installed the latest struts package. I installed struts to
Tomcat 5.0.19 and I'm having problems deploying the struts-blank.war.
I get the following message when I visit the struts-blank index page
type Exception report
message
description The server encountered an internal error
I was under the (mistaken) impression it had shipped with 1.1 - but seems it
was removed for the 1.1 release and then added back in after. You can find
the current validation-ruls.xml in CVS here:
http://cvs.apache.org/viewcvs.cgi/jakarta-struts/conf/share/
or if you download a nightly build, it
The tag does exactly what you want - you can specify the
header/footer/suffix/prefix as attributes on the tag:
http://jakarta.apache.org/struts/userGuide/struts-html.html#messages
Niall
- Original Message -
From: "Nimmons, Buster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent:
Is there any way to use validwhen yet? I would really like to use it,
but it isn't in my validator-rules.xml, and I can't find a
validator-rules.xml version anywhere that includes it.
thanks in advance
-
To unsubscribe, e-mai
Return Receipt
Your document:strip white space, empty lines in html source
Is there a way to
strip white space, empty lines
generated by the struts-taglib classes ?
Thanks
Panchasheel Gandle
Gandle, Panchasheel would like to recall the message, "strip white space, empty lines
in html source".
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Is there a way to
strip white space, empty lines
generated by the struts-taglib classes ?
Thanks
Panchasheel Gandle
On Mon, 2004-05-10 at 16:40, John Moore wrote:
IN the meantime I've got around it with what I regard as a kludge, but
I'll be getting back to the point again in a couple of days.
A kludge eh? Well, I've got one for you. Perhaps we can compare
kludges to see who has the ugliest one. I have wan
That's what I was figuring I was going to have to do but I just wanted to
make sure there was not a more intuitive way... Thanks
-Original Message-
From: Daniel Perry [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 8:10 AM
To: Struts Users Mailing List
Subject: RE: using multiple err
Not sure if there is a better way of doing this, but my suggestion would be
have no error.header entry, and instead have:
error.systemheader
error.applicationerror
with the two entries you gave, and always add one of those to the error list
first.
Daniel.
-Original Message-
From: Nimmon
currently my ApplicationResources.properties file contains the following
errors.header entry
The following error occurredYou must
correct the following error(s) before proceeding\:
this is fine for application errors. However I would like to define a
different header for System errors so I may su
eh?
i can use more than one!
You can only have one with no key attribute - (that should be the one with
the errors in it). ie:
Daniel.
-Original Message-
From: Normanjaisingh pauldurai [mailto:[EMAIL PROTECTED]
Sent: 11 May 2004 13:36
To: [EMAIL PROTECTED]
Subject: Clarification Nee
If u specify more than one message resources file, only the last message
resources file is loaded. Isn't this a bug in struts 1.1?
From: "Daniel Perry" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: U
Hi,
Does exist a free solution in Java to convert rtf documents to pdf documents
(using XSL:FO and FOP - or not), or the only one is the www.rtftofo.com ?
[]´s
Henrique Viecili
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
I did try the below option. Even then it doesn't work!
Any updates
Will it be a problem with struts-modular approach???
From: "Daniel Perry" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Ur
Well, I suppose it wouldn't hurt to post it here. Some time ago (after the
official 1.1 release) someone (sorry, I don't remember who) posted an issue
to bugzilla about this.
Let's say your application is using dispatch action, and you have
a link on a page that looks like this:
http://www.myser
Just want to know if some has an extension for the Validator
on the problem of some non US states, which uses comma
separated floats, doubles.
Thanx
Rouven
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
There are two possibilities here based on whether the form is request or
session scoped.
If the form is request scoped then you need not worry about it as a single
request gets a single thread and so threading issues are not of concern with
regards to the form being used for the request as each re
Hello i can't understand if ActionForm is threadsafe.
will all my attribute instance will be safe?
On RequestUtils i saw :
/**
* Create (if necessary) and return an ActionForm instance appropriate
* for this request. If no ActionForm instance is required, return
* null.
**/
public static ActionF
Hi,
I missed some mails coz I was away
Did anyone replied to this question?
I guess there was one guy (Hubert Rabago if I m correct)
That has done something similar
Regards
marco
-Original Message-
From: Steve Lewis [mailto:[EMAIL PROTECTED]
Sent: 30 April 200
Hi,
Wild guess (not so wild, It happened to me more than
One time)
The fact that you declare your form (ticketForm I suppose) thru
Struts tag does not make it
'visible' to scriptlet code
so, you would have do do
<%
DynaActionForm ticketForm =
(DynaActionForm)request.getAttribute("
>FYI: I don't use message resource in this context.
well there's your problem :)
You need to have the error messages in a message resource available to both
modules, so you need to add it to the second config file.
Daniel.
-Original Message-
From: Normanjaisingh pauldurai [mailto:[EMAI
Hi,
> Actually, my requirement is to populate the actionerrors object in
a Actionclass and display it in the JSP using tag.
I'm pasting the code which i use below:
In struts-config.xml i've the following:
-
---
Hi!
My apologies.
Only now I realised that I had not changed the subject line.
Will do as advised.
Thanks,
*Richie*
Jesse Alexander (KXT) wrote:
Hi,
he did not really implement https into his app...
He just used the date-validation with an immutable key (the cert). For
this he needed just two tin
hi all
i have a reg in my module that i should pass array
from jsp to javascript function.how to do that?thanx
in advance
sathish
__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/ca
Hi,
he did not really implement https into his app...
He just used the date-validation with an immutable key (the cert). For
this he needed just two tiny parts of the "https-stuff": How to fetch a
certificate from a keystore. and How to check for validity of a cert.
Maybe you should open a new th
Hallo Richard,
I use the same computer, no network connection, no cpu utilization ratio <
5%. The PC is an 1.5 MHz CPU with 512MB RAM.
Regards,
Ralf
-Ursprungliche Nachricht-
Von: Richard Yee [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 10. Mai 2004 18:36
An: Struts Users Mailing List
Bet
86 matches
Mail list logo