Did you try request.getSession().setAttribute("RedirectHelpForm",
redirectHelpForm)?
Nils-H
On Thu, Jun 25, 2009 at 7:14 AM, Sam Wun wrote:
> How to do that with session?
> I am currently setting it in the execute() and render method with the
> following code:
> req.setAttribute("RedirectHelpForm
How to do that with session?
I am currently setting it in the execute() and render method with the
following code:
req.setAttribute("RedirectHelpForm", redirectHelpForm);
but this is for request rather than session?
Thanks for the suggesion.
sam
On Thu, Jun 25, 2009 at 3:09 PM, Nils-Helge Garli
Haven't looked very deeply into it, but could it be that you're
setting the attribute in the action phase, and trying to access it in
the render phase? That won't work. In that case, you have to set it as
a session attribute, or set some kind of id as a render parameter and
re-fetch the object in t
Hi,
I noticed the setAttribute() method is called too late in one of my
Action class:
import javax.portlet.PortletConfig;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org
Hi Dave,
actually we already follow the suggestion from the forum as below :
1. Call the Login Action
2. we are loading the dropdown values using prepare method otherwise
dropdowns values not populated . Because prepare interceptor before the
validation interceptor.
3.validation.xml followed the
Hi,
Can anyone help me please?
I got this errors:
12:42:04,269 INFO [PluginPackageUtil:1391] Finished checking for
available updates in 3 ms
12:42:14,020 ERROR [PortletRequestDispatcherImpl:316]
org.apache.jasper.JasperException: javax.servlet.ServletException:
javax.servlet.jsp.JspException: Ca
I would think this is even more expensive that just doling out static content
from Tomcat as Struts 2
is also creating a whole bunch of objects for the request cycle.
Chris
-Original Message-
From: Wes Wannemacher
To: Struts Users Mailing List
Sent: Tue, Jun 23, 2009 12:11 pm
Are you saying you have a method called input() in the action or is it that
you are
getting a result code "input" which would imply a validation error?
-Original Message-
From: Pro1712
To: user@struts.apache.org
Sent: Tue, Jun 23, 2009 9:34 am
Subject: Update to Struts 2.1.7
Yanto wrote:
any one here have implement successfully validator for Drop Down List ?
we've try to validate our Drop Down list using validation.xml, so far no
luck.
Yes. How to do it, of course, depends on details.
Dave
-
To u
Is there a way to make the client-side struts validation behave like the
server-side validation?
Specifically I would like the client-side validation to put error
messages in the
or tags rather than using alert boxes.
Is this possible? I haven't been able to find a way to do it yet.
Hi All,
any one here have implement successfully validator for Drop Down List ?
we've try to validate our Drop Down list using validation.xml, so far no
luck.
after we populate the list in prepare method and the select the list,
however the validation always asume we do not select any value,
and d
You need to provide Struts with an actual List (or Set or the like). It
looks like you are providing a single String. You will need to parse that
String out into a List of Strings in order for to treat it as a
List.
jk
2009/6/24 BlackKnight
> Hi,
>
> I am trying to generate a dynamic raido bu
I added to the Jira bug report another example application that demonstrates
the problem. The example application is a simple Struts 2 (using 2.1.6)
application that has both normal actions and Portlet actions.
You can also download this example application (an archive of an Eclipse
Dynamic Web
Hi,
I am trying to generate a dynamic raido buttom list using
where optionvalue is stored in database equal
#{'Faculty':'Faculty','Staff':'Staff','Resident':'Resident','Intern':'Intern'}
however struts2 doesn't generate the radio button list intead he
generate only 1 radio button with value eq
Thanks Dave,
ok I did that and got it working. Although it's not clear to me why my
first attempt doesn't work.
I read about the built-in ajax features. Not sure if they are
approriate for my needs. Have to go into that more thoroughly, later.
Regards, Mirko
Am 24.06.2009 um 15:44 schrie
Mirko wrote:
Hi all,
I'm new to Struts and struggling with Struts2/Javascript.
I have a jsp website with a search form (textfield and submit button).
Submitting the button calls the Struts action "SearchAction".
"SearchAction" gets the property "searchInput" from the jsp website and
does some
In the crud app I am having problem with s:url paramter. url parameters are
not being passed. URL in browser shows the parameters.
http://149.10.178.12:8990/crud/crud!input.action?employee.employeeId=1
but But employee or employee.employeeId is null is the action object.
After doing lots of r
This question gets asked about once a week on this list ;)
http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-fails.html
On Wed, Jun 24, 2009 at 9:07 AM, Kishan G. Chellap Paandy <
kishanchellapaand...@spanservices.com> wrote:
> Hi Folks,
>
> I'm populating a list
On Wed, Jun 24, 2009 at 4:53 AM, Pro1712 wrote:
>
> But that's not my problem!
> What I forgot to mention in my first post is that I use dynamic method
> invocation and pass the param e.g. "method:input" to the action.
> Sorry for this...
No problem, but I was wondering how you knew which method y
Hi all,
I'm new to Struts and struggling with Struts2/Javascript.
I have a jsp website with a search form (textfield and submit button).
Submitting the button calls the Struts action "SearchAction".
"SearchAction" gets the property "searchInput" from the jsp website
and does something with
Hi Folks,
I'm populating a list in my action class, which will be used in the JSP for
populating a tag.
Now, I'm submitting the form, where I'm doing validation (server side
validation) thru validation.xml. And this throws some action/field errors and
the same JSP page is rendered again with
Hi,
I am trying to integrate action and form beans written in struts1 with struts
2.1.6. I would like to know how to configure struts.xml to provide the method
name to be invoked. I am using DispatchAction. Can i use something like method
as a child of the action tag and provide a request param
Hi,
In struts 2 applications, we used to cover the HTML controls using themes (
like text input, combo box etc ), This will add some *wrappers *around the
controls that will be used to display label, validation messages etc..
In the XHTML theme ( Folder: template/xhtml ) these wrappers will be w
vishnu.vyasan wrote:
>
>
>
> Not sure, But check whether the Javascript is enabled in IE.
>
>
>
> -Original Message-
> From: FreshAir [mailto:lichen...@yahoo.com.cn]
> Sent: 24 June 2009 11:52
> To: user@struts.apache.org
> Subject: struts2 form validation theme cann't work with I
Not sure, But check whether the Javascript is enabled in IE.
-Original Message-
From: FreshAir [mailto:lichen...@yahoo.com.cn]
Sent: 24 June 2009 11:52
To: user@struts.apache.org
Subject: struts2 form validation theme cann't work with IE6.0?
Hi,
I was trying to use struts2 (2.1.6)va
You are right!
'name="*"' is not necessary but it also does not cause any problems...
I will remove it!
But that's not my problem!
What I forgot to mention in my first post is that I use dynamic method
invocation and pass the param e.g. "method:input" to the action.
Sorry for this...
struts.ena
Hi,
I was trying to use struts2 (2.1.6)validation in my web project. When I used
code like:
in jsp, it works fine in firefox.
However, when validation(client side) failed, the IE prompt a dialog, saying
"An exception occurred: Error wrong attribute". Is it this theme
incompatible with IE? We have
27 matches
Mail list logo