Hi,
I think the easiest way would be to copy from struts2-core-xx.jar the
validation.js based on the theme and put it in your source package folder .
So example I took template/css_xhtml/validation.js from struts.jar and I
modified the javascript function:
function addError(e, errorText)
{
}
H
Here is the UserAction class
public class UserAction extends AbstractCRUDAction implements
ServletRequestAware{
private User user = null;
private String password2 = null;
private HttpServletRequest request = null;
private Logger log = Logger.getLogger(User
do you have the tag on your page?
Tomi21 wrote:
>
> Hi everyone,
>
> I've migrated my web application to the last release 2.0.12 and all things
> that require 'dojo' are not working correctly(datetimepicker, tooltip,
> etc.).
> The error message is "dojo is not defined".
>
> Does anyone know
I'm trying to figure out why struts/xwork is having issues doing the
conversion on an Integer property. Here is the configuration.
public class MyAction extends ActionSupport implements Preparable,
ModelDriven {
private MyObject obj;
public void prepare() throws Exception {
obj = new MyO
Hi all,
I'm learning validator framework in struts 1.3.5. My first page contains a
required field and
now I'm facing a problem. Before the page is rendered, it fails to pass the
validation so it always displays an error message. How to tell struts 1 to
give user a chance to input data before i
--- On Wed, 11/12/08, Martin Gainty wrote:
> can we see the code for net.dg.oe.user.UserAction.java?
> specifically which ActionForward (s) are returned from
> net.dg.oe.user.UserAction class
Hopefully no ActionForwards are returned in an S2 application.
> > From: [EMAIL PROTECTED]
> > Here is my
can we see the code for net.dg.oe.user.UserAction.java?
specifically which ActionForward (s) are returned from
net.dg.oe.user.UserAction class
Thanks
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates
I am new to Struts 2 and I can say that I am enjoying it but I am having a
hurdle I can't seem to figure out.
I am working on getting validation done within my application and when I try
and use the validation frame work I keep getting this error whenever I try
and hit any page in my "/user" name
OK that was I had to submit the form not only link with the action, thanks.
De: Dave Newton <[EMAIL PROTECTED]>
Para: Struts Users Mailing List
Enviado: miércoles, 12 de noviembre, 2008 23:06:30
Asunto: Re: Problem with select
--- On Wed, 11/12/08, J J <[EMAIL
--- On Wed, 11/12/08, J J <[EMAIL PROTECTED]> wrote:
> in my jsp I receive correctly value and key, but I want to
> get the selected Item in the action who follows the jsp
> (myAction). I think that the value should be stored in the
> attribute name (which has to be the same type as listkey),
> but
2008/11/12 Carlos Curotto <[EMAIL PROTECTED]>:
>
> org.apache.tiles
> tiles-jsp
> 2.0.4
>
I suggest to use version 2.0.6
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
in my jsp I receive correctly value and key, but I want to get the selected
Item in the action who follows the jsp (myAction). I think that the value
should be stored in the attribute name (which has to be the same type as
listkey), but I get null in the action, I don't understand what's wrong.
What is the field name that you want to have returned (defined by
listKey) and what is the field name you want to display to the user
(defined by listValue).
If they're not "key" and "value" respectively then that's why you're
getting null. They need to be named the same as the attributes on th
test
// Chád (shod) Darby
-
CONFIDENTIALITY NOTICE
This e-mail is intended for the sole use of the individual(s) to
whom it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under
applicable law. You
Sorry if this is a dupe; something funky is happening.
--- On Wed, 11/12/08, Adam Lister wrote:
> I took a look around, and I can't seem to find any way
> to select an input that has an error associated with it using css.
You should be able to use CSS selectors to get child elements of an element
I am reviewing Tiles 2.1 for an upcoming project. This recent version of
tiles supports wildcard definitions, EL, and a few other features that
nearly eliminate the XML-HELL that is tiles-defs.xml. It looks like the
struts2-tiles-plugin-2.1.2.jar is not compatible with Tiles v 2.1.0 and I
would
Hello,
I have this select but it is not working and I don't know what is missing:
I have an myAction an attribute called MyList which contains Objects of the
same type A.
I also have an Attribute of type String in myAction called returnValue.
Objects of A type have key and value as attributes
Hello everyone,
Can anyone help me to solve this issue with doubleselect box of struts2?
I would like to display some database data on a page by using some struts2
tags. So we should go to the action class fist to fetch the data, then
dispatch the request to the jsp page when success. Everything
I took a look around, and I can't seem to find any way to select an
input that has an error associated with it using css. The samples I've
looked at have ways to style the error message text, the label, etc, but
no way to style an input. I'm not seeing this "red border" either...
does anyone
Hi everyone,
I solved my problem.
Look at my pom file, i have the tiles-jsp dependency but version 2.1.0, and
the struts2-tiles-plugin added the tiles-api jar but with version 2.0.4, so
i have changed my dependency for this:
org.apache.tiles
tiles-jsp
2.0.4
And that's
Alberto, here are my configuration:
*This is the complete stack trace of the excepcion i am getting:*
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that p
--- On Wed, 11/12/08, Adam Lister <[EMAIL PROTECTED]> wrote:
> I'm trying to figure out how apply a class or some kind
> of style to a input field when there is a validation error
> in struts 2.
I generally just override the supplied CSS (which does things like giving text
boxes with errors a red
Hi,
I'm trying to figure out how apply a class or some kind of style to a
input field when there is a validation error in struts 2. I think this
is a fairly common thing (apply a highlighted background color to an
errored field to focus the user's attention) but it does not seem to be
suppor
Having Map does not affect whether the session is null or
not, it is just for the compiler to add type safety to the Map, and by the
way, the Session Map is String --> Serializable not String --> String.
You should probably implement the SessionAware (
http://struts.apache.org/2.0.11/struts2-core/
Hi Francisco...
I use it in many diferrents browser, and never got this error... but i
use the following sentence:
Map session = ActionContext.get..
I dont put this !!!
On Wed, Nov 12, 2008 at 1:53 PM, Francisco Exposito
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have the next sentence in or
Hi,
I have the next sentence in order to get info from session:
Map session = ActionContext.getContext().getSession();
And then i put or get info.
It works properly in firefox local and remote and in ie local. But if I try to
execute it in a remote ie, I get that session is null.
Any help pl
Hello,
I have a somewhat complex form for user registration which has several dropdown lists that pull from a database. I created an action called "RegisterUserFORM" which creates the dao objects
necessary for the dropdowns to be made on the JSP page. This form then submits to another actio
unpack file "struts-2.1.2-apps.zip" available in
http://struts.apache.org/download.cgi
inside you can find struts-rest-showcase war file.
Felippe
On Wed, Nov 12, 2008 at 11:29 AM, Narayana S <[EMAIL PROTECTED]> wrote:
> Hi,
>
> can any one please let me know where can i download struts 2 R
You can use any IDE. I understand that the new IDEA comes with Struts 2 that
will make things easier, this is the first time I heard of Struts 2 support
for an IDE. I don't know if there's an Eclipse plugin for Struts 2.
Regards,
Néstor Boscán
On Wed, Nov 12, 2008 at 9:51 AM, Ariel <[EMAIL PROTE
Hi,
can any one please let me know where can i download struts 2 REST
showcase examples zip?
Thanks in advance.
What IDE do you use to make aplications in struts 2 ???
On Fri, Nov 7, 2008 at 3:12 PM, hernan gonzalez <[EMAIL PROTECTED]> wrote:
> S2 and S1 are entirely different frameworks.
> The "migration" involves rewriting a lot, actions and jsp.
> They can coexist, though, and you can migrate gradually,
Hi everyone,
I've migrated my web application to the last release 2.0.12 and all things
that require 'dojo' are not working correctly(datetimepicker, tooltip,
etc.).
The error message is "dojo is not defined".
Does anyone know how can I solve the problem? With version 2.0.11 everything
was worki
Thanks Paweł
My requirement is to surve multiple customers in one application. All customers
would have the different domain name and different UI. Back end functionality
would be the same for all customers.
For this I need to provide separate set of locale based resource boundle
propertie
33 matches
Mail list logo