just place a context-param element in your web.xml as a child of web-app.
context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueApplicationResources/param-value
/context-param
Sven
Anthony Mutiso 2 wrote:
What is recognized way to get JSTL fmt:message
Hi,
in Tiles JSP files, request.getRequestURI() seems to return the URL of the
includes Tiles file. How can I figure out the URL of the includor? I means
the JSP file at the top of the include hierarchy, because I would like call
the original URL with additional parameters from the included
Hi!
I found a difference when running a page within a tiles definition and not.
The problem is the validatation. When running with tiles it validates when
no parameters are sent, it acts as if the form was submited when one views
the page for the first time and presents the validation-errors since
I am amazing that nobody answer you, so i checked the struts exeemple
( file LinkSubscriptionTag )
it appears that you must'n directly call
ActionMessages messages = new ActionMessages();
but yous should use
MessageResources messages =
MessageResources.getMessageResources
I finally got my struts running on Websphere Application Server 4.01 for
AIX.
I'm still trying to figure out the areas which generate the errors in the
past.
-Original Message-
From: [EMAIL PROTECTED] [mailto:avasey;za.safmarine.com]
Sent: Friday, November 08, 2002 01:43 PM
To: Struts
Sorry for my previous mail,
I forgot to remove something
that is what i wanted to say :
I am amazed that nobody answered you ...
so, I will do my best
maybe you should use Action.MESSAGE_KEY instead
ActionMessages.GLOBAL_MESSAGE
it seems it's what it is specified in
Xavier,
Thank you very much for your response!
I will certainly give it a go and let you know if it worked!
Regards,
Michael
-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Freitag, 8. November 2002 11:06
To: Struts Users Mailing List
Subject: RE:
I post this message because I did not found any doc about the
createToken, isTokenValid, resetToken API.
So I will explain what I understood about it from the struts-exemple
if something is wrong, I would like that someone will say to me
and if there is some doc tell me where ...
The token API
Hi,
I join to this mail the jsp file that cause the problem and the validator.xml.
Continuing the test, I use a validator.xml with only the default (no country and
language tag). If I use my Opera Browser with locale : language =fr, i have the
problem.
If I duplicate the default formset with
Hi,
I posted a problem yesterday concerning validating forms in several
sub-apps, whereby it only seemed to work for one and not all... this was
using struts1.1b2.
As suggested, I downloaded the nightly build that you tried today and
now validation doesn´t seem to work at all...
Regards,
Is there any way to put a jsp page that contains frameset, in template?
I tried the same but the page contents are included as it is, and not the pages
included in frames.
template
template:insert template='/common/b2bPageTemplate.jsp'
template:put
Hello,
i am using a user-defined Date type for FormBeans. So i can change the
Display-Format (in MyDate.toString())
But now i get an error message (see below). Must i change the
constructor to accept the new Format?
thanks,
Andreas
HTTP ERROR: 500 BeanUtils.populate
INFO: Processing a 'POST'
How is it possible to do the following:
I open a page, sending the parameter id='us'.
I want now to create a form, where the id parameter
is used to create an indexed input field. I can do this, if
I do not use the the struts tags, similar to:
input type=text name=lang(c:out
Additional Information: i extend java.sql.Date (also tried
java.util.Date, but no difference...)
Andreas Langmann wrote:
Hello,
i am using a user-defined Date type for FormBeans. So i can change the
Display-Format (in MyDate.toString())
But now i get an error message (see below). Must i
I'm sure I'm not the only one that's thankful for this. One thing not
addressed, though, is the long-term viability of Struts. All the time I
hear from management (parroting the latest rag found in the john) We're
moving to J2EE so that we're not locked in to a proprietary solution - open
On Thu, 7 Nov 2002, Craig R. McClanahan wrote:
This was a late (i.e. confirmed this morning) change. It's in addition to
my originally scheduled session on
Wednesday: Building Web Applcations With Struts. The What's New talk
will presume a bit of existing
knowledge about Struts, while the
I posted this question a couple of days ago and received an answer.
Unfortunately the answer does not work for me. The problem I am having is
on the initial page of my web application I have drop-down boxes that I
want to be populated with information from a database. I have no problem
getting
In your form create two ArrayLists one for the values, one for the
labels. If the data doesn't change much you can make them static.
Create getter methods for them which populate the arraylists from you
database (make sure you populate them in the same order so the labels
correspond to the
Hello Andreas,
given your infos I can only guess what goes wrong. Setting
the props in your action form fails because of your setters.
Can you mail your jsp and your form bean.
Friday, November 8, 2002, 2:08:49 PM, you wrote:
AL Additional Information: i extend java.sql.Date (also tried
AL
Solution 1:
In your action class which is called before displaying the page with the
drop down box,
use a business delegate to access your data from the appropriate data source
into some
type of collection. Store the collection in the appropriate scope (session,
request).
Have the page render the
To add to my earlier response:
After you retrieve the data, convert it into a collection of LabelValue
beans. After that, you can use the following syntax to render the data;
assume the data is stored placed in the form under a property called
options.
html:select property=someValue
Michael Delamere wrote:
Hi,
I posted a problem yesterday concerning validating forms in several
sub-apps, whereby it only seemed to work for one and not all... this was
using struts1.1b2.
As suggested, I downloaded the nightly build that you tried today and
now validation doesn´t seem to work
Actually i use Struts Milestone build. Should i try to update used
librarys?
TIA
Andreas Langmann
jsp
---cut---
html:text property=bildungsgang.txt_bgaend_gueltigkeit_von/
---cut---
FormBean
---cut---
//
Hello,
I'm having a problem with html:link which gives me the Cannot retrive
ActionForward named /admin message. My struts config has:
global-forwards
forward name=welcome path=/welcome.do/
forward name=adminMenupath=/adminMenu.do /
/global-forwards
Mike,
Everyone's implementation is a bit different, but my paths all point to
JSP's. The .do is the action mapped in the action tag.
Brian
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 08, 2002 8:49 AM
Subject: html:link question
Hello,
Hello Andreas,
you should consider making your txt_bgaend_gueltigkeit_von property
a String. As Craig pointed out This is critically
important for re-displaying invalid input. Then you should have
no problems and can later use BeanUtils to convert it to Date.
Friday, November 8, 2002, 3:24:24
I may be wrong but I don't think you can use .do in a forward definition
unless it's a redirect. AFAIK, you can only forward to real files (jsps),
not mapped files like .do.
David
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject:
Yes, I copied all of the files into my WEB-INF/lib folder
If there is any more information you need, I will be glad to provide
it
Regards,
Michael
-Original Message-
From: Rob Leland [mailto:rleland;apache.org]
Sent: Freitag, 8. November 2002 15:20
To: Struts Users Mailing
I post this message because I did not found any doc about the
createToken, isTokenValid, resetToken API.
So I will explain what I understood about it from the struts-exemple
if something is wrong, I would like that someone will say to me
and if there is some doc tell me where ...
The token API
Is there a way to change form variables from within a Perform method for a
different type of form?
I have a couple of different scenarios where I need to use this:
1) After doing a search on the database, one OR many rows of results can be
returned. If one row is returned then it would be
Ah, right. That's much simpler for Struts 1.0.2. Except for the fact that
Struts has a hand in how locale is determined. For example, the html:html tag
or any piece of application code can set the session attribute named
Action.LOCALE_KEY to a Locale instance. If set, the bean:message tag uses
Thanks for the feedback. If you want to send me any modifications you make
I'll incorporate them.
I'll collect feedback and update the presentation after I get comments over
the next week or so.
Thanks to everyone commenting.
Kevin
Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED] on
Yeah! It works
my FormBean variable type is myDate (from java.sql.Date or
java.util.Date )
and i used the code from an older posting to make it.
Okay, what to do:
Change the Date type in the code below to myDate.
And now your date type will use your format for display...
Ok I am still getting an error, the error is:
javax.servlet.jsp.JspException: No getter method available for property
getLocationValues for bean under name null
here is the code form the class that extends ActionForm
private ArrayList getDataValues(String sql, String varaible)
{
Good day all, happy Friday!
I'm building another application using tiles (hopefully this one will ship
sooner than the others :-) and coming across the geometric explosion of tiles
and body files, wondering if there is a solution that others are using that I
might be able to take advantage of.
Hi.
I want to work with file uploads into DB or into the filesystem. After
installing the struts-upload-example, I tested it. If there is a file
selected in the form or there is some dummy-text in the hml:file - tag (no
path to an existant file), everything works fine.
If I submit the form
As you say welcome works fine, your syntax looks fine. However the error
message is a bit strange and doesn't correspond to the name of the forward
or of the action! All I can really think of - we find ourselves in this
situation a lot by the way and it's always our fault if that's any
When I submit my forms I am seeing my debug code in my Actions execute
twice. I'm only clicking the button 1 time. I'm trying to determine why
this might be hapening. Has anyone experienced this double post problem
and did you find a solution?
I am using IE 5.5 SP2, TOMCAT 4.0.3, JBuilder 7
Sorry if this is lame, do you need a direct=true on the tiles:put
name=body ... never tried doing this but I assume you're using a
tiles:insert... not a tiles:getAsString... in the template so you may
need to indicate direct here?
Hue.
-Original Message-
From: Brian Topping
Michael Delamere wrote:
Yes, I copied all of the files into my WEB-INF/lib folder
If there is any more information you need, I will be glad to provide
it
Yes, Does the struts-validator example work ?
-Rob
--
To unsubscribe, e-mail:
David,
How are you submitting the form? Are you using an image button or a regular
submit button? I had a similar problem once using IE w/ an image button.
-Richard
At 09:38 AM 11/8/2002 -0600, you wrote:
When I submit my forms I am seeing my debug code in my Actions execute
twice. I'm only
Try this:
html:select property=major_locations
html:options property =locationValues
labelProperty=locationLables/
/html:select/td
When you get some cycles read up on the JavaBean specification. Struts uses
reflection to access and mutate data in
To avoid double post problem,
from a double click of the user or from IE,
you can use the Token functionnality of struts
This functionnality seems not be documented,
but I described it in a previous mail to the mailing list
wih subject :
Did not found doc about Tokens
-Message d'origine-
-Original Message-
From: petra staub [mailto:calc42;hotmail.com]
Sent: Friday, November 08, 2002 5:07 AM
How is it possible to do the following:
I open a page, sending the parameter id='us'.
I want now to create a form, where the id parameter
is used to create an indexed input
Hello Brian,
you should use
tiles:put name=body type=string
instead of
tiles:put name=body
Friday, November 8, 2002, 4:38:55 PM, you wrote:
BT Good day all, happy Friday!
BT I'm building another application using tiles (hopefully this one will ship
BT sooner than the others :-) and coming
I'm trying to determine the best way to setup our application. The
configuration consists of several different web modules. While converting
the applicaiton to struts I'm finding a need to have a shared web module for
items that are available to all other sub-modules... (ie, shared error page,
I tried the registration and to me it seemed not to work
Unless of course it is normal behaviour that when leaving the fields
blank that it takes me to the start screen
Infact, the same happens when populating all the fields is this
correct?
Regards,
Michael
-Original
Hue, Dirk,
Thanks for your input. I tried with tiles:put name=body direct=true
and found that to work just great.
Maybe I shouldn't care, but Dirk, do you know a subtle advantage to using
type=string instead of direct=true?
I'm quite happy, I'm just getting started on this app, but I can go
I don't think this is the right way for you todo. Here is what I think you
should do.
Have your JSP required a Tiles's parammeter, and from all the page that
include your JSP
Have them pass a param indicate where they are coming from. Or, determine
all the pages
That need to include your JSP,
I didn't read the whole thing, please excuse. The only thing I notices
is that you seem to be misusing the naming conventions.
I don't know if I can explain this simply but here goes.
In you classes the objects are named
private type objectname
The getter
Sorry for not being specific,
Anyway, I don't know why you want to get the component context from the JSP.
In your JSP, if there already a context setting, you can always access your
Tiles attributes via Tiles' Tags, and that is all you need. As, for
changing
Content of a Tile component without
I'm writing an application where I need to access local resources like a camera and
scanner devices. I was looking into using a Java WebStart to write the program and
interact with the struts controller on the server. Has anyone used Java WebStart as a
view for struts? Is that an entirely
This is wonderful, thank you for this. Open Source
has been making my professional life a lot easier for a while
now, but a powerpoint presentation for the bosses? This truly
rules! Another wonderful thing is that my open office opened
the file and played it with no problem on linux.
We have come
I recall seeing a paper about using Struts as the controller in a MVC
Swing app. I can't seem to find it where I thought it was though. Try
hitting Google for Struts as Swing controller - or something like that.
Toni Charlot wrote:
I'm writing an application where I need to access local
I am trying to get into Collections inside the FormBean but I stumbled
on this:
html:password property=password/ passwordp
ul
logic:iterate id=i name=col
where both password (String) and col (Collection) are fields in my FormBean.
The html:password knows very well how to get to my FormBean but
Found it!
http://javaboutique.internet.com/tutorials/Swing/
Toni Charlot wrote:
I'm writing an application where I need to access local resources like a camera and scanner devices. I was looking into using a Java WebStart to write the program and interact with the struts controller on the
-Original Message-
From: Thorbjørn Ravn Andersen [mailto:tra;biobase.dk]
Sent: Friday, November 08, 2002 7:45 AM
I am trying to get into Collections inside the FormBean but I
stumbled
on this:
html:password property=password/ passwordp
ul
logic:iterate id=i name=col
where
To be picky: Java WebStart isnt a view.. its just a Swing App Web
Deployment tool.
Swing would be your view and I believe Swing as the V in MVC has been
discussed in the
mailing list.
mark
Toni Charlot [EMAIL PROTECTED] on 11/08/2002 01:07:00 PM
Please respond to Struts Users Mailing List
I didn't notice that the entire message is:
jasper.JasperException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive ActionForward named /admin
My forward is called adminMenu, I renamed it from admin a while ago. Now,
when I look, I don't see the admin by itself
Also, for those of you attending the other obscure trade show in Vegas
that
week (I think it's called COMDEX, or something like that), Craig will be
talking about Struts on Monday the 18th, 1PM to 2:15. The panel is
called
Beyond JSP: Struts, Turbine, Velocity and other JSP Extensions.
Just received confirmation that the latest version of Struts Console has
made it onto the companion CD as well.
Many thanks (once again) to James Holmes.
Kevin
Andrew Hill [EMAIL PROTECTED] on 11/07/2002 11:08:25 PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
I figured out the problem with the double post. It was caused by an
html:image struts tag that did a javascript to call form.submit(). The
button called it once and then the javascript called it after that. I
changed it to be an
A href=javascript:form.sumbit()html:img/a and now it works as
Yes,
I saw the same problem with Weblogic 6.1 sp3, (both solaris and
nt) + 5.5 and JBUILDER6. I wrote it off to Jbuilder because of
it's stability issues (will crash every now and then).
No image buttons, no javascript, nothing but submit, hit
breakpoint twice.
Benjamin Simpson
Hi Mike,
What is the full error message that the referred to by the error (i.e. does
it give a hint which component it was attempting to execute when this error
occurred?):
jasper.JasperException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive
Hi all,
I'm running into this problem too. My DynaActionForm is getting cleared
between calls to my action.
I'm using DispatchAction as my base class, so I have actions like
'FooAction?method=setupForm', 'FooAction?method=page1',
'FooAction?method=page2', etc.
Is resetting the form a feature
Hi all,
i've checked the struts-config, I have defined the FormBean, the Action contains the
right name.
If the user does not insert any data, it works correctly.
The problem appears when the user jumps directly to an action without previuosly
calling the action.
I get the same
Hi Hue,
You're a glutton for punishment, but here is the whole thing:
org.apache.jasper.JasperException: Exception forwarding for name welcome:
org.apache.jasper.JasperException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive ActionForward named admin
at
I have a website where the same ActionForm is used more than once in
different html:form ... areas of the document. The problem is things
are getting confused when I try and access form values (hidden or text)
via Javascript. It complains that document.toolsMenuForm.contentid has
no
If you only use one form in a document you could use
document.forms[0].fieldname
for the first form and
document.forms[1].fieldname
For the second.
The other issue is that there really isn't much of an issue to use the
SAME actual action form twice since it goes to the same
Hi Craig and others,
We plan to use coarse grained action classes in our application.Basically what we plan
to is to do is combine add,update,delete operation to one Action class.
We have two options .
1.Have 1Action class - 1 JSP - 1 Form Bean approach. This Action class will handle all
This is a users list question, I'll forward it over there for you.
David
From: bachan s [EMAIL PROTECTED]
Reply-To: Struts Developers List [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Sub Actions in an Action class
Date: Fri, 8 Nov 2002 11:19:25
Hi Craig and others,
We plan to use coarse grained action classes in our application.Basically what we plan
to is to do is combine add,update,delete operation to one Action class.
We have two options .
1.Have 1Action class - 1 JSP - 1 Form Bean approach. This Action class will handle all
Please do *not* crosspost to both STRUTS-DEV and STRUTS-USER.
In this particular case, it is very much a user question, and belongs only
on STRUTS-USER.
On Fri, 8 Nov 2002, Bachan S wrote:
Date: Fri, 8 Nov 2002 13:18:38 -0800 (PST)
From: Bachan S [EMAIL PROTECTED]
To: bachan s [EMAIL
Hi David,
Is that code slated to be part of Struts or is it published somewhere?
ummm...No and Yes
My initial implementation of MessageResources is complete and works quite
nicely (as a matter of fact). I am in the process of refactoring the code
to fit into the resources subproject under
Chapter 17 (DynaForms and the Validator) from the upcoming SAMS title
Struts Kick Start is now available at www.strutskickstart.com.
Enjoy,
James
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
I was reading Struts in Action chapter 12:
If you are using the one-big-form wizard approach, the Struts Validator
includes a page property on the field element and provides a corresponding
page property on the ValidatorForm.
But the book doesn't give any example.
Dese it mean I should do
For those interested:
Part I of a two part series on Struts v1.1 is posted on Onjava.com at
http://www.onjava.com/pub/a/onjava/pub/a/2002/11/06/struts1.html
Part II will be posted next week.
Regards,
Sue
'The Struts Framework: A Practical Guide for Java Programmers' (MK) is now
shipping.
Michael Delamere wrote:
I tried the registration and to me it seemed not to work
Unless of course it is normal behaviour that when leaving the fields
blank that it takes me to the start screen
Yes, that is the behavior.
If the field MUST be filled in then in your validator.xml
you
I think you have the submit statement in onClick event(javascript) of the
button, remove the submit statement.
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, November 08, 2002 9:38 AM
Subject: I am seeing
Hi,
Aren't form beans reused ? I thought only the reset is called.
Thanks,
Mohan
-Original Message-
From: Karr, David [mailto:david.karr;attws.com]
Sent: Tuesday, November 05, 2002 9:38 PM
To: Struts Users Mailing List
Subject: RE: Don't want the ActionForm to refill my form.
Is your
Hi all,
Quick question that the online docs aren't helping me answer:
I have a snippet:
bean:define id=foo name=FooForm property=foo
type=java.util.Collection/
html:form action=/doFoo.do
html:select size=5 property=foofield
html:options collection=foo
Is it possible to set the page field in org.apache.struts.validator.DynaValidatorForm
in the struts-config.xml file? I need to set its value to tell my validator the
current page of the multi-page form. My action is
org.apache.struts.actions.ForwardAction, so I don't think I can use it to set
Brian == Brian Topping [EMAIL PROTECTED] writes:
Brian Hi all,
Brian Quick question that the online docs aren't helping me answer:
Brian I have a snippet:
Brian bean:define id=foo name=FooForm property=foo
Brian type=java.util.Collection/
Brian html:form
Hi,
Checking if I understand the form flow right.
1. Tag handlers populate values in my JSP.
2. User hits submit button.
3. Reset is called.
4. Selected values go right back to the same form if the getters and
setters are right.
5. Validate is called if validate=true
4.
84 matches
Mail list logo