instead of just providing
if(request.getSession(false).getAttribute("locale") == null)
provide
if(request.getSession(false) == null ||
request.getSession(false).getAttribute("locale") == null) {
//redirect
}
i hope this will work
vishnu.vyasan wrote:
>
> Hi Friends,
>
>
>
> How can I
well all the points you said is ok for me the only thing i dont know about is
the configuration. What kind of configuration you are talking about?
Actually i am quite new to struts and so may be i dont know about some
in-depth concepts.
Paweł Wielgus wrote:
>
> Hi,
> if it's not browser fault,
Hi Friends,
How can I forward to a login page on session Timeout? Will struts
create a Default session?
I am checking for a value of a locale variable set to default session on
my JSP page. After
if(request.getSession(false).getAttribute("locale") == null){
//redirect to anot
Thanks all; that was it.
musom...@aol.com wrote:
The OP is mapping the result by XML so the behavior (as someone pointed out) is
what you would expect.
Chris
-Original Message-
From: Paweł Wielgus
To: Struts Users Mailing List
Sent: Fri, Aug 28, 2009 2:58 am
Subject:
O'Neil, Tom wrote:
I'm having problems loading my struts.xml file from a non-standard directory in
Struts 2.1.6. My web.xml file contains the following
struts2
org.apache.struts2.dispatcher.FilterDispatcher
config
/WEB-INF/struts.xml
stru
Ginn, Timothy D Mr CTR USA TRADOC USAAC wrote:
I have run into a bump in the road. I am trying to validate a list of
Strings that contain email addresses. I can't seem to get it to check
the emails to be a valid email using the annotation validation.
Could someone please let me know if this
Martin Gainty wrote:
possibly XMLHttpRequest bug?
when
Underneath the UI layer you will need to match Struts (version 2)
Dojo-plugin to Dojo (v 1.2) and then Dojo support for the ActiveX control
Dojo 1.2? What in Quetzalcohuātl's macahuitl are you talking about? S2
uses Dojo 0.4.3; looking a
hi there
any one have a try to make JSON plugins in S2 as the way to make S2
apps become JSON Database, with Convention make it REST right.
any idea to map the POJO to JSON and make the S2 become Data Source Provider
i did try JSON Plugins, and the POJO become JSON successfully,
but what is the
I'm having problems loading my struts.xml file from a non-standard directory in
Struts 2.1.6. My web.xml file contains the following
struts2
org.apache.struts2.dispatcher.FilterDispatcher
config
/WEB-INF/struts.xml
struts2
/*
I then
>-Original Message-
>From: Tommy Pham [mailto:tommy...@yahoo.com]
>Sent: Friday, August 28, 2009 12:44 PM
>To: Struts Users Mailing List
>Subject: Re: ResourceBundle with DB backend
>
>- Original Message
>> From: Mike Baranski
>> To: Struts Users Mailing List
>> Sent: Friday, Au
Seeing this behavior in IE7.
The div is very plain:
I use other Javascript to show/hide shippingDiv as needed.
Mitch
Martin Gainty wrote:
> possibly XMLHttpRequest bug?
> >> when
> >> Underneath the UI layer you will need to match Struts (version 2)
> >> Dojo-plugin to Dojo (v 1.2) and then D
UNCLASSIFIED
I have run into a bump in the road. I am trying to validate a list of
Strings that contain email addresses. I can't seem to get it to check
the emails to be a valid email using the annotation validation.
Could someone please let me know if this is possible or if I am doing
so
Some possible workarounds:
1) add this to the textfield:
onkeypress="return !(event && event.keyCode && event.keyCode == 13);"
This is a bit of javacript that suppresses the enter key.
2) or this
onkeypress="if (event && event.keyCode && event.keyCode == 13)
{dojo.byId('ajaxShippingSub
Using an ajax/dojo submit tag to do an ajax form submission. Code
below. theme = css_xhtml. In FireFox it works like I want - the output
from the form post goes inside the target div. In IE, if you press
Enter in the text field, it submits the form and the output replaces the
entire page, inste
Oracle has had unicode support for 20 years+- ..mysql in last 10..postgres in
last 2 years
i too was thinking hibernate would be a good ORM (object-relational mapping
tool) to populate the db rows
let me know when you have some sample queries and we'll get the details ironed
out
i have a smal
Wasn't being picky -- the single versus double quote rules in
OGNL for single character Strings versus chars often trip
people up at places like
Chris
-Original Message-
From: Luca
To: Struts Users Mailing List
Sent: Fri, Aug 28, 2009 1:07 pm
Subject: Re: Struts 2 His
Hi Martin,
Not exactly since I'd want my app to be agnostic. Gotta love hibernate for it
:)
I'd figure it's the DBA's problem to make sure that the DBs stores unicode
texts.
As for number & date formats, my app should be able to convert it on demand.
using Locale and NumberFormat classes.
---
Yes, but it was only an example... So, replace String with char :-)
Pay attention to the methods name... They are very important...
setStatus and getStatus
bye
musom...@aol.com ha scritto:
His status is a char.
Chris
-Original Message-
From: Luca
To: Struts Users Ma
Unicode-enabled Databases can retrieve values localised to the database
configuration or locale parameter.
The supplied locale parameter to Database query retrieves the 'localised' value
from the db.
do you have a specific DB vendor/version in mind?
Martin Gainty
__
- Original Message
> From: Mike Baranski
> To: Struts Users Mailing List
> Sent: Friday, August 28, 2009 9:22:06 AM
> Subject: RE: ResourceBundle with DB backend
>
> I've done it, you just implement the proper classes and tell your
> application to use them instead. I use a derby back-
I've done it, you just implement the proper classes and tell your
application to use them instead. I use a derby back-end. I can post a
tutorial later if you'd like.
>-Original Message-
>From: Tommy Pham [mailto:tommy...@yahoo.com]
>Sent: Friday, August 28, 2009 12:17 PM
>To: user@struts
Hi,
After reading through Localization and Formatting Date and Numbers, I'm unable
to find any information regarding using DB backend for ResourceBundle (by
Struts specifically). Suppose I have the proper DB structure to provide the
proper format & results as needed, how would I go about gett
His status is a char.
Chris
-Original Message-
From: Luca
To: Struts Users Mailing List
Sent: Fri, Aug 28, 2009 11:58 am
Subject: Re: Struts 2 Hi,?
>?
> i am using struts 2. i want to check some condition in my jsp and based on?
> result i want to perform some task.?
Hi, do you try to check that the methods in the Action class match the
beans name conventions?
For example, in your case I'm thinking this situation:
private String status;
public void *setStatus*(String status){
this.status = status;
}
public String *getStatus*(){
return this.status;
}
HiIf i have 2 struts-config.xml file can i have ValidatorPlugIn tag in both
struts-config.xml file, will this work??
I ran into some issue trying to do so, i was getting could not find testForm
in local "en_us" kind of error when trying to add client side validation
For example if i have
struts
See this FAQ entry:
http://struts.apache.org/2.1.6/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html
On Fri, Aug 28, 2009 at 10:37 AM, Sonu S wrote:
> Hi,
>
> i am using struts 2. i want to check some condition in my jsp and based on
> result i want to perform some task.
>
> i have writt
I am using this and works for me:
...
Also remove the hidden field from your jsp and then check if you getter from
this action is called.
HTH
Radu
-Original Message-
From: Sonu S [mailto:sonu...@gmail.com]
Sent: August 28, 2009 10:37 AM
To: user@struts.apache.org
Subject: Struts 2
Hi,
i am using struts 2. i want to check some condition in my jsp and based on
result i want to perform some task.
i have written
//DO something
// Do Something else
for this i have created one hidden field also in JSP named status and have
getter and setter method in Action class.
Try this thread:
http://www.nabble.com/2.1.8--to25119398.html
>-Original Message-
>From: Robert Graf-Waczenski [mailto:r...@lsoft.com]
>Sent: Friday, August 28, 2009 7:46 AM
>To: Struts Users Mailing List
>Subject: Next GA release?
>
>Hi,
>
>some time ago there was a release of Struts V 2
Hi,
some time ago there was a release of Struts V 2.1.7 in the making. IIRC,
this release was cancelled because there was a class missing, so the
release was postponed and we are now waiting for V 2.1.8. Now, do those
of you who have deeper insight into the development roadmap have any
inform
In the time between the first time you go to the page and the second time
where in your application is the data supposed to be?
Chris
-Original Message-
From: Paweł Wielgus
To: Struts Users Mailing List
Sent: Fri, Aug 28, 2009 5:34 am
Subject: Re: ActionForm is been calle
The OP is mapping the result by XML so the behavior (as someone pointed out) is
what you would expect.
Chris
-Original Message-
From: Paweł Wielgus
To: Struts Users Mailing List
Sent: Fri, Aug 28, 2009 2:58 am
Subject: Re: Convention Plugin problem
Hi all,
my thi
On the home site of struts.apache.org as of 2009.08.28.03.24 PDT:
The Infrastructure Team of The Apache Software Foundation is currently
investigating a
potential compromise of one of our servers. For security reasons most
apache.org
services are therefore offline, but will be restored shortly
Hi,
if it's not browser fault,
then maybe configuration,
are You dealing with redirect in this case?
Or maybe You have some king of logic inside form's reset method.
One another thing is action beeing defined twice with two different forms?
Other than that i don't know,
reset works always for me.
well i applied break points on both "actionform" and "action" of the form and
did both refresh and brand new request. It is been caught in both the times
with the break point in the action but not in the actionform
Paweł Wielgus wrote:
>
> Hi,
> what do You mean by saying:
> "if i try to open th
Hi,
what do You mean by saying:
"if i try to open the page again"
what does that mean for real?
hitting F5 or refresh button in browser?
or a real brand new request.
Best greetings,
Paweł Wielgus.
2009/8/28 sharadsingh :
>
> i have an action form which i use to collect form data and also to set
i have an action form which i use to collect form data and also to set them
back by populating the variables in the reset method. But the problem is
that the reset method is been called only the first time i am opening the
page which contains that form, if i try to open the page again the reset
me
Hi all,
or You can use a copy of your object as a field in form
(myForm.copyOfMyObject.field),
than in action use clone or something like that to propagate fields
back to original object.
Best greetings,
Paweł Wielgus.
2009/8/28 Sunil Choppara :
> Hi it is possible Vishal when u use DynaValidato
38 matches
Mail list logo