[EMAIL PROTECTED] wrote:
There is no JavaScript implementation of the url validation.
Niall
Does it mean that the default url validator in validation.xml doesn't
work?
No, it means that it only works on the server-side; there is no client
side validation for this rule type.
L.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Wednesday, May 09, 2007 11:26 AM
To: user@struts.apache.org
Subject: Re: Struts 1.3.8 and URL Validation
[EMAIL PROTECTED] wrote:
There is no JavaScript implementation of the url
ok thx for the help
On 5/9/07, Nuwan Chandrasoma [EMAIL PROTECTED] wrote:
Hi,
This is something to do with your server, see your server documentation to
hide the jsessionid from the URL
http://www.junlu.com/msg/201119.html
Thanks,
Nuwan
- Original Message -
From: rangana
Hi,
This is something to do with your server, see your server documentation to
hide the jsessionid from the URL
http://www.junlu.com/msg/201119.html
Thanks,
Nuwan
- Original Message -
From: rangana samarasinghe [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Wednesday, May 09,
Hi.
I have actions in struts1 and struts2 in one application. Those struts1
actions will be re-writed in near future to struts2. But i need one
thing for now. In struts2 (Test.action ) i have some parameters -
collection of id's which i want to transmit to struts1 (Test2.action).
I cant do a
Hi,
I try to validate a form, but I can't make it work, and I don't understand
why ...
So I have the following form in a JSP :
s:actionerror /
s:form action=submitCreerDemandeAbsence id=form1
s:textfield
id=matriculeDemandeur
2007/5/9, Olivier THIERRY [EMAIL PROTECTED]:
Hi,
I try to validate a form, but I can't make it work, and I don't understand
why ...
So I have the following form in a JSP :
s:actionerror /
s:form action=submitCreerDemandeAbsence id=form1
s:textfield
Well, it still doesn't work :(
A few questions :
- Do I have to put the xxx-validation.xml files in a specific directory ? I
put them in the WEB-INF/classes directory ...
- And has the first part of the validation xml file to be the action name
(name attribute in struts.xml file) or the action
2007/5/9, Olivier THIERRY [EMAIL PROTECTED]:
Well, it still doesn't work :(
A few questions :
- Do I have to put the xxx-validation.xml files in a specific directory ? I
put them in the WEB-INF/classes directory ...
you have to put it in the same package than your action
- And has the first
I dont want mail from this user group and i sent mail for unsubscribe also but
its not working ... tell me how to unsuscribe this user group?
Olivier THIERRY [EMAIL PROTECTED] wrote:
Hi,
I try to validate a form, but I can't make it work, and I don't understand
why ...
So I have the
I would like to hear what is good practice for prepopulating forms.
For example, I want to create a Map with options to populate a select
with, and this needs to be done before validation but also after failed
validation before the form is redisplayed.
Right now I am creating the map in the
Hello,
I know it is not a struts based query but still i would like to have your
idea,
Can i install a file on the client host of the pc e.g. a text file whenever
a user presses some action in my jsp.
If yes can i run that file if it is exe. I am thinking of some parallel
activity on clietn
can we user HIDEFOCUS attribute in s:a href= tag in Struts2.0.6?
Vijay Prajapati
OK, it works now. Not perfectly, but it works.
Actually I had to name my validation file
CreerDmandeAbsenceAction-submitCreerDemandeAbsence-validation.xml, beginning
with an uppercase letter. Then I put this file in my action package as you
said. But it worked only when I set the validate
hi all
how to retrieve values from the HashMap
i have set it as
*hashMap*.put(*new* Integer(questionId),*new*Integer(
testDAO.getMarks(catid, typeid, patternid)));
how to getthese values again
thanks
jalaludeen
Hi, I'm making the assumption that you are using struts1 and you want to
access the map in a struts tag.
I couldn't find a way of accessing properties mapped by anything else
but a string
Therefore, try
hashMap.put(String.valueOf(questionId), new
Integer(testDAO.getMarks(catid, typeid,
Laurie,
Here are some more details.
I have a collection of beans (simple pojo's - com.xyz.SomePojo ) that
have a name and description field, both are strings. This is what the
'credential.credentialGenerators' call returns.
If I use the S2 select tag the name and value for the option(s)
I just called my validation file ActionClassName-validation.xml, don't
even know what this alias is... and validation seems to work fine.
As far as I recall (can't check it right now) I did not have to set
validate=true for my form.
I am also using the ajax theme but I set it using the s:head
Great, that was quickly fixed :-)
I'm looking forward to 2.1.0!
Thanks!
Torsten
Musachy Barroso wrote:
I found several problem with the datetimepicker, first (and the worst) is
that the names of the input fields (visible and hidden) were switched.
Second, the hidden field was storing just
Hi,
I'm new user in Struts, so i develop a application and I deploy it in my
server.
when I execute it I have this problem:
Servlet action not available.
For more information I use:
-Tomcat 5.5.4
-Struts 1.1
hi, i've some form in struts 2 doing update with hibernate ?
i've add some attribute that need updated in form but not all attribute
in table i put in the form.
when i do update, it get error null exception.
i don't understand why hibernate trying to set null the attribute that i
don't put it in
Did you deploy all the Struts jar files with your deployment file?
[EMAIL PROTECTED] 5/9/2007 3:57:44 AM
Hi,
I'm new user in Struts, so i develop a application and I deploy it in
my
server.
when I execute it I have this problem:
Servlet action not available.
For more information I use:
2007/5/9, Torsten Römer [EMAIL PROTECTED]:
I just called my validation file ActionClassName-validation.xml, don't
even know what this alias is... and validation seems to work fine.
it is because you have only one method in your action
you need aliases when you want to be able to call several
So it should work with valdidate=false ... But it doesn't ... So there's
still something wrong in my configuration ...
What is strange is that I can see validation errors in the logs. So it looks
like Struts keeps on running the request while there are validation errors
and so it should stop and
In option 2, OGNL expressions are not supported. We will update the
documentation before 2.1 is released (everything ajax-related will be better
documented).
musachy
On 5/9/07, אלחנן מעין [EMAIL PROTECTED] wrote:
what are the limitations on using option 2? will there be documenation,
If it is a forward, why don't you put them on the request?
musachy
On 5/9/07, Michał Letyński [EMAIL PROTECTED] wrote:
Hi.
I have actions in struts1 and struts2 in one application. Those struts1
actions will be re-writed in near future to struts2. But i need one
thing for now. In struts2
I'm sorry about don't provide all the informations. I'll try to explain a
little more.
I'm trying to generate a s:a tag for each item in a list, but I have to
send a param when click on this s:a link.
This is why I use s:url to do that. My code seems like that:
s:iterator value=type
tr
Hi,
I'm not sure this is the right mailing list to talk about it, but I think
there is a bug in the validation documentation on the struts website.
When I open this url :
http://struts.apache.org/2.0.6/docs/basic-validation.html
There's an error in the step 3 so you can't see the end of the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kapil,
Kapil Sharma wrote:
This code properly reads the unicode files in jsp and set in session
The OP was asking about how to read properties files, which are pretty
much defined to be ISO-8859-1 with escape codes for out-of-charset
characters
Hi,
Thanks I can now unit test my xml validation files but with one problem. My
action class implements ModelDriven so I need to add model. before all
ognl-expression and remove it again after the tests!
Is there any solutions to that?
Regards
Gunnar
Martin Gilday wrote:
the follow error message appear :
9:43:49,223 INFO [STDOUT] 09:43:49,223 ERROR [[/gdoc]] Error configuring
application listener of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundError: org/apache/tiles/TilesException
at
Did you also have a look at this one:
http://struts.apache.org/2.x/docs/validating-input.html
It helped me quite a bit.
Torsten
Olivier THIERRY wrote:
Hi,
I'm not sure this is the right mailing list to talk about it, but I think
there is a bug in the validation documentation on the struts
2007/5/9, Pedro Herrera [EMAIL PROTECTED]:
the follow error message appear :
9:43:49,223 INFO [STDOUT] 09:43:49,223 ERROR [[/gdoc]] Error configuring
application listener of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundError: org/apache/tiles/TilesException
Fixed. It takes a while to replicate to the main doc.
thanks
musachy
On 5/9/07, Olivier THIERRY [EMAIL PROTECTED] wrote:
Hi,
I'm not sure this is the right mailing list to talk about it, but I think
there is a bug in the validation documentation on the struts website.
When I open this url :
This might help:
http://struts.apache.org/2.0.6/docs/how-do-we-repopulate-controls-when-validation-fails.html
musachy
On 5/9/07, Torsten Römer [EMAIL PROTECTED] wrote:
I would like to hear what is good practice for prepopulating forms.
For example, I want to create a Map with options to
Hmmm...I typed ulimit and got back unlimited. Thanks for the info
though...I'll keep checking.
Jon
On May 7, 2007, at 1:15 AM, Andreas Solarik wrote:
you can also try checking if you have any restrictions in place for
your
userspace processes -- ulimit
as
-Ursprüngliche
Would I look for things that are related to Tomcat/MySQL/Struts? I
only see about 20 items listed, none of which have anything to do
with my app.
Jon
On May 7, 2007, at 6:18 AM, Mike Baroukh wrote:
Hi.
If you are runnig on unix, couldn't you do something like
lsof -p processid
to list
Dopes anyone know where there is a good beginners tutorial on
developing their first struts application even if I am using
Eclipse, Ant and MySql ?
Thank you
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hi,
Does anyone know where there is a good tutorial covering the
creation of ones first Struts application. One that doesn't
care if I using Eclipse, Ant MySql ?
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Also, if you are dealing with credit card numbers, make sure you study
up on PCI regulations. There are specific rules about how much of the
number you may keep short-term and long-term, what strength of
encryption is required, etc. And pretty severe penalties for your
company if you fail to
Would I look for things that are related to Tomcat/MySQL/Struts? I only
see about 20 items listed, none of which have anything to do with my app.
If your application open too many files you would see it.
lsof list every files, tcp connection included.
Can you reproduce easyly the error ?
So do we know how to replace the word Submit with a properties file label.
On 5/8/07, Musachy Barroso [EMAIL PROTECTED] wrote:
I guess it is because submit can be either a button, a submit or an image.
musachy
On 5/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I am trying to assign a
Antonio Petrelli-3 wrote:
2007/5/9, Pedro Herrera [EMAIL PROTECTED]:
the follow error message appear :
9:43:49,223 INFO [STDOUT] 09:43:49,223 ERROR [[/gdoc]] Error configuring
application listener of class
org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundError:
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis
Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez
à la mise à jour de votre carnet d'adresses.
try the mailreader application.
http://www.planetstruts.org/struts2-mailreader/Welcome.do
Hi
Is it possible to insert/update the value of a s:textfield tag in a
form using Ajax? I've listed the data entry jsp and the Ajax response
jsp page below. When the form is loaded at start up, I see the text
values and an empty text field from the ajax response. After entering
a value into
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis
Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez
à la mise à jour de votre carnet d'adresses.
Hi all,
I would like to write an Interceptor that will handle the session
expiration.
If somone
I know this is probably a dumb question, and even more so it is probably
in some best practices doc that I haven't seen, but here goes anyway.
What is the preferred/recommended method for setting some global
variables for my struts 2 app? These are things that may change
sometime, so I would
Thanks, this sure does help...
I must be blind sometimes :-(
Torsten
Musachy Barroso wrote:
This might help:
http://struts.apache.org/2.0.6/docs/how-do-we-repopulate-controls-when-validation-fails.html
musachy
On 5/9/07, Torsten Römer [EMAIL PROTECTED] wrote:
I would like to hear
Sure,
you can find it at
http://struts.apache.org/2.x/docs/home.html
bigtdps2004 wrote:
Dopes anyone know where there is a good beginners tutorial on
developing their first struts application even if I am using
Eclipse, Ant and MySql ?
Thank you
Hello,
I need to switch between to tiles layout depending on the context.
in fact, our EAR is used in two different applications, but these are quite the
same ones.
the EAR is deployed on two different servers with different server
configurations.
what is very different between the 2
2007/5/9, CARUANA JP. SOGECAP [EMAIL PROTECTED]:
I need to switch between to tiles layout depending on the context.
I think that cleanest way to do it is creating a DefinitionsFactory
implementation. You can read a configuration parameter that allows to switch
between a group of layouts and
hello,
I am using tiles together with struts to build a web application. This
web application will have different themes. Basically i would like to
know if it is possible to declare a variable inside tiles definition
file or access a Application.properties definition from the
tiles-def.xml file.
I need to switch between to tiles layout depending on the context.
I think that cleanest way to do it is creating a DefinitionsFactory
implementation. You can read a configuration parameter that
allows to switch
between a group of layouts and the other.
For example, you can extend the
I've implemented a similar authenticator (which I called
AuthenticationInterceptor, since it's verifying the user has been
authenticated). The easiest way to handle this is to simply put some object in
the HttpSession once the user is authenticated at login time, such as a User
object. If
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis
Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez
à la mise à jour de votre carnet d'adresses.
I have a user Object that I could put in the session at Login Time.
But I think that when that
2007/5/9, CARUANA JP. SOGECAP [EMAIL PROTECTED]:
I need to switch between to tiles layout depending on the context.
I think that cleanest way to do it is creating a DefinitionsFactory
implementation. You can read a configuration parameter that
allows to switch
between a group of
2007/5/9, Sergio del Amo Caballero [EMAIL PROTECTED]:
PS. I posted this question in the tiles mailing list but they told me to
ask better here since i am using tiles together with struts.
Probably you did not see my answer. Since I feel a nice boy today :-P
I will copy/paste here:
snip
This
Currently, I used a Contants class to store this information. Am I
better off keeping
that class, and creating a static block in there that reads these values
in from the properties
files as such:
InputStream input = null;
input =
It works on a server side - this means that you have to submit the form
to be validated. You won't have any javascript popup telling you that
you mistyped url, but your validation will fail on server and an error
message will be returned. If you set up your struts-config correctly,
you can then
I have an action with a wildcard mapping:
action name=Settings_* method={1}
class=com.kamakura.struts2.action.SettingsAction
result/jspx/settings.jspx /result
/action
The
I am trying to figure out why this code works
s:submit *action=Login_cancel* key=button.cancel/
but this code does not
s:submit *action=Login_cancel* key=%{operation}/
Any ideas?--
Scott
[EMAIL PROTECTED]
--- [EMAIL PROTECTED] wrote:
I am trying to figure out why this code works
s:submit *action=Login_cancel*
key=button.cancel/
but this code does not
s:submit *action=Login_cancel*
key=%{operation}/
Any ideas?--
The key attribute is a simple String so OGNL is not
evaluated.
--- Ray Clough [EMAIL PROTECTED] wrote:
Is the creation of a new instance the standard
behavior - I can't believe it is, because that would
make the whole 'thread-safe' model in S2 pointless.
That's *why* it's thread-safe.
d.
Does anyone know how I can forward to a .jsp file based on a dynamic
attribute (request parameter)?
I want to write a Struts 2 action that will forward the user to a .jsp
dynamically. The flow works like so:
1. A request is made for 'resourceLocator.action?resource=common'.
2. The
how do I decode a request parameter?
like this on:
/.../EditUser.do?id=g%C3%BCltz
the value should be: gültz
in my Action-Class I do the following:
-
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
Have you tried
s:submit value=%{getText(#session.symbolicName)} .../
I haven't tried it, but the displayed text for a submit button comes
from its value, so that should work.
L.
[EMAIL PROTECTED] wrote:
So do we know how to replace the word Submit with a properties file label.
On
Thanks d. Can you think of a way to coerce an evaluated string into this
property? I nearly have reduced S2 to Strails Struts on Rails with the
exception of a couple of issues standing in the way. Dude, would you be
interested in critiquing my app once I finish it? I have a full-blown S2
app
You can use OGNL expressions in the result path, just make sure that you use
${expression}, instead of %{expression}, like
action ...
result${forwardTo}/result
/action
musachy
On 5/9/07, Caine Lai [EMAIL PROTECTED] wrote:
Does anyone know how I can forward to a .jsp file based on a
Than you very much
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- Musachy Barroso [EMAIL PROTECTED] wrote:
just make sure that you use ${expression}, instead
of
%{expression}
(Was someone going to make a change for that so the
config EL is the same as the normal OGNL? I think it'd
be nice and less confusing if they were unified :)
d.
I was just leaving a message to Rainer on:
https://issues.apache.org/struts/browse/WW-1879
I submitted the patch just a few minutes before the xwork build, and he
wasn't sure if it was going to break something else (coming from me I can
understand that :) )
musachy
On 5/9/07, Dave Newton
Very good; I thought there had been discussion about
that :)
--- Musachy Barroso [EMAIL PROTECTED] wrote:
I was just leaving a message to Rainer on:
https://issues.apache.org/struts/browse/WW-1879
I submitted the patch just a few minutes before the
xwork build, and he
wasn't sure if it
Thanks Dave. I really wanted to avoid mixing custom tag libraries if I
could avoid it. I'll think about it tonight after I mow the yard.
Sometimes the smell of cut grass enhances my thinking.
On 5/9/07, Dave Newton [EMAIL PROTECTED] wrote:
--- [EMAIL PROTECTED] wrote:
Can you think of a way
Thanks Musachy,
But how would one do this if they were using Struts 2 annotations to map
their action classes? Is it possible? Or am I stuck with using XML for
this one action?
Thanks,
Caine
On 5/9/07, Musachy Barroso [EMAIL PROTECTED] wrote:
You can use OGNL expressions in the result
I'm obviously missing something. Am I understanding this scenario
correctly:
I have 2 methods in my Action class: 'init' and 'save'. The 'init' method
instantiates an instance variable 'myList', which is available to the jsp
page thru a 'getList' method. The page is loaded and the 'myList'
horri khalid wrote:
Hi,
I'm new user in Struts, so i develop a application and I deploy it in my
server.
when I execute it I have this problem:
Servlet action not available.
For more information I use:
-Tomcat 5.5.4
-Struts 1.1
'Servlet action not available' means there was an error
I got it using c:forEach again. I didn't realize that I can use EL to get
values from some Action as well.
But I keep wondering if I can't do that by using s:iterator and OGNL.
Thanks,
Felipe
Felipe Rodrigues wrote:
I'm sorry about don't provide all the informations. I'll try to explain a
Wiyanto Ngasinur wrote:
hi, i've some form in struts 2 doing update with hibernate ?
i've add some attribute that need updated in form but not all attribute
in table i put in the form.
when i do update, it get error null exception.
i don't understand why hibernate trying to set null the
Having staticJavascript=true generates *all* the validation functions
specificed in struts-validators.xml (?) even if the form it's generating for
only uses the REQUIRED validator.
Is there a way to minimise the javascript generated?
I'm going to try a work around, where I've extracted the
zuban wrote:
how do I decode a request parameter?
like this on:
/.../EditUser.do?id=g%C3%BCltz
the value should be: gültz
in my Action-Class I do the following:
-
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest
Antony Stubbs wrote:
Having staticJavascript=true generates *all* the validation functions
specificed in struts-validators.xml (?) even if the form it's generating for
only uses the REQUIRED validator.
That's why it's called 'static' :-) Think of it as library code.
Is there a way to
Antony,
The preferred way is to copy the static javascript into a static file (.js)
and include it as a script element. This will also allow it to be cached
by your browser. There's no reason why you must generate those functions
every time. The only generation must be for your form.
Paul
On
Felipe Rodrigues wrote:
I'm sorry about don't provide all the informations. I'll try to explain a
little more.
I'm trying to generate a s:a tag for each item in a list, but I have to
send a param when click on this s:a link.
This is why I use s:url to do that. My code seems like that:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Zuban,
zuban wrote:
how do I decode a request parameter?
like this on:
/.../EditUser.do?id=g%C3%BCltz
the value should be: gültz
[snip]
But after that username equals gültz instead gültz ?
Your request character encoding does not match
I haven't tried myself but the annotations for results should work just
like regular xml-configured results.
musachy
On 5/9/07, Caine Lai [EMAIL PROTECTED] wrote:
Thanks Musachy,
But how would one do this if they were using Struts 2 annotations to map
their action classes? Is it possible?
Thanks again for your help. So perhaps I'm not understanding how to get
this to work. In my action I have this mapping:
@Result(name=Action.SUCCESS, value=/resources/${resource}.ftl, type=
FreemarkerResult.class)
And in my execute method I have:
request.setAttribute(resource, myPage);
The
--- Caine Lai [EMAIL PROTECTED] wrote:
@Result(name=Action.SUCCESS,
value=/resources/${resource}.ftl,
type=FreemarkerResult.class)
Am I missing something?
Did you try using OGNL syntax, like %{resource}.ftl?
d.
__
Do You
On 5/9/07, Antony Stubbs [EMAIL PROTECTED] wrote:
Having staticJavascript=true generates *all* the validation functions
specificed in struts-validators.xml (?) even if the form it's generating for
only uses the REQUIRED validator.
Is there a way to minimise the javascript generated?
Commons
The only thing I can think of is that the collection is of a type
s:select doesn't support, or that the individual elements in the
collection are not what you think they are. I can't see anything from
the details you've posted that looks wrong.
Maybe it would help to grab a copy of the Struts
Kapil Sharma wrote:
Hello,
I know it is not a struts based query but still i would like to have your
idea,
Can i install a file on the client host of the pc e.g. a text file whenever
a user presses some action in my jsp.
If yes can i run that file if it is exe. I am thinking of some parallel
Ray Clough wrote:
I'm obviously missing something. Am I understanding this scenario
correctly:
I have 2 methods in my Action class: 'init' and 'save'. The 'init' method
instantiates an instance variable 'myList', which is available to the jsp
page thru a 'getList' method. The page is
Laurie,
Yeah - Walking through code now. I will post back if I can resolve
this one.
b-
On May 9, 2007, at 9:56 PM, Laurie Harper wrote:
The only thing I can think of is that the collection is of a type
s:select doesn't support, or that the individual elements in the
collection are
Vijay Prajapati wrote:
can we user HIDEFOCUS attribute in s:a href= tag in Struts2.0.6?
According to the reference documentation for that tag [1] no, there is
no such attribute.
L.
ObWhine: please don't post unrelated questions to an existing thread. Be
sure to start a new thread (with an
Thanks,
But i heard of a new trechnology called web start.
I think i can generate a new jnlp file at runtime. Pass it certain
parameters from my browser, and that installer will also run the exe from my
client PC
using something called Persistent Service
I need to study more
Thanks and
Ok. Thanks a lot.
-Pushkar
-Original Message-
From: Tomas Kramar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 09, 2007 10:51 PM
To: Struts Users Mailing List
Subject: Re: Struts 1.3.8 and URL Validation
It works on a server side - this means that you have to
submit the
hi..
i saw that all you do in struts tag is place them inside a form tag, and it
automatically renders them as a 2 columns table, but if i want a diffeent
layout? what if i want to have several controls in one group ,and several
controls in another group next to them (like in frames) ?
96 matches
Mail list logo