Hi,
yesterday it took me a day to understand and resolve a problem so I
think it can be useful to share it; maybe someone can explain a
better solution.
I have a form with more than one submit button. The submit buttons
are images so I used the
tag on all but the "default" button.
Th
Thanks Nuwan. It gave me some useful info.
Anil.
-Original Message-
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 3:35 PM
To: Struts Users Mailing List
Subject: Re: How & Where to specify the Request Processor class name?
read this...
http://wiki.
On 11/28/06, Tarek Nabil <[EMAIL PROTECTED]> wrote:
Hi,
One of the problems with Struts was that if you had a page that requires
some setup and this page submits to an Action, then you would not be
able to set validate to true on that action because if validation
problems occur then Struts will
read this...
http://wiki.apache.org/struts/RequestProcessor
- Original Message -
From: "Anil Kumar T" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, November 29, 2006 6:53 AM
Subject: How & Where to specify the Request Processor class name?
Hi Guys,
I hav
Hi Guys,
I have read in the documentation and on the net also about the Struts
framework. There would be only one ActionServlet per web app and one
RequestProcessor per module. Is that true? Any body pls help me with
your answers and any useful sites.
I believe we can over write the ActionSe
Hi,
I read the following in the documentation
Errors are reported using the default validation message, not the
internationalized version that the server-side might be aware of. This
is a known issue. You may want to try the AJAX Client Side Validation
for messages that are fully internationaliz
That will only work if the response is nothing but JavaScript, in which
case your 100% correct (although many people say that eval() should be
renamed evil() and should be avoided like the plague... I'm not *quite*
that extreme in my avoidance of it).
As a quick proof:
var
Hi,
One of the problems with Struts was that if you had a page that requires
some setup and this page submits to an Action, then you would not be
able to set validate to true on that action because if validation
problems occur then Struts will take you directly to the input JSP
without performing
Or you could just call eval(ajax.responseText).
(*Chris*)
On 11/28/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
Hi Adam,
If your doing straight AJAX yourself, i.e., directly interacting with the
XMLHttpRequest object, this won't execute script for you automatically.
In fact, it won't do m
Or you can use a putList tag in your Tile Definition that lists just the css
(or js) files that you need for that page and insert them into the layout
dynamically.
(*Chris*)
On 11/28/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
I just implemented Struts Tiles in my web application.
I love the
Thanks Ted.
I sent the WAR file and zip file containing the source of the action to
your email address directly.
I have a couple of other questions that I'll post on another thread and
I hope you'll help me with them, so that I can conclude my evaluation.
-Original Message-
From: Ted Hu
I have the luxury of using any/current versions. Ask? I asked here...
==
Subject:
Re: Struts 2 / AJax : Ajax with Freemarker examples
From:
Musachy Barroso <[EMAIL PROTECTED]>
Date:
Tue, 28 Nov 2006 09:55:26 -0500
To:
Struts Users Mailing List
What version are you using? It doesn't seem
Hi Guys
I am new to Struts.Could any one send me a sample code where in i can set
the form bean values through the request and then retrieve the form beans
values in a jsp.
Thanking n advance
Sab
On 11/7/06, Thom Burnett <[EMAIL PROTECTED]> wrote:
What are common simple mistakes that would p
On 11/28/06, maya <[EMAIL PROTECTED]> wrote:
thank you very much.. downloaded lib and src downloads.. when
unzipped, found that all files under "docs" are xmls not htmls..
You're probably looking at the "source" of the html pages, which is xml.
The documentation is inside struts-documentati
thank you very much.. downloaded lib and src downloads.. when
unzipped, found that all files under "docs" are xmls not htmls.. :( oh
brother wonder also if there's an equiv. to this pg for 1.3.5...
http://struts.apache.org/1.3.5/struts-taglib/tlddoc/index.html.
many thanks..
Dav
Hi Adam,
If your doing straight AJAX yourself, i.e., directly interacting with the
XMLHttpRequest object, this won't execute script for you automatically.
In fact, it won't do much of anything for you automatially, aside from
parsing XML if that's your return type. Otherwise, it's just text to t
I just implemented Struts Tiles in my web application.
I love the concept of seperating everything that has to do with layout and
the rest.
But it seems that I will lose some performance now :
1)
The tag tiles:insert doesn't allow to include in a static way a jsp page.
2)
Since the head tag is
Actually its a double. sorry
--- Begin Message ---
no that variable is a float.
Hubert Rabago wrote:
Did you declared the variable that holds the "1896 / 100" value as int?
On 11/28/06, robin bajaj <[EMAIL PROTECTED]> wrote:
Sorry I forgot to mention,
I am actually dividing the 1896 cents by
no that variable is a float.
Hubert Rabago wrote:
Did you declared the variable that holds the "1896 / 100" value as int?
On 11/28/06, robin bajaj <[EMAIL PROTECTED]> wrote:
Sorry I forgot to mention,
I am actually dividing the 1896 cents by 100 before the jsp page
to make the value 18.96 and
Did you declared the variable that holds the "1896 / 100" value as int?
On 11/28/06, robin bajaj <[EMAIL PROTECTED]> wrote:
Sorry I forgot to mention,
I am actually dividing the 1896 cents by 100 before the jsp page
to make the value 18.96 and then display it using the formatkey as
$18.00.
I wo
On 11/28/06 4:06 PM, "Mark Menard" <[EMAIL PROTECTED]> wrote:
> On 11/28/06 4:04 PM, "Juan Espinosa" <[EMAIL PROTECTED]> wrote:
>
>> I want to know if render of buttons tables forms and other tags are based on
>> this templates..and how i could change it
>
> Hi Juan,
>
> The rendering of the bu
Sorry I forgot to mention,
I am actually dividing the 1896 cents by 100 before the jsp page
to make the value 18.96 and then display it using the formatkey as
$18.00.
I would appreciate a formatKey pattern that could convert 1896 straight
into $18.96 (without me having to divide it by 100).
Th
On 11/28/06 4:04 PM, "Juan Espinosa" <[EMAIL PROTECTED]> wrote:
> I want to know if render of buttons tables forms and other tags are based on
> this templates..and how i could change it
Hi Juan,
The rendering of the buttons is based on the theme template. The templates
can be found in the Strut
Hi Folks,
If I have an int value ( showing number of cents) in session scope that
is going to get displayed on the JSP as dollar value.
I am using the following tag
formatKey="format.msf" scope="session"/>
where I have the following key defined in my .properties file
format.msf=$#,##0.00
B
In struts 2 we already do that for you(link tag and button tag in the
ajax theme), this is the code to extract the javascript sections(from Dojo):
parse : function(s) {
this.log("Parsing: " + s);
var match = [];
var tmp = [];
var scripts = [];
while(match){
match = s.match(/]
I have a JSP and there's a link in the rendered page that makes an AJAX call
(to a Struts action) when clicked. The results of that action, and the
contents of the response are set as the innerHTML on a hidden defined
inside the afore mentioned rendered page. The is then un-hid.
Everything is
If you're already building the HTML yourself why can't you just build it
using the current values and set the appropriate radiobutton(s)?
From: Peter L. Berghold [mailto:[EMAIL PROTECTED]
> When the second trip happens the radio button "forgets" what the user
> set it to and they have to set it ag
Hi,
since I added a constraint for the length with minlength, I have the
following errror :
28-nov.-2006 21:31:33 org.apache.struts.validator.DynaValidatorForm validate
GRAVE: org.apache.struts.util.StrutsValidator
org.apache.commons.validator.ValidatorException:
org.apache.struts.util.StrutsVali
If you set
struts.ui.theme=simple in the struts.properties file
you won't fight with the templates and it will be sort of like good old
struts 1.
However, there are other gotchas in store. You have to get validation
errors on the screen yourself
using since the theme cleverly puts the valida
Hi to all, im building an struts2 based application and i dont understan the
concept of themes an templates. In the past i used struts 1, and in the view
i used jsp tags and struts tags like iterate and others.
Now in the application that im buildin i use tags provided by struts like
s:action s:i
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
OK... I've outsmarted myself and I'm looking for a way out of the corner
I painted myself into..
Here's the deal: I have a radio button (group?) that I want to build
dynamically based on the contents of a database table. This radio button
set will th
http://archive.apache.org/dist/struts/struts-1.1/
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
> Sent: Tuesday, November 28, 2006 2:37 PM
> To: user@struts.apache.org
> Subject: Re: struts-html question puzzling problem...
>
> Dave Newton wrote:
> >> F
Dave Newton wrote:
From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
thank you very much.. yes, the book uses 1.1.. I can't find any book
that uses later versions, no 1.1 download on Jakarta site..
http://struts.apache.org/downloads.html#PriorReleases
did go to "1.1" link? http://stru
David H. DeWolf wrote:
>
> If you can add a ticket to jira and post a small, simple, webapp that
> details the problem, that would help immensely.
>
>
Done: https://bugzilla.spamassassin.org/struts/browse/SB-96
A small war is attached to the issue. Use
http://localhost:8080/struts2tiles/
On 11/28/06, quinmeda1 <[EMAIL PROTECTED]> wrote:
A little more info
The following exception is thrown when trying to start the app with the
listener:
2006-11-28 10:44:15 StandardContext[/myapp]Exception sending context
initialized event to listener instance of class
org.apache.struts2.til
David H. DeWolf wrote:
>
> Can you find the entire stack trace?
>
Sure:
exception
javax.servlet.ServletException: Filter execution threw an exception
root cause
java.lang.NoClassDefFoundError: org/apache/tiles/TilesContext
java.lang.Class.getDeclaredConstructors0(Native Method)
Can you find the entire stack trace?
quinmeda1 wrote:
I'm definitely using 2.0.1. Found I had some extra tiles-core* JARs lying
around in lib. I cleared those out. Now the listener is working, but I'm
back to getting java.lang.NoClassDefFoundError:
org/apache/tiles/TilesContext when it tries
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
> thank you very much.. yes, the book uses 1.1.. I can't find any book
> that uses later versions, no 1.1 download on Jakarta site..
http://struts.apache.org/downloads.html#PriorReleases
There are documents on the Struts Wiki discussing c
Dave Newton wrote:
From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
I'm following chapter 3 of Wrox Struts book ("Professional Jakarta
Struts") to the letter.. using struts 1.3.5, Tomcat 5.5/1.4... get
TLD-related error on index.jsp (entire zipped-up webapp (small,
virus-free...:) here...
I'm definitely using 2.0.1. Found I had some extra tiles-core* JARs lying
around in lib. I cleared those out. Now the listener is working, but I'm
back to getting java.lang.NoClassDefFoundError:
org/apache/tiles/TilesContext when it tries to render the result. I'll keep
digging.
--
View t
From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
> I'm following chapter 3 of Wrox Struts book ("Professional Jakarta
> Struts") to the letter.. using struts 1.3.5, Tomcat 5.5/1.4... get
> TLD-related error on index.jsp (entire zipped-up webapp (small,
> virus-free...:) here... www.mayacove.
Hi,
In long time back..., it was requried to use those attributes of the
html:form tag.. but i you dont need them now for sure.., i think you book
may be some bit old.
for your second question.., the one you defined in the struts-config.xml..,
that lookuForm name will be used by the framwork
Very odd, the 2.0.1 tag
(http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_0_1/plugins/tiles/)
has no reference to the TilesContainer, and I thought it was
released/tagged before it was introduced. Are you sure you're using
struts 2.0.1 and not struts 2.0.2-SNAPSHOT?
David
quinme
hi,
I'm following chapter 3 of Wrox Struts book ("Professional Jakarta
Struts") to the letter.. using struts 1.3.5, Tomcat 5.5/1.4... get
TLD-related error on index.jsp (entire zipped-up webapp (small,
virus-free...:) here... www.mayacove.com/java/strutsWrox.zip)
did index.jsp, and the clas
Hi adam-
I would suggest invalidating what your session is carrying with
session.invalidate() and then re-populate ActionForm
I found this link quite helpful
http://mail-archives.apache.org/mod_mbox/struts-dev/200601.mbox/[EMAIL
PROTECTED]
Anyone else?
M-
This e-mail communication and any attac
A little more info
The following exception is thrown when trying to start the app with the
listener:
2006-11-28 10:44:15 StandardContext[/myapp]Exception sending context
initialized event to listener instance of class
org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundErr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vineet,
Vineet Chopra wrote:
> Hi All,
> I am using struts 1.2.9 and wanted to call a perl script.
> If any one has done it, will appreciate the help.
> An Example or a sample code will be great.
Do you just want to call Perl on the command line, or
Hi All,
I am using struts 1.2.9 and wanted to call a perl script.
If any one has done it, will appreciate the help.
An Example or a sample code will be great.
Also is it possible to send input parameters to the script?
--
Thank you,
Vineet Chopra
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam,
LIM Adam wrote:
> I have a "javascript:history.back()" link button. When I click on it, I
> want to remove an entry in my object with scriptlet.
> The problem is that the scriptlet is executed when my page is loaded and
> not when I click on my
Hi y'all
Here is my problem:
I have a "javascript:history.back()" link button. When I click on it, I
want to remove an entry in my object with scriptlet.
The problem is that the scriptlet is executed when my page is loaded and
not when I click on my button.
How could I manage it?
Thanks.
---
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mano,
Mano Chinthaka Dasanayaka wrote:
> Try Using
> type="org.apache.struts.validator.DynaValidatorActionForm">
>
>
>
>type="org.apache.struts.upload.FormFile"/>
>
>
> "org.apache.struts.validator.DynaValidatorActionForm"
Are you sur
What version are you using? It doesn't seem to be much documentation
about struts + ajax, but feel free to ask. There is a video and an slide
presentation here:
http://cwiki.apache.org/S2WIKI/articles-and-press.html, but I think the
video link is broken.
musachy
hanasaki wrote:
Anyone have
Mano Chinthaka Dasanayaka wrote:
> Hi,
>
> Any way ...this will not work through SSL
>
> I used this to an APP and worked fine in HTTP
>
> But failed when HTTPS...
>
> Can you please have a look into this too...Thanks.
Worked fine for me. We have apache2 sitting serving via SSL and talking
A
FWIW I'm running 2.0.1 with Tiles without difficulty.
I don't have the machine in front of me; I'm not sure which Tiles it's
using, though; I can post tomorrow.
Dave
From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H.
> I'm going to have to do some digging around to see if I ca
I inspected it myself in a debugger the other day, and the property
was in the map.
If you like, send me a WAR of the test application, so we can work out
what's wrong. (The list doesn't accept attachments.)
-Ted.
On 11/28/06, Tarek Nabil <[EMAIL PROTECTED]> wrote:
It exhibits the same behavio
Sorry guys, I've been traveling with the family for thanksgiving. . .
I'm going to have to do some digging around to see if I can replicate
your problem. I don't currently have an app using 2.0.1 (using the trunk
revision until 2.0.2 is released - this week I hope)
If you can add a ticket to
Antonio Petrelli wrote:
hicham abassi ha scritto:
But, i read on this mailing list, that a new subproject is on the way :
Tiles 2.0.
What's the status of this project, the date's release for a stable
version ?
Currently Tiles 2 is in the sandbox:
http://struts.apache.org/struts-sandbox/tile
hicham abassi ha scritto:
But, i read on this mailing list, that a new subproject is on the way :
Tiles 2.0.
What's the status of this project, the date's release for a stable
version ?
Currently Tiles 2 is in the sandbox:
http://struts.apache.org/struts-sandbox/tiles/index.html
We're on the p
Hello,
I want to integrate Tiles to my project without Struts. I have my own front
controller implementation.
Actually, the tiles packaged with struts 1.3.5 cannot be used in standalone
mode, the TilesServlet doesn't exist.
But, i read on this mailing list, that a new subproject is on the way :
T
Hi,
Any way ...this will not work through SSL
I used this to an APP and worked fine in HTTP
But failed when HTTPS...
Can you please have a look into this too...Thanks.
Regards,
Mano
-Original Message-
From: Chris Searle [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006
Hi,
With this DynaValidatorActionForm, you can have individual action mappings
validation in the validation.xml file
Regards,
Nuwan
- Original Message -
From: "Chris Searle" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, November 28, 2006 9:16 AM
Subject: Re: F
Mano Chinthaka Dasanayaka wrote:
> Try Using
> type="org.apache.struts.validator.DynaValidatorActionForm">
>
>
>
>type="org.apache.struts.upload.FormFile"/>
>
>
> "org.apache.struts.validator.DynaValidatorActionForm"
Ah - now that was it. I will now have to go do some reading on wh
Mano Chinthaka Dasanayaka wrote:
> Hi,
> As per my knowledge Your Libraries are Ok...any way ,
> Have you set the
>enctype="multipart/form-data">
I generate the form using velocity-tools support for struts rather than
JSP. The created form once displayed to the user has this html:
Try Using
"org.apache.struts.validator.DynaValidatorActionForm"
Regards,
Mano
-Original Message-
From: Mano Chinthaka Dasanayaka [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 2:32 PM
To: 'Struts Users Mailing List'
Subject: RE: File upload using DynaActionForm/
Hi,
As per my knowledge Your Libraries are Ok...any way ,
Have you set the
??
Regards,
Mano
-Original Message-
From: Chris Searle [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 2:15 PM
To: user@struts.apache.org
Subject: File upload using DynaActionForm/SynaValidatorForm
Struts 1.2
I need to try to get file upload to work for an existing struts app.
I was reading through the following:
http://wiki.apache.org/struts/StrutsFileUpload
where it mentions the following for Dyna action forms:
So - based on this - I ended up with the following for a DynaValidato
66 matches
Mail list logo