Hi,
on my webpage a got a form linked to an 'orderForm' bean.
In that bean a got an arraylist 'numbers' filled with values (with
LabelValueBean).
I thought I have to use the options tag in the following way:
html:form action=/order
html:select property=number
html:options
Nice discussion.
I like validate() method because it can give access to ActionError objects,
so one can
easily produce internationalized error messages and forward back to input
page, and IMHO
that`s a useful feature. Just my 2 cents anyway;-)
- Original Message -
From: Robert Parker
Hello Dave,
thanx for the answer!
The indexed radio button won't replace the value= with the index
- instead it
names the radio button as follows:
udmForm[0].selectedLppVolume
replacing the 0 with the iteration index each time through.
Does that mean, that an 'array of FormBeans'
I'm sorry... Outlook has send the unfinished mail by accidently hitting
Ctrl-Enter :(
The next try:
=
Hello Dave,
thanx for the answer!
The indexed radio button won't replace the value= with the index
- instead it
names the radio button as follows:
udmForm[0].selectedLppVolume
Heres my 2 cents on the whole validation thing. It's bit of ramble, so
please don't hesitate to skip over it. :)
I find the validation mechanism too restrictive. I do my business-level
validation beyond the web-tier, so while I do use ActionErrors for
ActionForm level validation, I have to
Am looking for a commercial site that uses struts
I need to demonstrate that they are used in the real world
Best Regards
Alan
http://husted.com/struts/resources.htm#sites
plus a few more ;-)
::
Mikkel Bruun
Senior IT Developer
[EMAIL PROTECTED]
Direct: +45 32 88 22 73
Valtech A/S
Kanonbaadsvej 10
DK-1437 Copenhagen
Tel +45 32 88 20 00
Fax +45 32 88 20 20
-Oprindelig meddelelse-
Fra:
It looks like a good way.
I can find concerned item for the list usind user parameter.
I thank you for info.
-Message d'origine-
De: Brian Holzer [mailto:[EMAIL PROTECTED]]
Date: mercredi 17 octobre 2001 17:46
À: [EMAIL PROTECTED]
Objet: RE: how to get the position when iterating over a
Hello everybody
My question is:
Can i return the content of a origin's page of a request? Per
example, I have a Multibox in witch i cheked some boxes before executing an
action not from the submit button and i want to read in the result's page
the bexes cheked
Hi! I have a collection of ProductItemSummary from
stored in a user bean which is in turn stored in an
HTTP session. I want to perform an iteration and
inside it, I have to perform an IF statement.
Basically, I have this:
logic:iterate name=user id=productItemSummary
Hello everybody
My question is:
Can i return the content of a origin's page of a request? Per
example, I have a Multibox in witch i cheked some boxes before executing an
action not from the submit button and i want to read in the result's page
the bexes cheked in
Hi! I have a collection of ProductItemSummary from
stored in a user bean which is in turn stored in an
HTTP session. I want to perform an iteration and
inside it, I have to perform an IF statement.
Basically, I have this:
logic:iterate name=user id=productItemSummary
Hi,
I intend to use Struts framework for the controler facilities.
The presentation layer will be done with XML/XSLT files parsed by the
browser (IE 5.5 with MSXML3.0). We don't use any JSP.
We want to implement MVC2 pattern.
Do you think Struts is convenient with my need ?
If not, do you know
Why don't you use Cocoon, as this is designed to use XML/XSLT for the
presentation layer.
Regards,
Scott
- Original Message -
From: Paul EYENI [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 18, 2001 11:08 AM
Subject: Struts with XML/XSL for the View
Hi,
I intend to
i've done something possibly similar. I've implemented a stuts based site,
and used taglibs for retrieve certain dynamic content from a database and
transform into XML. I liked the struts architecture, but wanted to keep
XML/XSL for some of the dynamic portions of the site
On Thursday 18 Oct
After check, it seems that tilesforstruts1-0.jar was wrong in latest
distribution. I have corrected it, and tested it with Struts1.0 on
tiles-docs.war (or struts-tiles.war) : all is ok now.
So, you can download latest tiles version with corrected jar file for
Struts1.0
Cedric
Sandeep
Hi,
I have no ideas on an xml/xsl architecture using tiles.
But, for dynamic portal, I have added such an example in the latest
distribution
(tiles/tutorial/dynPortal).
This example allows to choose tiles to render in portal. You can
choose in a list
of available tiles, and move tiles
Hi,
So it seems possible. Can you explain or send to me an example?
many thanks!
-Message d'origine-
De : Martin Samm [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 18 octobre 2001 12:19
À : [EMAIL PROTECTED]
Objet : Re: Struts with XML/XSL for the View
i've done something possibly
Hi All,
I need somebody's help on this issue.
-- In I.E 5.5 the facility to remember ( autocomplete ) the password
vanishes when we use a form bean containing
an Struts HTML tag for the user id text box and a Struts HTML tag for
the password for the login page.
--In the
paul--
i don't know what version of struts you're running, but if you're running one of
the later nightly builds (i don't know when exactly this feature became
available), you have access to the ActionMessages class, which ActionErrors now
extends. so you comment: html:errors/ActionErrors would
The collection attribute requires that the collection exists in some scope. It
seems that there isn't a way to use a collection straight from the form bean.
So, if my collection is in the local form I define it in a bean:define tag.
Something like:
sbean:define id=numbers name=orderForm
Hi
I've got the following setup:
the web server IPlanet 4 runs on a machine called web
the aplications server Jrun 3.1 runs on a machine called app
when I displaj show.jsp with the URL
http://web/show.jsp
it displays the JSP but all html:links are displayed as
http://app/list.jsp
and the
Hello everybody
When i do bean:struts id=form
formBean=suppressionForm/
that means that i copy a struts configuration object wich is fom the form
bean suppression bean
.
When i want to return the value of a field in this form it returns an error
like
Has anyone run into a situation where it was desirable for users to execute an
Action (a) and, while in the context of doing all of the lovely things
associated with (a), the user gestures in a way that a second Action (a) process
starts as a sort of child process -- in which case we have
Why are JSPs 'too powerful' - surely it is up to the developers/architects
to ensure that the application has business logic in the relevant parts, the
fact that you can write 'write full-fledge Java' in JSPs is useful in
certain circumstances, e.g. rapid prototyping, debugging. And 'too
Hello,
I have a Struts action as the source of a frame - the action does some
processing and puts the results on the HttpSession. The JSP which is
subsequently called then picks up these results.
So the code looks like this:
script
function load() {
top.frames[0].location='navigation.do';
This is a simpletons view here! I don't know how to write my own tags
don't really want to (yet).
1 - Add a method getVeryLongName27() to your form bean which
truncates the long field. No scriplets or custom tags needed. Your
web page writer will probably want to specify the length of the
Alan,
I could show you some sites we created for DaimlerChrysler's internal use -
but I'm not allowed to...
Greetings,
Bernhard
-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 18. Oktober 2001 10:18
An: [EMAIL PROTECTED]
Betreff:
we do something in struts, too for daimler chrysler.
greetings
juraj
-Ursprüngliche Nachricht-
Von: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 18. Oktober 2001 16:02
An: [EMAIL PROTECTED]
Betreff: AW: Struts Reference Site
Alan,
I could show you some
Will Jaynes wrote:
The collection attribute requires that the collection exists in some scope. It
seems that there isn't a way to use a collection straight from the form bean.
Actually, there is. From the HTML Tags documentation:
[if no collection attribute is specified]
The collection of
I have also been involved with a project using struts and recently completed
an ordering site for BP, it is still internal but is due to be internet
hosted in the next few weeks.
Regards,
Scott Atwell
- Original Message -
From: Bernhard J. Hirschmann [EMAIL PROTECTED]
To: [EMAIL
Hello everybody
When i do bean:struts id=form
formBean=suppressionForm/
that means that i copy a struts configuration object wich is fom the form
bean suppression bean
.
When i want to return the value of a field in this form it returns an error
like
This doesn't say what you think it is saying. The documentation is unfortunately
vague here. There are three possible collections involved here. A collection
that is just the values. A collection that is just the labels. A collection of
beans that hold both the values and labels, like a
I found the following advice in the struts archive regarding a tag within
a tag problem:
From: John Raley
Subject: Re: nesting bean:write inside of html:link
Date: Mon, 27 Aug 2001 13:22:41 -0700
It seems your mapping is not correct. It tries to look for an acteur
property in class org.apache.struts.action.ActionFormBean.
Check your struts-config.xml...
Je savais pas qu'il y avait un Jasper qui sortait des messages d'erreur en
français. T'as piqué ça où ?
- Original Message -
you can expose variables through tags by using a TagExtraInfo (TEI) class. check out
the source code
for the bean:define tag and its TEI class.
[EMAIL PROTECTED] wrote:
I found the following advice in the struts archive regarding a tag within
a tag problem:
Hi,
I have gotten myself into a bit of a jam and I am wondering if someone could
help me out.
I got a web app that a customer wants to make some last minute changes to.
From the looks of it, it looks simple but I can't figure it out. Hopefully
someone has an idea on how I can do this.
I have a
Thanks for the previous reply Cedric ( I deleted it so
I can't reply to it).
I am still having a problem.
I am using tiles-docs.war file.
I downloaded the latest binary zip file and the
tilesforstruts1-0.jar file does not seem to fix my
problem -- i get the exact same error -- no
classdeffound
Title: property in html:submit
Hi,
if I want to have two submit button in struts form to do tow diffrent things, is it possible?
Thanks
Frank
-Original Message-
From: Jonathan M Crater [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 9:49 AM
To: [EMAIL PROTECTED]
Hi Alex,
I believe your problem is that the CategoryList object is in the session, rather
than in your form bean. I think that struts will be fine with this to *display*
the information, but to update it, you need it in your form bean - as far as I
can tell, struts only populates stuff in the
Hello all , i have a problem on which i have been stuck for 3 days, i have
asked numerous developers and worked on this problem for days but to no
avail, i would be extremely grateful if you could advise me on how to
overcome this monstrous beast!
I am using the struts framework components to
I'm writing my first Struts application and want to use one frame
containing the input form and another frame to display the results.
If I use validation in the ActionForm (or populate ActionErrors in the
Action object), I know I can use html:errors/ to display errors in the
input form.
But do
Title: Struts 1.0 and EAServer 3.6.1
has anyone gotten struts to work in easerver?
Anyone know why my scriptlet in the following html:link tag is not being
evaluated?
**
%
String somepage= index.jsp;
%
html:link page=%=somepage%Click Here/html:link
No, upgrade to 4.0 you may have a better luck there.
Mark.
-Original Message-
From: John Regan [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 2:05 PM
To: [EMAIL PROTECTED]
Subject: Struts 1.0 and EAServer 3.6.1
has anyone gotten struts to work in easerver?
Hi,
Given that each user in the application has a unique ID and each link,
button, etc. on every page also has a uniques ID, what would be a good way
to track all user activity with MANY simultaneous users in a Struts/EJB
environment ?
Bill G...
You should probably look into the new servlet filters (spec2.3)..been
toying with them for a months...
using a filter should easily solve your problem...
mikkel
-Original Message-
From: Bill G
To: [EMAIL PROTECTED]
Sent: 18-10-2001 21:01
Subject: suggestions on tracking user activity
Title: Cancel in struts
Hi,
I can't figure out why my cancel doesn't work when I click the cancel button, it works like submit. is there anyone happen to have same problem ?
Thanks
Frank
-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18,
My first question is: Has anyone had any luck extending any of the tag libs
provided with struts (html, bean..)
Second, if so could some one post some example code.
Thanks,
Billy
___
http://inbox.excite.com
Not sure if this is right, but try using single
quotes.
- Sandeep
--- [EMAIL PROTECTED] wrote:
Anyone know why my scriptlet in the following
html:link tag is not being
evaluated?
**
%
String somepage= index.jsp;
%
I am having a problem with getting the bean:write to work with
the logic:iterate tags. This is the cleanest way I could find to
print a bunch of checkboxes with ids as the value to pass back to
my action and labels of the checkboxes all being filled with data
from a Array of customer
I figured out the answer to my question I requested previously.
I didn't use bean:write for the checkbox like everywhere else:
logic:iterate id=customer name=unapprovedCustomers
type=blah.blah.blah..CustomerBean
tr
td align=middlehtml:checkbox property=approvedCustomerIds
value=%=
Hello,
I am using the bean:message and the logic:iterate tags
to print a collection of messages (Vector of String):
logic:iterate id=key name=keys
bean:message name=key /
/logic:iterate
I get an exception at
org.apache.jasper.compiler.TagBeginGenerator.validate(TagBeginGenerator.java
:149)
Tried that. That's not it.
-Craig
Sandeep Takhar
If they are message keys from the resource file, like
msg.hello=Hello, then it should be key not name.
logic:iterate id=key name=keys
bean:message key=key /
/logic:iterate
The tag bean:write uses the name attribute (as do most
other tags in one way or another).
bean:write name=key/
David
David,
Thanks for your help.
I misinterpreted the docs and thought I could use
either key or name to get resources from file. I'll
try something else...
-Fabien
-
Fabien Modoux,
Voicemate - http://www.voicemate.com
-Original Message-
From:
How do you stop the form from being submitted if a javascript error, which
was called from the html:form onsubmit..., occurs. I get an error and I
say ok and the javascript tries to put focus on the field which is causing
the error, but the form still submits to the action class.
Here is some
Essentially correct. Thus javascript on the browser ensures that a date is a
date, a number a number etc. I like this approach as I can hook the
validation code into the onchange event of the form fields and hence the
user gets immediate error feedback.
In my action classes, they assemble the
I have been working with Struts and am very impressed. But it seems to me
that for Struts to be competitive with XML/XSL-based designs from a
usability perspective, it eventually needs to do a few of their more popular
tricks. I'm not sure if these are tooling or platform issues, but I would
ActionErrors validate(ActionForm form,HttpServletRequest request)
in perform():
ActionErrors errors = validate(addressForm,request);
if(!errors.empty()) {
saveErrors(request, errors);
forward = editAddress;
} else {
//
There is no support for indexing outside of the nightly build.
Find it and download it and it should get you going.
Even though it's in the documentation, there is no support for it in the
release version.
There has to be a couple of improvements in these indexed/nested areas,
but indexing is
Try: www.pizzahut.com.au
Cheers
Nathan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, 19 October 2001 12:25 AM
To: [EMAIL PROTECTED]
Subject: Re: Struts Reference Site
I have also been involved with a project using struts and recently completed
an
Hi:
Did anybody try to setup VisualAge for struts? If
anybody can give some pointers, it would be of great
help.
Thanks,
Hitesh.
__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
Change your javascript code to the following:
script
function validate()
{
if (document.forms[0].username.value == )
{
alert(User Name is a required field. Please fill in your User Name.);
document.forms[0].focus();
Hello:
I`d like any suggestion in
applying DataSource strategy.
Do you guys use struts` built-in
database connection pool,
or rely on calling JNDI resource definition?Or any
other methods?
Any suggestion/Discussion are welcome.
Regards,
Antony Chien
I made a mistake in what I sent. It should be.
logic:iterate id=key name=keys
bean:message key=%= key % /
/logic:iterate
David
--- Fabien Modoux [EMAIL PROTECTED] wrote:
David,
Thanks for your help.
I misinterpreted the docs and thought I could use
either key or name to get resources
I wanted to mention that the Validator validation
framework has some basic validations that tie
Javascript to the server side validations together.
So you don't have to worry about the Javascript being
run because the server side validation will always
happen. The validation framework is in the
Ah, thanks Jonathan - I've been using the latest release build (which I
unfortunately must stay with).
- Original Message -
From: Jonathan M Crater [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 18, 2001 9:22 PM
Subject: Re: where should validation happen?
paul--
i
Hi:
I am having tough time establishing peace between VAJ
4.0 WTE and struts. I am following the WebSphere
Version 4 Application Development Handbook.
WTE requires IBM XML Parser for Java and struts
requires me to use Xerces. The following packages are
conflicting between the two
-
Hi,
What are tiles? Can anyone provide some reference sites for me to know more
about tiles?
Thanks.
Regards,
Dave
Hi:
I am trying to run a struts sample with VisualAge 4.0
WTE. I get an error as follows:
Message: Directive: Invalid attribute, prefix
My JSP file is:
%@taglib uri=/WEB-INF/struts-html.tld
prefix=html%
html:html locale=false
html:errors/
html:form action=processNewEmployee.do
*First Name:
Thank you very much Matt. Yes I'd like to get the trim fct or anything
else in your arsenal that we'd be willing to share :-).
Best regards,
Thinh
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 8:05 PM
To: [EMAIL PROTECTED]; [EMAIL
Here's my version of a trim function as well as a few others ;)
I would put the trimSpaces function in an includes .js file and call it in
your pages using:
function validate()
{
// strips leading and trailing spaces
for (i=0; i document.form.elements.length; i++)
{
It does however reflect the additional records that have been that have been
written to the table when I
restart tomcat.
instead of
I does however reflect the additional tables that have been written to the
database when I restart tomcat.
-Original Message-
From: Brandon Goodin
I have an ActionForm that has a property which is a collection of beans. I
obtained this collection in my Action.perform() method.
In my JSP page, I want to display an html:options list where the label is one
property of each of those beans, and the value is another property.
It appears, from
Is your connection pool cacheing results - for example Poolman can cache
results
- Original Message -
From: Brandon Goodin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 2:22 PM
Subject: Options population from a Database
I am running into a bit of a problem
YES!! IT WAS POOLMAN. cacheEnabled was true. Is now false
God Bless You and prosper you. I spent too much time on that one.
Thanks
Brandon Goodin
-Original Message-
From: Robert Parker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 11:09 PM
To: [EMAIL PROTECTED]; [EMAIL
Note - Poolman cacheing of lookup type results can be great - but you need
to set the time-out appropriately...
Consider a busy site. Even cacheing for 3 minutes can save a lot of lookups.
If you do update the table, after 3 mins it should refresh...
- Original Message -
From: Brandon
Do you have a space between and like html:link page=_space_%=somepage% ?
Delete the space and try it again
Jens
[EMAIL PROTECTED] schrieb:
Tried that. That's not it.
-Craig
Sandeep Takhar
sandeep_takhar@ To: [EMAIL PROTECTED]
79 matches
Mail list logo