RE: [Struts Tip] #18 - Use EJBs with care

2002-11-29 Thread Gemes Tibor
+1 xdoclet rulez 2002-11-29, p keltezéssel Paul Kavanagh ezt írta: > Why roll your own persistence, transaction handling, caching & pooling when > you can leverage an app server ? XDoclet removes a lot of the complexity > that used to plague EJB. CMP 2.0 is really fast with the latest containers

Re: Stuts tags / No EL

2002-11-29 Thread David M. Karr
> "Mohan" == Mohan Radhakrishnan <[EMAIL PROTECTED]> writes: Mohan> Hi, Mohan> A simple question. Mohan> Is it possible to use only struts tags ( No EL )and no scriptlets to do the Mohan> following Mohan> indexId="index" offset="1"> M

RE: Tiles and parameters...

2002-11-29 Thread Van Riper, Mike
Oops! Forgot to reply to the mailing list too. ListUsersAction is my code. I do nothing with the request parameters required by the tags to support table sorting. This is why I assumed it would work for you too. I have no idea why it doesn't work for you. As Cedric Dumoulin, *the* developer of T

Stuts tags / No EL

2002-11-29 Thread Mohan Radhakrishnan
Hi, A simple question. Is it possible to use only struts tags ( No EL )and no scriptlets to do the following <% if ( index.intValue() % 2 == 0 ){ %> T

Re: "Preverticating" i18n: A Modest Proposal/Question

2002-11-29 Thread micael
Yes. It worked. Kind of surprising really. At 06:03 PM 11/29/2002 -0700, you wrote: Without running the code I'm assuming it worked? If so, that's great because it makes what you want to do very easy. I don't have a need for this at the moment but it's good to know. Thanks. David Fr

Re: "Preverticating" i18n: A Modest Proposal/Question

2002-11-29 Thread David Graham
Without running the code I'm assuming it worked? If so, that's great because it makes what you want to do very easy. I don't have a need for this at the moment but it's good to know. Thanks. David From: micael <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>

Re: "Preverticating" i18n: A Modest Proposal/Question

2002-11-29 Thread micael
Here's the test, David, if you want to run it. It has huge potential, I think. package test_locale; import java.util.Enumeration; import java.util.Locale; import java.util.ResourceBundle; public class TestLocale { public static void main(String [] params) { ClassLoader cl = TestLoca

Re: "Preverticating" i18n: A Modest Proposal/Question

2002-11-29 Thread micael
Yah, David. I should have done that in the first place. I did. I can work with what they have and/or provide my own wrapper to keep things from getting weird. First, there is a variant parameter you can add to the language and country parameters of local object, e.g., public Locale(Stri

Re: "Preverticating" i18n: A Modest Proposal/Question

2002-11-29 Thread David Graham
It wouldn't be hard to test this. Just construct a Locale object with your bogus language/country code and try to load a properties file with the ResourceBundle class. If it doesn't work then you could try subclassing those classes to do what you want. David From: micael <[EMAIL PROTECT

Re: Programatically define Tiles Definitions (Struts Nightly)

2002-11-29 Thread micael
Also, you know that deprecated does not mean you cannot use the tags, right? The tags still are good. I am not suggesting anything, but "deprecating" a tld is not really "deprecating," is it? If you want to use it, use it. Like Yogi said about the striking baseball players (only in reverse)

Re: Package Dependencies

2002-11-29 Thread micael
Are you talking about development, Wendy? At 12:42 PM 11/29/2002 -0700, you wrote: You only need the jars that come with the struts distribution. Put all the jars from $DIST_HOME/lib on your classpath (where DIST_HOME is where you unzipped struts). David From: "Wendy Cameron" <[EMAIL PR

Re: "Preverticating" i18n: A Modest Proposal/Question

2002-11-29 Thread micael
Thanks, David. That is too "messy" and too "restricted" a solution for my taste. I want to create something generic or reusable rather than application centric. And, I want to include rather than exclude. That is the main motivation here, to provide a page consistent with people's temperamen

Re: Tiles and parameters...

2002-11-29 Thread Craig Tataryn
Cedric, would you mind trying my example (look down the thread for Wednesday, November 27, 2002 9:59 AM) on your setup? It won't take long to try out, and it would mean a lot! Thanks, Craig. - Original Message - From: "Cedric Dumoulin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List"

index of logic-iterate

2002-11-29 Thread Mohan Radhakrishnan
Hi, The following code is JSTL. How do I do this with struts logic tags ? No struts-el. I am looping with logic-iterate. 'value' in the above code should be the 'index' of the looped over arraylist. I am just checking for alternate rows and changing the color. It could be someth

Re: "Preverticating" i18n: A Modest Proposal/Question

2002-11-29 Thread David Graham
I'm not sure you can have Locale objects with unsupported country/language codes. What you could do is pick some language your site isn't in like Chinese and map that to your George Bush language. So when the user chooses "George Bush" you would assign their session locale to chinese and it wo

RE: should i learn Struts, JSF or both?

2002-11-29 Thread Karr, David
JavaServer Faces is only starting to appear on the horizon. There are no practical implementations of it yet. Learn Struts first, but pay attention to what's on the horizon. You should learn about the JSTL (JavaServer Pages Standard Tag Library) before you learn about JSF, as the JSTL is availab

Re: [Struts Tip] #18 - Use EJBs with care

2002-11-29 Thread Kenny MacLeod
Paul Kavanagh wrote: > Why roll your own persistence, transaction handling, caching & > pooling when you can leverage an app server ? XDoclet removes a lot > of the complexity that used to plague EJB. CMP 2.0 is really fast > with the latest containers and I find a huge overall increase in > produc

should i learn Struts, JSF or both?

2002-11-29 Thread jmattucci
Im new to Struts. I bought a Struts book which Im still waiting for. So I have read the various Struts tutorials. But I recently I have begun to hear more and more about JSF. My question since Im new to all of this should Iearn JSF , Struts or both?? *

RE: [Struts Tip] #18 - Use EJBs with care

2002-11-29 Thread Paul Kavanagh
Why roll your own persistence, transaction handling, caching & pooling when you can leverage an app server ? XDoclet removes a lot of the complexity that used to plague EJB. CMP 2.0 is really fast with the latest containers and I find a huge overall increase in productivity. Other benefits over rol

"Preverticating" i18n: A Modest Proposal/Question

2002-11-29 Thread micael
Is there any reason why we could not tack on our own "language" and "country" codes to get results like "Red Neck", "George Bush" and "New Yakker"? For example, could I change the locale from, say, myapp_en.properties to myapp_rn.properties myapp_gb.properties myapp_ny.propert

Re: [Struts Tip] #18 - Use EJBs with care

2002-11-29 Thread Kenny MacLeod
Darren Hill wrote: > I beg to differ. > > I love 'em ... I got a BEAUTY full-fledged struts-app using them > right now. > > The only thing I would say ... is use LOCAL interfaces if at all > possible. > > IF you combined EJB with a Stateless Session Bean Service layer .. > fronted with DeleteGate c

RE: Comparing Bean Properties

2002-11-29 Thread Karr, David
The alternative is to move to using the Struts-EL library, along with the JSTL. This sort of thing is a little cleaner with that combination. For instance, a simple translation of this would look like this: ... And one step better: ... And even better, using pure JSTL tags: ... > -

RE: Comparing Bean Properties

2002-11-29 Thread Vinh Tran
I didn't want to use scriptlets but I guess it will have to do. Thanks. Vinh -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Friday, November 29, 2002 1:40 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Comparing Bean Properties Hi Vinh, You can use

RE: HTTP Status 500

2002-11-29 Thread David Bolsover
I could open it using TC4.1.7 - don't know what t is supposed to do though http://loaclhost:8080/wileystruts db > -Original Message- > From: Paul Kavanagh [mailto:[EMAIL PROTECTED]] > Sent: 29 November 2002 19:48 > To: Struts Users Mailing List > Subject: HTTP Status 500 > > > Hi there

Re: Populating multiple forms from one action class

2002-11-29 Thread Curtney Jacobs
Greetings!! I understand what you are saying. However, I was thinking that it might be possible to pre-populate the ActionForms with a generic action class (not tied to any particular form) and put them in the current session. The following is an excerpt from "Mastering Jakarta Struts" that

RE: HTTP Status 500

2002-11-29 Thread Vincent PROSPER
Paul, may you should have a look on how to build a webapp.war... and drop it into the webapps directory of Tomcat... Vince -Original Message- From: Paul Kavanagh [mailto:[EMAIL PROTECTED]] Sent: Friday, November 29, 2002 8:48 PM To: Struts Users Mailing List Subject: HTTP Status 500 Hi

Re: HTTP Status 500

2002-11-29 Thread Jens Kühnberger
try http://localhost/wileystruts Paul Kavanagh wrote: Hi there, I'm trying to get the attached Struts webapp (from Chapter Three of Mastering Struts) working with Tomcat 4.1.12. My understanding is that I should be able to just drop the attached (unzipped of course) into a webappname/ folder and

and param based navigation

2002-11-29 Thread Oliver Meyn
Hi all, My problem is that every view in my app needs to be bookmarkable and emailable. I figure that means the url needs to uniquely identify where you are in the app, and that the way to do that is with parameters (ie example.com/page.jsp?thing1=1&thing2=2 etc). I'm open to other suggestions,

HTTP Status 500

2002-11-29 Thread Paul Kavanagh
Hi there, I'm trying to get the attached Struts webapp (from Chapter Three of Mastering Struts) working with Tomcat 4.1.12. My understanding is that I should be able to just drop the attached (unzipped of course) into a webappname/ folder and then be able to access it via http://localhost/webappna

Re: A trivial problem ...

2002-11-29 Thread Antoni Reus
Hi, If the remote ejbs and ejb clients are in the same JVM some containers let you optimize the access enabling passing objects by reference. There is a descriptor tag in weblogic-ejb-jar.xml called that you can set to false (but I thought that it was tuned off by default!) Salut! A Divend

Re: Package Dependencies

2002-11-29 Thread David Graham
You only need the jars that come with the struts distribution. Put all the jars from $DIST_HOME/lib on your classpath (where DIST_HOME is where you unzipped struts). David From: "Wendy Cameron" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users

RE: [Struts Tip] #18 - Use EJBs with care

2002-11-29 Thread Darren Hill
I beg to differ. I love 'em ... I got a BEAUTY full-fledged struts-app using them right now. The only thing I would say ... is use LOCAL interfaces if at all possible. IF you combined EJB with a Stateless Session Bean Service layer .. fronted with DeleteGate classes, you've got a great domain/mo

A trivial problem ...

2002-11-29 Thread Velmurugan M.
I m using Weblogic 6.1 for deploying ear which contains some session bean and struts code. On calling a remote method ( rM) in a session bean from strutsAction Class execute() method, I m getting a Object, say remObj. I m modifying the remObj. And on second call to remote method rM, I m getting th

Re: [Struts Tip] #18 - Use EJBs with care

2002-11-29 Thread Kenny MacLeod
Ted Husted wrote: > Enterprise JavaBeans (EJBs) are designed to represent the model > layer of an application. Developers often choose EJBs when > building applications that will be distributed over several > servers. Many developers also like to use EJBs because of the > transparent way they handl

Re: Comparing Bean Properties

2002-11-29 Thread Patrice
Hi Vinh, You can use a scripting variable: if you want compare the property1 of bean1 with the property2 of bean2: ... Hope it helps. Patrice - Original Message - From: "Vinh Tran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 7:08 PM Subject: Comparing

Action mappings, validation and tiles

2002-11-29 Thread Max Johnson
Hi, My project uses ActionMappings for everything. I want all page access to be routed via the controller so my JSPs are hidden below /WEB-INF. I'm using both the tiles and validator packages so a typical action mapping looks something like this: This works fine. My problem is that I i

Comparing Bean Properties

2002-11-29 Thread Vinh Tran
Anyone know how to do comparisons on 2 bean properties? Logic tags allow me to compare 1 property to a constant but not another bean property. Any ideas? Vinh

RE: [Tiles Controller] pagePattern bug(?)

2002-11-29 Thread Vincent PROSPER
Cedric, I solved this trouble by putting instead of ... I still wonder why and work differently. And you're right, it has nothing to do with Tiles stuff! Concerning the contextRelative attribute, it seems to me to have no effect on subapps, except maybe on the forward itself. Thanks anyway

Re: Controller class in tiles

2002-11-29 Thread Cedric Dumoulin
Hello, How do you insert your tiles ? You need to insert the tiles (), or forward to it from a struts action, in order to execute the associated controller, and insert the associated layout ;-). Cedric Alvarado, Juan (c) wrote: My definition looks as follows: controllerClass="com.ni

Re: Tiles - definition="main.Layout" What does this means?

2002-11-29 Thread Cedric Dumoulin
Hello, Check in other tiles included configuration files. A definition can extends another one specified in another file. This file still need to be specified in the list of config file ;-). Cedric aps olute wrote: I just started with the Tiles tutorial and got stuck at this definit

Re: Tiles - How does it search for the definition values?

2002-11-29 Thread Cedric Dumoulin
Hi, Tiles lookup definition by name in the "definitions factory". This definition factory is usually initialized at startup with files specified in the tiles plugin. You can specify several files. If you use struts modules, you will have one definition factory for each module. Hope t

Re: Tiles Question

2002-11-29 Thread Cedric Dumoulin
The answer is yes. Daniel Ritchey wrote: Can a tiles definition layout path reference a Struts action path? I need to be able to dynamically select which layout to use. Thanks in advance, Dan -- To unsubscribe, e-mail: For additional commands, e-mail:

AW: a little riddle...

2002-11-29 Thread Andreas Langmann
forget it... it's so easy, if you know how -Ursprüngliche Nachricht- Von: Andreas Langmann [mailto:[EMAIL PROTECTED]] Gesendet: 29.11.2002 16:11 An: Struts User Mailingliste Betreff: a little riddle... Hi, i have the following code: option one This works, but access for e

RE: [FRIDAY] laser

2002-11-29 Thread Anthony Métayer
Well thank you for delivering me from my problems for a *few* moments ;-) -Message d'origine- De : Chappell, Simon P [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 29 novembre 2002 16:42 À : Struts Users Mailing List Objet : RE: [FRIDAY] laser I'm on level 7! ;-) Simon >-Original Mes

Re: FW: struts with ojb, multiple repositories

2002-11-29 Thread Chuck Cavaness
Jack, I don't see why it can't be, although I should admit that I haven't tried it myself. I would indeed use a factory to return back an instance of whichever repository you needed to use. If you plan to use any type of caching and you need multiple caches to be synchronized, I think the lat

Re: great error in struts! Include a JSP result of an Action in other JSP

2002-11-29 Thread Carlos Grima
Hello again Tib: Many thanks for your help. Your solution works perfectly: Regards and thanks :-))) CARLOS GRIMA · www.carlosgrima.com · [EMAIL PROTECTED] · MSN: carlos_grima (hotmail) - Original Message - From: "Gemes Tibor" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EM

RE: [FRIDAY] laser

2002-11-29 Thread Chappell, Simon P
I'm on level 7! ;-) Simon >-Original Message- >From: Gemes Tibor [mailto:[EMAIL PROTECTED]] >Sent: Friday, November 29, 2002 9:33 AM >To: [EMAIL PROTECTED] >Subject: [FRIDAY] laser > > >I've just found this piece of game, and since then I simply >cannot stop >playing it! > >http://hem.p

[FRIDAY] laser

2002-11-29 Thread Gemes Tibor
I've just found this piece of game, and since then I simply cannot stop playing it! http://hem.passagen.se/bigmoor/laserix/laserix.html I cannot pass the level13 thou I try hard! Have a nice day! Tib -- To unsubscribe, e-mail: For additional commands, e-mail:

a little riddle...

2002-11-29 Thread Andreas Langmann
Hi, i have the following code: option one This works, but access for each object in fachListe the object with id "0". if i do the following inside the loop: <% counter++; %> option one i got "fachListe[].ufId" and an error any ideas? Must i do this without jstl ? I want struts

Re: Tiles and parameters...

2002-11-29 Thread Craig Tataryn
Whacky whacky stuff. Are you completely sure that ListUsersAction isn't doing a request.setAttribute for the order and sort parameters it recieves? Is this taglib custom? I don't see you passing it the order and sort parameters through it's attributes, meaning that it is getting them from some

FW: struts with ojb, multiple repositories

2002-11-29 Thread Jack
I'm using an application scoped 'service' which uses ojb's odmg implementation as done in Chuck Cavaness' Struts Model Components chapter. Works well with one repository. I now need to use two repositories. I've worked out the configuration for multiple repositories (one postgresql db, a

Re: session form bean reuse

2002-11-29 Thread Gemes Tibor
2002. november 29. 15:10 dátummal Sven Frederik Pohl ezt írtad: > Could a session scope form bean get reused by another session if the > session ends? No > Or is it garanteed, that a session scope form bean instance > is only used by a *single* session? Yes. Tib -- To unsubscribe, e-mail: <

RE: Running Struts on Wepshere 4.0

2002-11-29 Thread Abhishek . Jain
Thanks In our case struts is running fine on WEBSPHERE 4.0 It may have soem problem in future let us se then Thanks for the info Abhishek ---Disclaimer The views of the author may not necessarily reflect those of the Company. All liability is exclude

session form bean reuse

2002-11-29 Thread Sven Frederik Pohl
Hello all, I got a simple question, but I could not find any answer on the net: Could a session scope form bean get reused by another session if the session ends? Or is it garanteed, that a session scope form bean instance is only used by a *single* session? Thanks in advance, Sven Pohl [EMAIL

RE: Running Struts on Wepshere 4.0

2002-11-29 Thread Praful . Kapadia
>You are building on sand. Even when you solve your config problems, >Struts is not supported on Websphere 4.0. The official IBM position is >user Tomcat or wait for Websphere 5. Are you sure? I'd appreciate a web link for this. I find this odd because the WebSphere 4 admin console uses Struts!

How to forward from a sub-module to the main-module?

2002-11-29 Thread Maarten . DeCock
I've tried to do this, but can't get it to work: I'm using struts nightly build 20021125: struts-config.xml of main module: ... ... stuts-config.xml of sub module: ... ... ... When forwarding from my sub-module to the "failure" forward I'm getting the following err

RE: Populating multiple forms from one action class

2002-11-29 Thread Sven Frederik Pohl
Hi Curtney, The forms could only be populated if the form data is send via the HTTP request. that only happens if the there is only one enclosing HTML form. Since (as far as I know) the Tag is bound to exact one HTML form, I don't think that this is possible. You could possibly inherit one ove

RE: Communication Between WebApps

2002-11-29 Thread Jonathan Holloway
This is exactly what I want to do with an authentication login web application before passing the UserContainer object over to whichever web application is appropriate based on their user type. If it's not possible to do this is it possible to do the following. Given.. http://localhost/webappa

RE: generate from javascript locally

2002-11-29 Thread Sven Frederik Pohl
Hi Eric, This is one of the special cases in which a Javascript approach is usefull. If you got concrete Javascript questions, just ask me personally. I personally mailed you another email with javascript code because I don't believe that this topic is correct under this list. best regards, Sv

Re: How to perform something after authentication?

2002-11-29 Thread Gemes Tibor
2002. november 29. 11:45 dátummal Iran Marcius ezt írtad: > Could someone give me a hint about that? Create a filter, which check wheter the preferences are loaded and stored into session. If not, load them and store: public void doFilter( ServletRequest req, ServletResponse resp,

How to perform something after authentication?

2002-11-29 Thread Iran Marcius
Hi. I'm using Struts with velocity-tools in tomcat-4.1.12. I got a JDBCRealm which works uses BASIC authentication. When a user authenticates in this realm, I need to load all his preferences from database. How could I do that? Should I extend ActionServlet and redefine some method ("process" or "

RE: dynamically display buttons-footer

2002-11-29 Thread Mouratidis, Georg
Roles are something the servlet container should provide - e.g. see tomcat-users.xml. You wrote about "logging in" - how do you currently manage user authentication? i have a flag in the application-db that indicates if provider, buyer or supplier. Depending on the entry values on logging i eval