Static Access to MessageResources or Bundles?

2005-04-22 Thread Lukas Bradley
Is there any way to statically access fields from resources defined in Struts? In other words, I would to be able to access terms stored in properties files without needing a ServletRequest. My application exists within a servlet container, and utilizes Struts. However, I have processes runn

Re: Looking for a book

2005-04-22 Thread Michael Jouravlev
I went to Barnes & Noble about a month ago specifically to take a look at Struts books. Here are some impressions: http://www.jroller.com/page/javadujour/20050310#books_about_struts_as_bad On 4/22/05, Eric C. Hein <[EMAIL PROTECTED]> wrote: > Also see this thread: > http://www.mail-archive.com/use

netbeans is crazy

2005-04-22 Thread Rafael Taboada
Hi folks... I have a big problem.. I don't know if u had tha same problem. Last night all worked well... But today... when i satrt my application... there is an error "Servelt action is not available".. do u know what is happening???... when i start my application and click on a link.. DO u

Re: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-22 Thread Leon Rosenberg
> Dick Starr [mailto:[EMAIL PROTECTED] wrote: > > I am new to both Struts and web applications and in fact am > writing my very first web application, so I may not > understand how this all works. > In the app it's possible for more than one user to be on the > same PC (e.g. a user needs the

Re: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-22 Thread Leon Rosenberg
> Dick Starr [mailto:[EMAIL PROTECTED] wrote: > > I am new to both Struts and web applications and in fact am > writing my very first web application, so I may not > understand how this all works. > In the app it's possible for more than one user to be on the > same PC (e.g. a user needs the

Re: Looking for a book

2005-04-22 Thread Eric C. Hein
Also see this thread: http://www.mail-archive.com/user@struts.apache.org/msg23187.html - Original Message - From: "Eugene Suzyumov" <[EMAIL PROTECTED]> To: Sent: Friday, April 22, 2005 6:25 AM Subject: Re: Looking for a book Many thanks for all your answers. I'll tell you then what I'll

Re: JSF Articel

2005-04-22 Thread Erik Weber
Some interesting stuff here: http://www.coreservlets.com/JSF-Tutorial/ Erik Pramod wrote: Hi All, Could any one can refer the best articles for JSF ? Regards Pramod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Struts 1.3: retrieving commands dynamically from Action

2005-04-22 Thread Hubert Rabago
Marco, What about still extending BaseAction then using ActionDispatcher? Attachment http://issues.apache.org/bugzilla/attachment.cgi?id=12768 from http://issues.apache.org/bugzilla/show_bug.cgi?id=31270 Joe, Yes, yes, I know. It's just that my home machine went offline and when it got back up

[ANNOUNCE] XMoon 0.7.2 released

2005-04-22 Thread mario nee
XMoon 0.7.2 released Changelog: * bug fix * removed PluginNode (use tag to load external class) http://www.xmoon.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: Static Access to MessageResources or Bundles?

2005-04-22 Thread Joe Germuska
At 12:51 PM -0400 4/22/05, Lukas Bradley wrote: Is there any way to statically access fields from resources defined in Struts? Well, I have a solution. String bundle = "common" ; String key = "date" ; MessageResources.getMessageResources(bundle).getMessage(Locale.EN, key); This is very straightfor

Re: Struts 1.3 & DispatchAction. command question

2005-04-22 Thread Michael Jouravlev
If you do app for yourself, then I think it is for your liking. If you want to create a library, then having one method processing all commands allows you to define only one interface once and for all. On the other hand, this interace would not define the possible commands, it will be too flexible.

logic tags with beans

2005-04-22 Thread Lee Harrington
Hi folks, I'm stumped trying to figure out how to compare a value to a bean. I'm in a logic:iteration loop. Element is the bean that holds property "lvl" which I want to compare to the bean "currentLevel". It's a tree, and I need to know when the tree branches. TIA, Lee --

Re: JSF Articel

2005-04-22 Thread Michael Jouravlev
http://www.jsftutorials.net/ But this mailing list is about Struts, not JSF. On 4/22/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Google? > > On 4/22/05, Pramod <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > Could any one can refer the best articles for JSF ? > > > > Regards > > Pramod

Re: Static Access to MessageResources or Bundles?

2005-04-22 Thread Joe Germuska
At 12:34 PM -0400 4/22/05, Lukas Bradley wrote: Is there any way to statically access fields from resources defined in Struts? In other words, I would to be able to access terms stored in properties files without needing a ServletRequest. My application exists within a servlet container, and uti

Re: JSF Articel

2005-04-22 Thread Michael Jouravlev
Google? On 4/22/05, Pramod <[EMAIL PROTECTED]> wrote: > Hi All, > > Could any one can refer the best articles for JSF ? > > Regards > Pramod > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

RE: JSF Articel

2005-04-22 Thread James Holmes
Hi Pramod, I have cataloged virtually all of the articles ever written on JSF on my website at: http://www.jamesholmes.com/JavaServerFaces/ James -Original Message- From: Pramod [mailto:[EMAIL PROTECTED] Sent: Friday, April 22, 2005 11:50 AM To: Struts Users Mailing List Subject: JSF A

Re: Static Access to MessageResources or Bundles?

2005-04-22 Thread Jeff_Caswell
Maybe a generic servlet style scheme similar to this: web.xml properties /path/to/properties/file/webapp.properties use servlet config instance at servlet init() to load (once): props = (Properties)config.getServletContext().getAttribute("webapp.properties"); then retriev

Re: Static Access to MessageResources or Bundles?

2005-04-22 Thread Michael Jouravlev
Search for org.apache.struts.util.MessageResources I guess this should work: MessageResourcesFactory messageFactory = MessageResourcesFactory().createFactory(); MessageResources messages = messageFactory.createResources(); Michael On 4/22/05, Lukas Bradley <[EMAIL PROTECTED]> wrote:

Re: Static Access to MessageResources or Bundles?

2005-04-22 Thread Lukas Bradley
Is there any way to statically access fields from resources defined in Struts? Well, I have a solution. String bundle = "common" ; String key = "date" ; MessageResources.getMessageResources(bundle).getMessage(Locale.EN, key); This is very straightforward. So why does Struts prefer to store and acc

JSF Articel

2005-04-22 Thread Pramod
Hi All, Could any one can refer the best articles for JSF ? Regards Pramod

Netbeans is crazy

2005-04-22 Thread Rafael Taboada
Hi folks finally i found the problem. It's neccesary my DB is started in order to run my application. I'm using struts datasource to connect my db. The point is i have a SQLException in case db is not started... But it doesn't work because if i don't start the DB so my app won't run... Do

Re: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-22 Thread Michael Jouravlev
You can do both. You can turn on URL rewriting explicitly, despite the fact that your browser supports cookies. I personally think that URL rewriting is a bit messy, but others may think different. If it works for you, why not? On 4/22/05, Dick Starr <[EMAIL PROTECTED]> wrote: > Although I could u

RE: Pagination

2005-04-22 Thread Abdullah Jibaly
for Displaytag, yes you will... -Original Message- From: Rafael Taboada [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 5:03 PM Cc: Struts Users Mailing List Subject: Re: Pagination Hi folks. Thanks for ur help. Those projects are so cool... But i have built all my jsp and used

RE: Struts 1.3 & DispatchAction. command question

2005-04-22 Thread Marco Mistroni
Hello, In a scenario where I am using a DispatchChainAction Where I have n methods, what could be good strategy to use With Commons-Chain? 1) 1 command per method 2) 1 command for all method, where I pass a parameter saying what I want to do? Anyone has any idea? Thanx and regards

RE: Struts 1.3: retrieving commands dynamically from Action

2005-04-22 Thread Joe Germuska
At 2:55 PM +0100 4/22/05, Marco Mistroni wrote: Hello Joe, Nothing distasteful, really... it's just that, due Struts, actionForms etc , i have been so used NOT to call request.getParameter() that Now, when I see that code, I don't like it... :-) Well, I don't like it because I have a suspi

Re: common-controls

2005-04-22 Thread Michael Jouravlev
Have you already looked in the Struts wiki? On 4/22/05, draegoon Z <[EMAIL PROTECTED]> wrote: > Hey guys, > > I was just checking out the common-controls website. Quite impressive. > > If there isn't already a place, we should be sharing our controls and tiles > templates that we all create anyw

RE: Struts 1.3: retrieving commands dynamically from Action

2005-04-22 Thread Marco Mistroni
Hello Joe, Nothing distasteful, really... it's just that, due Struts, actionForms etc , i have been so used NOT to call request.getParameter() that Now, when I see that code, I don't like it... :-) Regards, marco -Original Message- From: Joe Germuska [mailto:[EMAIL PROTE

Re: Struts 1.3: retrieving commands dynamically from Action

2005-04-22 Thread Joe Germuska
Marco: I'm not quite sure what you find distasteful about how dispatch action is working; is it simply that you think the request parameter values are not controlled enough to be good for use as bean names? Maybe the problem is that you've been caught where the DispatchChainAction class hasn't

RE: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-22 Thread Dick Starr
Although I could use URL-rewriting, I decided against it because I want to users to be able to also have open browser windows accessing other sites that may want to use cookies (e.g. UPS to check shipping of an order). Thanks, Dick -Original Message- From: K.C. Baltz [mailto:[EMAIL PROTE

RE: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-22 Thread Dick Starr
I am new to both Struts and web applications and in fact am writing my very first web application, so I may not understand how this all works. In the app it's possible for more than one user to be on the same PC (e.g. a user needs their supervisor to log on to the app as a higher security user to d

Re: Looking for a book

2005-04-22 Thread Eugene Suzyumov
Many thanks for all your answers. I'll tell you then what I'll buy. Regards Eugene Suzyumov - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts 1.3: retrieving commands dynamically from Action

2005-04-22 Thread Marco Mistroni
Hello all, I am writing a small application using struts 1.3 And commons-chain. Currently, I have defined a BaseAction class which retrieves Commands dynamically based on the path used For example, calling /login will result in the action Retrieving the command called /login Stri

Re: Looking for a book

2005-04-22 Thread Ed Griebel
I've used "Mastering Jakarta Struts" ISBN 0471213020. It's a pretty good book for starting out, for instance chapter 1 is devoted to setting up Tomcat, Chapter 2 is the app life cycle. It's the kind of book that you will consult often while building your first application and probably consult rarel

common-controls

2005-04-22 Thread draegoon Z
Hey guys, I was just checking out the common-controls website. Quite impressive. If there isn't already a place, we should be sharing our controls and tiles templates that we all create anyways. Should be an opensource format for this stuff. Would this not be helpful and in the opensource spirit

Re: Looking for a book

2005-04-22 Thread rams Gandhi
Thanx Rajneesh Have a Good day. Thanks and Regards . Rams... IAP Company Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: Looking for a book

2005-04-22 Thread rams Gandhi
hi Eugene Suzyumov. I suggest U to read " Struts in Action "- by DreamTech Publications. I think it's the one of the good book most of the Developers follows it . Thanks & Regards Rams IAP Company Ltd. -

RE: Looking for a book

2005-04-22 Thread Rajaneesh
Check "struts in action" by Ted if you are dealing with 1.0 or 1.1 version "This message is not an official communication of SLK Software. The sender of this message is neither acting as an agent nor in any other capacity for or on behalf of SLK Software. SLK Software accepts no responsibility or

RE: Looking for a book

2005-04-22 Thread Marsh-Bourdon, Christopher
I'd wholly recommend both Chuck Cavaness's Programming Jakarta Struts and Bill Siggelkow's Jakarta Struts Cookbook, both are available online with O'Reilly Safari (but read in that order). Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: news [mailto:[EMAIL PROTECT

RE: Looking for a book

2005-04-22 Thread Jesse Alexander (KBSA 21)
maybe might for you... I have not looked at it, but it might point to the right direction. hth Alexander -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Eugene Suzyumov Sent: Thursday, April 21, 2005 12:02 PM To: user@struts.apache

Looking for a book

2005-04-22 Thread Eugene Suzyumov
Hi, I'm starting with Struts. I've read many articles on the web to understant what is & how to. And now I'm looking for a book (an e-book or paper format) to understand architecture programming with Struts, i.e. how to use Struts in a good way. The books i've seen on the web (amazon.com) or libr

Re: Action call another action?

2005-04-22 Thread Michael Jouravlev
> I have an action which save the data into the database, after the saving, I > would like to forward to the listing page, where I have another action doing > the listing. > > Should I repeat the same listing method (method list) in the save action > itself..? Or, is there any better way? ... >

Re: problem with

2005-04-22 Thread Janarthan Sathiamurthy
Hi, U can do - //do some thing --- Kade Jeevan Kumar <[EMAIL PROTECTED]> wrote: > Hi > > i have > >for(int i=0; i< vec.size(); i++) > { > if(i=5) >{ > // do some thing >} > > } > > how can i use the same code