Hey James,
Why not nest your form beans inside another, main form bean? Then you could
access them using dot notation mainBean.thatBean.thisProperty,
mainBean.someOtherBean.thatOtherProperty, etc.
Regards,
David
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Tu
The technical answer to your question, if it is taken literally to be about
the client side, is that with HTML you can only have the values of one form
on a response page submitted with a request from the client. If you are
thinking truly about submitting multiple forms on one page, why not jus
Could you please restate (or at least clarify) your question?
I don't think I fully understand what you are asking.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users M
Is there a clean way to have multiple Forms posted when the user click
the Submit buttons ?
Basically, instead of extending various Forms to have some code re-use
I think it would be much more interresting to have the possibility to
post multiple Forms instead of having a Specific form extendi
The application we are currently building is bi-lingual : French & English
If we are rather please by the Mulilingualism support offered by Struts,
we need to allow a (say) German native speaker to choose another
language than the default we set (typically choose French instead of
English).
How
wouldn't something like this do what you're talking about?
try {
Transport.send(msg);
} catch (Exception e) {
ActionMessages errors = new ActionMessages();
errors.add("mail",new ActionMessage("mail.pearshaped.error");
saveErrors(request, errors);
}
On 18 May 2004,
There's an old IBM article illustrating this.
http://www-106.ibm.com/developerworks/java/library/j-integrate/
Keep in mind this article was written before the final release of JSF.
If you're looking for the nightly build of the struts-faces integration
library, there's an open bug report concernin
Is anybody using Faces, Struts, and Tiles ?
I found an article pointing me to :
http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/
Unfortunately, every file on this directory has nothing on it.
Can anyone tell me , or provide me a link to integrate struts, tiles, fac
Satish,
The problen occurs because of the "indexed" getter/setter. if you change
the name from getStatus(int Index) to getOneStatus(int index) (or some
different name that you like). The problem will be resolved.
The indexed getter is used by Struts when your form is submitted.
Nick
Daniel, we have several applications (both web and others) which send email for
various reasons.
We queue up the email messages in a database and allow a separate process to sift
through
the queue (every 30 seconds) and send any unsent messages.
This way we avoid the threading issue in the appl
Hello List,
Validation works great! However, we don't want to allow people to enter
Style data into our forms. I'm happy to just make < > illegal characters
using a regex mask, but the SAX parser won't parse my validation.xml file.
Does anyone know how to escape < > characters in the validati
Hello List,
Validation works great! However, we don't want to allow people to enter
Style data into our forms. I'm happy to just make < > illegal characters
using a regex mask, but the SAX parser won't parse my validation.xml file.
Does anyone know how to escape < > characters in the validati
Hi,
I have tried a lot of stuff but I am still getting the same
exception..need help...
I am getting the following exception
[ServletException in:/jsp/qa/mytc/mytcview.jsp] No getter
method for property status of bean testResultForm'
javax.servlet.jsp.JspException: No getter method for property
st
daniel,
perhaps here are some more ideas for you:
http://jakarta.apache.org/commons/sandbox/email/
Cheers,
Matze
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 18, 2004 6:55 PM
> To: Struts Users Mailing List
> Subject: RE: sending emails from a
Right.
Have been a little dumb - had some cases where this seemed to be happening.
Got some errors in tomcat logs from users clicking stop part way through
somthing. On closer inspection it is because the action is outputing a pdf
itself directly.
Now knowing that the action will always complete
> This is what i want to acheive. I cant have the user
> submitting a request, and then stopping it part way through.
This is what you get.
The browser simply says, "Do this". And you do. There is no Mechanism
for the user to say, "No! Stop! Don't!". You may never get the request
if there is a
Simply make your action servlet spawn a thread to perform the action/send
the mail atomically. The easiest way is to make your mail sending class
extend the Thread class, create a new instance and run it.
Paul
Global Equity Derivatives
JavaMail - no problem... found loads of examples.
With regards to the canceling of requests, i'm not sure what you're saying -
are you saying
1. your code will stop on browser cancels and there's nothing you can do
or
2. you're code will always finish running even if the user cancels (tho
obviousl
> I need to send out emails from a struts app.
>
> Any comments on the best way to go about this?
Yes, use JavaMail:
http://java.sun.com/products/javamail/
http://www.j2eeolympus.com/J2EE/JavaMail/JavaMail.jsp
>
> As sending mail can be slow, is there an easy way to do this in the
> background?
I need to send out emails from a struts app.
Any comments on the best way to go about this?
As sending mail can be slow, is there an easy way to do this in the
background?
What happens if a client cancels a request part way through? is there any
way to handle this / ignore cancels?
Daniel.
--
ARGH... I found my problem... simple typo in my message resouce file... the
html:errors tag just wasn't finding the right key for one of my errors, and
thus wasn't displaying anything, making it look like I was only gettiing
one. Sorry folks, false alarm :)
From: Iván Rodríguez <[EMAIL PROTEC
Rick,
I would suggest having that page submit to another action path that maps
to the same Action and Form you need, but with the validate option set
to false. This is the tactic that I normally use. It allows you to
keep your code base intact, but submit to a customized path.
Michael
-Ori
I came across that, but I'm getting the following error:
javax.servlet.ServletException: Cannot find bean error in any scope
Does the ActionErrors object get set as another name? I'm using Struts 1.1,
everything I'm reading seems to agree that it should be named "error"...
From: Iván Rodríguez <
Try:
- Original Message -
From: "None None" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 5:32 PM
Subject: Validation problem
> Hello again... I'm playing with validation for the first time, and I got
it
> almost working completely, one
Hello again... I'm playing with validation for the first time, and I got it
almost working completely, one remaining problem...
In my ActionForm validate() method, I am checking two elements for errors,
In my test case, both should be getting flagged as incorrect (and they are,
I can see that
check in web.xml documentation. There you specify which realm an application will
check for user-authorization.
Then you have to connect each realm to some java-classes that implement it within
JRun...
hth
Alexander
-Original Message-
From: Andrea M. [mailto:[EMAIL PROTECTED]
Sent: Dien
Thank you Ivan, now it works fine!
- Original Message -
From: "Ivan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 11:14 AM
Subject: Re: Validator - not passing params to message
> correction :^)
>
> 2)
>
> ---> Password
An update:
My attempt to forward from action to action failed.
These are the mappings for the actions involved.
I tried to replace
with
but somehow the MultiFindNameAction's execute method is apparently called
with the ActionFo
Could you provide an example of how to do it?
I think if it's a matter of application configuration then the appserver
should not make any difference, as long as I use jdk 1.4 and j2ee 1.3
-Messaggio originale-
Da: Sean Radford [mailto:[EMAIL PROTECTED]
Inviato: martedì 18 maggio 2004 1
correction :^)
2)
---> Password
---> 6
minlength
6
...
> - Original Message -
> From: "Henrique VIECILI" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 18,
1)
2)
minlength
6
...
- Original Message -
From: "Henrique VIECILI" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 3:24 PM
Subject: Validator - not passing pa
Hi Julio,
Since the ApplicationResources.properties is a Property File, you can read it
and use the java.util.Properties class to load this properties and the
java.text.MessageFormat class to format and display the messages.
// this code is to load the ApplicationResources.properties into a Prop
Julio:
Look at Riyad Kalla's answer to this question under the thread:
Accessing ResourceBundle items from Action class
Geeta
> -Original Message-
> From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 18, 2004 9:42 AM
> To: 'Struts Users Mailing List'
> Subject: how
You can find them at
http://www.displaytag.org
and
http://cewolf.sourceforge.net/
-Messaggio originale-
Da: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Inviato: martedì 18 maggio 2004 15.05
A: Struts Users Mailing List
Oggetto: Re: R: Struts Taglib recommendations
Andrea M. wrote:
>Other
It just so happens that I just wrote an answer to in response to a
different email.
At 8:18 AM -0500 5/18/04, Joe Germuska wrote:
It works find on Tomcat 5 because JSP 2.0 works around the maximum
method-length limitation. Weblogic 8.1 is still J2EE 1.3 (Servlet
2.3/JSP 1.2).
I'd suggest usin
At 3:28 PM +0530 5/18/04, Jignesh Patel wrote:
Well, We solved the problem, there is a one file commonspool.jar which is
missing.
Once we added in war file it worked fine.
But then we started getting another error as given below(ie. try block too
large), which is because of big size of jsp page. Bu
What's the best way to create a MessageResource object that loads the
ApplicacitonResources.properties outside the struts framework (for eg.
In a servlet)?
Thanks
Ok, then you can filter what comes from your ActionServlet.
You don't "filter properties", but requests and response.
You tell to the actionservlet that all the requests are from iso-8859-9
forms.
In alternative you might convert your file with native2ascii tool
I found something that might be of
Hi,
I am testing the commons-validator and I have two questions:
1º) How to generate client side (javascript) validation using the Validator? Do I have
to put some special tag?
2º) I put all the messages like 'errors.required' in my app resources properties file,
but Validator seems not to be
I actually went the plug-in route, that seems to work very nicely. Is there
any benefit of a ContextListener vs. a plug-in? The only obvious one that
comes to mind is that a plug-in is Struts-specific, so your tied to that
framework, but that seems a pretty smalll consideration since there's p
Joe,
You be da man!
Thanks.
Frank
- Original Message -
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 1:56 PM
Subject: Re: Help with using declarative error handling
> At 1:58 AM +0100 5/18/04, Frank Burns wrote:
"Adams, Richard K" <[EMAIL PROTECTED]> wrote on 05/18/2004 08:34:16
AM:
> I am running Struts 1.1 on Tomcat 4.1.24. How can I use the
> validator to use just the current page, and not all pages <= current
> page. I am using Tiles with a tab structure so each Tile is it's
> own page number. W
I'm using Struts 1.1, and trying to use the commons file upload version
1 package (from http://jakarta.apache.org/commons/fileupload/index.html
) to handle
file upload request in my application, yet I seemed to always get an
empty List from the parseRequest function of the
org.apache.commons.fileu
At 1:58 AM +0100 5/18/04, Frank Burns wrote:
This seems simple enough. So why doesn't it work?
Because the default ExceptionHandler class saves its own error
messages into the request under the same key that Action.saveErrors()
uses, overwriting the reference to the errors that you saved.
http:/
Andrea M. wrote:
Other taglibs that might be of interest for you are
Displaytag for automatic generation of html tables, with paging and sorting
CeWolf: for charts generation
Jakarta String: for string manipulation
etc
There are many more to be used.. those are the ones I've been using most so
far
Andrea,
Content type of the pages is ok it is iso-8859-9,
but when i use
tag to display my errors,
some characters are not properly displayed.
Maybe there is a way to filter the strut tags to accept requests in given
character encoding??
or must I somehow filter the encoding of .properties file??
Hi list
I'm trying to use the options tag and am stuck with this problem:
I hold all 'Model' information in a single model object in the HttpSession.
Initialization for the Collection used by the , held in an
ActionForm, must come from there (first time the view that uses that form is
displayed).
Hi,
havent got a soln to this problem so fari am posting this again hoping
somebody would help me out
one more fact is that i cannot modify the jsp as such as it is being
generated by a tool
thanks
rahul
-Original Message-
From: Rahul Mohan [mailto:[EMAI
Ramil
I don't think you need to filter your properties
You display your errormessages thru your jsps, so Having iso-8850-9 encoding
set in your jsps should be enough
-Messaggio originale-
Da: Ramil Mirhasanov [mailto:[EMAIL PROTECTED]
Inviato: martedì 18 maggio 2004 14.40
A: Struts Users
Andrea,
I need that error messages are displayed properly in iso-8859-9 encoding,
as all my classes and jsps.
My error messages are stored in ApplicationResources.properties file.
I will be gratefull if you help!
Ramil
- Original Message -
From: "Andrea M." <[EMAIL PROTECTED]>
To: "'Struts
I am running Struts 1.1 on Tomcat 4.1.24. How can I use the validator to use just the
current page, and not all pages <= current page. I am using Tiles with a tab
structure so each Tile is it's own page number. When I select a tab, I just want the
validation to work on just the current page,
Hi Ramil
I don't quite understand what you are trying to achieve
Why should you want to filter properties?
-Messaggio originale-
Da: Ramil Mirhasanov [mailto:[EMAIL PROTECTED]
Inviato: martedì 18 maggio 2004 12.46
A: Struts Users Mailing List
Oggetto: Filtering ApplicationResources.prop
"Rahul Mohan" <[EMAIL PROTECTED]> wrote on 05/18/2004 01:36:19
AM:
>
> Hi,
>
> I have a JSP page with Struts and JSTL tags. It is
> pretty big with about
> 15 conrols and a *LOT* of JSTL tags. When I try host the page in
Weblogic8.1
> i get the following compile error:
>
>win
Why that?
I use currently Struts + JSTL
Actually the only struts taglib I use is html or html-el
What have "using the mvc" and "build 3 tier" to do with using struts taglib
vs JSTL???
-Messaggio originale-
Da: Rosenberg, Leon [mailto:[EMAIL PROTECTED]
Inviato: martedì 18 maggio 2004 14.0
That depends. If you want to use the mvc from struts then use struts taglibs. If you
build a 3 tier use struts taglibs. If you want manageable jsps use struts taglibs.
Otherwise use jstl or struts-el.
:-)
Leon
> -Ursprüngliche Nachricht-
> Von: Linus Nikander [mailto:[EMAIL PROTECTED]
>
Hello All,
I want to set up the class path to one of my property files on the disk
on Oracle 9ias.
Any idea how this can be done using OC4j
Thanks,
VJ,
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Hi
As somebody else suggested JSTL may be what you want
One of the most used implementation is jakarta's one (standard taglib)
There are 2 versions:
Standard 1.0 that works with JSP 1.2 and servlet 2.3
Standard 1.1 that works with JSP 2.0 and servlet 2.4
I've replaced almost all of struts taglibs
Hi Samuel,
I'm not sure why the input couldn't accept pages and forwards within one
application. That's probably a good question for the major contributors to
the framework. For the struts-config.xml file Ted Husted's book, "Struts
in Action", is a good reference that I have used . The boo
My advice (from experience) would be to go with jstl.
just one value attribute instead of name and property:
name="beana" property="beanb.beanc"
...becomes...
value="${beana.beanb.beanc}"
The choose tag with multiple whens makes jsps a lot less messy. No longer
need to make complicated nestings o
Hi,
I want to ask you,
how is it possible to create mapping for filter and *.properties??
So that character encoding filter would apply for
ApplicationResources.properties file.
I have allready done filtering for Actions, by modifiying web.xml:
Set Character Encoding
action
My
Point taken ;)
>From what I know right now we'll be using taglibs mostly to iterate and
display collections of beans. There might be some logical branching (
equals, bigger than, smaller than ) involved. I've used the struts taglibs
extensively but find some parts of it, beans nested several level
Well, We solved the problem, there is a one file commonspool.jar which is
missing.
Once we added in war file it worked fine.
But then we started getting another error as given below(ie. try block too
large), which is because of big size of jsp page. But which works absolutely
fine on tomcat. We
I started out using struts-logic, struts-html, struts-bean, but i have
recently found JSTL1.1 to be a nicer alternative.
So, i generally use JSTL core (with JSTL formatting, and JSTL functions
where necessary) and struts-html-el for actionforms, etc.
Daniel.
-Original Message-
From: Andr
Never used jrun but on the other app servers I have used (and prefer
jboss) you can independently configure each app as to which JAAS realm
to use.
So, sorry don't think I can be of more help. Anyone else out there know
jrun?
Sean
On Tue, 2004-05-18 at 10:18, Andrea M. wrote:
> Yes
> I need app
That's a pretty vague question
There's plenty of taglib out there
Please specify what you are looking for, cause I don't think you'll find
people here writing you a comprehensive list of all of the taglibs existent
:)
Andrea
-Messaggio originale-
Da: news [mailto:[EMAIL PROTECTED] Per co
Yes
I need application A using module 1
And application B using module 2
I need isolation, so A cannot access m2 and B cannot access m1
In Jrun actually I can configure jaas modules for users and roles, but
that's server instance wide.
I'm pretty new to JAAS, and I don't know if I have to find a wa
My web.xml is version 2.4. This was one of the first things i changed to
try and fix the problems!
So, why do i need to set the struts taglibs, but not the jstl ones?
Where does it find these taglibs otherwise?
As i'm now referencing jstl core as:
http://java.sun.com/jsp/jstl/core
does this me
Has anyone made a comparison of the various taglibs out there that can be
used with struts ? I'm about to start working on a project and have been
asked to evaluate our options. Which taglib (or combinations of different
taglibs) do you use when developing ? What are the advantages of one over
anot
Each application just logs into a different JAAS realm (each of these
has its own stack of login modules, but sounds like you only need one
per realm).
Hope that guides you a little.
regards,
Sean
On Tue, 2004-05-18 at 09:22, Andrea M. wrote:
> Hello all
> I've got a dilemma trying to implemen
Hello all
I've got a dilemma trying to implement JAAS in my struts applications.
This is the problem:
I have more applications running in the same instance of the appserver (jrun
4 in my case, but I think the same thing is applicable to the others).
Each application has its own database with its o
I don't know whether struts is having any readymade classes or not.
But what your are trying to create is fairely simple
create a listener which listens session expiration event by extending class
HttpSessionListener.
In the sessionDestroyed method, do the operation which you want.
-Jignesh
If I don't miss my guess, it sounds like you want to do what declarative
security would do for you.
Any protected page gets redirected to a login form.
After successfully logging in, the user is redirected to where he wanted
to go in the first place.
This isn't struts specific, but it does work w
Hi
I see no reason of losing the session while opening a JSP in a new pop up
window.
Try this
test2
or
window.open("/test2.jsp","test2");
I am pretty sure that no session variables are lost while opening a JSP in
a pop up window.
Harjot
- Original Message -
From: "grati_a_lozano" <[
Hi
I am using struts framework in an application.
When any JSP times out, we cache the parameters and the request and
then forward the request to login page. After authentication, the cached request
and parameters are used and the control is redirected to the original request.
We are using websp
74 matches
Mail list logo