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 f
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 :
>
> I'm using Struts 1. In my execute method, I have a clause that looks like
>
> S
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.
>
> 1) how does the conventions plugin handle missing actions or 404s?
> Previously I'd configured an 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 redirected
Ok confirmed, it appears the default is xhtml considering that when I add:
to struts.xml
I get the same as without it.
On Thu, Jan 22, 2009 at 2:09 PM, carlo latasa wrote:
> Yep, checked my struts.xml and I DO NOT have the following: name="struts.ui.theme" value="simple"/>
>
>
> On Thu, Jan 2
Yep, checked my struts.xml and I DO NOT have the following:
On Thu, Jan 22, 2009 at 2:06 PM, carlo latasa 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 another way the theme can be set globally?
>
> On Thu, Jan
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 wrote:
> Not sure. How do I check? It's a legacy app.
>
>
> On Thu, Jan 22, 2009 at 1:41 P
Not sure. How do I check? It's a legacy app.
On Thu, Jan 22, 2009 at 1:41 PM, Musachy Barroso wrote:
> you are not using the simple theme right?
>
> musachy
>
> On Thu, Jan 22, 2009 at 1:31 PM, carlo latasa wrote:
> > Hello,
> > I'm using Struts 2 and Velocity 1.5/Tools 2.0-beta3 and trying to
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 404
you are not using the simple theme right?
musachy
On Thu, Jan 22, 2009 at 1:31 PM, carlo latasa 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 example, passin
fixed in xwork trunk, not that it helps much
musachy
On Thu, Jan 22, 2009 at 3:00 PM, Lukasz Lenart
wrote:
> 2009/1/22 Jan Fröhlich :
>> 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 tomca
2009/1/22 Jan Fröhlich :
> 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.
Yes, I can confirm
2009/1/22 Milan Milanovic :
> 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 TomazM :
> 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: user-unsubscr...@struts.apache.or
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 thi
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
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+Group&submitted=submitted&task=add&appName="
+ URLEncoder.encode(appName));
return new ActionForward(path);
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 environ
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.
Subc
On Thu, Jan 22, 2009 at 11:12 AM, Dave Newton 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 for XWork
>> o
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.
>
> D
Tim/Musachy
Was http://issues.apache.org/struts/browse/WW-2479 resolved and incorporated
into current distro?
if applicationContext.xml contains:
--do not autowire stringBean
If so ..should we change struts-config.xml from
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 re
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 wrote:
>
> using javascript is not a sure short
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 addi
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 applicat
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 (quick
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.
T
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 displa
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 w
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 :
> 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
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,
Paweł
Martin Gainty wrote:
Richard-
this is the AJAX doctype declaration from src/main/resources/struts-ajax.xml
http://struts.apache.org/dtds/struts-2.0.dtd";>
If you reference the URL you will see 4 distinct elements
Each element contains their own attribute list e.g.
Did you have a question?
The problem with the ordering of the taglib declaration is kind of
weird isn't it?
musachy
2009/1/22 Paweł Wielgus :
> 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.ti
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:
http://jalovec.arnes.si:8080/struts2-showcase-2.1
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 wrote:
>
> You can enable JSO
You can enable JSON serialization by including dojo.require("dojo.json") in
your html/jsp e.g.
dojo.require("dojo.json"); // serialization to JSON
Is there a JSON specific function/item you were looking for?
HTH
Martin
Richard-
this is the AJAX doctype declaration from src/main/resources/struts-ajax.xml
http://struts.apache.org/dtds/struts-2.0.dtd";>
If you reference the URL you will see 4 distinct elements
Each element contains their own attribute list e.g.
Did you have a question?
Martin
__
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" %>
*
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 wrote:
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 :
>>
>> Do you know where I can find how to define those params for a language ?
>
> Follow this guideline [1] and specify such params:
> -Dus
2009/1/22 alee amin :
> 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 send your
string data. Don't
2009/1/22 Milan Milanovic :
>
> 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] http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html
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 http://www.nabble.com/Struts-2-and-DateTimePicker-tag-tp14239582p21602655.html
Sent from the Struts - User
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","Durati
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 :
>> 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 ?
>
>
2009/1/22 Milan Milanovic :
> 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 independent from OS set
2009/1/22 alee amin :
> 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
--
Lukasz
http://www.lenart.org.p
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 :
>> I found what is the problem, when I run Tomcat with its bin\startup.bat
>>
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 ha
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 org.apache.catalina.connect
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. Is
2009/1/22 Milan Milanovic :
> 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) and his local settings,
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 o
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 Haqu
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 copie
Hi,
I am not that much expert, I used the following javascript code before in each
page and it worked fine for me.
var x=window.history.length;
if (window.history[x]!=window.location)
{
window.history.forward();
}
If it work for you I will be very happy.
Thank you.
-Ehtesham
--- O
Hi,
I am not that much expert I I used the following javascript code before in each
page and it workded fine.
var x=window.history.length;
if (window.history[x]!=window.location)
{
window.history.forward();
}
If it work for you I will be very happy.
Thank you.
-Ehtesham
--- On Thu
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-
Any ideea?
On Tue, Jan 20, 2009 at 10:30 AM, Andrei Ivanov wrote:
> On Tue, Jan 20, 2009 at 5:08 AM, dusty 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 values that were
>> previously populated
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 someone'
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
2009/1/21 James.Guo Jia :
> 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: user-unsubscr...@struts.apac
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 a
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ł
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.
org.apache.struts
struts2-dojo-plugin
2.1.1
But where to put this?
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 sho
68 matches
Mail list logo