Thomas Thomas ha scritto:
What's the advantage of using
instead of
the jsp includes.
The reuse of the layout! You can have a simple layout page (e.g. the
classic layout with header, body, menu (on the left) and footer) with no
connection with its content.
And you can define a base definitio
Hi, I help moderate messages on this list. You are not subscribed. I let
this message through because it is not spam, but you need to subscribe
before any more can come through.
Thanks.
On 11/29/06, prkumar_1234 <[EMAIL PROTECTED]> wrote:
I got some problem in struts can you please help me.
I got some problem in struts can you please help me.
1) in jsp iam displaying values from javabean in textboxes.(i can
change
these values)
2) when i submit with modified values , iam doing validation in
formbean.
3) When validatio fails i formbean returning to same jsp but it is
displaying old va
eval() evaluates JavaScript, not XML or HTML.
(*Chris*)
On 11/29/06, Dave Newton <[EMAIL PROTECTED]> wrote:
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> (interestingly, in IE I get a syntax error, because it's trying to
> interpret the markup as script, but in FF it just quietly doesn't
Should be inside your struts distro for example Struts 2.0.1 inside the lib
folder you *should* see common-validator-1.3.0.jar
let us know if ou dont see it
safest place is to place commons-validator*.jar is in
$CATALINA_BASE/webapps/YourWebApp/WEB-INF/lib
There are also jars available from http
Seems commons-validator.jar, but not sure.
Check out this: http://jakarta.apache.org/commons/validator/
陈仕兵
LifeSystem CS, IT Application Developer
Great Eastern Life Assurance (China) Co. Ltd.
Tel: 86-021-6140 Ext 2405
86-021-28065394
Fax: 86-23-63885566
-Original Message-
From
I compile my Java file,but it raise error:org.apache.commons.validator not
found,I guess I must lost a jar file,but I don't know which jar I
lost,anyone could tell me which jar I need?
Thanks.
I need to implement a customized-page feature so the layout and the content of
the page are defined by user. I am not sure which approach will be the right
choice -- easy to implement and extend for the future. Will you recommend
Tiles, Struts Layout, or something else?
I am new to Struts
On 11/29/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:
Hello,
I have the need to do some form validations, but the site in question
is not running Struts, nor WW or any framework. :-(
It is an older site and I have been commissioned to do some validtion
within it. I was hoping that the Validator
Well, if you look at my previous response, you can see why they can't do
that. You're passing dynamic information into the tiles to control how they
are generated, a static include wouldn't work.
(*Chris*)
On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
Thank u Chris,
I will try that !
+1
Here is One example complete with configuration for
http://www.roseindia.net/struts/strutsdatasourcemanagerontomcat5.shtml
Anyone else?
M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the
designated recipients named above. I
You can try http://jakarta.apache.org/commons/validator/ which is commonly used
w/Struts 1.
- Original Message
From: Jim Reynolds <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Wednesday, November 29, 2006 2:21:49 PM
Subject: Validator without Struts
Hello,
I have the need to d
Hello,
I have the need to do some form validations, but the site in question
is not running Struts, nor WW or any framework. :-(
It is an older site and I have been commissioned to do some validtion
within it. I was hoping that the Validator that comes with Struts may
be able to work as a stand-
Do the DB validation in:
controllers.submits.LoginAction (execute) method.
The error handling should be:
If DB validation fails, create Action Error or Message and then pass it
back to the JSP as a failure.
The Error tags should be able to display it. If you use you
dont have to manage indivi
Basically, the way I would envision this, is that the validation framework
checks to make sure the 'username' and 'password' fields are not NULL, or meet
some form of low level character count.
Anyway, that is good. What I would do, is continue with that, then after the
validator says this is a
Hi,
My web-application allows a user to authenticate to the website.
I check for login and password with the Validator Framework (correct length,
correct carachters, ...)
Then display with and in my jsp.
This work ok.
If he the fields are valid, I need to check in my DB if the user is really
Priya,
As a short term solution you can create a new tag,as in myLibrary:link which
derives from html:link and knows how to deal with AccountInfo bean.
But if I may,I would suggest rethinking the architecture of your application,
as in maintaining the AccountInfo object in session instead of pas
Hi Rahul,
I was trying to reduce the amount of code if its possible (?) since the
action would display a jsp page with account information and then the user
would review the information & submit another action to finally create the
account.
Since I already have all the information in a bean I wa
I'm trying to understand Tiles ...
Instead of this :
** tiles-defs.xml **
** base.jsp **
[...]
I could have this :
** tiles-defs.xml **
** base.jsp **
<[EMAIL PROTECTED] page="incl/header.jsp" %>
Would you mind using jstl?
Caveat: I havent used it myself.But I remember having come across code like
that.
AFAIK, html:link doesnt support passing multiple params except by a Map.
-Original Message-
From: priya [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 3:25 PM
To:
I am trying to use Struts for an account creation application
1. In my JSP page I am using a List (named results) to get account
information (name, id and more.. )
2. The list stores this information in an AccountInfo bean and I am
using a for loop to go through the List.
3. I am using
From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
> the WAR-file thing has really eluded me..
http://www.google.com/search?q=war+file
1) http://access1.sun.com/techarticles/simple.WAR.html
2) http://en.wikipedia.org/wiki/WAR_(file_format)
Dave
thank you very much for your help.. I'm a developer, mostly front-end
(but very experienced) also know Java programming (and JSP/back-end), I
started learning Java about three years ago and I like programming a
lot.. know very well how to use Tomcat, servlets, etc..
started a new job a few mo
On 11/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi all,
I am seeing the below warning message whenever form bean is accessed.
WARN [ValidatorResources] Form 'callcontrolForm' not found for locale
'en_US'
In struts-config.xml I have
This was a known bug in 1.2.9 version,
http
Yeah, can't say I knew it either :)
One would assume then that what you ge back from eval()'ing valid XML is a
Document object that you can then use DOM methods on, just as you do in IE
if you get responseXML from XMLHttpRequest (assuming it was in fact an XML
response)... that'd be pretty close t
On Wed, November 29, 2006 8:30 am, Martin Gainty wrote:
> I wholeheartedly agree that JavaScript and any 'language' that
> ends with Script should be avoided at all costs!
Wait, don't put those words in my mouth :) I said some people consider
eval() to be bad, not scripting languages... I have no
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> I guess maybe it examines the contents your eval'ing
> and differentiates between pure markup and script? Interesting!
It must be; I didn't know it would do that.
My first thought (here, by "thought" I mean "hope") was that FF had made
XML into
Thomas Thomas ha scritto:
Ah
Well I could have a layout thanks to Tiles which would be inherited by
the
pages,
and just use or <[EMAIL PROTECTED]> then ...
What's the advantage of having ?
Finally
it's just the fact that the name of the page is not hardcoded in the
application, but in
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
> how exactly does this WAR-thing work???
This may not be your best approach to learning JEE.
Have you considered getting a book that discusses JEE and moving on to
Struts from there?
Dave
Yeah, those messages make sense I think... I guess FF realizes that your
trying to eval something that's purely markup and tries to parse it as
XML... incorrect nesting of the tags in the first case makes sense for
that message, as no closing tag makes sense for the second, if it were
trying to par
Ah
Well I could have a layout thanks to Tiles which would be inherited by the
pages,
and just use or <[EMAIL PROTECTED]> then ...
What's the advantage of having ? Finally
it's just the fact that the name of the page is not hardcoded in the
application, but in the XML file instead.
2006/11
thank you all very much for your help.. finally got it to work w/struts
1.1 (I had tried earlier version before, but 1.2.9, since hadn't been
able to find 1.1)
now need to deal w/WAR-file thing, unfortunately don't know how to
unpack/deploy WAR files.. I tried about a year ago to learn t
Thomas Thomas ha scritto:
Yes, I think you are right,
I'm doing this all wrong :-(
I can't include jsp's in a static way with Tiles ?
Use or <[EMAIL PROTECTED]> instead. Using Tiles does not mean that
you cannot use standard tags.
Ciao
Antonio
-
Yes, I think you are right,
I'm doing this all wrong :-(
I can't include jsp's in a static way with Tiles ?
Before Tiles I used dynamic includes and static includes,
I will lose some eprformance here because with Tiles it is only dynamic.
2006/11/29, Dave Newton <[EMAIL PROTECTED]>:
From: Th
well the idea of CSS is to separate styling from the actual web page...
how you implemented it you are mis-using CSS... look to all mayor
websites.. they all using one CSS file. may bee you can find the code
easily, but you need to fix the same bug on several places.
With your strategy you could
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
> what do u think of my arguments ?
I think you have too many CSS files :)
I've seen sites with maybe 2-3, but if your site pages are supposed to
look the same you might want to consolidate all your style information
to avoid duplicating information.
well header is your naming
On 11/28/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
more info about CSS you can find here:
http://www.w3schools.com/css/default.asp
On 11/29/06, Dave Newton <[EMAIL PROTECTED]> wrote:
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
> >> How abou
Because if I have a lot of pages, and a page has a error in its layout,
I can easily find the code because I have separate css files for each file.
If I have a common CSS for all the pages, I think the code will be long ...
I must say i'm not sure about what I'm doing, what do u think of my
argume
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
> >> How about not having so many bloody CSS files?
> How ?
Delete some?
Seriously; why are your styles so spread out? Don't you have a
consistent style (perhaps with minor differences) for the site? Why does
each page/section need its own?
Dave
--
Mark,
what are u calling header ?
Really I don't understand your solution,
How about not having so many bloody CSS files?
How ?
2006/11/29, Mark Bakker <[EMAIL PROTECTED]>:
my idea:D
On 11/29/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> How about not having so many bloody CSS files?
>
> >
On the next release(2.0.2), Dojo 0.4 will be included and we have some
ajax tags to help with the ajax stuff, like "remote link", "remote
button", and autocompleter(still working on it), a tabbed control (we
had one before), and an ajaxed Div.
regards
musachy
hanasaki wrote:
I have the luxur
You will save a lot of time if you use something that is done already,
and tested, like the links provided by Frank. If you still want to try
it yourself you can check "Bind.js" :
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/struts/wid
my idea:D
On 11/29/06, Dave Newton <[EMAIL PROTECTED]> wrote:
How about not having so many bloody CSS files?
> -Original Message-
> From: Thomas Thomas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 29, 2006 4:43 AM
> To: Struts Users Mailing List
> Subject: Re: Struts Tiles, Los
From: Dave Newton [mailto:[EMAIL PROTECTED]
> From: Chris Loschen [mailto:[EMAIL PROTECTED]
> > Perhaps I'm missing something
>
> Yes; that eval evaluates *javascript*.
...generally.
In FireBug if you eval("baz") in the console it will print a bold
"baz".
Dave
From: Chris Loschen [mailto:[EMAIL PROTECTED]
> Perhaps I'm missing something
Yes; that eval evaluates *javascript*.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
I am seeing the below warning message whenever form bean is accessed.
WARN [ValidatorResources] Form 'callcontrolForm' not found for locale
'en_US'
In struts-config.xml I have
This was a known bug in 1.2.9 version,
http://issues.apache.org/bugzilla/show_bug.cgi?id=38081
But v
Perhaps I'm missing something -- I don't know that much about JS and less about
Ajax -- but these error messages look like they're exactly right to me. In the
first case, you're starting element foo, then element bar, then ending element
foo before you end the child element bar. That's ill-forme
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tarek,
Tarek Nabil wrote:
> One of the problems with Struts was that if you had a page that requires
> some setup and this page submits to an Action, then you would not be
> able to set validate to true on that action because if validation
> problems
I haven't seen Ajax functionality embedded in Struts so I provided the solution
as the classic 5 min q&d solution
I wholeheartedly agree that JavaScript and any 'language' that ends
with Script should be avoided at all costs!
Thanks Frank,
M-
This e-mail communication and any attachments may co
A struts 1.x solution would be to include generic edit* mappingThis example
employs wildcard characters for Naming Action Classes,specifying Form
Name,Forwarded
pathhttp://struts.apache.org/1.2.9/userGuide/building_controller.html
Anyone else?Martin --This e-mail communication and any
How about not having so many bloody CSS files?
> -Original Message-
> From: Thomas Thomas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 29, 2006 4:43 AM
> To: Struts Users Mailing List
> Subject: Re: Struts Tiles, Lose of Performance ? :-(
>
> They will be cached if the user 'surf
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> (interestingly, in IE I get a syntax error, because it's trying to
> interpret the markup as script, but in FF it just quietly doesn't
> work, not even a notice in Firebug).
Something else interesting in FF:
eval("")
"XML tag name mismatch"
On 11/29/06 12:44 AM, "Tarek Nabil" <[EMAIL PROTECTED]> wrote:
> One of the problems with Struts was that if you had a page that requires
> some setup and this page submits to an Action, then you would not be
> able to set validate to true on that action because if validation
> problems occur then
I think if you have so many kb CSS files in your system, the best
solution is not make one tile over the complete header. In stead you
could create header tiles for subsets what re-use the same CSS files.
You could name them something like this
header-home.jsp (including home.css text-block.css e
Thanks mark for your help, i will give a try to your advices
Regards Juan
-Mensaje original-
De: Mark Shifman [mailto:[EMAIL PROTECTED]
Enviado el: Martes, 28 de Noviembre de 2006 05:20 p.m.
Para: Struts Users Mailing List
Asunto: Re: Themes and templates
If you set
struts.ui.theme=simp
Have you looked into Struts Menu?
It has a declarative approach where you can specify menus in xml but also a
taglib that may allow you to build them dynamically.
It's pretty nifty.
Regarding the navigation, I'd stick with the first solution you pointed out.
Using inheritance seems a bit overkill
Thanks for the answer
Maybe my question was not so clear...
But the question is where should I put the code to update the dynamic menu.
Kind Regards,
-Original Message-
From: Mark Bakker [mailto:[EMAIL PROTECTED]
Sent: mercredi 29 novembre 2006 11:19
To: Struts Users Mailing List
Subje
Mark,
I don't understand your solution,
It's the first time I try to implement Tiles,
Could u tell me what *you* would do ?
U mean making more than one "base layout" ?
And in my jsp pages insert different base layouts ?
2006/11/29, Mark Bakker <[EMAIL PROTECTED]>:
Ohh like that... guess I miss
I would not implement a menu using Actions. You can use a CSS to
define your menu. In my opinion using struts actions just to go from
one url to the next is a bit overkill. tiles is also a good solution
to the menu problem.
On 11/29/06, Michel Van Asten <[EMAIL PROTECTED]> wrote:
Hi,
We have to
Ohh like that... guess I miss read something :,) if this is the
case I would not use the header tile how you defined it... is it then
not more sensible to create several header tiles, I like JSP that are
still more or less readable as HTML without the "magic things" in
config files.
ofcourse
Hi,
We have to developp a new application and we want to with a good design.
Basically we have a set of functionalities (user management, user data control,
user data conversion, ...) the availabilty of those functionalities is
controlled via a dynamic menu.
Hi planned to define one action fo
They will be cached if the user 'surf' on the webpage,
if I have thousand pages, and he may see two pages,
i am going to store 1000's css files in his cache.
2006/11/29, Mark Bakker <[EMAIL PROTECTED]>:
Extra remark all CSS and JS files will be cached by the browser, so
including CSS in all web
To solve the action chaining problem, I wrote a subclass of
RequestProcessor. In the subclass, override some templates method. In the
last method of process(), I set a flag in request, and I check for this flag
in some methods and if the flag is there, it means it is the chained action
and the pro
Extra remark all CSS and JS files will be cached by the browser, so
including CSS in all webpages does not decrease the performance.
On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
Thank u Chris,
I will try that !
Do u have a solution for number 1) ?
---
Thank u Chris,
I will try that !
Do u have a solution for number 1) ?
HI,
Ok...But I'm Using IBM Web sphere 5.1 Server..
So is there any server specific settings to enable file uploading via
SSL...??
Thanks In advance
Regards,
Mano
-Original Message-
From: Chris Searle [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 7:50 PM
To: Struts Users Mail
66 matches
Mail list logo