Looking at the original post, where you showed your struts-config.xml and
validation.xml - you're using the wrong flavour of Dyna form...
1) DynaValidatorActionForm validates according to the Action Mapping's path
So in your validation.xml you would have three forms as follows...
Well... you shouldn't really combine the two. There is an overhead of an XSL
transformation (Even when you cache the template). If you really want to do
something then you would do the transfomation and place the result in the
request for the JSP to retrieve and present.
have a look at the xtag library (it's well documented) :
http://jakarta.apache.org/taglibs/doc/xtags-doc/index.html
Le Mardi 23 Novembre 2004 06:41, Nishant a écrit :
hi to all,
i am using tomcat apache with struts...
in my java beans i am storing the xml information in String.
now i hav
Yeah , I know and that´s exactly what would like to have with tiles.
I´ve been searching the old messages and found that once Nicolas de loof
developed such a patch but it does not come with *any* documentation.
Hey, Nicolas, are you there?
Julio Cesar
-Mensagem original-
De: news
Hi,
I have a requirement to allow the user to view log files in the main body
tile when they click a certain menu item in the 'menu tile'.
I see on the archives that the normal way to do this is to stream the file
to the response and then return null from the action. What's the approach
taken
Here I am !
I submited a patch for this in
http://issues.apache.org/bugzilla/show_bug.cgi?id=31034
They're is no *pretty* doc on this (tutorial or sample) but you can look at
bugzilla comments for simple usage :
wildcard in struts-config.xml :
action path=/Test*
Hi,
I have a form-property like so:
form-property name=PropertyName type=java.lang.String[] size=5/
Which is populated by the following in my jsp page:
logic:iterate id=element name=MyForm property=PropertyName
indexId=counter
tr
td class=firstColbean:message
RegistrationAction extends WizardAction which extends
LookupDispatchAction. I'm not overriding validate anywhere in my code.
WizardAction is just a simple abstract LookupDispatchAction that
handles things like next and previous.
-jeff
On Nov 22, 2004, at 9:55 PM, David G. Friedman wrote:
Setting the form bean type to DynaValidatorForm seems to trigger
validation. Thanks much.
In the logs I'm now seeing:
[java] 06:08:42,407 ERROR [DynaValidatorForm] No ValidatorAction
named required found for field firstName
[java] org.apache.commons.validator.ValidatorException: No
Yoour missing the validator-rules.xml in your strus-config - something
like...
!-- Validator PlugIn --
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml/
/plug-in
Niall
- Original
I have a simple DynaValidatorForm
form-bean name=categoryForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=description type=java.lang.String /
form-property name=name type=java.lang.String /
form-property name=id type=java.lang.String /
Hello,
can i use dynabean inside a jsp using jstl ?
i'm using struts 1.2.4
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Your action isn't executed if validation fails. However, the
validation is performed on a second request, so the object placed
into the scope before the form was presented is no longer there.
If your categories are really relatively static, consider managing
them in Application scope rather
At 4:20 PM +0200 11/23/04, Alpay Ozturk wrote:
Hi All,
I am having a problem with ActionMessages. When I create an
ActionMessages instance in my action and add ActionMessage objects to
it, it is not displayed in my result jsp. But when I create an
ActionErrors instance and add ActionMessage ojects
Sure, with a Dynaform called dynaLogonForm and a form-property of
email you would use somethng like:
c:out value=${requestScope.dynaLogonForm.map['email']}/
Duncan
Regards
Duncan Mills
http://www.goundside.com/blog
Mario Neè wrote:
Hello,
can i use dynabean inside a jsp using jstl ?
i'm using
andy wix wrote:
Hi,
I have a requirement to allow the user to view log files in the main
body tile when they click a certain menu item in the 'menu tile'.
I see on the archives that the normal way to do this is to stream the
file to the response and then return null from the action. What's the
Thanks Corey.
I found out what I had missed. I had to add this line
before calling mapping.findForwarding().
httpServletRequest.setAttribute(actionMapping.getAttribute(),
bForm);
Santosh, I hope this will work for you too.
Peter.
--- Corey Scott [EMAIL PROTECTED] wrote:
Peter and Santosh,
Thanks Corey.
I found out what I had missed. I had to add this line
before calling mapping.findForwarding().
httpServletRequest.setAttribute(actionMapping.getAttribute(),
bForm);
Santosh, I hope this will work for you too.
Peter.
--- Corey Scott [EMAIL PROTECTED] wrote:
Peter and Santosh,
Hi All,
I have difficulties to get my webapp running.
This is my first attempt to do more than training apps.
I use Struts 1.2.4, Tomcat 4.1.30, Linux.
The following exception occurs when calling TA.jsp directly,
before anything is visible on the screen:
-
i think this bug was fixed on release 1.2.6 (release date 22/nov). Check
it out.
El mar, 23-11-2004 a las 15:55 +0100, Rinnert, Wolfgang escribi:
Hi All,
I have difficulties to get my webapp running.
This is my first attempt to do more than training apps.
I use Struts 1.2.4, Tomcat
Paul Hepworth wrote:
Hi,
I have a form-property like so:
form-property name=PropertyName type=java.lang.String[] size=5/
Which is populated by the following in my jsp page:
logic:iterate id=element name=MyForm property=PropertyName
indexId=counter
tr
td class=firstColbean:message
Alexander Czernay wrote:
I have a simple DynaValidatorForm
form-bean name=categoryForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=description type=java.lang.String /
form-property name=name type=java.lang.String /
form-property name=id
Alpay Ozturk wrote:
Hi All,
I am having a problem with ActionMessages. When I create an
ActionMessages instance in my action and add ActionMessage objects to
it, it is not displayed in my result jsp. But when I create an
ActionErrors instance and add ActionMessage ojects to it, it is
displayed.
this is the error
Unable to find a value for map in object of class
org.apache.commons.beanutils.BasicDynaBean using operator . (null)
On Tuesday 23 November 2004 15:36, Duncan Mills wrote:
Sure, with a Dynaform called dynaLogonForm and a form-property of
email you would use somethng like:
Your action could read the log file, store the contents into a request
scoped attribute. The contents of this attribute can then be displayed in
the relevant tile.
Paul
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: 23 November 2004 14:40
To: Struts Users
My only problem with doing it this way is it changes the mime-type of
the file sometimes, which makes it harder for users to download.
Depending on the userbase you may or may not have this problem.
Matt
Paul McCulloch wrote:
Your action could read the log file, store the contents into a
JSTL is not DynaBean-aware but can work with Maps. However, you can use
DynaForms
because they implement a getMap() which you can then use with JSTL as such:
c:out value=${myDynaForm.map.property}/
robert
-Original Message-
From: Mario Nee [mailto:[EMAIL PROTECTED]
Sent:
Hi¡
I already know that this problem have been resolved before, but i can't find
the solution searching in this post. (Or solutions founded don't help me).
I have an action that generates pdf files, and zip them. And i want to download
it... but i have two problems:
-- File that appears in
Yes, it was on the list.
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 5:41 PM
To: Struts Users Mailing List
Subject: [OT] Re: ActionErros ok but ActionMessages fail
This is totally off topic - but did Joe reply to you personally, or
Mario Neè wrote:
this is the error
Unable to find a value for map in object of class
org.apache.commons.beanutils.BasicDynaBean using operator . (null)
Mario - we would need to see your (relevant) code in order to help with
this. Also, a copy of the stack trace for the error never hurts.
Matt
Rajesh,
Just to complement Eddie Bush's assistance.
The Struts controller setup in the MVC does some data mining the
ActionForm and then passes off to different actions for different
business logic and to different ActionForwards for different
presentation. Thus, if you are clear about what
As you no doubt see, Paul's solution is for viewing in the browser and
Matt's is for downloading to the client. You can do both if you like.
Just make the file in the browser per Paul the button for downloading
the file to the client per Matt. You can have the button do a popup
which then shows
DynaActionForm, which implements DynaBean, contains a getMap() method;
however, DynaBean does not expose the backing Map in a public property.
To use a DynaBean with JSTL, you could create your own extension that
exposed the protected 'values' HashMap using a public getter method.
-Bill
It works with org.apache.struts.action.DynaActionForm which exposes a
getMap() method
Regards
Duncan Mills
http://www.goundside.com/blog
Mario Neè wrote:
this is the error
Unable to find a value for map in object of class
org.apache.commons.beanutils.BasicDynaBean using operator . (null)
On
javax.servlet.ServletException: An error occurred while evaluating custom
action attribute value with value ${cart.map['id']}: Unable to find a
value for map in object of class
org.apache.commons.beanutils.BasicDynaBean using operator . (null)
at
Perhaps a bit of theory is what you need. When you return a
resource such as a file from an Action with a null as the value of the
ActionFoward, you do so because the action is called FROM the response
or the page which has already been committed and presented to the
client. The call to the
What do you mean by dialog? Do you want to download this file to
display it? Or do you want to download it to keep? The return null
for the ActionForward is used to display resources and is called after
the response is committed. The call is part and parcel of the content
of the response.
This is totally off topic - but did Joe reply to you personally, or was
the message on the list? I didn't see any message from him get posted
here. I actually haven't seen any messages from him here or on dev for
the past few days, but have seen people respond to him.
I'm making it through to the
If i want to use standart tag in jsp what i have to do ?
On Tuesday 23 November 2004 17:14, Duncan Mills wrote:
It works with org.apache.struts.action.DynaActionForm which exposes a
getMap() method
Regards
Duncan Mills
http://www.goundside.com/blog
Mario Neè wrote:
this is the error
On my previous posting I missed the fact that the error happens in
JavascriptValidatorTag,
which was my issue all along. It made me upgrade from Struts 1.1 to 1.2.4 in
the first place.
java.lang.NullPointerException
at
Ok,
I have switched to 1.2.6.
The result is better insofar as my starter, index.jsp, which failed with
1.2.4, now shows (as it did with 1.1).
index.jsp uses html:html locale=true.
But TA.jsp still fails.
Any ideas where to check for problems are welcome.
Mit freundlichen Grüßen
Wolfgang
Below jsp code causes the org.apache.jasper.JasperException: Cannot
find bean mmBoxBean in scope request exception to be thrown. How can
this happen?
logic:present name=mmBoxBean property=messageId scope=request/
bean:write name=mmBoxBean property=messageId scope=request/
/logic:present
The problem is, that the given form actually edits the categories-tree
and as it is presented to the user after editing it, it should be
updated after the form is submitted.
Alexander
Joe Germuska wrote:
Your action isn't executed if validation fails. However, the validation
is performed on a
Hi,
Could somebody recommend a good, advanced Struts
classroom training course in the US,that covers topics
like Tiles/JSTL, JSF et al?
Thanks,
Shyam
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
Problem Solved. I just needed to explicitly set the
validation-rules.xml file in both of my struts-config.xml files. Thanks
David and Niall for all your help.
-jeff
On Nov 23, 2004, at 6:13 AM, Jeff Smith wrote:
Setting the form bean type to DynaValidatorForm seems to trigger
validation.
Somewhere along the line I learned that arg1 has to go with minlength,
and arg2 has to go with maxlength. I could be wrong, but, I have success
using it this way. Here is an example of minlength and maxlength:
field property=username depends=required,minlength,maxlength
arg0
I have the same problem trying to do the same as Morales... To overcome
this, i've made a JSP (just because i was too lazy to write a Servlet
:) where I get the OutputStream from the response, set the content type
and content-disposintion:
response.setContentType(application/octet-stream);
Hi
I have a ant script which creates a war file, every
thing works well but it does not copy empty directory
in the war file, i need one directory which is empty,
it is under WEB-INF and at run time xml files are
created in it,
My web application expects this empty folder and
crashes if not
Hi,
You can create a directory on the fly using java code. First you can check
if the directory exists. If it doesn't, then create one.
Thanks
Sachin Zope
Preclinical IT
Sr. Java Developer
610-270-5863 (Work)
610-269-2243 (Home)
412-656-8343 (Cell)
Ashish Kulkarni [EMAIL PROTECTED]
First off, Craig if you are reading this, how come no one has started a
jsf-users mailing list? I hate using web forums. yuk:) Seems like
First, let me frame my question in light of real life terms that we have
to deal with. We have some complex nested value objects that return from
the
No idea if ant can do this, but i tend to put a 0 byte 'ignoreme' file in
the directory. This stops these problems happening with more than just ant!
Daniel.
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: 23 November 2004 18:31
To: [EMAIL PROTECTED]
mkdir dir=${webroot}/WEB-INF/mydir /
Mark
On Tue, 23 Nov 2004 10:30:44 -0800 (PST), Ashish Kulkarni
[EMAIL PROTECTED] wrote:
Hi
I have a ant script which creates a war file, every
thing works well but it does not copy empty directory
in the war file, i need one directory which is empty,
it
Rick Reumann wrote:
how come no one has started a
jsf-users mailing list?
http://www.marinschek.com/myfaces/tiki/tiki-index.php?page=MailingLists
An Apache Sister project to Struts is MyFaces , and has a mail list,
consider that.
.V
When you do this, Radu, how does the file show up in the client? Is
it downloaded to a directory the client user chooses or is it
displayed in the client browser? Thanks.
Jack
On Tue, 23 Nov 2004 20:24:59 +0200, Radu Badita [EMAIL PROTECTED] wrote:
I have the same problem trying to do the
Anyone know what is up with http://marc.theaimsgroup.com/ struts list
server? They have been down for days now.
Jack
--
You can't wake a person who is pretending to be asleep.
~Native Proverb~
Each man is good in His sight. It is not necessary for eagles to be crows.
~Hunkesni (Sitting
Santosh Kumar Panda wrote the following on 11/22/2004 5:07 AM:
I have been facing problems populating drop-downs using dummy stub
classes .I have used a function to populate the page containing the
drop-down and thrown the Action Form type object into the session.
Well you didn't create a
On Tuesday 23 November 2004 15:12, Dakota Jack wrote:
Anyone know what is up with http://marc.theaimsgroup.com/ struts list
server? They have been down for days now.
It must be at your end. Works for me.
--
derek
-
To
On Tue, 23 Nov 2004 13:45:37 -0500, Rick Reumann [EMAIL PROTECTED] wrote:
First off, Craig if you are reading this, how come no one has started a
jsf-users mailing list? I hate using web forums. yuk:) Seems like
I'm not a huge fan of web forums either, but that's what JSF has to
deal with :-).
I can get to the site, Derek, but searches do not work. Do you get
searches too?
Jack
On Tue, 23 Nov 2004 15:24:19 -0400, Derek Broughton
[EMAIL PROTECTED] wrote:
On Tuesday 23 November 2004 15:12, Dakota Jack wrote:
Anyone know what is up with http://marc.theaimsgroup.com/ struts list
Craig McClanahan wrote the following on 11/23/2004 2:32 PM:
I'm not a huge fan of web forums either, but that's what JSF has to
deal with :-).
(Free registration required) http://forum.java.sun.com/forum.jspa?forumID=427
Cool. Joining today. I notice there is a yahoo group maybe we could
build
Mark Lowe wrote the following on 11/23/2004 2:18 PM:
You'd probably want to do the work in your backing beans rather than
dealing with it in you JSP.
Not sure exactly what you mean by the above.
snip
But in answer to your question yes you can nest beans, but the beans
are more than just value
Can anybody help me spot what I'm missing in creating an HTML SELECT box
with the html:option tag?
I'm iterating through a list of objects that have IDs and Names, plunking
the ids in for the value and the name for the name. But the html:option
tag seems to insist that the bean isn't there and
Hi,
I am trying to implement file upload using struts.
I added the following to Dyna Validator Form:
form-property name=importFile
type=org.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFor
mFile /
Can anybody please let me know how can I get InputStream in my
This:
html:option value=${emailGroup.emailGroupID}
produces this:
option value=${emailGroup.emailGroupID}
instead of this:
option value=17
Are you sure the html prefix references the EL version of the taglib?
--
Tim Slattery
[EMAIL PROTECTED]
On Tuesday 23 November 2004 15:46, Dakota Jack wrote:
I can get to the site, Derek, but searches do not work. Do you get
searches too?
Ah. No. I can browse the messages but a Search (for any of Subject, Author
or Body) results in:
An unexpected error has occurred. Details of this
It references /WEB-INF/struts-html.tld
-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 2:44 PM
To: 'Struts Users Mailing List'
Subject: RE: html:option problem
This:
html:option value=${emailGroup.emailGroupID}
produces
Hello everyone, i need some help with a redirection.
The problem is whem a user session becomes expired and he trys to do
something i need to redirect them to a Logon page outside of a frameset.
It is something like html:forward name=logon target=_parent/ but the
html:forward does't have the
This:
html:option value=${emailGroup.emailGroupID}
produces this:
option value=${emailGroup.emailGroupID}
instead of this:
option value=17
OK, so now I look at this a bit more closely.
You haven't terminated the option... tag. It should read:
option
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
Yes, it's org.apache.struts.Globals.LOCALE_KEY:
/**
* The session attributes key under which the user's selected
* codejava.util.Locale/code is stored, if any. If no such
* attribute is found, the system default locale
* will be used when retrieving internationalized
Sure..
someHandleToAnIndexInLoop .. where would you get that from?
You could do want you want. I was just saying that there's not the
same need to drill through lists using the indices. Look at the
javadocs on ListDataModel. You'll see what i mean when you start using
it, but you'll find less
Wolfgang,
Can you post some of your validation file's form definition for TAform?
Any change your validation file's form isn't exactly spelled TAform (small
F?)?
Regards,
David
-Original Message-
From: Rinnert, Wolfgang [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 11:43 AM
IIRC, this logic is spread through several areas. I remember reading
in a bug report months ago that there were even some tags that
might've been adding the Locale to the session. This might've already
changed, though. I suggest you open up Struts source code in your
favorite IDE and run a
Weber, you're the best. Thanks a million.
Jack
P.S. Would you like a gmail invite?
On Tue, 23 Nov 2004 13:31:54 -0500, Erik Weber [EMAIL PROTECTED] wrote:
Morales de Frías wrote:
Hi¡
I already know that this problem have been resolved before, but i can't find
the solution
Mark Lowe wrote the following on 11/23/2004 4:56 PM:
Sure..
someHandleToAnIndexInLoop .. where would you get that from?
You could do want you want. I was just saying that there's not the
same need to drill through lists using the indices. Look at the
javadocs on ListDataModel. You'll see what i
You basically wrap the list in s ListDataModel and you can pullthe row
you need out with getWrappedData() .
You can just use List but you can bind datamodels to teh binding
attribute. This side of JSF is really cool. You want a HtmlInputText
in a panelGrid (table in struts/jstl speak) you just do
No, it's terminated. It's got an end tag /html:option. The body of the
tag becomes the value.
-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 3:27 PM
To: 'Struts Users Mailing List'
Subject: RE: html:option problem
This:
Sorry if this hits the list twice. I think my works outgoing server
pegged it as Spam..
If you are Struts person thinking about learning what JSF is all about,
go to your bookstore or favorite online store and pick up Core Java
Server Faces by David Geary and Cay Horstmann. It's so refreshing
On Tue, 23 Nov 2004 18:33:03 -0500, Rick Reumann [EMAIL PROTECTED] wrote:
Sorry if this hits the list twice. I think my works outgoing server
pegged it as Spam..
If you are Struts person thinking about learning what JSF is all about,
go to your bookstore or favorite online store and pick up
Dakota Jack wrote:
Weber, you're the best. Thanks a million.
Jack
You're quite welcome.
P.S. Would you like a gmail invite?
Why, thank you. But, I already have a gmail account. Unfortunately, my
main email address long has been posted all over the Web (I didn't know
any better), so
As Tim pointed out, I believe you'll need to make the html prefix
reference /WEB-INF/struts-html-el.tld
Richard.
On Tue, 23 Nov 2004 15:09:14 -0600, Dave Bender [EMAIL PROTECTED] wrote:
It references /WEB-INF/struts-html.tld
-Original Message-
From: Slattery, Tim - BLS
I haven't read this book yet, but I can vouch for these authors (as an
avid reader of text books and specs). They've each written some good
stuff on their own, so I can't wait to see what they've written together.
Also, recently I looked at the latest Struts documentation for the first
time. I
Here is a good article related to the problem:
http://www.javaworld.com/javatips/jw-javatip94_p.html
Lee
On Tue, 23 Nov 2004 18:38:30 -0500, Erik Weber [EMAIL PROTECTED] wrote:
Dakota Jack wrote:
Weber, you're the best. Thanks a million.
Jack
You're quite welcome.
P.S.
I'm not sure what you exactly want to do,
with adding value to HashTable as set method,
and creating List from the HashTable as get method.
Anyway, if you want to acces that Form you created via poppulate method,
I guess you just write Struts tag with name attribute as the name you set in
Anyone know what is up with this?
Jack
On Tue, 23 Nov 2004 17:04:23 -0400, Derek Broughton
[EMAIL PROTECTED] wrote:
On Tuesday 23 November 2004 15:46, Dakota Jack wrote:
I can get to the site, Derek, but searches do not work. Do you get
searches too?
Ah. No. I can browse the
And,
see http://incubator.apache.org/myfaces/mailinglists.html
as a small starter.
Best regards,
Matthias
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 9:08 PM
To: Struts Users Mailing List
Subject: Re: [OT] quick JSF question..
hi to all,
i am using Struts in tomcat apache server..
i have a xml data which is stored in a form of string.
i am using XTags
when i use
xtags:parse uri=/WEB-INF/database.xml/
then it is completely working...
but when this xml file i put into string and use
%
String xml = (String)
87 matches
Mail list logo