Just took this puppy back to the developer list...
Arron.
Phase Web and Multimedia wrote:
The tag is a Link Tag. I by no means want to create a new tag. If you read
my explanation I state that. The additional attributes are neccessary
though. The reason being is that the functionality is not
The funniest thing about this discussion is that tomorrow it will all
amount to a pointless waste of energy.
...but some horny internet patron will type suck my Strut into google
and fetch this out of the mail archives
:-P
Arron.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Yes, I have.
Here's the code:
...
form-bean name=selectPPForm
type=forms.SelectPPForm/
action path=/selectPP
type=actions.SelectPPAction
name=selectPPForm
Hi !
I'm a newbie with struts and I cannot find the right way to do a simple
thing like this :
I would like to create an HTML form to modify the user information I
recorded in my database.
I didn't find how to initialize my form on a user-basis (the userId is
stored in the session).
Thanks
Hello,
and here is the code of the form bean (I forgot in the last mail). I
don't see any mistakes in my code. So I don't know why tomcat can't find
an gettermethod for the planningperiod - field..
.
package forms;
import actions.helper.*;
import org.apache.struts.action.ActionForm;
Hi,
I've got a DynaActionForm with an Array, I receive correctly an Array in my action but
when I redisplay the form, the input tags used to display array's elements (with
tabindex=n) doesn't display every elements but display the reference to the array
([Ljava.lang.String;xx).
Is it a
Yeah there are times when I could have done with this as well. What's
required really is a flag on the iterate tag named something like
loop=false where the end tag code will move to the next item in the
iterator/array/whatever but just drop out of the end of the tag, not
repeat it. then you
1. Create a value object that encapsulates the data once the user logs in.
2. Create a form bean that captures this data from the value object.
3. Modify struts config to assocaite this form with the action on the modify page.
I think thats it...
-Original Message-
From: Arnaud Gadby
Hi,
Thanx for your help. It works.
But now there's another funny problem. Struts produces by pasing and
generating the select tag an infinite loop.
It always calls the getter-method of planningperiodid in my helperclass,
although there are only two elements in my pplist.
Does anybody knows such
The next question is : how is it possible to access the session from the
FormBean constructor ?
---
Arnaud GADBY
EILEO
9ter rue Carnot
94270 Le Kremlin Bicetre
FRANCE
-Message d'origine-
De : Vikram Goyal01 [mailto:[EMAIL
Hi all,
Got a problem trying to move our app over to using tiles and its
probably specifically related to sub applications.
In this simple case, we have the default app and a sub app called
refdata. In the refdata config we have something along these lines:
action path=/showAScheme type=.
At 09:25 AM 5/2/02 +0200, you wrote:
Hi !
I'm a newbie with struts and I cannot find the right way to do a simple
thing like this :
I would like to create an HTML form to modify the user information I
recorded in my database.
I didn't find how to initialize my form on a user-basis (the userId
Hmm not sure why you want to do that..
If you are asking as to how step 2 takes place then this is how I do it..
In my definition of the form bean I have my value object as a parameter with the
corresponding get and set methods. In my get method for the value object, I copy the
form bean
Hi, Adam
Can you send me a copy of your code?
Thanks
Jose Galiana
Recursos en la Red, S.L.U
-Mensaje original-
De: Damien VIEL [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 24 de abril de 2002 11:59
Para: Struts Users Mailing List
CC: [EMAIL PROTECTED]
Asunto: Re: Singleton vs
Hi All,
This is the correct approach; but you can simplify things by writing a base
action class that your 'ReadUserAction' class extends. The base class might
look something like the one shown below. In this the setForm method uses the
entries from struts-config (mapping) to put the form in the
Hi,
I have a form where I want a user to enter a URL in a text box. In the
form's bean class I'm storing the URL as a java.net.URL.
Obviously, if a user enters something that isn't a valid URL then
BeanUtils.populate throws a MalformedURLException. I'd like to be able
to catch this in the
Hello,
Everytime i want to initialize the select tag in my jsp. Tomcat or
rather struts produces an infinite loop.
It always executes the getPlanningperiodid - Method of the
PlanningPeriodHelper Class. As you see i have hardcoded the list, which
has to be used for the select tag. But the problem
Hi everybody,
I just released StrutsWizard v1.0, this is an opentool for JBuilder IDE. This gallery
wizard can create ActionForm, Action and fully JSP input page.
Update in 1.0 release:
Work with Struts Console (JBuilder opentool mode) by James Holmes, now struts
wizard update
Hi again,
Been tracing through the code to see what the issue is (and if I can
fix it quickly) and spotted the problem. I'm not sure if this is going
to be problem anywhere else.
quick recap of what is going on:
call action in the /refdata sub app
that returns a tiles-def reference, which
Okay, sorry I missed yesterday afternoon's you suck fest (the head of the
department for which I am consulting got summarily canned and we were in
temporary disarray). To help try to get everybody to be friends again,
let's exchange greetings:
Guys:
http://www.karmafarm.com/formletter.html
Gut gemacht!!!
Stephan Wiesner wrote:
Hi, I'm writing a Struts tutorial. The actual version (30 pages at the
moment) can be found
at:
http://rzserv2.fhnon.de/~lg002556/struts/
It is written in englisch. And intended as an easy, step by step
introduction.
Stephan
--
To
I haven't said a word about this thread, but thank you for discrediting your
own criticism. Are you over 14?
Mark
-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 2:18 PM
The fact is that both of you typically shoot your
Try this:
html:cancel value=Cancel onclick=javascript:location='/do/home' /
Mark
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 1:26 PM
I have a form and it has a 'confirm' and a 'cancel' button. The 'confirm'
button submits to the
Did you really spent your time doing those forms - I would love to work for
your company.
From: Galbreath, Mark [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts (E-mail) [EMAIL PROTECTED]
Subject: Sorry Letters
Date: Thu, 2 May 2002 07:29:52 -0400
Okay, sorry
Hi,
I am attempting to create a (fairly) simple web app using struts. I need to
create a table of questions with each question having radio buttons (a range
of numeric values) so the user can input and submit their answers:
question1o o o o o o o o
question2o o o o o o o o
...
Okay, I (finally) agree with you. Thanks for the explanations.
Mark
-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 1:35 PM
To: Struts Users Mailing List
Subject: RE: Bean Bug?
Mark,
Regardless of how the number is formatted, there will
Does anyone run Struts under WAS 4.0? Is Xerces 3.2.1 works with Struts in
WAS 4.0?
Paul
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 8:58 AM
To: 'Struts Users Mailing List'
Subject: RE: Bean Bug?
Okay, I (finally) agree with you.
Hello I just tried to use the javascript eventhandler onClick in my
struts html:tag options.
I want to submit my HTML-Form every time an element of my select tag has
been selected.
The developer guide contains such methods. But the compiler throws an
error:
You have the onclick event handler in the wrong place; stick it in
html:select, not html:options.
Mark
-Original Message-
From: bjoern blum [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 9:14 AM
Hello I just tried to use the javascript eventhandler onClick in my
struts
... now that's good =) Thanks for the post Mark - very entertaining!
... a little warped here and there, but entertaining none-the-less =)
Eddie
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: Struts (E-mail) [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 6:29 AM
Or put this in your form:
html:cancel/
And this in your Action:
if (isCancelled(request))
return mapping.findForward(home);
-- Jim
Galbreath, Mark [EMAIL PROTECTED] writes:
Try this:
html:cancel value=Cancel onclick=javascript:location='/do/home' /
Mark
-Original
Sorry,
But it still didn't work..
Error code:
org.apache.jasper.compiler.CompileException: /select.jsp(16,0) Attribute
onclick invalid according to the specified TLD
You have the onclick event handler in the wrong place; stick it in
html:select, not html:options.
html:html
head
The html:select tag has the onclick attribute, not the html:form tag. And
you got to take care with the case, it´s onclick and not onClick (and I
wonder why this, against JLS and not like the other attributes)
Joao Guilherme Del Valle
[EMAIL PROTECTED]
Visionnaire Informática SA
Micael Padraig Og mac Grene wrote:
Mark,
You don't get it either. This is a STRUTS specific question. Thanks
for trying to help, however.
If no one understands your question maybe you aren't asking it clearly.
I know Flash and to me it sounds like you're asking about Struts writing
Hi fellowstrutsers,
What is the best (logical, efficient, safe...) place to call
ConvertUtils.register() in a Struts Webapp?
Anyone?
Remke Rutgers - [EMAIL PROTECTED]
Technisch Consultant
Bright Alley Knowledge Learning B.V.
Media Park - Sumatralaan 45
Postbus 10 - 1200 JB Hilversum
web
I have this definition file:
tiles-definitions
definition name=master path=/WEB-INF/pages/my_template.jsp
put name=title value=Can this be in the header? /
put name=logo value=/images/logo_fra.gif /
put name=header
Where can we get different HTML Header name+value information,
so that we can set from JSP/Servlet whenever required.
Any ideas?
-Original Message-
From: Vincent Aumont [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 7:45 PM
To: Struts Users Mailing List
Subject: Re: some PDF
This is what i will do:
When i call to the master definition from an ACtion y set the Title as
attribute in the request and then int the header.jsp, i write it.
Very easy.
HTH.
Enrique.
_
Enrique Rodriguez Lasterra
-Mensaje original-
De: Filipe Mateus
There are some excellent examples of tiles usage in struts-tiles.war. I
highly recommend checking that out. Not only will it answer the question
you have asked, but you will get additional insight into tiles that will
help you build better tiles applications.
Regards,
Eddie
- Original
Thanks, Ajay!
-Original Message-
From: Ajay Chitre [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 10:43 PM
To: Struts Users Mailing List
Subject: RE: How to access nested properties which may be null?
David,
Here's a trick I learned by looking at one of Craig's sample JSPs.
On Thu, 2 May 2002, Arron Bates wrote:
Date: Thu, 02 May 2002 17:01:25 +1000
From: Arron Bates [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: You suck! No, You suck!
The funniest thing about this
That sounds like a bug. Could you please submit a bug report to
http://nagoya.apache.org/bugzilla/ with a simple example?
Craig
On Thu, 2 May 2002, emmanuel.boudrant wrote:
Date: Thu, 2 May 2002 11:02:25 +0200 (CEST)
From: emmanuel.boudrant [EMAIL PROTECTED]
Reply-To: Struts Users Mailing
This list is sometimes incredible. I asked what to do about the fact that
the includes for Flash arrays are not governed by the requirements in
struts and that, consequently, they seemingly cannot be used inside WEB-INF
on sturts. A whole raft of people with limited knowledge and a lack of
Subject: Tile and parameters use...
From: PitBull [EMAIL PROTECTED]
===
Hi all,
I have the following situation:
%@ taglib uri=/WEB-INF/conf/tiles.tld prefix=tiles %
tiles:insert page=/Layout.jsp flush=true
tiles:put name=title value=My page /
tiles:putList name=jsList
!!! GGGHH !!!
stop. just stop.
it's obvious to me at least that there are two
perspectives that are not going to be reconciled
here both of which are saying you don't
understand.
to which i say so what!
i don't give a two bit pickle as to who started
Way ahead of you, Craig The director of Java Development for the
company for whom I'm consulting got canned and the whole team is going to
happy hour after work today to celebrate. I'll have a massive hangover
tomorrow morning. ;-)
Mark
-Original Message-
From: Craig R.
It works fine with Xerces 1.2.1 (default version supported by WAS 4)
Hertzel
- Original Message -
From: Chen, Paul (Consultant) [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 3:03 PM
Subject: Struts running in WAS 4.0
Does anyone run
Subject: How to deploy Struts-using app to Tomcat 4 from Forte?
From: Jeff [EMAIL PROTECTED]
===
I've just made the rather cruel discovery that getting web applications that
use Struts to work on a real web server running Tomcat 4 (as opposed to
Forte's built in Tomcat 3.2) isn't quite as
There is an open source polling application built using Struts/Expresso at
www.jcorporate.com which might be something to look at.
--
Sandra
-Original Message-
From: Daniel Haynes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 8:55 AM
To: Struts-User
Subject: Table of
Craig All,
The fragment below from Craig is a great clear answer - and it came out of
Craig's knowledge, AND James's knowledge and Micael's stubbornness -
altogether a good team effort. How about a beer and a group hug :)
Regards,
Phil
I don't know anything specific about Flash, so this is
I thought the Struts users on this list might be interested in this article
about XMLC vs. JSP.
It's pretty pro-XMLC. I couldn't find any contrary opinions in the Struts
archive. Does anyone know some disadvantages of XMLC compared to JSP?
Thanks,
Dan
Jason Hunter covers XMLC pretty thoroughly in chapter 17 of Java Servlet
Programming, 2d ed. I've only scanned it, but it looks like a balanced
treatment, even though Jason believes JSPs are from the devil.
Mark
-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent:
A question on HTTP 302 redirects and, somewhat indirectly, Struts:
We have a situation where one of our Actions needs to send a redirect
(HttpServletResponse.SC_MOVED_TEMPORARILY) to the client. It is a
requirement that the incoming request parameters, whether they be GET or
POST, be sent along
I think Mark is an independent consultant--does that mean you want to work
for him? ;)
cheers,
Joe Barefoot
P.S. Smile--I promise it doesn't hurt.
-Original Message-
From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 5:38 AM
To: [EMAIL PROTECTED]
Subject:
Here's an article comparing Velocity and XMLC. It points out some of the
short comings of XMLC so it is somewhat relavent. Of course you can use
Velocity with Struts too.
http://jakarta.apache.org/velocity/casestudy2.html
-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
The Wafer project on SourceForge is a project to compare 19 open source Java
web frameworks (including Struts, of course). It is in it's alpha stage.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/wafer/www/feature-
matrix2.html?rev=1.10
http://sourceforge.net/projects/wafer/
Subject: Re: How to deploy Struts-using app to Tomcat 4 from Forte?
From: Jeff [EMAIL PROTECTED]
===
OK, I got Tomcat set up with a proper virtual host. Once again, the plain
index.html file works, but the moment I try to load anything mapped to *.do,
it complains (output follows)
Does it look
Subject: Re: Using Reset with Checkboxes
From: Jose Quinteiro [EMAIL PROTECTED]
===
You should check for the checkbox parameter(s) in the request, and set
it(them) to false if they are not present.
For example, if you have a form called Foo with a boolean property
called fubar that is
Thanks,
So to wrap up this thread, I think this summarizes the article's points:
XMLC
-generates a file from a source file
-requires engineer and designer to use a common set of id names
-Original Message-
From: Pedone, Tim [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002
Subject: Re: How to deploy Struts-using app to Tomcat 4 from Forte?
From: Jeff [EMAIL PROTECTED]
===
Well, it looks like Tomcat didn't like struts-example.war either. I tried to
install it the same way:
http://host.domain.com:8080/manager/install?path=/war=jar:file:/home/moi/ex
I tried it, and it works perfectly! Now I understand the power of
tiles:importAttribute and bean:write
Thank you!
On Thu, 2 May 2002 17:08:09 +0200
Enrique Rodriguez [EMAIL PROTECTED] wrote:
This is what i will do:
When i call to the master definition from an ACtion y set the Title as
I got that error because I was using JDK 1.4.0 but not the special LE
edition of Tomcat 4.0.3 that works with JDK 1.4.0. Is that your case?
-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 4:55 PM
To: [EMAIL PROTECTED]
Subject: Re:
Hi all...
Can't find anything about this anywhere, thought i'd ask...
I am storing a piece of data in a special format. So, for a bizarre
example, I store a name in pig latin in the database. When I display the
name, I want it to show up formatted properly. Trouble is, this is in a
what about 2 getters and setters. one the deals in pig latin and one that
deals in english that has to translate on a get (maybe you don't need the
set).
bp
-Original Message-
From: Becky Moyer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 5:20 PM
To: [EMAIL PROTECTED]
Could you elaborate on the particular ways power and flexibility of
standard implementation approaches must be sacrificed by using something
other than jsp's. I think you're talking about being able to enter
scriptlets in emergencies. Could you describe the particular cases when you
could not
As some of you may be following, the jstl spec (jsr052) went to a proposed
final draft status a couple weeks ago.
Anyone have thoughts on how long it may be until final ballot? Then after that, how
long before the final spec is published?
On Thu, 2 May 2002 [EMAIL PROTECTED] wrote:
Date: Thu, 2 May 2002 18:46:10 -0400
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: JSR 52 and standard taglibs
As some of you may be following, the
hi,
I am trying to write my first web application. I am writing a filter to make
sure that a valid user is logged in before accessing a page.
I have a welcome page in applications root directory. All other pages are
under web-inf directory. From my welcome page user can login using
Rather than hardcoding the URLs in your filter class, you can define them as
filter parameters in the web.xml filter configuration:
Example:
filter
filter-nameloginFilter/filter-name
display-nameloginFilter/display-name
filter-classyour.filter.package.LoginFilter/filter-class
--- WEB.xml
!-- Filter Configuration --
filter
filter-nameCheckSignOnFilter/filter-name
filter-classcom.cgmp.ccm.web.logon.CheckSignOnFilter/filter-class
init-param
param-namesignon_url/param-name
param-valuelogon.do/param-value
/init-param
init-param
I almost didn't come to work today because it seemed so much like yesterday
was tomorrow.
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 9:57 AM
To: Struts Users Mailing List
Subject: Re: You suck! No, You suck!
On Thu, 2 May
I'll drink to that.
-Original Message-
From: Wes Bramhall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 12:28 PM
To: 'Struts Users Mailing List'
Subject: RE: You suck! No, You suck!
I almost didn't come to work today because it seemed so much like
yesterday
was
Hello,
I just started playing with DynaActionForms and have noticed that the reset
method resets all properties to their initial values. This is different
from the ActionForm where the reset method did nothing. In the past I've
usually redirected to an action to redisplay a form that was
73 matches
Mail list logo