While having done the same with struts 2.0 blank project - work
perfectly well. Also works if i add the code to struts2-showcase
(validation folder).
The problem is as follows:
I tried to add double validation to 2.1.6 blank project and if i type
in form illegal value - say 'aaa' - instead of
Hello,
i want to update to 2.1.6. I use Dojo. In the migration guide is written that
you should Add the Dojo plugin as a new dependency for your project.
dependency
groupIdorg.apache.struts/groupId
artifactIdstruts2-dojo-plugin/artifactId
version2.1.1/version
Hi Shekher,
it was very interesting subject, so i dig a little more.
Here [1] is what i found, with some tests.
Basicly it turns out that You should add headers in page and to response.
[1] -
http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html
Best greetings,
Paweł
Hi,
this kind of dependency is declared in your pom.xml file. This file is
needed when your project is compiled with Maven.
Regards
Sébastien
juergen.l...@bmw.de a écrit :
Hello,
i want to update to 2.1.6. I use Dojo. In the migration guide is written that
you should Add the Dojo plugin
2009/1/21 James.Guo Jia gunsjun...@gmail.com:
Spring 2.0.2
Do you use Spring to create your actions, if so, did you set
singleton=false for them?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail:
Thanks!!
I don' t use maven. I don' t need it.
-Ursprüngliche Nachricht-
Von: Sébastien Domergue [mailto:sebastien.domer...@c-s.fr]
Gesendet: Donnerstag, 22. Januar 2009 09:36
An: Struts Users Mailing List
Betreff: Re: Update 2.0.x to 2.1.6
Hi,
this kind of dependency is
Hi All,
yesterday i was migrating my small app from strits 2.0 to 2.1
I had some problems with:
javax.servlet.ServletException: java.lang.NoSuchMethodError:
org.apache.tiles.jsp.taglib.InsertDefinitionTag.doFinally()V
and with namespaces, i have *.struts.action.* for my actions package.
If
Any ideea?
On Tue, Jan 20, 2009 at 10:30 AM, Andrei Ivanov andrei.iva...@gmail.com wrote:
On Tue, Jan 20, 2009 at 5:08 AM, dusty dustin_pea...@yahoo.com wrote:
Sorry. I don't think I understand your problem. When you say the stack is
being cleared are you seeing nulls in your converter for
Hi..
is that already verified, that the NPE occurs cause of the spaces in the path
names?
And if - are there any other work arounds than installing tomcat in a different
path, cause I have to use a preinstalled tomcat in a path with blank spaces.
Regards,
Jan
-Ursprüngliche Nachricht-
Hi,
I am not that much expert I I used the following javascript code before in each
page and it workded fine.
script language=JavaScript
var x=window.history.length;
if (window.history[x]!=window.location)
{
window.history.forward();
}
/script
If it work for you I will be very happy.
Hi,
I am not that much expert, I used the following javascript code before in each
page and it worked fine for me.
script language=JavaScript
var x=window.history.length;
if (window.history[x]!=window.location)
{
window.history.forward();
}
/script
If it work for you I will be very
Hi,
I'm using Struts 2.0.14 + Spring in my Eclipse Europa environment with
Apache Tomcat 5.5 on WinXP and I need to define conversion with my class
MoneyBigDecimalConverter extends StrutsTypeConverter {...}, because I need
to switch , and . in a value shown in jsp with textfield. But when I
Hi Ehtesham,
it was said before on this thread that user can simply turn of
javascript whenever he wants,
thats why i was looking for more server controlled solution. But thank
You for pointing it out, You made me to add it to my blog post.
Best greetings,
Paweł Wielgus.
2009/1/22 Ehteshamul
I found what is the problem, when I run Tomcat with its bin\startup.bat it
works, but when I run it as Windows service than conversion doesn't work ?!
--
Thx, Milan
Milan Milanovic wrote:
Hi,
I'm using Struts 2.0.14 + Spring in my Eclipse Europa environment with
Apache Tomcat 5.5 on
2009/1/22 Milan Milanovic milanmilanov...@yahoo.com:
I found what is the problem, when I run Tomcat with its bin\startup.bat it
works, but when I run it as Windows service than conversion doesn't work ?!
Check default local settings, Tmcat as a sevice will use service
account (local or network)
I am following this article to get Ajax validation working.
http://www.javaworld.com/javaworld/jw-10-2008/jw-10-struts2validation.html?page=1
I was wondering if it is nessessary to use the XML for validation with
Ajax? I was hoping to use some validation on the server side action
to do this.
I make a call to http://localhost:8080/tracker/reports/rawList.action it is
working fine for first call but whenever i try to make another call i get
this exception ..
java.lang.IllegalStateException: Cannot create a session after the response
has been committed
at
Andy on 20/01/09 17:49, wrote:
Using the Exception interceptor works great for catching exceptions throw by
actions. However I am wondering what is the recommended method for catching
and handling exceptions thrown by a JSP? I assume that JSP exceptions are
outside the S2 scope and are to be
Hi,
I changed my regional settings to my local settings in Control panel. I'm
not sure where I should change it and what exactly I need to change ?
--
Thx, Milan
Lukasz Lenart wrote:
2009/1/22 Milan Milanovic milanmilanov...@yahoo.com:
I found what is the problem, when I run Tomcat with
2009/1/22 alee amin mailing.list.mail...@gmail.com:
pw.close();
That's the problem, you're closing output stream and framework is not
able to do anything. Take a look on JSON Plugin [1] instead building
response by your self.
[1] http://cwiki.apache.org/S2PLUGINS/json-plugin.html
Regards
--
2009/1/22 Milan Milanovic milanmilanov...@yahoo.com:
I changed my regional settings to my local settings in Control panel. I'm
not sure where I should change it and what exactly I need to change ?
You can also define local and language when you're starting Tomcat
with -D params, then it will be
Do you know where I can find how to define those params for a language ?
--
Thx, Milan
Lukasz Lenart wrote:
2009/1/22 Milan Milanovic milanmilanov...@yahoo.com:
I changed my regional settings to my local settings in Control panel. I'm
not sure where I should change it and what exactly I
my application is really simple - I just want to return this as result so
that it may used by YUI datatable
{
totalRecords:288,
activities:
[
{User:PKDEV168,Title:Conversation,App:IMWindow,Duration:0},
{User:PKDEV168,Title:Conversation,App:IMWindow,Duration:0},
I'm having trouble in validating datetimepicker. Tried Using
required=true but doesn't get validated can u kindly help to go about the
same ... And one more doubt difference between sx:datetimepicker and
s:datetimepicker ...
Cheers
Vikpan
--
View this message in context:
2009/1/22 Milan Milanovic milanmilanov...@yahoo.com:
Do you know where I can find how to define those params for a language ?
Follow this guideline [1] and specify such params:
-Duser.language=fr -Duser.country=CA
but with your specific settings
[1]
2009/1/22 alee amin mailing.list.mail...@gmail.com:
Isn't it anyway that i may get the solution without using any more plugin
(i.e the one is mentioned in last email) ?
If you don't want to use next plugin, develop your own specific Result
to produce JSON stream or use existing Stream Result to
Good, thank you.
Do you know where I can find these params for every country (Java 1.5) ?
--
Milan
Lukasz Lenart wrote:
2009/1/22 Milan Milanovic milanmilanov...@yahoo.com:
Do you know where I can find how to define those params for a language ?
Follow this guideline [1] and specify
emm, that would be another lengthy thing :). well thanks .. i'll go with the
plugin part; since i dun want to reinvent the wheel. i guess it'd be quite
easy to configure and working with it
Thanks again
..alee
http://techboard.wordpress.com
On Thu, Jan 22, 2009 at 5:25 PM, Lukasz Lenart
While having done the same with struts 2.0 blank project - work perfectly well.
Also works if i add the code to struts2-showcase (validation folder).
The problem is as follows:
I tried to add double validation to 2.1.6 blank project and if i type in form
illegal value - say 'aaa' - instead of
The datetimepicker is not getting validated by using
actionname-validation.xml.. I migrated from struts 2.0.6 to 2.1.6, pls can
you tell wat is missing in my followin code
%@ taglib prefix=s uri=/struts-tags %
%@ taglib prefix=sx uri=/struts-dojo-tags %
html
head
script
Richard-
this is the AJAX doctype declaration from src/main/resources/struts-ajax.xml
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
If you reference the URL you will see 4 distinct elements
!ELEMENT
You can enable JSON serialization by including dojo.require(dojo.json) in
your html/jsp e.g.
script type=text/javascript src=/path/to/dojo.js/script
script type=text/javascript
dojo.require(dojo.json); // serialization to JSON
/script
Is there a JSON specific
well thanks. i don't need to do that since my JSON response is being used by
YUI dataTable. I have configured the plug-in and it is working properly with
my given data.
Thanks :)
..alee
http://techboard.wordpress.com
On Thu, Jan 22, 2009 at 6:52 PM, Martin Gainty mgai...@hotmail.com wrote:
OS: WinXP
Tomcat: 6.0.16
struts: 2.1.6
I deploy struts2-showcase-2.1.6.war in Tomcat and try to look AJAX examples,
but they don't work.
In my Browser(Firefox 3.0.5) error console I get this errors:
Error: missing ) after condition
Source File:
The problem with the ordering of the taglib declaration is kind of
weird isn't it?
musachy
2009/1/22 Paweł Wielgus poulw...@gmail.com:
Hi All,
yesterday i was migrating my small app from strits 2.0 to 2.1
I had some problems with:
javax.servlet.ServletException: java.lang.NoSuchMethodError:
Martin Gainty wrote:
Richard-
this is the AJAX doctype declaration from src/main/resources/struts-ajax.xml
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
If you reference the URL you will see 4
Hi Musachy,
in deed it is, what is most crazy i cannot reproduce it :-|
So i can't even prove that was for real!
I hope i will move my next app to s2.1 so i will check if deleting
tomcat work directory will prevent from it. And also if not deleting
it will do the same errors.
Best greetings,
The exception that you mention looks like a problem with duplicated
jars in the classpath, so deleting the work directory probably fixed
it.
musachy
2009/1/22 Paweł Wielgus poulw...@gmail.com:
Hi Musachy,
in deed it is, what is most crazy i cannot reproduce it :-|
So i can't even prove that
Thanks for the response. What I'd like to do is allow an action to handle the
JSP exception instead of a JSP, so that I can save the exception to the DB and
then redirect the user to an error page. The problem I am having is trying to
get the exception object to pass to the action. This is
Here is a solution I came up with so far. I wrote an action to
validate. This calls my validateData() method.
I Used the JSON plug in to return the fieldsErrors collection to dojo.
Here is some javascript:
Please note when looking at this that I have modified the original
template that
Richard Sayre wrote:
First I wrote a method called validate. At this point I found out
that I was overriding the ActionSupport method. When I tried to find
more information on this method I couldn't. When I search for XWork
or Struts 2 validation I always get the XML or Annotated validation.
Ok that's what I figured. I have already extended the StrutsSpringObjectFactory
to do this.
Thanks,
Tim
Musachy Barroso wrote:
Not any time soon. You can either build from trunk, or create your own
factory that extends StrutsSpringObjectFactory, and overwrite the
methods(2) with the fix
Jan Fröhlich wrote:
And if - are there any other work arounds than installing tomcat in a
different path, cause I have to use a preinstalled tomcat in a path
with blank spaces.
I didn't see any other responses, so I'll throw out the obvious answer
that may or may not work: Have you tried
one of the banking application site which i tested today
when user get logged off from and try to hit the back button he will be
shown a different page
instead the one in the cache
so i am also loking in to this aspect.
On 1/22/09, shekher awasthi shekher.awas...@gmail.com wrote:
using
using javascript is not a sure short solution
as i tested it throughly and javascript behaviour is not consistent throught
regarding setting header i did this i developed a custom interceptor which
is doing this
but again its not worked as expected.
i am still clueless how online banking
Hi Paweł,
another way we can do this by using SSL
as we are dealing in secure zone so using SSL for this might be a good case.
the application i have seen so far who have dealt with this back/forward
button always using HTTPS protocol.
i am also diving in to this case study and will share the
Tim/Musachy
Was http://issues.apache.org/struts/browse/WW-2479 resolved and incorporated
into current distro?
if applicationContext.xml contains:
bean id=stringBean class=java.lang.String autowire-candidate=false
constructor-arg value=${stringBean}/
/bean
--do not autowire
I have set this on a Tomcat service, but it doesn't work! When I run it with
bin/startup.bat, then it works. What I don't understand here, what locale
settings have with this formatting if I have defined my own conversion class
?
--
Thx, Milan
Milan Milanovic wrote:
Good, thank you.
Do
On Thu, Jan 22, 2009 at 11:12 AM, Dave Newton newton.d...@yahoo.com wrote:
Richard Sayre wrote:
First I wrote a method called validate. At this point I found out
that I was overriding the ActionSupport method. When I tried to find
more information on this method I couldn't. When I search
Richard Sayre wrote:
The validate method comes from com.opensymphony.xwork2.Validateable
and is implemented by com.opensymphony.xwork2.ActionSupport.
The API description from each is :
void validate()Performs validation.
void validate() A default implementation that validates nothing.
I agree with Dale
Putting ANY characters other than a-z upper/lower and 0-9 and
LONG FOLDER NAMES WITH SPACES easily gacks Java read routines so if your
CATALINA_HOME is set to
C:\PROGRAM FILES WITH SPACES\TOMCAT
go to C:\
dir /X /AD
find the shortened name e.g. PROGRA~1 and use that for
I'm using Struts 1. In my execute method, I have a clause that looks like
String path = new
String(/appGroupsAdmin.do?addAppGroup=Add+New+Groupsubmitted=submittedtask=addappName=
+ URLEncoder.encode(appName));
return new ActionForward(path);
I
Hi
I have a small problem with form validation, when required=true is set
on a textfield the validation don't work, I am getting a dialog stating
that An exception occurred: NS_ERROR_DOM_NOT_FOUND_ERR. Error message:
Node was not found, If I remove the required=true the validation
works as
Hello,
I'm using Struts 2 and Velocity 1.5/Tools 2.0-beta3 and trying to find
a list of supported parameters in the velocity struts tags like:
#stext or #slabel.
For example, passing labelSeparator=- - does nothing.
'labelPosition' - likewise, does nothing.
I've seen other posts relating to this
2009/1/22 TomazM tomaz.majerh...@arnes.si:
Tomcat: 6.0.16
Is your tomcat installed in folder with empty spaces? Like C:\Program
files\Apache\...
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail:
2009/1/22 Milan Milanovic milanmilanov...@yahoo.com:
Do you know where I can find these params for every country (Java 1.5) ?
Try with this [1]
[1] http://java.sun.com/developer/technicalArticles/J2SE/locale/
Regards
--
Lukasz
http://www.lenart.org.pl/
2009/1/22 Jan Fröhlich jan.froehl...@infomotion.de:
is that already verified, that the NPE occurs cause of the spaces in the path
names?
And if - are there any other work arounds than installing tomcat in a
different path, cause I have to use a preinstalled tomcat in a path with
blank
fixed in xwork trunk, not that it helps much
musachy
On Thu, Jan 22, 2009 at 3:00 PM, Lukasz Lenart
lukasz.len...@googlemail.com wrote:
2009/1/22 Jan Fröhlich jan.froehl...@infomotion.de:
is that already verified, that the NPE occurs cause of the spaces in the
path names?
And if - are
you are not using the simple theme right?
musachy
On Thu, Jan 22, 2009 at 1:31 PM, carlo latasa clat...@gmail.com wrote:
Hello,
I'm using Struts 2 and Velocity 1.5/Tools 2.0-beta3 and trying to find
a list of supported parameters in the velocity struts tags like:
#stext or #slabel.
For
Hi there,
I've been playing with the new Conventions plugin in Struts 2.1.6 and
really like its feature set, many thanks to the Struts devs for all
your efforts.
I do have a few questions though:
1) how does the conventions plugin handle missing actions or 404s?
Previously I'd configured an
Not sure. How do I check? It's a legacy app.
On Thu, Jan 22, 2009 at 1:41 PM, Musachy Barroso musa...@gmail.com wrote:
you are not using the simple theme right?
musachy
On Thu, Jan 22, 2009 at 1:31 PM, carlo latasa clat...@gmail.com wrote:
Hello,
I'm using Struts 2 and Velocity
Check that, on the .vm page, I'm not calling out a theme and there's nothing
obvious in my struts.xml file.
Is there another way the theme can be set globally?
On Thu, Jan 22, 2009 at 2:01 PM, carlo latasa clat...@gmail.com wrote:
Not sure. How do I check? It's a legacy app.
On Thu, Jan 22,
Yep, checked my struts.xml and I DO NOT have the following: constant
name=struts.ui.theme value=simple/
On Thu, Jan 22, 2009 at 2:06 PM, carlo latasa clat...@gmail.com wrote:
Check that, on the .vm page, I'm not calling out a theme and there's
nothing obvious in my struts.xml file.
Is there
Ok confirmed, it appears the default is xhtml considering that when I add:
constant name=struts.ui.theme value=xhtml/ to struts.xml
I get the same as without it.
On Thu, Jan 22, 2009 at 2:09 PM, carlo latasa clat...@gmail.com wrote:
Yep, checked my struts.xml and I DO NOT have the following:
1) how does the conventions plugin handle missing actions or 404s?
Previously I'd configured an error-page 404 handler in my web.xml
that seemed to work well, but now any invalid / missing URL goes back
to the IndexAction I configured to handle requests for /).
Not sure why errors are
Hi everybody,
my struts.xml is modularized and consists of several xml module files.
I have defined a new stack in one of the module include files.
package name=user-secure namespace=/user/secure
extends=struts-default
interceptors
interceptor
Hi Dave,
there is a forward flag in stuts-config.xml which deals with it, so
maybe You can try to manipulate actionforward object.
Best greetings,
Pawel Wielgus.
2009/1/22, laredotornado laredotorn...@gmail.com:
I'm using Struts 1. In my execute method, I have a clause that looks like
I am integrating struts with YUI. Things are working fine except that i am
unable to send request parameters to my struts action from yui dataSource.
I have asked the same question at YUI group (since i am thinking that there
is some problem or i am doing wrong rleated to YUI controls) but just
68 matches
Mail list logo