Hi Friends,
Please help me to understand why validation framework is not working
http://www.nabble.com/file/p22431543/CompleteFiles.rar CompleteFiles.rar
--
View this message in context:
http://www.nabble.com/What%27s-wrong-with-my-Validation-framework-it-was-working-fine-b4-but-now-its-
--- xianwinwin <[EMAIL PROTECTED]> wrote:
> * I placed it under WebContent and it worked!
Note that this just masks the actual problem, and you'll now have to do this
every single time you upgrade Struts 2.
Dave
-
To unsubscrib
Dear Ravi
YOU ARE THE MAN!!!
Thank you so much!
* I placed it under WebContent and it worked!
--
View this message in context:
http://www.nabble.com/strut2---Ajax-dojo%3A-rr-what%27s-wrong-with-my-settings--cant-get-the-theme%3Dajax-to-wrork-%28pictures-included%29-tp15600219p156
--- ravi_eze <[EMAIL PROTECTED]> wrote:
> if dojo is not defined: then probably the following should help:
>
> 1. define a folder struts in ur project (under webinf)
> 2. copy ajax, dojo, nifty corners, simple, xhtml, CommonFunctions.js,
> inputtransferselect.js, optiontransferselect.js, tabs.css,
hi,
if dojo is not defined: then probably the following should help:
1. define a folder struts in ur project (under webinf)
2. copy ajax, dojo, nifty corners, simple, xhtml, CommonFunctions.js,
inputtransferselect.js, optiontransferselect.js, tabs.css, tree.css,
validationClient.js. Search for t
Usually that means that you are missing:
but you have it on the section that you posted. Look at the source of
the page, is a dojo.js file getting referenced?
musachy
On Thu, Feb 21, 2008 at 10:07 AM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> :-(
>
> debuging with fireBug I get the followin
:-(
debuging with fireBug I get the following message: dojo is not defined
--
View this message in context:
http://www.nabble.com/strut2---Ajax-dojo%3A-rr-what%27s-wrong-with-my-settings--cant-get-the-theme%3Dajax-to-wrork-%28pictures-included%29-tp15600219p15612900.html
Sent from the Strut
try putting labelposition="top" as a property in your div tag for the
first tab. and remove all css just to see if it atleast works
On Wed, Feb 20, 2008 at 5:44 PM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> thanks for replying. No, the tabs.css is not mine. I realized it comes from
> struts2-cor
thanks for replying. No, the tabs.css is not mine. I realized it comes from
struts2-core.
Musachy Barroso wrote:
>
> Is tabs.css your css? I am guessing that there is some style applied
> to the tabs that is breaking it. (because the text on the other tab
> should be hidden, and it isnt)
>
>
--- xianwinwin <[EMAIL PROTECTED]> wrote:
> WHAT am I possibly doing wrong here?
Not sure: does it work if you're not using your own CSS? It's weird that only
one of your tab headers is showing up and that the text of both tabs is
visible. I don't see anything immediately obvious about the JSP its
Is tabs.css your css? I am guessing that there is some style applied
to the tabs that is breaking it. (because the text on the other tab
should be hidden, and it isnt)
musachy
On Wed, Feb 20, 2008 at 5:21 PM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> WHAT am I possibly doing wrong here?
>
> I w
WHAT am I possibly doing wrong here?
I want to get this result: (attention on the tabs example)
http://www.nabble.com/file/p15600219/good.jpeg
but I get this result:
http://www.nabble.com/file/p15600219/wrong.bmp
the code is:
<%@ include file="/pages/layouts/taglibs.jsp" %>
Welcome ; last
I've reduced my real problem to a simple somepackage.CustomException example.
In my real application, there are actions, such:
where the action class is:
public final class SpikeAction_3rdLayerEx extends Action {
private static Logger logger =
Logger.getLogger(SpikeAction_3rdLayerEx.c
Struts isn't catching this exception because you're throwing it in a
JSP page which is being accessed outside the Struts servlet (directly
via a URL).
Try throwing the exception in a Struts action and see what happens.
But even if you do that you'll run into a problem with the current
setup. You'
i need to configure struts to display user a errpage.jsp, when runtime
exception CustomException occur anywhere in the application. i've added to
struts-config:
and to web.xml:
500
/ErrorPage.jsp
when i browse page _spikeScriptletThrowingEx.jsp:
<%@ page language=
List'
Subject: RE: validatewhen --- what's wrong?
I am not sure how to set Apache tomcat server to debug mode.
However, there are no exception been thrown out in console during
validation
execution.
Jason
-Original Message-
From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED]
: RE: validatewhen --- what's wrong?
That looks good.
Do you see any exception stack related to validation when you submit the
form?
Harsh.
-Original Message-
From: Zheng Wen Zhe [mailto:[EMAIL PROTECTED]
Sent: Friday, April 28, 2006 11:07 AM
To: 'Struts Users Mailing List
That looks good.
Do you see any exception stack related to validation when you submit the
form?
Harsh.
-Original Message-
From: Zheng Wen Zhe [mailto:[EMAIL PROTECTED]
Sent: Friday, April 28, 2006 11:07 AM
To: 'Struts Users Mailing List'
Subject: RE: validatewhen --- wh
This is the validwhen entry in validator-rules.xml
*
***
-Original Message-
From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED]
Sent: 28 April 2006 17:09
To: Struts Users Mailing List
Subject: RE: validatewhen --- what's wrong?
Do yo
Do you see some stack when validation runs for the password field?
Also, do you see this entry in your validator-rules.xml file:
mailto:[EMAIL PROTECTED]
Sent: Friday, April 28, 2006 10:18 AM
To: 'Struts Users Mailing List'
Subject: RE: validatewhen --- what's wrong?
lidatewhen --- what's wrong?
The validation is definitely called.
If I submit the form with login field empty, alert is popping up.
So I am sure is somewhere wrong with the validwhen..
But, where??
Jason
-Original Message-
From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED]
Sent: 28 Apri
Mailing List
Subject: RE: validatewhen --- what's wrong?
Are you sure that validation is being called? For example, what happens
when you submit the form with nothin in the login field (which is
required)?
Harsh.
-Original Message-
From: Zheng Wen Zhe [mailto:[EMAIL PROTECTED]
Sent: F
List'
Subject: RE: validatewhen --- what's wrong?
Well, basically, I wanna the condition to be true only when user gives
key
word 'password' to the password field.
And I tried this
(*this* == 'password')
The validwhen still always is true no matter what is given.
lto:[EMAIL PROTECTED]
Sent: 27 April 2006 18:34
To: Struts Users Mailing List
Subject: Re: validatewhen --- what's wrong?
Hi
To tell you the truth i do not understand what you wanna do...
Anyway your validwhen condition is always true!
Note that you are comparing *this* - for property password, w
6 12:34 PM
> To: Struts Users Mailing List
> Subject: Re: validatewhen --- what's wrong?
>
>
> Hi
> To tell you the truth i do not understand what you wanna do...
> Anyway your validwhen condition is always true!
> Note that you are comparing *this* - for property pas
Try it like this.
(*this* == 'password')
-Original Message-
From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 27, 2006 12:34 PM
To: Struts Users Mailing List
Subject: Re: validatewhen --- what's wrong?
Hi
To tell you the truth i do not understand wh
Hi
To tell you the truth i do not understand what you wanna do...
Anyway your validwhen condition is always true!
Note that you are comparing *this* - for property password, with property
password.
It means something like 1==1.
2006/4/26, Zheng Wen Zhe <[EMAIL PROTECTED]>:
>
> Hey all,
>
> I wa
Hey all,
I wanna it say yes when a user type 'password' into this password field.
But, it doesn't work that way. Validation always passes no matter what the
user has given into the password field.
Pls, someone tell what wrong with it!!!
Validation.xml
http://jakarta.apa
HaaThanks for all reply. It seems google is every thing.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: 14 March 2006 14:24
To: Struts Users Mailing List
Subject: Re: what's wrong?? ---Connection with MySQL database
Zheng Wen Zhe wrote:
> Why I
Dave Newton ha scritto:
Total time spent (not including typing this email): about 1 minute, 45
seconds.
Time spent typing the email: 2 minutes.
Time you'll wait to read a response on the newsgroup: 5-15 minutes.
Ability to debug your own app: priceless.
There are things that you cannot buy, f
Zheng Wen Zhe wrote:
> Why I got this error when initialize web server
>
Well, let's take a look:
> ERROR <14-Mar-2006 13:52:17> Initializing application data source userDB
>
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
> class '' for connect URL 'jdbc:mysql:
did you include the mysql jdbc jar in your classpath?
On 3/14/06, Zheng Wen Zhe <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Why I got this error when initialize web server
>
>
>
> ERROR <14-Mar-2006 13:52:17> Initializing application data source userDB
>
> org.apache.commons.dbcp.SQLNestedException
I use Tomcat and I've only ever created datasources in web.xml. Have u tried
that?
Zheng Wen Zhe <[EMAIL PROTECTED]> wrote: Hi,
Why I got this error when initialize web server
ERROR <14-Mar-2006 13:52:17> Initializing application data source userDB
org.apache.commons.dbcp.SQLNestedExc
Hi,
Why I got this error when initialize web server
ERROR <14-Mar-2006 13:52:17> Initializing application data source userDB
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'jdbc:mysql://localhost:3306/struts'
On 11/21/05, Fulgencio Comendeiro, Eduardo
<[EMAIL PROTECTED]> wrote:
> <%
> {
> java.util.ArrayList list = new java.util.ArrayList();
> list.add("textouno.texto1");
> list.add("textouno.texto2");
> list.add("textouno.texto3");
> list.add("textouno.texto4");
> pageContext.setAttribute("list",
<%
{
java.util.ArrayList list = new java.util.ArrayList();
list.add("textouno.texto1");
list.add("textouno.texto2");
list.add("textouno.texto3");
list.add("textouno.texto4");
pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE);
}
%>
contenido.
'/>" >
The result must b
Let it never be said that the myriad OT discussions on the Struts mailing
list aren't worth something :)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
On Wed, October 19, 2005 8:50 am,
> From: Leon Rosenberg
>
> On 10/19/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
> > George
> > Could you explain on how MVC patterns are fractal?
> > Thanks,
> > Martin-
>
> I think there are no fractal patterns, but fractal
> architectures, which follows same pattern in different
> levels. E
On 10/19/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> I think there are no fractal patterns, but fractal architectures,
> which follows same pattern in different levels. Example:
> a typical 3-tier can be considered MVC
> the presentation layer in the 3-tier could itself be an MVC too (jsp
> the
Thanks to all who responded. I am so much wiser now..:)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Yahoo! Music Unlimite
To:
> Sent: Tuesday, October 18, 2005 4:49 PM
> Subject: RE: What's wrong with DTOs?
>
>
> > From: Leon Rosenberg
> >
> > P.S. Have you ever considered, that the View itself can be an
> > MVC as well?
>
> Yes, patterns are fractal.
>
>
[EMAIL PROTECTED] wrote:
Hi Bob, I'll try to give my 1 cent to the topic and also to answer you
more concrete because I believe you want some concrete answers, not
theoretical conversations.
Background: I just started a Struts project with Hibernate. I have chosen to
use the Data Access Ob
George
Could you explain on how MVC patterns are fractal?
Thanks,
Martin-
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Tuesday, October 18, 2005 4:49 PM
Subject: RE: What's wrong with DTOs?
From: Leon Rosenberg
P.S. Have you ever considered, that the View it
> From: Leon Rosenberg
>
> P.S. Have you ever considered, that the View itself can be an
> MVC as well?
Yes, patterns are fractal.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Only fair to mark this thread OT by now, hope no one minds...
Talking about the view that considers what goes on in Struts Actions to be
part of the view, here's why I don't agree with that perception...
In that view, if I have a webapp and later want to make it a Swing-based
app, I would be thro
+1.
.V
Christian Bollmeyer wrote:
[EMAIL PROTECTED] schrieb:
+1. The first thing I always preach new developers
on my team is that they should think the entire web
tier away and replace it (mentally) with a Swing or
whatever client, without changing anything in the
subsequent layers, and the
On 10/18/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> > > I can't answer for Ted, but I consider *all* of MVC to be
> > part of the
> > > view tier. The Model is just the presentation layer's view of the
> > > business system. It should be abstract and opaque and
> > contain all of
> > > th
[EMAIL PROTECTED] schrieb:
+1. The first thing I always preach new developers
on my team is that they should think the entire web
tier away and replace it (mentally) with a Swing or
whatever client, without changing anything in the
subsequent layers, and the application still has to
work as usual
> -Original Message-
> From: Dave Newton
> I'm still not clear on how the entirety of MVC is the V
It's not. MVC is a View Tier pattern, though. Within the pattern it
separates the Model, an abstraction of the business logic, the View,
which displays a representation of the Model, and th
[EMAIL PROTECTED] wrote:
On 10/18/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
I can't answer for Ted, but I consider *all* of MVC to be part of the view
tier. The Model is just the presentation layer's view of the business system.
It should be abstract and opaque and contain all o
> From: Leon Rosenberg
> On 10/18/05, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > > -Original Message-
> > > From: Frank W. Zammetti
> > [snip]
> > >
> > > Ted, this seems to be saying that you consider the Actions to be
> > > part of the view... is that what you intended?
On 10/18/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: Frank W. Zammetti
> [snip]
> >
> > Ted, this seems to be saying that you consider the Actions to
> > be part of the view... is that what you intended?
>
> I can't answer for Ted, but I conside
> -Original Message-
> From: Frank W. Zammetti
[snip]
>
> Ted, this seems to be saying that you consider the Actions to
> be part of the view... is that what you intended?
I can't answer for Ted, but I consider *all* of MVC to be part of the
view tier. The Model is just the pres
On Tue, October 18, 2005 11:05 am, Ted Husted said:
> The question is whether we want to stop transfering the data when we
> get to the servlet (or filter or Action), or continue to transfer the
> data on to the model. If we stop at the Action layer, and start
> making model calls there, we elimin
On 10/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> You may ask now what's the place for HttpServletRequest and its company. I
> think its natural place is inside the document itself, hidden inside its
> code, so that the interface is independent from the use of servlet
> technology. In fac
I wish to tell you a story, to show because I changed my mind about DTOs.
Once upon a time I used to write GUIs (i.e. Swing GUIs). I have to tell
that I used to mix controller code with model. But when I think about that
"era" I noticed that it was pretty easy to write code. Why now is it so
diffic
The original idea was that one Data Transfer Object could be used to
represent many domain objects. Perhaps even *all* the domain objects.
The view tier could then ferry back and forth this one object instead
of having to deal with a plethora of finely grained objects. All the
view layer sees is a
On Mon, October 17, 2005 1:15 pm, Dave Newton said:
> My only response would be that ultimately, I still prefer to have less
> coupling: with a POJO bean and a DAO it gives me one more place I can
> change implementation. That said, if you added a "setDao" or whatever to
> the above Customer I migh
Frank W. Zammetti wrote:
So, is another way of saying what your saying is that you feel that
DTO+DAO=Something Good(tm)?
So, if instead of having:
class CustomerDTO {
public setFirstName(String);
public setLastName(String);
public getFirstName(String);
public getLastName(String);
}
class C
What I agree is that objects have to be rich in information AND
associations. I don´t like(it´s just my opinion) reflecting my tables in my
Objects. Like, if I have a Category and a Product, I like to associate these
two objects, not just add productId in Category. About the methods, I had
all the
So, is another way of saying what your saying is that you feel that
DTO+DAO=Something Good(tm)?
So, if instead of having:
class CustomerDTO {
private String firstName;
private String lastName;
private String id;
public setFirstName(String);
public setLastName(String);
public setId(Str
[EMAIL PROTECTED] said:
*"I think it is best to use directly domain objects, i.e. ye old (but good)
OOP with "real" objects."*
**
+1 :)
Best Regards
Rafael Mauricio Nami
2005/10/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> I'm not a guru but...
> Once I thought that DTOs are a nice way to se
I'm not a guru but...
Once I thought that DTOs are a nice way to separate the webapp's layers,
just because they are simply data containers and have no logic.
But now I think they are completely useless, because they have no logic! I
know it is stupid to use the same answer for two opposite points
I think DTOs is the best solution.
However, is tedious to copy properties. Yes, I know that you can use
BeanUtils but sometimes you need a DTO that is a combinations of two model
objects and you have to use getters and setters.
2005/10/17, Vic Cekvenich <[EMAIL PROTECTED]>:
>
> I don't think anyt
I don't think anything wrong w/ DTO.
You have your DAO, your model... in my case I use collections as DTO,
but beanutils is fine.
.V
[EMAIL PROTECTED] wrote:
Hi, Gurus,
Background: I just started a Struts project with Hibernate. I have chosen to
use the Data Access Object with (Abstract F
Hi, Gurus,
Background: I just started a Struts project with Hibernate. I have chosen to
use the Data Access Object with (Abstract Factory) design pattern because my
client uses Oracle and I use Postgresql database. I am working with other
teams remotely and they decided to use DTO.
Problem:
What error do you get when you change the key? Most likely you're
missing the corresponding entries in your resource bundle
(MessageResources.properties or whatever you have configured in
struts-config.xml).
L.
梁炳場 wrote:
I change to bean key to main.welcome,
the webpage can be displayed.
If
, September 26, 2005 5:34 AM
To: Struts Users Mailing List
Subject: What's wrong in ApplicationResources.properties?
I change to bean key to main.welcome,
the webpage can be displayed.
If the bean key changes to main.home or main.contactUs
the webpage cannot be displayed properly.
what goes
I change to bean key to main.welcome,
the webpage can be displayed.
If the bean key changes to main.home or main.contactUs
the webpage cannot be displayed properly.
what goes wrong?
Thnx
header.jsp:
ApplicationResources.properties:
main.welcome=Welcome to myERP
main.contactUs=Contac
I don't see anything displayed on jsp with below
simple code in my struts action class.
MenuComponent mc = new MenuComponent();
mc.setName("Menu 1");
mc.setLocation("Menu 1");
mc.setTitle("Menu 1");
MenuComponent mc2 = new MenuComponent();
mc2.setName("Menu 2");
mc2.setLocation("Menu 2")
Gotcha
Oh poor man :-)
The problem was in the form:
I used the attribute value="" for the html:text tag from an old form
ByE
If I try to print on that form the bean polizza_newForm the properties
are correct:
gives:
DynaActionForm[dynaClass=polizza_newForm,nome=test]
My form is
Hi,
I'm trying to prepopulate a form for editing it and I can't understand
what's wrong.
From a list of objects I want to edit one. I have an action for that:
^
polizza_newForm is a DynaActionForm defined in the struts-config.xml
Thank you all :), the good new is my problem is solved by all you.
Again, thank all you very much :)
- Original Message -
From: "Nicolas De Loof" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, March 16, 2005 3:57 PM
Subject: Re: [HELP] What
You cannot use a tag as attribute of another tag : they must follow an
XML structure
Use a variable to store the result of your tag :
Go
or
If you don't use struts-EL, use bean:define to define a script v
Go
Nico.
Pham Anh Tuan a écrit :
Hi all,
I got a problem when I code like below:
">Go
I thought, inside a jsp tag parameter (here the page parameter) the only
substitutions allowed were in the following syntax:
${bean.property}
<%= someExpression() %>
and so to have your expected result you need to export the value of
treetag:nodeId to a bean and then use that bean value in html
Pham,
To, it looks as if the quotes will not be interpreted correctly in the
following part:
">
The text 'tree.node' will not be inside quotes, contrarely to what I
understand below that you would want.
Perhaps you should use single quotes for the outside quotes and double
quotes for the ins
Hi all,
I got a problem when I code like below:
">Go
I can not get value of
if my code is incorrect, plz help me solve it.
thanks
Bowl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
Hi all,
I got a problem when I code like below:
">Go
if my code is incorrect, plz help me solve it.
thanks
Bowl
78 matches
Mail list logo