struts session help

2010-04-27 Thread Upasana Sharma
Hi I have a jsp that displays some data . To refine the data based on some criteria i have two comboboxes. s:select list=categoryList id=categorySelect name=categorySelect onchange=getDisplayCriteria(); emptyOption=true/s:select s:select list=statusList id=statusSelect name=statusSelect

Re: struts session help

2010-04-27 Thread jaya krishna
HI upasana, y dont u store them in the application context variable?? Regards, Jay On Tue, Apr 27, 2010 at 2:06 PM, Upasana Sharma sharma...@gmail.com wrote: Hi I have a jsp that displays some data . To refine the data based on some criteria i have two comboboxes. s:select

Re: struts session help

2010-04-27 Thread Upasana Sharma
hi can u give me some example how to do that?? On Tue, Apr 27, 2010 at 2:09 PM, jaya krishna krishna1...@gmail.com wrote: HI upasana, y dont u store them in the application context variable?? Regards, Jay On Tue, Apr 27, 2010 at 2:06 PM, Upasana Sharma sharma...@gmail.com wrote:

Re: Struts2 XML based validation doesnt work !

2010-04-27 Thread Alex Rodriguez Lopez
I'm sure your problem is related to themes/templates. If you are using simple theme you have to provide your own labels for fields, so the field validation works and S2 knows where to place the messages (because you know validation happens, it's just the messages not displaying, right?).

Re: struts session help

2010-04-27 Thread Alex Rodriguez Lopez
Hi, you could put/get from session like so: ActionContext.getContext().getSession(); You can define a parent action (implementing preparable) with a prepare() method that retrieves data and store it in session for later (and check each time if data is already in session) and puts it into

OptionTransferSelect in 2.1.8

2010-04-27 Thread RogerV
Is there a known issue with this tag or am I missing something obvious? I've been struggling to get this to work so after googling I copied the example from http://www.roseindia.net/struts/struts2/struts2uitags/optiontransferselect-tag.shtml which worked. However as soon as I try to change the

RE: OptionTransferSelect in 2.1.8

2010-04-27 Thread Martin Gainty
the site you mentioned has incorrect null list list examples the correct examples are located at http://struts.apache.org/2.0.14/struts2-core/apidocs/org/apache/struts2/components/OptionTransferSelect.html better to populate list atrribute with valid values such as list={'Wes Wannemacher',

RE: OptionTransferSelect in 2.1.8

2010-04-27 Thread RogerV
mgainty wrote: the site you mentioned has incorrect null list list examples the correct examples are located at http://struts.apache.org/2.0.14/struts2-core/apidocs/org/apache/struts2/components/OptionTransferSelect.html better to populate list atrribute with valid values such as

Re: OptionTransferSelect in 2.1.8

2010-04-27 Thread Alex Rodriguez Lopez
http://www.manning-sandbox.com/thread.jspa?threadID=22922start=15tstart=0 maybe this post (and the first page) will help you, as they show a similar example and how the list relates to the properties in the action Em 27-04-2010 14:14, RogerV escreveu: mgainty wrote: the site you

Re: struts session help

2010-04-27 Thread Mario . HIDALGO
Hello: You can use session context if implements SessionAware for example: public class MyAction extends ActionSupport implements SessionAware { private Map session; public String execute() { session.put(categoryList, EComplaintType.values()) return SUCCESS; } public void

Re: JSON Plugin Question

2010-04-27 Thread Ozu Natsu
Thanks for the reply. I thought that the submit might be the problem. I have a regular s:submit/ button doing the submit. I tried just using a input type=button / with an onClick action that was something like onclick=document.forms[0].submit(); That produced the same result. I also tried

Re: Partial Validation

2010-04-27 Thread Wes Wannemacher
When you submit the fieldset through ajax, are you submitting to a different action mapping? If the ajax submit and the full form submit, you could setup a validation for the action mapping that corresponds to the ajax submit. Handling ajax validation is a bit tricky, but somewhere in the wiki,

Re: Struts2 annotations and superclass

2010-04-27 Thread Wes Wannemacher
At first glance, I would think that what you describe would be the easiest method. For instance, I would do the following - @Override @Action(/url) public String method() { return super.method(); } This would get a bit tedious if you have a significant number of actions. If you have a lot of

Re: Issue with localization: Messages not picked up from properties file

2010-04-27 Thread Wes Wannemacher
Kartik, First off, your first mapping doesn't forward it dispatches to the login.jsp page. If the validation file you have created is picked up when the user hits that url, then you are going to see the validation errors. Second, in your form tag, I would remove the '.action' from the action

Login redirection

2010-04-27 Thread Mark Hansen
I am working on a Struts 1.x application that has a number of login pages L1, L2, L3, ... If a non-authenticated user requests a page - P - that requires authentication, the user will be redirected to one of these login pages L1, L2, L3, ... - depending on the context. Once authenticated, he

use servletcontext in typeconvert

2010-04-27 Thread yunaki
in the convertFromString method, I hope to use servletcontext to get a applcation context property. Is it possible?thx -- View this message in context: http://old.nabble.com/use-servletcontext-in-typeconvert-tp28382360p28382360.html Sent from the Struts - User mailing list archive at

Re: use servletcontext in typeconvert

2010-04-27 Thread Wes Wannemacher
Try to make your type converter implement the ApplicationContextAware interface. -Wes On Tue, Apr 27, 2010 at 5:33 PM, yunaki yun...@126.com wrote: in the convertFromString method, I hope to use servletcontext to get a applcation context property. Is it possible?thx -- View this message in

Re: Login redirection

2010-04-27 Thread Denis Cabasson
Hi Mark, To implement security across multiples applications (Struts or non Struts), you will have to rely on the container. The container is really the best way to go if you want to implement a cross applications sign-on. Now, about your specific question, I guess we are missing some

Re: use servletcontext in typeconvert

2010-04-27 Thread Juan Chung
just try it, then you know the answer. I think it will works. good Luck. in the convertFromString method, I hope to use servletcontext to get a applcation context property. Is it possible?thx - To unsubscribe, e-mail:

Re: Partial Validation

2010-04-27 Thread Rahul Mohan
Thanks for your comments Wes. I do have different action methods which I am invoking through wild-card mappings. But I do not want to repeat the same validations in page level submits and partial submits. I have implemented another solution with a little bit of S2 customization. - Introduced