I found a solution and mad an example app.
You can show it here:
https://www.fentool.de/dwr/
The source and description are here:
https://gitlab.com/gpaulab-public/struts-dwr-validate-example
I hope it's useful
Best wishes
Guenter
--
In a second step Iried to use the DWR-method. The app example is simple.
But using the class DWRValidator break:
Dispatcher du = Dispatcher.getInstance();
The Dispatcher is NULL and I can't find the problem.
Perhaps somebody has a solution?
---
I think the class "org.apache.struts2.validators.DWRValidator" will not works
so I try another way. I found a solution, maybe we can use it?
I found a good example using dwr here:
https://www.jitendrazaa.com/blog/java/jsp/step-by-step-dwr-application-simple-ajax-in-java/
What is to do:
- for usi
pon., 25 sty 2021 o 12:38 Guenter Paul
napisał(a):
> DWR valdiation looks fine. Is there any small example? If not, I will try it
> by myself and try to use it. After I would try to use URL- and
> EMail-Validation.
You can check the Showcase app, there should be an example how to use
it. You ca
DWR valdiation looks fine. Is there any small example? If not, I will try it by
myself and try to use it. After I would try to use URL- and EMail-Validation.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For add
niedz., 17 sty 2021 o 15:18 Guenter Paul
napisał(a):>
> I'm not sure. Perhaps a solution with Ajax is possible?
Maybe we should drop support for Client Side Validation in case of
EmailValidator - just in case of pure JS. The Ajax/DWR valdiation
should be used instead.
https://struts.apache.org/c
I'm not sure. Perhaps a solution with Ajax is possible?
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
pt., 15 sty 2021 o 16:21 Guenter Paul
napisał(a):
>
> OK, client validation is a problem, that's true. I don't use it, but yes,
> it's usefull.
>
> I found punycode for that:
> https://github.com/bestiejs/punycode.js
>
> It's MIT-licence, I'm not sure we can use it for standard.
>
> I'm not reall
OK, client validation is a problem, that's true. I don't use it, but yes, it's
usefull.
I found punycode for that:
https://github.com/bestiejs/punycode.js
It's MIT-licence, I'm not sure we can use it for standard.
I'm not really good in javascript, but I can it to write my own decoder. The
bet
czw., 14 sty 2021 o 16:25 Günter Paul
napisał(a):
>
> In Germany we can use domaine-names like "münchen.de".
> The struts validators URLValidator and EmailIdnValidator can't handle such
> name with umlaut.
> The domaine is valide but not for the validator.
>
> Is it possible to change this behavi
In Germany we can use domaine-names like "münchen.de".
The struts validators URLValidator and EmailIdnValidator can't handle such name
with umlaut.
The domaine is valide but not for the validator.
Is it possible to change this behavior?
I overwrite the classes and it works for me.
But I think it
In case anyone is interested, the domain http://struts.ninja is on sale.
Could be useful for a struts community.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h
gt; Subject: Re: Value not persisting in domain object
> From: smaz19...@gmail.com
> To: user@struts.apache.org
>
> Hi Paul,
>
> As per Oracle :
> *invalidate<http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSession.html#invalidate()>
> *()
> In
session.setAttribute(“ShoppingCart“,null)
Sent via BlackBerry from T-Mobile
-Original Message-
From: Srineel Mazumdar
Date: Sat, 14 Sep 2013 08:28:54
To: Struts Users Mailing List
Reply-To: "Struts Users Mailing List"
Subject: Re: Value not persisting in domain object
Hi Pau
:44 AM, Martin Gainty wrote:
> session.invalidate()
>
> http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSession.html
>
> Martin
>
>
>
> > Date: Thu, 12 Sep 2013 16:58:45 -0400
> > Subject: Re: Value not persisting in domain object
> > From: sm
session.invalidate()
http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSession.html
Martin
> Date: Thu, 12 Sep 2013 16:58:45 -0400
> Subject: Re: Value not persisting in domain object
> From: smaz19...@gmail.com
> To: user@struts.apache.org
>
> Hi Umes
ire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire.
ntenu fourni.
Date: Mon, 2 Sep 2013 20:15:30 -0400
Subject: Re: Value not persisting in domain object
From: smaz19...@gmail.com
To: user@struts.apache.org
Hi Umesh and Paul,
I have attached the code. Cart.java is my domain class where itemlist will have
all the items added in the cart. AddIte
Hi Umesh and Paul,
I have attached the code. Cart.java is my domain class where itemlist will
have all the items added in the cart. AddItemToCartAction will add to
itemList and UpdateCartQuantitiesAction will fetch it from itemList. I
agree to what Paul ..but can you suggest a workaround??
This
etrieving the same collection?
> >>
> >>
> >> On Wed, Aug 28, 2013 at 8:22 AM, Srineel Mazumdar >> >wrote:
> >>
> >> > Hi,
> >> >
> >> > I am creating a shopping cart application in Struts 2. I am updating a
> &
Re: Value not persisting in domain object
Hi All,
Can anyone please help ?
Thanks..
On Fri, Aug 30, 2013 at 10:23 PM, Srineel Mazumdar wrote:
> Yes.. the same collection.
>
>
> On Wed, Aug 28, 2013 at 6:55 PM, Paul Benedict wrote:
>
>> Are you retrieving the same collection
g 28, 2013 at 8:22 AM, Srineel Mazumdar > >wrote:
>>
>> > Hi,
>> >
>> > I am creating a shopping cart application in Struts 2. I am updating a
>> list
>> > in Cart domain object when the user selects some items in shopping list
>> > usi
uts 2. I am updating a
> list
> > in Cart domain object when the user selects some items in shopping list
> > using checkboxes and clicks Next. In the CheckOut page those items would
> be
> > shown. But in my case it shows empty list. Upon debugging, I find that
> list
> &g
Are you retrieving the same collection?
On Wed, Aug 28, 2013 at 8:22 AM, Srineel Mazumdar wrote:
> Hi,
>
> I am creating a shopping cart application in Struts 2. I am updating a list
> in Cart domain object when the user selects some items in shopping list
> using checkboxes and
Hi,
I am creating a shopping cart application in Struts 2. I am updating a list
in Cart domain object when the user selects some items in shopping list
using checkboxes and clicks Next. In the CheckOut page those items would be
shown. But in my case it shows empty list. Upon debugging, I find
-Mensaje original-
De: Alfredo Manuel Osorio Martinez
Enviado el: Thursday, January 20, 2011 9:05 AM
Para: 'Struts Users Mailing List'
Asunto: RE: Create/Update with nested domain objects
Any thoughts on this? Please...
Alfredo Osorio
-Mensaje original-
De: Alfredo Man
On Thu, Jan 20, 2011 at 10:04 AM, Alfredo Manuel Osorio Martinez wrote:
> Any thoughts on this? Please...
>
I had some, what did you think of them?
Dave
Any thoughts on this? Please...
Alfredo Osorio
-Mensaje original-
De: Alfredo Manuel Osorio Martinez
Enviado el: Tuesday, January 18, 2011 10:15 AM
Para: Struts Users Mailing List
Asunto: Create/Update with nested domain objects
Hello,
I have seen examples that show how to do CRUD
Hello,
I have seen examples that show how to do CRUD with one domain object
without nested domain objects (just primitives). Giving the following
example:
@Entity
public class Person implements Serializable {
@Id
private Long id;
private String name;
private
ia.es]
Enviado el: jueves, 08 de abril de 2010 13:54
Para: 'Struts Users Mailing List'
CC: '"Juan A. Martínez"'; 'Jordi Marquès'
Asunto: JSP local scope / include con object domain visibility control
Hi,
We wonder how to control the visibility of object put
Hi,
We wonder how to control the visibility of object put in the stack when
including a jsp in another one.
We do know the action/request/page
scope and the include tag
specification.
But we have a need for another JSP level scope and include tag with the
following characteristic:
-
Hi all,
title of my question may sound a bit wired.. but.. I want to run my
service for web but also on .mobi
and so.. I want one package in struts.xml dedicated to mobi actions...
in other worlds
I have myDomain.com which is handled by actions of one package + tiles
then myDomain.com/ajax for obv
On 2/24/07 3:41 PM, "Dave Newton" <[EMAIL PROTECTED]> wrote:
> Isn't that an issue with *any* session-based
> methodology?
Absolutely. It just amazes me how many people still run into it and are
baffled by the strange behavior.
Mark
--
--- Mark Menard <[EMAIL PROTECTED]> wrote:
> Be careful with the ScopedModelDriven method. Have
> you checked that it works with a user running two
> concurrent copies of your wizard, if you allow it?
> (Think tabbed browsing.)
Isn't that an issue with *any* session-based
methodology?
d.
__
On 2/23/07 7:31 PM, "Dave Newton" <[EMAIL PROTECTED]> wrote:
> --- bob <[EMAIL PROTECTED]> wrote:
>> For instance, if my domain object is Customer, what
>> would be the consequences and benefits of using
>> modelDriven with a getModel() that returns
--- bob <[EMAIL PROTECTED]> wrote:
> For instance, if my domain object is Customer, what
> would be the consequences and benefits of using
> modelDriven with a getModel() that returns an
> instance of Customer, versus having a getCustomer()
> property on my action object?
Th
I'm trying to figure out what the differences, pros and cons, are between using
the ModelDriven interface to expose a domain object to the data transfer of the
framework and just putting a domain object on the action as a property.
For instance, if my domain object is Customer, what
Hi everybody,
I am aware that this is totally OT, but I'd be really grateful for any
answers, hints, best practices, links, whatever. My problem is as
follows:
I am using Hibernate/Spring to load domain objects (DOM) from my
database, then I use these DOMs to display information on th
when entering his email
> > address (ex: [EMAIL PROTECTED]) on one of our sites that uses
> Struts.
> > Apparently, the Struts email validation doesn't like the 4 character
> domain
> > qualifier (.info in this case - I believe there may be others).
> >
> > I looke
On 4/6/06, Jeff Deskins <[EMAIL PROTECTED]> wrote:
> A user kept getting an email validation error when entering his email
> address (ex: [EMAIL PROTECTED]) on one of our sites that uses Struts.
> Apparently, the Struts email validation doesn't like the 4 character domain
&
Jeff Deskins wrote:
A user kept getting an email validation error when entering his email
address (ex: [EMAIL PROTECTED]) on one of our sites that uses Struts.
Apparently, the Struts email validation doesn't like the 4 character domain
qualifier (.info in this case - I believe there m
A user kept getting an email validation error when entering his email
address (ex: [EMAIL PROTECTED]) on one of our sites that uses Struts.
Apparently, the Struts email validation doesn't like the 4 character domain
qualifier (.info in this case - I believe there may be others).
I look
then populated that with the domain objects
values that were needed. This latter solution is more like a poor mans (in
regards too time) JSF.
In my current project I am at the design stage and one technique I am
considering is to implement a view-to-business mapping layer, to live
the struts ac
ce of that exception, I suppose it's better to
> handle
> > That exception in your service layer, so you will give to the web layer
> > A 'proper' collection rather than let the web layer handle that...
> >
> > HTH
> > marco
> >
> >
>
bject
> >
> > The service layer are actually Spring beans. These beans are bound to
> the
> > dao's in the Spring appContext. I am also using Spring to manage the
> Struts
> > actions.
> >
> > I have always wrestled with the DTO question. I gues
e that...
>
> HTH
> marco
>
>
>
> -Original Message-
> From: Tom Ziemer [mailto:[EMAIL PROTECTED]
> Sent: 30 November 2005 15:39
> To: Struts Users Mailing List
> Subject: Re: slightly [OT] Hibernate and domain objects in web apps
>
> Hi,
>
collection rather than let the web layer handle that...
HTH
marco
-Original Message-
From: Tom Ziemer [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 15:39
To: Struts Users Mailing List
Subject: Re: slightly [OT] Hibernate and domain objects in web apps
Hi,
@Matt:
thanks for y
: slightly [OT] Hibernate and domain objects in web apps
Hi,
@Matt:
thanks for your elaborate answer. My setup is a lot like yours: Spring
manages the business objects and the DAOs. My problem is this:
Struts->Business layer->HibernateDAO->Database will return a hibernate
proxy of my dom
eb layer handle that...
HTH
marco
-Original Message-
From: Tom Ziemer [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 15:39
To: Struts Users Mailing List
Subject: Re: slightly [OT] Hibernate and domain objects in web apps
Hi,
@Matt:
thanks for your elaborate answer. My setup is a
Hi Borislav,
yes, this is actually one big part of my problem: sometimes I'll need
collections A and B of an object and sometimes no collections at all or
different collections.
How does your business layer represent this? Do you have one method in
which you specify the attributes that are n
Tom Ziemer wrote:
Hi Borislav,
unfortunately I cannot do this, because I have a rich client and a
(struts-based) web frontend. Consequently, my business layer must load
and initialize all dom objects that are requested, because I cannot
have an open session on my rich client that is using we
Struts
actions.
I have always wrestled with the DTO question. I guess I haven't seen the
need for it while using Spring and Hibernate. I have also created objects
that are specific to the view object (like a set of menu links) that is
being created dynamically and then populated that with
Marco Mistroni wrote:
In my case I chooseed to have a common interface for DTO & domain, and I am
just using BeanUtils to copy Properties between the two (so I save the
hardcoded method copy)
I use in most cases a mapped form i.e. a form with a map and use as well
BeanUtils to copy
Borislav Sabev wrote:
Tom Ziemer wrote:
Hi,
I have got a little problem with Hibernate - well actually it is only
partially related to it:
My app uses Spring + Hibernate (lazy loading), but should I return
the value beans (dom) from Hibernate to my Struts actions? If I do
this, I'd have
Hi Borislav,
unfortunately I cannot do this, because I have a rich client and a
(struts-based) web frontend. Consequently, my business layer must load
and initialize all dom objects that are requested, because I cannot have
an open session on my rich client that is using web services to
commu
Tom Ziemer wrote:
Hi,
I have got a little problem with Hibernate - well actually it is only
partially related to it:
My app uses Spring + Hibernate (lazy loading), but should I return the
value beans (dom) from Hibernate to my Struts actions? If I do this,
I'd have to deal with LazyInitial
Hello,
I agree with mostly of what you said...
And add a little thing...
If your domain objects & DTO implements a common interface, if your domain
object changes you'd need to change its interface, so you will be forced
To change also the DTO... I don't think you can ge
x27;t seen the
need for it while using Spring and Hibernate. I have also created objects
that are specific to the view object (like a set of menu links) that is
being created dynamically and then populated that with the domain objects
values that were needed. This latter solution is more like a po
avoid using DTOs.
Tom
Marco Mistroni wrote:
Hello,
Any reason of why you can't use DTOs?
Your domain objects and dto could implement the same interface..
HTH
marco
-Original Message-
From: Tom Ziemer [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 14:26
To:
Hello,
Any reason of why you can't use DTOs?
Your domain objects and dto could implement the same interface..
HTH
marco
-Original Message-
From: Tom Ziemer [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 14:26
To: Struts Users Mailing List
Subject: slightl
Hi,
I have got a little problem with Hibernate - well actually it is only
partially related to it:
My app uses Spring + Hibernate (lazy loading), but should I return the
value beans (dom) from Hibernate to my Struts actions? If I do this, I'd
have to deal with LazyInitializationExceptions fo
http://struts.apache.org/api/org/apache/struts/action/Action.html#execute(org.apache.struts.action.ActionMapping,%20org.apache.struts.action.ActionForm,%20javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse)
Basically, take HttpResponse from execute() arguments, write t
I am trying to allow users of my site to incorporate some of my sites content
in their blog. I am letting them paste the following code in their site:
http://mysite.com/blog/mypostings.jsp?id=23330";>
I need my action class to send the following back to the javascript request.
ted by
posting this, so YMMV.)
It seems nice and easy to develop especially with JSTL & EL, but I'm
still slightly worried about coupling the view so closely to the
domain model, and potential scalability / robustness issues.
If you use the lazy loading correctly, you probably deal
easy to develop especially with JSTL & EL, but I'm
still slightly worried about coupling the view so closely to the domain
model, and potential scalability / robustness issues.
Thanks
Adam
-
To unsubscribe, e
On Sun, 24 Jul 2005 08:17:43 -0700 Mark Benussi asked a question
...When using html:link (A struts tag library) and the other
associated tags (rewrite etc) the domain is missing...
I moved my pages today too... same effect ...
What was the reason in your case, and what did help solving
this
I have recently moved ISPs and my sites are experiencing some strange
behaviour.
Basically on some of my sites (Not just one) and on some of the links (Not
just all) When using html:link (A struts tag library) and the other
associated tags (rewrite etc) the domain is missing.
This is also seen
AIL PROTECTED]>
To:
Sent: Tuesday, May 24, 2005 8:21 PM
Subject: bean:include on public domain
name="absContent" filter="false" />
this works locally but not when deployed on public domain, would it be a
network issue?
jsp:include works fine everywhere
Please let me k
name="absContent" filter="false" />
this works locally but not when deployed on public domain, would it be a
network issue?
jsp:include works fine everywhere
Please let me know if anyone has encountered it.
since we used bean:include from the begining, could easily re
I guess it be a new case.
If there are 2 logical forms like master (name) and detail(list of
transactions, that means the 1 form bean has to mirror it so you would
have to nest a bean.
(and... once the client approves... I would write a DAO).
As far as MDA I myself use requirments based iter
to mix the UserCRUDPage with the
> AddressCRUDPage
> >in only one page. My client also wanted that all
> the
> >data on the page could be updated with only one
> mouse
> >click (in other words, only one 'save' button).
> >Naturally, i was forced to make so
arted to
think that :
My view is coupled to my control layer, wich is even
more coupled with my domain model.
Well, i`m not talking about big coupling here, but it
exists. In other workds i`m saying that in more
abstract point of view, this is what happens.
I really would like to hear comments abou
. Briefly, i need to
make a few changes in my Action, that`s the point
here.
Although the changes were actually small, i started to
think that :
My view is coupled to my control layer, wich is even
more coupled with my domain model.
Well, i`m not talking about big coupling here, but it
exists. In oth
500 Internal Server Error
java.lang.NullPointerException: domain was null
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.rmi.RMIServer.addNode(RMIServer.java:735)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.rmi.RMIServer.getConnection
74 matches
Mail list logo