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
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
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:
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?).
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
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
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',
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
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
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
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
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,
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
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
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
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
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
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
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:
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
20 matches
Mail list logo