hi;
i strongly suggest you application level caching.
at startup; query all messages and other things that is immutable among user
sessions, then put all that things in a TreeMap/HashTable, per user session
you can query your application level TreeMap/HashTable class.
-Original Message-
Fr
Hi all,
In my application, all labels, headers and titles and messages are comes
from database.
For this issue I have created a class that return messages, but it issues
performance way.
Is there any way to set messages in Resource bundle in dynamic / at
run-time?
Please let me know.
I got it. I think I can specify it for each formset which are based on
language and country.
-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 10:44 AM
To: Struts Users Mailing List
Subject: RE: i18n with javascript validations
Hi Lauri
Hi,
Struts 1.0 and 1.1
The new features added to Struts 1.1 are
RequestProcessor class
Method perform() replaced by execute() in Struts base Action Class
Changes to web.xml and struts-config.xml
Declarative exception handling
Dynamic ActionForms
Plug-ins
Multiple Application
On 2/20/06, Leila Carvalho <[EMAIL PROTECTED]> wrote:
>
> Craig,
> First of all, congratulations for your Struts-Faces library!!
> This library is what I have been looking for..
>
> be careful of one particular scenario. Struts only creates one instance
> of
> > an Action class for the entire appl
Hi Laurie,
It will be too difficult to use mask with javascript validations. How
javascript will handle locales.
For eg in some countries decimal is represented by comma
/Ashwani
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Tuesday, February 21
ok thanks,
that will solve my problem
Steve
Craig McClanahan wrote:
On 2/20/06, Steve Vanspall <[EMAIL PROTECTED]> wrote:
Thanks will have a look,
yeah I figured reevaluation isn't the go.
as I said I know the action I want is already going to be configure din
the struts-config file, so
I try follows:
function goURL(tmp){
document.forms[0].submit();
}
I debug the Javascript,when running the statement
document.forms[0].submit();
Javascript raise a error:
Microsoft JScript running error:object can't support this attribute or
method
Why?
On 2/21/06, Dave Newton <[EMAIL PROTEC
Craig,
First of all, congratulations for your Struts-Faces library!!
This library is what I have been looking for..
be careful of one particular scenario. Struts only creates one instance of
> an Action class for the entire application, so that is not a good place to
> put request-specific event
thank you L, but ... hiz, more details plz :( ...
- Original Message -
From: "Laurie Harper" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, February 21, 2006 4:25 AM
Subject: Re: [HELP] i80n :(
Pham Anh Tuan wrote:
Hi all,
I got a problem, so I need all your help :(
i18n,
I want my Stru
Martin Gainty wrote:
> If you are looking for a way for JavaScript to dynamically change
> targetting action based on Javascript code take a look at
> http://husted.com/struts/tips/002.html
Uh, no, I was answering the OP with regards to his hosed up JavaScript :)
Dave
--
Sorry, my bad, I didn't even think about that. Right, you don't need the
"eval" here.
Saul
- Original Message -
From: "Dave Newton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, February 20, 2006 7:17 PM
Subject: Re: why my page can't redirect under Struts with Ja
Dave-
If you are looking for a way for JavaScript to dynamically change targetting
action based on Javascript code take a look at
http://husted.com/struts/tips/002.html
HTH,
Martin
- Original Message -
From: "Dave Newton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monda
red phoenix wrote:
> I tried follows:
> function goURL(tmp){
> document.forms[0].action=eval("/Log/log.do?action=First");
> document.forms[0].submit();
> }
>
> and
> function goURL(tmp){
> document.forms[0].action=eval("/log.do?action=First");
> document.forms[0].submit();
> }
>
> My page
After a lot of browsing javadocs and scratching my head in confusion,
I have something that appears to be working.
In struts-config.xml I have a few elements for an
action. For the action mapping element of that action I have
className="my mapping class".
I have created a class that extends Acti
Leon Rosenberg wrote:
> I rather ment things like interception/reflection or/and AOP :-)
>
Ah.
Lots of reflection. AOP is being actively discussed for Ruby2. Pure-Ruby
implementations for simple AOP exist but I've not used them.
> Pardon me for being devils advocate, but how do you measure it?
I tried follows:
function goURL(tmp){
document.forms[0].action=eval("/Log/log.do?action=First");
document.forms[0].submit();
}
and
function goURL(tmp){
document.forms[0].action=eval("/log.do?action=First");
document.forms[0].submit();
}
My page also can't redirect!
And I try
function g
On 2/20/06, Leila Carvalho <[EMAIL PROTECTED]> wrote:
>
> Dear Craig,
>
> Thanks a lot, but I'm still a bit confused...
> Is mybean an ActionForm, an Action or an adapter to Faces Backing Bean ???
> Gracias!!
Technically, "mybean" would be a Faces backing bean, but it *could* be any
of the above
Posted by Matt Raible (24.9.148.67) on February 16, 2006 at 09:06 AM MST #
> IMO, there's not a single framework that is best for *everything*. Instead,
> the needs for
> each application have to be evaluated, and then a small prototype should be
> done in 2-3
> frameworks.
On 2/20/06, Matt Raib
Firstly, you really shouldn't post a totally unrelated question in the
middle of a long, off-topic thread that's likely not being followed by
everyone. Post a new topic as a new message, not a reply to something else.
Now, to the question:
Daniel Blumenthal wrote:
So, I'm in the midst of loca
OK I am still lost. I found reference to this in the DTD, so that
covers the config file.
However, I cannot find any mention of how to retrieve these properties
in the Action subclass. I took a look at the javadocs for Action,
ActionConfig, ActionMapping and I do not see anything relating to the
s
On 2/20/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> Leon Rosenberg wrote:
> > well... maybe you are a totally cool development team,
> A yeah.
>
> Okay, not really ;)
> > following call stacks, debugging... distribution and so on
> > would be a real mess... but, as I told before, I never tried
Thanks Laurie
On 2/20/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Chris Cheshire wrote:
> > If I am reading the docs right, the "parameter" attribute of the
> > action element only allows you to define 1 generic parameter for the
> > action.
> >
> > I need to be able to specify a few different
It works on my local computer in same Configuration (just it is windows
machine , so my web.xml is OK or at least i think it is ok because it
works on local computer.)
Bryan LaPlante wrote:
Have a look at this example web.xml file. You will see what you need in the
*.dohttp://www.javaranch.com
Have a look at this example web.xml file. You will see what you need in the
*.dohttp://www.javaranch.com/newsletter/Mar2002/l
isting1.htmlBryan LaPlante- Original Message -
From: "Legolas Woodland" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, February 20, 2006 4:20 PM
So, I'm in the midst of localizing my app, and the first thing that's clear
is that localizing the MessageResources is a snap (pats self on back for
choosing Struts).
My question, though, is whether there's a standard method for choosing one
.jsp or another based on language. Also, is there a sta
Leon Rosenberg wrote:
> But... from reading the docs, the language itself is as outdated as
> prolog or perl. You have almost no oo-concepts, and all co-concepts
> are missing completely.
Uh, how do you figure that?
It's largely modeled around SmallTalk. It's quite a bit more OOP than
most things
Leon Rosenberg wrote:
> well... maybe you are a totally cool development team,
A yeah.
Okay, not really ;)
> following call stacks, debugging... distribution and so on
> would be a real mess... but, as I told before, I never tried myself.
>
Call stacks are no issue. If you know the API and
well... maybe you are a totally cool development team, maybe I'm
completely wrong either... I just had the feeling that making code
reviews, following call stacks, debugging... distribution and so on
would be a real mess... but, as I told before, I never tried myself.
But
what are the benefits for
Ok, before I get into that I must admin that I never developed one,
just read through the
http://www.rubyonrails.org/ - documentations and looked at example
apps. So I of course might be completely wrong. In any case it's just
a personal opinion...
But... from reading the docs, the language itself
Leon Rosenberg wrote:
> On 2/20/06, Dave Newton <[EMAIL PROTECTED]> wrote:
>
>> Leon Rosenberg wrote:
>>
>>> Well RoR is a wonderful thing if you are playing. But you can't
>>> develop and you have no chance to maintain a serious application with it.
>>>
>> I'm having zero issues mai
Chris Cheshire wrote:
If I am reading the docs right, the "parameter" attribute of the
action element only allows you to define 1 generic parameter for the
action.
I need to be able to specify a few different parameters and their
values. Prior to converting to struts I would put these as init-pa
On 2/20/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> Leon Rosenberg wrote:
> > Well RoR is a wonderful thing if you are playing. But you can't
> > develop and you have no chance to maintain a serious application with it.
> I'm having zero issues maintaining several, although they are not
> high-loa
Kalra, Ashwani wrote:
Hi,
My project is using javascript validations generated through struts
validator. I want to do some currency validations based on the
language/country. Is it possible?
Yes, it's possible, though Struts / Commons Validator don't include
currency validation rules. You can
Pham Anh Tuan wrote:
Hi all,
I got a problem, so I need all your help :(
i18n,
I want my Struts app to have default language is Vietnamese, but I couldn't :(
I have 3 files below:
+ mylanguage.properties <--- Vietnamese file
+ mylanguage_ja.properties <--- Japanese file
+ mylanguage_en.proper
Hi
Thank you for reading my post.
I get a hosting package from a provider ,
Now all jsp files works but when i press some buttons or links that lead
to a .do (Action)
it return *error 404 *file not found
is there any other configuration that i should do in my hosting package ?
it is on linux an
Scott Van Wart wrote:
I'm new to struts and am setting up some form beans. I'm using
hibernate, and one of my tables has a lot of foreign keys. The target
tables are pretty much just lookup tables, which I use to populate a
good number of drop-downs on my web page. Most of the foreign keys a
Angel Navarro wrote:
Hi,
I have a web application based on Struts 1.3.
I have a problem, I need change resources (internationalition) without stop
the server. It's possible?
You mean you want to be able to update your resource bundles dynamically
at run-time? If so, you'll need to define a Me
Elaborating on the benefits of IOC is way beyond the scope of a
simple email on a simple mailing list. There are books for that
purpose. Once you've decided to use Spring, it provides first class
integration with Hibernate. I won't bore you with the benefits of
choosing Hibernate either,
Leon Rosenberg wrote:
> Well RoR is a wonderful thing if you are playing. But you can't
> develop and you have no chance to maintain a serious application with it.
I'm having zero issues maintaining several, although they are not
high-load apps yet.
The thing I dislike most about it is moving back
James Mitchell wrote:
> Struts (right now!) let's you setup a single action mapping (wild card
> mapping) and a single LazyDynaBean, and then you can add as many
> Actions and JSPs as you like (at runtime no doubt) and your changes
> are instantly available without ever rebooting or touching xml ag
Can you elaborate on Spring and Middlegen?
I've looked at their websites (Spring a couple times before) but I fail to
see how they are beneficial to use.
Shawn
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Monday, February 20, 2006 2:26 PM
To: Struts Users Mailin
>>But you can't develop and you have no chance to maintain a serious
>>application with it.
Can you go more into this?
Shawn
-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Monday, February 20, 2006 2:03 PM
To: Struts Users Mailing List
Subject: Re: [OT] Ruby on
Struts (right now!) let's you setup a single action mapping (wild
card mapping) and a single LazyDynaBean, and then you can add as many
Actions and JSPs as you like (at runtime no doubt) and your changes
are instantly available without ever rebooting or touching xml again.
Between that and
Well RoR is a wonderful thing if you are playing. But you can't
develop and you have no chance to maintain a serious application with
it. So the proper question would be RoR or php and php would probably
win :-)
Leon
On 2/20/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
> Can anyone give me pros a
Can anyone give me pros and cons of using Ruby on Rails verses a Java Base
Web Application (Struts, JSF, etc)?
Seems like Rails is moving towards less or no configuration files while
JSF/Shale is leaning towards more.
Shawn
*
Thanks Bryan and Michael. I have solved this problem.
Thanks you very much.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 2/20/06, Joey Watson <[EMAIL PROTECTED]> wrote:
> Or I think maybe many project would meet this kind of quesition. Just
> want to know how to deal with it when you need to display some
> information loaded from db in you first page.
Define a startup JSP page in web.xml. Redirect from it to an
here you go.
http://java.sun.com/products/jsp/tags/11/syntaxref11.fm9.html
- Original Message -
From: "Joey Watson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, February 20, 2006 12:38 PM
Subject: Re: Problem about first page.
> yes. I think it is a good idea. but I
If I am reading the docs right, the "parameter" attribute of the
action element only allows you to define 1 generic parameter for the
action.
I need to be able to specify a few different parameters and their
values. Prior to converting to struts I would put these as init-params
in web.xml under ea
On 2/20/06, Steve Vanspall <[EMAIL PROTECTED]> wrote:
>
> Thanks will have a look,
>
> yeah I figured reevaluation isn't the go.
>
> as I said I know the action I want is already going to be configure din
> the struts-config file, so basically I need to look it up, then create a
> form for it.
>
>
Tom Ziemer wrote:
Thanks to everybody who replied to my original post. I am currently
using spring/acegi and it's working great - as long as you use Spring to
create your beans:
// Spring - works like a charm: security via acegi and transactions via
proxies
this.entityManager = (IEntityManager)
Anjishnu Bandyopadhyay wrote:
Hi all,
I have a static MS Word document, which I want to open on click of a
hyperlink in my JSP page.
I am trying like: window.open('abc.doc','',600,600);
But the Word doc is not properly opening.
In IE, the document opens in the browser itself.
In Mozilla,
That's a client issue. As a webdesigner you have no control over that.
All you can do is provide a simple link and let the clients save it or
open it what ever way they want. You can't force word to open.
Bart.
Anjishnu Bandyopadhyay wrote:
Hi all,
I have a static MS Word document, which
Or I think maybe many project would meet this kind of quesition. Just
want to know how to deal with it when you need to display some
information loaded from db in you first page.
On 2/21/06, Joey Watson <[EMAIL PROTECTED]> wrote:
> yes. I think it is a good idea. but I don't know to do it. I can
Hi all,
I have a static MS Word document, which I want to open on click of a
hyperlink in my JSP page.
I am trying like: window.open('abc.doc','',600,600);
But the Word doc is not properly opening.
In IE, the document opens in the browser itself.
In Mozilla, the Word doc opens along with
yes. I think it is a good idea. but I don't know to do it. I can make
a jsp page as welcome page, but how could I make it can forward to
Login.jsp automatically. user don't need to click a link or a button.
On 2/21/06, Bryan LaPlante <[EMAIL PROTECTED]> wrote:
> Could you make you welcome page dif
Could you make you welcome page different than login.jsp and have it forward
to login.jsp? If login is your front door, maybe all of your welcome pages
could forward to it.
- Original Message -
From: "Joey Watson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, February
Hi everybody.
I want to write a login module.
login.jsp-display userId , userName, password, company
infomation (a drop down box)
LoginAction.java check login information
LoginForm.java --
some command class. one of them will load company information from db.
When user open we
Dear Craig,
Thanks a lot, but I'm still a bit confused...
Is mybean an ActionForm, an Action or an adapter to Faces Backing Bean ???
Gracias!!
This kind of thing will work in Struts-Faces, but only if you correctly
> specify the expressions, and use an input field :-)
>
>
>
> Craig
-
Hi..
Thanks.. its working now.
--- Gary VanMatre <[EMAIL PROTECTED]> wrote:
> >From: lisaan markuen <[EMAIL PROTECTED]>
> >
> > Hi.,
> > I'm trying CLAY and fed up with displaying dynamic
>
> > datatable (list) coming from my managed bean
> (already
> > went through the examples but no s
On 2/15/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> I'd like to use Tiles with WebWork for reasons outlined on my blog:
>
> http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java
>From the blog comments
> IMO, there's not a single framework that is best for *everything*.
What would w
you soap the rope to make it slide well and you are sure the knot will
really break your neck.
On 2/20/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
> Hello,
>
> >The expression applies in greek as well and is used to point out a
> >difficult situation where rope and soap is the obvious way out :-
One simple word:
pray
Marco Mistroni a écrit :
>Hehe,
> Thanx I got explanation off-line..
>Hope I'll never have to resort to that
>are there any nicer expressions to say that you have no other solutions?
>
>Regards
> marco
>
>-Original Message-
>From: David Delbecq [mai
Hehe,
Thanx I got explanation off-line..
Hope I'll never have to resort to that
are there any nicer expressions to say that you have no other solutions?
Regards
marco
-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED]
Sent: 20 February 2006 14:33
To: St
Marco Mistroni a écrit :
>Hello,
>
>
>
>>The expression applies in greek as well and is used to point out a
>>difficult situation where rope and soap is the obvious way out :-)
>>
>>
>
>Sorry for being so 'numb'... but I still don' tsee the connection between
>A rope and the soap..
>Y
Hello,
>The expression applies in greek as well and is used to point out a
>difficult situation where rope and soap is the obvious way out :-)
Sorry for being so 'numb'... but I still don' tsee the connection between
A rope and the soap..
You can mail me privately ... I think we are off-to
chuanjiang lo wrote:
> Hi guys,
>
> I have this DBConnectionManager class that manages the connection pooling.
> It has this method to get some results from the database.
>
> So my action form make use of the method to get the resultset and tries to
> display on the jsp page.
> But the method would
is this the best way to handle this?
as my project is rather small scale..there isnt a need for me to use ORM..
On 2/20/06, Vijaya S <[EMAIL PROTECTED]> wrote:
>
> You have to copy the resultset to an arraylist and return the arraylist.
>
> Vijaya
>
>
> -Original Message-
> From: chuanjian
You have to copy the resultset to an arraylist and return the arraylist.
Vijaya
-Original Message-
From: chuanjiang lo [mailto:[EMAIL PROTECTED]
Sent: Monday, February 20, 2006 6:22 PM
To: user@struts.apache.org
Subject: Returning ResultSet
Hi guys,
I have this DBConnectionManager cla
Michael Jouravlev wrote:
On 2/17/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
Hello,
On Thu, February 16, 2006 4:51 pm, Michael Jouravlev said:
The last thing I can think of is a hook, a rope and some soap.
Uhmm.. you mean last resort is hanging? Or by soap you
Hi guys,
I have this DBConnectionManager class that manages the connection pooling.
It has this method to get some results from the database.
So my action form make use of the method to get the resultset and tries to
display on the jsp page.
But the method would close the connection after i query
Hi Swapnil,
You may like to visit http://archives.java.sun.com where you may find many
refined lists form many java / j2ee and other mailing lists.
Thanks and Regards,
Thomas Joseph
[EMAIL PROTECTED]
Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 |
India
www.kottsoftwa
Hi, we develop with Jdeveloper and embedded
server and after I deploy to tomcat
I get the following error:
symbol : method setValue (java.lang.Object)
location: class org.apache.struts.taglib.html.HiddenTag
_jspx_th_html_hidden_0.setValue(singleNumber);
I have to make si
Swapnil Patil wrote:
Hi,
I modify my Javascript like follows:
function goURL(tmp){
document.forms[0].action=eval("/Log/log.do?action=First");
document.forms[0].submit();
}
Is eval really needed? . Check whether you really need /Log in
contexet path?
Try wih following function.
function goURL(
Yes, but the problem is that I use endless indents from an attribute called
depth that makes hard to use (I think so, have not tried it though),
this is how I use depth.
O1-Depth1
02-Depth2
O3-Depth3
O4-Depth1
And so on.
I think I found a solution using filter="off" in t
HI all,
Can any body tell me the mailing list for core JAVA? just like this
mailing list.
I know this is wrong place to ask this question :-) but still i am expecting
positive reply.
Thanks & Regards
Swapnil Patil.
On 2/20/06, Robert Alexandersson <[EMAIL PROTECTED]>
wrote:
>
> Hello, i want to
Hi,
I modify my Javascript like follows:
function goURL(tmp){
document.forms[0].action=eval("/Log/log.do?action=First");
document.forms[0].submit();
}
Is eval really needed? . Check whether you really need /Log in contexet
path?
Try wih following function.
function goURL(tmp){
document.forms[0
Thanks will have a look,
yeah I figured reevaluation isn't the go.
as I said I know the action I want is already going to be configure din
the struts-config file, so basically I need to look it up, then create a
form for it.
I can fudge it by codig the HTML roughly as teh struts tage would d
If you're looking for a way to indent options in a select box, you
should use the HTML tag.
Nico.
Robert Alexandersson a écrit :
Hello, i want to output the String " Level 2" in my optionlists,
but the label attribute of options does not return this but the
transforemed mending it pr
Hello, i want to output the String " Level 2" in my optionlists,
but the label attribute of options does not return this but the
transforemed mending it prints the text instead, is there any
way around this?
Regards
Robert A
-
u can use like this in validation.xml file in WEB-INF folder.
minlength
5
maxlength
12
Thanks to everybody who replied to my original post. I am currently
using spring/acegi and it's working great - as long as you use Spring to
create your beans:
// Spring - works like a charm: security via acegi and transactions via
proxies
this.entityManager = (IEntityManager)getBean(SpringBean.M
83 matches
Mail list logo