Hi tim,
At some point between 1.2.4 and 1.2.7 the validator was replaced for a newer version. Each of the
validate methods defined in the 'validator-rules.xml' now have an extra parameter, 'Validator'.
To fix this you can either:
1) Use the sample validator-rules.xml that comes with 1.2.7
Hello !
Hello I want to create my own LOCALE Object in my Session Listener
class. I need it to exist before Struts Request Processor is executed.
How to do it in Struts ? Does Struts have any mechanism to create such
an object ?
Kind Regards,
Lukasz
Hi everyone,
I'm runnig Struts 1.2.7 with tiles and I am wondering if it is possible to
call an action-link, that is defined in the struts-config.xml without calling
the defined action-class and the corresponding execute/perfom-method.
Right now I have the problem that I have html:links and
Hi,
I found that the easiest way to do this is to use LazyLists. (cf.
http://wiki.apache.org/struts/StrutsCatalogLazyList). You can then work just
as you
with fixed lists. An example:
in my jsp I have something like ...
logic:iterate name=FgZuordnungForm property=zuordAll id=zuordAll
tr
Hi everyone,
I have the following problem and cannot find a real solution to it. Usually
this should be a common and known problem, so I'm wondering if I anyone has
found a solution to this.
I have internationalized my struts 1.2.7 application through tiles and the use
of ResourceBundle an
Hi Hubert,
Thanks for the suggestion. I tried the second option
2) Override the default ActionMapping class and set its default scope
value to request.
Extended the ActionMapping class and in the CustomActionMapping
constructor called super.scope=request. It works , however is there
any known
Here my solution (some stuff I found on the net and adapted for my
needs). I don't actually use the display stuff, couse I do it
otherway... so you can ignore it.
I hope it'll help
Cheers
Danny
*
1) Action
public class ChangeLocaleAction extends Action {
I like the direction this is going. My thoughts on this...
I like the syntax familiar syntax set-if name=styleClass value=#{shale:
attribute.class}/
However, how about instead of inventing a new syntax #{shale:
attribute.class} we use the existing one. For example
set name=styleClass
struts-config.xml:
form-bean name=userProfileForm
type=org.apache.struts.validator.DynaValidatorForm
DispatchAction class:
DynaActionForm userProfileForm = (DynaActionForm)form;
...
userProfileForm.reset(mapping, request);
return mapping.findForward(success);
The reset function does not clear
Which one should be installed? from
http://sourceforge.net/project/showfiles.php?group_id=73068
I see so many files under
1.0 [show only this release] 2005-01-01 09:28
Download displaytag-1.0-src.tar.gz
Download displaytag-1.0-src.zip
Download displaytag-1.0.tar.gz
Download displaytag-1.0.zip
Use this http://displaytag.sourceforge.net/
Chris McCormack
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: 03 November 2005 13:38
To: Struts Users Mailing List
Subject: (Possible OT) Question using struts-layout TagLib
Greetings
I am seeking a Grid control
On 11/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi Hubert,
Thanks for the suggestion. I tried the second option
2) Override the default ActionMapping class and set its default scope
value to request.
Extended the ActionMapping class and in the CustomActionMapping
constructor
Use the zip or the tar.gz it's the same content
you just need another programm to extract it
regards Starki
-- Initial Header ---
From : fea jabi [EMAIL PROTECTED]
To : user@struts.apache.org
Cc :
Date : Mon, 07 Nov 2005 09:22:31 -0500
Subject :
thankyou for your response.
there are 2 files I see in the zip.
displaytag-12.tld and other is the displaytag-el-12.tld.
what is this el? which one should I extract?
I am using jsp1.2, tomcat 5.5.7.
Thanks.
From: starki78 [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
Danny,
thank you very much for this ideas. Unfortunately the display-stuff together
with the request.getRequestURL() doesn't work for me either, because I am
working with tiles and therefor the requestURL is not correct. So I am pretty
interested in what you do with the lastAction-Attribute in
You just need the displaytag-12.tld (without el). The other version (I
think) contains code to evaluate expression language
expressions. In your case this should be automatic.
Martin
-Ursprüngliche Nachricht-
Von: fea jabi [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 7. November 2005
Friends,
We know that ,its possible to access the key-value pairs for resorce
Bundle.But,How to access inbetween values from resource Bundle in Struts?I
mean if we have 50 values as a key value pair.But i have to access values from
38 to 49 only.How to access them?Any Thoughts...
Regards,
Pretty easy,
I'm storing each actual action in lastRedirect - attribute
and each actual parameter in lastParameter. Affter some critical
actions I do redirect to this saved stuff.
It works well, but there are some non critical problems (esp. with user
doing these actions after clicking on go
Ryan Wynn wrote:
I like the direction this is going. My thoughts on this...
I like the syntax familiar syntax set-if name=styleClass
value=#{shale:attribute.class}/
However, how about instead of inventing a new syntax
#{shale:attribute.class} we use
the existing one. For example
set
On 11/7/05, Thomas Hamacher [EMAIL PROTECTED] wrote:
Hi everyone,
I have the following problem and cannot find a real solution to it. Usually
this should be a common and known problem, so I'm wondering if I anyone has
found a solution to this.
I have internationalized my struts 1.2.7
Couple of months back i faced this kind of requirements for some reports,
unfortunately our choice was ireport. After few findings I came to know that
neither ireport nor jasper report supports cross tab directly but there are
few way to do that, if you are a pain lover like me then probably you
On 11/7/05, fea jabi [EMAIL PROTECTED] wrote:
thankyou for your response.
there are 2 files I see in the zip.
displaytag-12.tld and other is the displaytag-el-12.tld.
what is this el? which one should I extract?
I am using jsp1.2, tomcat 5.5.7.
Have to tried to read DisplayTag
We're re-building a web site. No guarantees that the site will have the same
name as the old. So from my understanding of the cookie process this means a
new cookie.
(Near as I can tell a cookie file is: username@website[#].txt)
However, to make life easier for our customers I'm wondering if
So, are you thinking that #{shale:managed-bean-name.save} would be
something that would evalutated entirely within a custom shale jsf
VariableResolver or would the symbol replacement be done in the clay chain (
i.e. replaceMnemonic) and then passed to the standard VariableResolvers?
On 11/7/05,
On 11/7/05, Thomas Hamacher [EMAIL PROTECTED] wrote:
Hi everyone,
I'm runnig Struts 1.2.7 with tiles and I am wondering if it is possible to
call an action-link, that is defined in the struts-config.xml without calling
the defined action-class and the corresponding execute/perfom-method.
Hello,
I would like to do something in my jsp if the size of the list property
'LAdressesLivraison' of my Form bean 'CreateAccesForm' is greater than 0:
I can't have the size of my list like this
logic:greaterThan name=CreateAccesForm property=LAdressesLivraison
parameter=size value=0
do
Look at the logic:empty and logic:notEmpty tags... I think that's
what you need.
-Original Message-
From: arnaud gonzales [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 12:42 PM
To: user@struts.apache.org
Subject: accessing from jsp to the size of a list property of
my
So, are you thinking that #{shale:managed-bean-name.save} would be
something that would evalutated entirely within a custom shale jsf
VariableResolver or would the symbol replacement be done in the clay chain (
i.e. replaceMnemonic) and then passed to the standard VariableResolvers?
A custom
Hello,
What would be the best aproach without hurting MVC framework in having one
central template.jsp and inserting into it Struts actions, such as:
table
trtd
jsp:include=/Menu.do
/tdtd
jsp:include=/News.do
/td/tr
/table
The usual jsp:include
I would suggest using Tiles.
Greg
On Nov 7, 2005, at 12:55 PM, Marcio Ghiraldelli wrote:
Hello,
What would be the best aproach without hurting MVC framework in
having one central template.jsp and inserting into it Struts
actions, such as:
table
trtd
On 11/7/05, Marcio Ghiraldelli [EMAIL PROTECTED] wrote:
Hello,
What would be the best aproach without hurting MVC framework in having
one central template.jsp and inserting into it Struts actions, such as:
table
trtd
jsp:include=/Menu.do
/tdtd
I don't know what a '1.3 FOP formatted document' is.
The PDF's produced by jasperreports-1.0.1.jar begin with %PDF 1.4 (or
something similar that contains 'PDF' and '1.4').
It renders my country's (Croatia) specific characters (šđčćč)
correctly, and the JFreeChart graph images look nice too.
Pdf
In the JSP I have the below. which is working fine using struts tags.
Now would like to use displaytags as it has auto sorting of columns. How can
I convert the below to use displaytag? as the form that's used in the jsp
is different from the one that's used to display the data in the table.
Fea,
You should really look at the DisplayTag site's examples. They show how to
do the looping on your collection and how to add the hrefs for linking to
your application. After reading those, you'll be able to redo your JSP
without assistance.
See http://www.displaytag.org
Regards,
David
Hello,
I'm searching the manner to do a reverse iteration,
any idea ?
Thanks in advance
--
Cordialement,
Arnaud Gonzales.
Hi,
I have an object that contains a list of sub-objects. These sub-objects
hold another list (say sub-list) )of sub-sub-objects:
object-list-sub-object-sub-list-sub-sub-object-property.
I am displaying various properties of the sub-sub-object - which can be
changed by the user - I want struts
Displaytag.sourceforge.net
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Friday, November 04, 2005 8:11 AM
To: user@struts.apache.org
Subject: sorting of table columns
can we sort table columns when clicked on the column header using
struts? I
mean does struts
I posted this email a week ago, and received no response, so I am
going to try again and change my verbage.
Below is a JSP file which uses struts client-side validation. The
validtion works great when you use either the html:submit or a
normalinput type=submit. This is all good.
Problem is, when
That's because, by design, a javascript submit() call does not invoke
whatever's established as the form's onSubmit action. It's not a struts
thing, it's a javascript/web browser thing.
In these situations, just call the validation function directly in your
javascript, e.g.:
function doIt(form)
I managed to solve it another way:
...
td width=70%
bean:include id=header href=HeaderAction.do?id=1 /
bean:write name=header filter=false /
br
br
/td
...
This way I can easily
Dave-
This sounds like a really cool tool !! How much work would be needed
to commoditize it for general release?
-ed
On 11/4/05, Dave Newton [EMAIL PROTECTED] wrote:
Nick Heudecker wrote:
I didn't know people were still using Strutsdoc. I should probably start
maintaining it again.
I have a struts app that uses a Daemon thread (implements TimerTask) to run
at a periodic interval to do some background work. I am wondering if it is
possible to access application context from that daemon as I don't have
access to request/session variable from that daemon.
Also, is it possible
Ed Griebel wrote:
This sounds like a really cool tool !! How much work would be needed
to commoditize it for general release?
Probably not too much, although the code is pretty ugly (a let's learn
Ruby exercise).
I'll take a look at it tomorow and put it up somewhere and follow up on
thank you all for helping me. I've got this working. This tag is great.
I've one question though.
I used a headerClass. in which I gave the color attribute to be white. I
thought the text of header will be white. But it is not. It was displaying
in white before I used the displaytag.
Is
On 11/7/05, Scott Piker [EMAIL PROTECTED] wrote:
That's because, by design, a javascript submit() call does not invoke
whatever's established as the form's onSubmit action. It's not a struts
thing, it's a javascript/web browser thing.
In these situations, just call the validation function
Hi all,
I need to do something like that:
bean:write name=foo property=bar(bean:write name=quz) /
But I get an error about an equal begin not in the right place.
Right now, the only solution I found is to use scriplet to generate the
bar(whatever) strings, to put that in a foobar
I was interested in getting feedback from current mail group users.
We have mirrored your mail list in a new application that provides a more
aggregated and safe environment which utilizes the power of broadband.
Roomity.com v 1.5 is a web 2.01 community webapp. Our newest version adds
I have a form field on my JSP that's being conditionally displayed based on the
status of servlet context attribute:
logic:equal name=mode value=%=Globals.REQUIRED%
html:text property=myField size=15 /
/logic:equal
I'm using the Struts validator to validate this field:
field
hola quiero cambiar manualmente, por programacion el locale para cambiar de
idioma en la aplicacion web.
para ello tengo un action de struts conel sigueinte codigo pero nome cmambiael
locale, o al menos no me coge el fichero correspondiete a ese idioma que queiro
cambiar, de recursos, siempre
hi all,
i am new to struts validation.
i foung some nice tutorials which validates action forms using
validator-rules.xml and validation.xml(which connects validator-rules.xml and
formbean name in stuts-config.xml).
but my form bean looks like this(i am using 2 more beans in my action form)
Hi all,
I'm pretty new to Struts (and using 1.0 at that, for business
requirements). I've built a pretty simple application, retrieving
records from a database, populating the Form object and using JSTL and
struts tags to display the results. What I want to now do however, is
provide a Print
Shailesh,
I don't quite understand what you are trying to do, but do you know you can
put values from 38 to 49 only in a separate resource file and construct
another ResourceBundle? Does this work for you?
On 7 Nov 2005 12:58:34 -, Shailesh Barde [EMAIL PROTECTED]
wrote:
Friends,
We know
Do you know Servlet Filter?
Regards
On 11/7/05, Łukasz Piątkowski [EMAIL PROTECTED] wrote:
Hello !
Hello I want to create my own LOCALE Object in my Session Listener
class. I need it to exist before Struts Request Processor is executed.
How to do it in Struts ? Does Struts have any
On 11/7/05, Chad Armstrong [EMAIL PROTECTED] wrote:
Hi all,
I'm pretty new to Struts (and using 1.0 at that, for business
requirements). I've built a pretty simple application, retrieving
records from a database, populating the Form object and using JSTL and
struts tags to display the
On 11/7/05, Benjamin Lerman [EMAIL PROTECTED] wrote:
Hi all,
I need to do something like that:
bean:write name=foo property=bar(bean:write name=quz) /
But I get an error about an equal begin not in the right place.
Right now, the only solution I found is to use scriplet to generate
hi all,
i am new to struts validation.
i foung some nice tutorials which validates action forms using
validator-rules.xml and validation.xml(which connects validator-rules.xml and
formbean name in stuts-config.xml).
but my form bean looks like this(i am using 2 more beans in my action
form)
Michael's idea prompted me. I use two style sheets, one for 'print' and one
for 'screen'.
Generally I find that the print and screen css are applied heirarchically, so I
code most
of the stuff I want in the 'screen' css and my print one looks like follows:
BODY {
margin: 10px;
On 11/7/05, Gary VanMatre [EMAIL PROTECTED] wrote:
So, are you thinking that #{shale:managed-bean-name.save} would be
something that would evalutated entirely within a custom shale jsf
VariableResolver or would the symbol replacement be done in the clay
chain (
i.e. replaceMnemonic) and then
Thanks guys, yeah I was hoping that a submit would be a submit,
regardless of browser window, just redirecting the request/response
stream, but maybe not. I'm familiar with the CSS options you offered,
so I will fall back to those same-window options if no new-window
solutions are found.
Chad
On
Subject line says it all.
I've been contemplating this topic. The best answer I can give here is that in
Struts 1.3, you
really don't have to ever deal with an Action class at all - use ChainAction as
an entry point
into your chains. But how would you model a real world application using the
Looks like using nested tags helps only if I don't have lists/sub-lists
i.e. the object heirarchy is
object-sub-object-sub-sub-object-property
nested:root name=object
nested:iterate property=sub-object type=..
trtd
nested:iterate property=sub-sub-object type =..
nested:textarea
On 11/7/05, Gary VanMatre wrote:
So, are you thinking that #{shale:managed-bean-name.save} would be
something that would evalutated entirely within a custom shale jsf
VariableResolver or would the symbol replacement be done in the clay
chain (
i.e. replaceMnemonic) and then
Prabdoh,
You are much better off using JSTL so you can write something like:
html:textarea property=${form.object[i].subobject[j].property/
Once you go JSTL, you never go back :-) Which makes the nested object tags
obsolete.
Paul
--- Deshmukh, Prabodh (P.) [EMAIL PROTECTED] wrote:
Looks
1st, you can use Commons Chain in Struts 1.2.X. In 1.3 the request
processor is done in Chain... but a user can't tell.
You can use Commons Chain (a CoR pattern) outside of Struts.
It lets you xml configure a command to execute, or ... several commands
(hence it's called Chain) Anyone can look
On 11/7/05, Gary VanMatre [EMAIL PROTECTED] wrote:
On 11/7/05, Gary VanMatre wrote:
So, are you thinking that #{shale:managed-bean-name.save} would be
something that would evalutated entirely within a custom shale jsf
VariableResolver or would the symbol replacement be done in the
On 11/7/05, Gary VanMatre wrote:
On 11/7/05, Gary VanMatre wrote:
So, are you thinking that #{shale:managed-bean-name.save} would be
something that would evalutated entirely within a custom shale jsf
VariableResolver or would the symbol replacement be done in the clay
Hi all,
I got a problem when I use Struts Framework, everytime I do a action, Struts
automatically appends jsessionid parameter in URL
something like below:
http://localhost:8080/test/index.do;jsessionid=5DF06EA..
plz help me and show me how to erase jsessionid parameter and I don't know
On 11/7/05, netsql [EMAIL PROTECTED] wrote:
1st, you can use Commons Chain in Struts 1.2.X. In 1.3 the request
processor is done in Chain... but a user can't tell.
You can use Commons Chain (a CoR pattern) outside of Struts.
For more about Commons Chain generally, see also
*
hi,
try to use onClick instead of onSubmit when you are using the javaScript
submit
Cheers,
Vishal
-Original Message-
From: Jim Reynolds [mailto:[EMAIL PROTECTED]
Sent: Friday, November 04, 2005 7:12 PM
To: user@struts.apache.org
Subject: Client Side Validator Fails When Submit from
I'm currently in the middle of a project at work that makes heavy usage
of CoR (it's only a very small webapp component, the vast majority of it
is business process, and that's a rather large piece). I am using the
CoR implementation in Java Web Parts rather than Commons Chain because
it has
Hi all...
I.e any way of using the logic:match tag less
strictly, so that logic:match parameter=var
value=bla will not cause an exception if var is
null. At the moment I am getting:
javax.servlet.ServletException: Cannot compare null
variable to value signup
thanks to MC, but ... it still doesn't work, jsessionid is still available
in URL after I add redirect to forward tag :(
help me plz :(
*
Pham Anh Tuan
Java Developer, HR Assistant
ICHI Corporation Vietnam.
Room #1001, 37 Ton Duc Thang, Dist. 1
Have you tried JSTL?
--- Mon Cab [EMAIL PROTECTED] wrote:
Hi all...
I.e any way of using the logic:match tag less
strictly, so that logic:match parameter=var
value=bla will not cause an exception if var is
null. At the moment I am getting:
javax.servlet.ServletException: Cannot
On 11/7/05, Mon Cab [EMAIL PROTECTED] wrote:
Hi all...
I.e any way of using the logic:match tag less
strictly, so that logic:match parameter=var
value=bla will not cause an exception if var is
null. At the moment I am getting:
snip/
Which is as advertised here [
On 11/7/05, Pham Anh Tuan [EMAIL PROTECTED] wrote:
thanks to MC, but ... it still doesn't work, jsessionid is still available
in URL after I add redirect to forward tag :(
Struts is not doing this, at least not directly-- your Servlet
container is. See SRV.7.1 (of the Servlet 2.4
thank you, Wendy :)
It's just because my client don't want to see jsessionid in the url :( ...
*
Pham Anh Tuan
Java Developer, HR Assistant
ICHI Corporation Vietnam.
Room #1001, 37 Ton Duc Thang, Dist. 1
Ho Chi Minh City, Vietnam.
Phone: (+84)
thank you, Frank :)
As u said, if I want to disable jsessionid in URL, I must turn on cookie on
my browser ? uh? Is it rite? I'm not sure that I understood what you mean
:( Aside from enabling cookies ..., enable cookies on my browser :( ... or
where ?
plz help and show me more details :(
Yeah,I might have wrote that a bit confusing :) All I meant is that if
cookies are enabled in the browser, then URL rewriting won't be used...
well, PROBABLY... I suppose the container still could do URL rewriting,
but I doubt any would... although, I wouldn't be surprised if you could
tell
On 11/7/05, Pham Anh Tuan [EMAIL PROTECTED] wrote:
thanks to MC, but ... it still doesn't work, jsessionid is still available
in URL after I add redirect to forward tag :(
help me plz :(
The first time you load page and perform a redirect, you will see
session id in the URL, it was added by
thanks Frank ... but :( ... I turned cookie accept on in my browser
(Firefox, IE), but jsessionid still be appended URL :( ... what happened,
hiz :(
*
Pham Anh Tuan
Java Developer, HR Assistant
ICHI Corporation Vietnam.
Room #1001, 37 Ton Duc
Did it only show up on the first request? As Michael indicated in his
post, that is a normal behavior. If it's there all the time, I would see
what your container is configured to do. As I mentioned before, I believe
you can control what most containers do.
--
Frank W. Zammetti
Founder and
jsession is appended all time, it's not only at the first request! :(
Oh, maybe I should recommend my client that Just let it me, jsession is not
our problem, ... :) ...
thank you very much, Frank!
PS: if I want to change whether or not jsessionid is used, I must config
container ? Do
On Tue, November 8, 2005 1:37 am, Pham Anh Tuan said:
PS: if I want to change whether or not jsessionid is used, I must config
container ? Do you have any document which instruct me how to
reconfig
container :(, if you had, plz show me, uh :) ... thank you :)
I'm assuming it's possible,
83 matches
Mail list logo