22
To: Struts Users Mailing List
Subject: Re: Upgrading to struts 1.3.5, nested tags are broken
On 3/7/07, Lance Semmens <[EMAIL PROTECTED]> wrote:
> We are in the process of upgrading to struts 1.3.5, I have followed the
> upgrade guide at http://wiki.apache.org/struts/StrutsUpgrade
g List'
Subject: RE: Upgrading to struts 1.3.5, nested tags are broken
Instead of using investor.name use record.name
Try this will work
-Original Message-
From: Lance Semmens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 2:54 PM
To: 'user@struts.apache.org'
We are in the process of upgrading to struts 1.3.5, I have followed the upgrade
guide at http://wiki.apache.org/struts/StrutsUpgradeNotes12to13. Most of the
nested tags now seem to be broken.
For example:
The following exception is thrown:
javax.servlet.jsp.JspExcep
It would be easy enough to do by writing a custom javax.servlet.Filter. You
would map your Filter to "*.do" in web.xml.
Alternatively you could configure a JDBC appender in log4j for
"org.apache.struts.action.RequestProcessor" at level "debug" although you might
find a bit too much junk is bein
You could either do it client side in javascript
setTimeout("confirmSessionExpire()", timeoutPeriod);
Or you could have a serverside thread and use DWR's amazing reverse ajax to
push alerts to the client(s) that are about to expire. Reverse ajax is part of
DWR2.0 and is not yet productio
scrap that idea... I was being a stupid head. cdms is your context path which
it ok.
-Original Message-
From: Lance Semmens [mailto:[EMAIL PROTECTED]
Sent: 17 November 2006 13:01
To: 'Struts Users Mailing List'
Subject: RE: can not reach the jsp file
> The URL that I ask
he jsp file
No , I am using firefox.
I can see no exception or warning in log file(tomcat's log).
My platform is Tomcat 5.5 on Debian Linux, I develope and test my code
in Netbeans IDE.
Ken
於 五,2006-11-17 於 10:22 +,Lance Semmens 提到:
> hmm... are you using IE?
> You may need to turn o
ss.
My struts-config.xml is as following :
The URL that I ask my browser to browse is :
http://localhost:8080/cdms/ShowDocs.do
Help ! what do I go wrong ?
Ken
於 四,2006-11-16 於 15:16 +,Lance Semmens 提到:
> I think you're missing a '/'
>
>
> To kee
Not exactly what you asked for but LocaleAction can set the locale then
redirect to a page.
http://struts.apache.org/1.x/struts-extras/apidocs/
-Original Message-
From: Mahmoud Saeed(RSW) [mailto:[EMAIL PROTECTED]
Sent: 14 November 2006 23:30
To: user@struts.apache.org
Subject: custom t
Any help?
Shawn
------
From: Lance Semmens <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List'
Date: Tue, 14 Nov 2006 09:51:00 +
Subject: RE: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form
The only thing I ca
I think you're missing a '/'
To keep your webapp a bit cleaner, perhaps consider
-Original Message-
From: Ken Hu [mailto:[EMAIL PROTECTED]
Sent: 16 November 2006 09:03
To: user@struts.apache.org
Subject: can not reach the jsp file
Dear All:
I'm doing a simple strus test, but all I ca
ean as the formbean and
java.util.Map as the contained object for a given property, and the
framework does populate new records into the contained map for me.
-ed
On 11/15/06, Lance Semmens <[EMAIL PROTECTED]> wrote:
> I realize your field names have to comply with the struts
ed HTML to see what format the field names are
as an example.
HTH,
-ed
On 11/14/06, Lance Semmens <[EMAIL PROTECTED]> wrote:
> The least messy way is to post to an addRecord action which adds a blank
> record to your form. Form must be in session scope. This requires a page
> red
ed HTML to see what format the field names are
as an example.
HTH,
-ed
On 11/14/06, Lance Semmens <[EMAIL PROTECTED]> wrote:
> The least messy way is to post to an addRecord action which adds a blank
> record to your form. Form must be in session scope. This requires a page
> red
A JS free application? You can assume today's browsers have javascript, the web
would break otherwise. Sure there are some cross platform issues but to go JS
free is a tall order and will limit you to a clunky UI.
If JS free is your direction, you could wrap your back button in a
that posts to
A possible solution might be to
1. Set validate="false" for your action.
2. Configure forwards for each of your error pages
2. Explicitly call form.validate() in your action
3. Call saveErrors() if validation fails
4. Redirect to the appropriate forward
Lance.
-Original Message-
From: N
I found this by googling struts crud
http://www.learntechnology.net/struts-crud.do
-Original Message-
From: santas [mailto:[EMAIL PROTECTED]
Sent: 14 November 2006 12:03
To: user@struts.apache.org
Subject: how to add edit/add/delete functionality
Hi all
i am new to struts
can anybody g
ike I want however I then loose the ability
to only get the checked value put into my action form after the page
is submitted.
----
From: Lance Semmens <[EMAIL PROTECTED]>
To: 'Struts Users Mailing Lis
The least messy way is to post to an addRecord action which adds a blank record
to your form. Form must be in session scope. This requires a page redraw so is
less responsive but this is the approach I often use.
If you add a row to your table using javascript, struts will not automatically
pop
A couple of things to check
1. Is your get action using the same form as your post action?
2. Do the names of the checkboxes in the html match your form?
3. Where are you resetting the checkboxes? I'm hoping you're doing it by
overriding ActionForm.reset().
-Original Message-
From: Garner
resultant HTML
On 11/10/06, Lance Semmens <[EMAIL PROTECTED]> wrote:
> 1. Can I use struts tags (eg ) without wrapping them in an
> (I'm pretty sure the answer is no).
>
> 2. Can I wrap my tags in but somehow not output to the
> resultant HTML.
>
> I was hoping
Hi, I'm wanting to use the struts tags to render my inputs. The only problem is
that my JSP page only draws a small section of the form (perhaps a single
) and is called via AJAX. So, I have 2 questions:
1. Can I use struts tags (eg ) without wrapping them in an
(I'm pretty sure the answer is
Dojo has a control that sounds like what you're after.
http://dojotoolkit.org/
go to:
see it in action --> form widgets --> form tour and look at the "state" field.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 26 October 2006 14:30
To: user@struts.apache.or
On your upload form, your property that maps to your file upload input should
be of type org.apache.struts.upload.FormFile. Then save the FormFile
.getFileData() and FormFile.getContentType() to the database.
-Original Message-
From: Vijay Venkataraman [mailto:[EMAIL PROTECTED]
Sent: 03
On your upload form, your property that maps to your file upload input should
be of type org.apache.struts.upload.FormFile. Then save the FormFile
.getFileData() and FormFile.getContentType() to the database.
-Original Message-
From: Vijay Venkataraman [mailto:[EMAIL PROTECTED]
Sent: 03
can do that without using java
scriptlets in my JSP.
regards,
Pankaj
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Lance Semmens
Marketpipe Limited
a. 7 Soho Square, London
Here's a better solution:
Extend LazyValidatorForm to implement java.util.Map (perhaps
BeanValidatorForm,
which LazyValidatorForm extends from, should do this?)
Then you could access ${myForm.myProperty} in the JSTL.
Lance Semmens wrote:
Use LazyDynaForm.getMap()
eg ${myForm.map.myPro
l commands, e-mail: [EMAIL PROTECTED]
--
Lance Semmens
Marketpipe Limited
a. 7 Soho Square, London W1D 3QB, UK
t. +44 20 7297 8401
f. +44 20 7297 8427
e. [EMAIL PROTECTED]
w. www.marketpipe.com
-
To unsubscribe, e-mail: [EM
---
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Lance Semmens
Marketpipe Limited
a. 7 Soho Square, London W1D 3QB, UK
t. +44 20 7297 8401
f. +44 20 7297 8427
e. [EMAIL PROTECTED]
w. www.marketpipe.com
Thanks, I had thought of this workaround too. I just wanted to highlight
the potential security issue when the validator rules fail to load.
Vinit Sharma wrote:
Hi,
You can store the dtd file on you local dir and refer its path from the
rules xml file.
HTH
On 5/2/06, Lance Semmens <[EM
this, my app works fine except there are now no rules being
applied to my forms which poses a *slight* security issue.
**
--
Lance Semmens
Marketpipe Limited
a. 7 Soho Square, London W1D 3QB, UK
t. +44 20 7297 8401
f. +44 20 7297 8427
e. [EMAIL PROTECTED]
w. www.marketpipe.com
I'm wanting to display a page with rows (1 for each bean in a
collection) with input fields that are saved on submit.
I'm pretty new to struts but have a rough idea of what should happen:
Display Action
1. Create the ActionForm
2. Populate form collection (database)
3. Save form on session
Is there any way to break up struts-config.xml into multiple xml files?
I'd like to be able to logically group my form and action mappings in
separate files.
Lance Semmens
Software Engineer
Swebtec
12 Hurlingham Business Park
Sulivan Road
London SW6 3DU
Tel: 020
I'm a newbie to struts and I'm maintaining what I consider to be
spaghetti code.
There actions which forward to other actions and I'm getting lost a bit
lost at times.
As a rule, should an action be all encompassing and therefore not need
to forward to another action?
-
Is there a standard way of handling invalid user input in date / number
fields etc. I can forsee 2 possible solutions.
1. Declare date properties on your form as java.lang.Strings and
validate / parse them explicitely.
2. Declare date properties as java.util.Dates, have struts parse dates,
check fo
35 matches
Mail list logo