Howto redirect/forward to other webapp with one config file?

2002-02-12 Thread holger.wiechert
I've read in the list that it's possible to do a forward with Struts from one WebApp to another. But according to the struts-config1_0.dtd, the forward paths are all relative. My question is: have those "forwards" actually been "redirects" or is it really somehow possible (without using some ser

Re: Pre and Post Processing

2002-02-12 Thread Sarah Farrell
As I understand the implementation of html:select, I would have to return a collection of something. Collection of beans? One of my select lists has 370 school names in it. The last thing I want to do is to create/pass around a collection of 370 objects instead of one StringBuffer (actually

Best Approach for Database Access?

2002-02-12 Thread Paul Idusogie
Could you kindly provide guidance on the best approach to implement database access.? I have encountered various schools of thought in my reading, that suggest extracting the business logic and database code from the jsp into a jsp bean or ejb or servlet. Thanks, Paul Idusogie Technical Archit

RE: Best Approach for Database Access?

2002-02-12 Thread Keith Chew
Hi Paul I follow this design practice for both EJB and non-EJB applications. The ones marked with * live at the application server JVM. (1) Non-EJB environment === JSP -> ActionBean -> ServiceBean -> DaoBean -> DB (2) EJB environment (BMP or Session)

RE: Pre and Post Processing

2002-02-12 Thread Jakkampudi, ChandraseKhar
Is there an alternative to breaking the MVC?? We have to populate drop downs from the database. So I call the DAO from the JSP through a Helper Object (will convert this to a tag) and use the returned collection to populate the drop down using the html:select tag. For efficiency, we may store this

Re: App Design

2002-02-12 Thread @Basebeans.com
Subject: Re: App Design From: Vic Cekvenich <[EMAIL PROTECTED]> === Use tiles instad and a "Struts" menu (from Husted site). Vic [EMAIL PROTECTED] wrote: > Hi all, > I am thinking of structuring an application as follows, and > would appreciate any advice and ideas of how to do thi

RE: Pre and Post Processing

2002-02-12 Thread STEVE WILKINSON
Why don't you have a servlet that is called on startup to execute some business logic class that loads the drop down list items into a collection and then store then in the application scope. This increases memory, but also increases speed. Then you can use the collections and the struts tab

Re: Pre and Post Processing

2002-02-12 Thread Keith
If you want to display something very simple why not fetch it from the code that displays it. ie. let the view bypass the controller? Fails the MVC test Passes the 'minimal lines of code' & 'don't move data around uneccesarily' tests. I don't do it myself but can't argue against people who do. Kei

RE: Best Approach for Database Access?

2002-02-12 Thread Thompson, Darryl
Hello Keith, In my environment we employ options 2 and 3 but with this little twist: 3) EJB environment (CMP) JSP -> ActionBean -> ( ServiceHelper -->ServiceLocator ) - > ServiceBean -> DB The ServiceLocator is a regular Java class that encapsulates all jndi Home lookup logic, and the t

Re: Editing a database record best practice?

2002-02-12 Thread stf
Is this really an issue?! if you pass a from object from server to server, it shouldn't be much more than the fields it contains - so it makes absolutely no difference how much code you have around your data - no matter in what structure you keep them (or do you mean that it is an issue of memory

RE: Pre and Post Processing

2002-02-12 Thread Jakkampudi, ChandraseKhar
I think having a start-up servlet is a nice approach. This does not break the MVC architecture while keeping the functionality intact. Thanks for the input -Original Message- From: STEVE WILKINSON [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:11 PM To: [EMAIL PROTECTED] Su

Help! Struts website resource links bad

2002-02-12 Thread Press, Michael
Who should be contacted to report that many of the links on the Struts resources page are bad? Specifically, on the http://jakarta.apache.org/struts/userGuide/resources.html page, in the Contributor Extensions section, about half of th

RE: Best Approach for Database Access?

2002-02-12 Thread Keith Chew
Hi Darryl Yes, I use a ResourceLocator, which does that same thing. In addition, it does caching of home interfaces and storing of application context constants, thus not called a ServiceLocator (locating a service is only one of it's jobs). I have made the ServiceLocator a Singleton, thus avoi

RE: iterate tag usage

2002-02-12 Thread Galbreath, Mark
Why avoid arrays? They are more versatile and faster than collections. Mark -Original Message- From: Moritz Petersen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:14 PM To: Struts Users Mailing List Subject: RE: iterate tag usage Henry, an array does not extend java.u

Re: html:select

2002-02-12 Thread Adam
If the value of the parameter matches the value of the collection it will be set a s selected by struts Dean McCall wrote: >Thanks for the reply. > >But I don't follow. > >I am trying to get a select tag that looks like: > > > Sent > Received > > >How do I set the SELECTED attribute

Re: Best Approach for Database Access?

2002-02-12 Thread Francisco Hernandez
could you guys post some sample psuedo code on how you guys implement this? im very intrested in using EJBs in my web apps.. im just not too sure on what the best way to do this is. - Original Message - From: "Thompson, Darryl" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL

RE: iterate tag usage

2002-02-12 Thread Galbreath, Mark
You should type with interfaces, not classes: private List vector; And unless you need synchronization, a ListArray is about 25 percent faster than a Vector. :-) Mark -Original Message- From: Moritz Petersen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:33 PM To: Strut

RE: Traffic

2002-02-12 Thread Maturo, Larry
I do have to mention that often times if you understood the answer you would not need to ask the question. :-) I think that telling people to search the archives is a good idea if we know for sure that they contain an example of how to solve the question asked. However, a lot of time the answe

iterate tag with nested collections?

2002-02-12 Thread Michelle Popovits
Hi, I am trying to add a multi-level report to a struts application. So the report structure will be like this: Top Level Details Level 1 Details . Level 2 Details.. Level 2 Details.

Re: Best Approach for Database Access?

2002-02-12 Thread Francisco Hernandez
once you get your DummyService, are you passing it the current ActionForm? how are you getting results/errors from that DummyService? - Original Message - From: "Keith Chew" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, February 12, 2002 1:43 PM S

RE: Best Approach for Database Access?

2002-02-12 Thread Galbreath, Mark
Check out the "Guidelines" and "Patterns" at http://java.sun.com/blueprints/, "Accessing Relational Databases" at http://jakarta.apache.org/struts/userGuide/index.html, and get 'hold of "Core J2EE Patterns" by Alur, et al. Mark -Original Message- From: Paul Idusogie [mailto:[EMAIL PR

A good database pool?

2002-02-12 Thread Alex Colic
Hi, I have a couple of struts apps that use a lot of database connections. I have been moving them over to use a connection pool manager. I have found a couple of free ones e.g.. Poolman, jdbcpool but neither are being supported. Can someone suggest another database pool manger. I don't care if

RE: iterate tag with nested collections?

2002-02-12 Thread MacKellar, Kimberly
If I understand your structure correctly, something like the following should work Insured Name: Kim MacKellar -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:31 PM To: Struts-User@Jaka

Tiles Error

2002-02-12 Thread Sanjay Choudhary
Hi guys, I am new to struts and tiles. When I am trying to using Definations in tiles I am getting the following errors :- Error Message: Can't get definitions factory from context. Error Code: 500 Target Servlet: null Error Stack: javax.servlet.jsp.JspException: Can't get definitions factory

Re: App Design

2002-02-12 Thread stf
frames suck: I don't think it's a good idea to separate your page-flow onto two different layers, one being the javscript/frame-constellation, the other the struts config-files. What exactly are you trying to achive? If you just want to reuse your navigation, then go for some kind of template-engi

RE: "if" tag

2002-02-12 Thread Jay sissom
The way I do it is this:   No if's required and the space doesn't cause a problem when bean:write prints something 99% of the time. Jay On Tue, 12 Feb 2002, Mattos, John wrote: > Hey > > I was actually going to use it to place an " " in a cell of a table if > a certain bean attribute didn't

Menu tag

2002-02-12 Thread @Basebeans.com
Subject: Menu tag From: Vic Cekvenich <[EMAIL PROTECTED]> === Other than struts-menu tag, what is another menu tag? I want drop downs across the top? TIA, Vic -- To unsubscribe, e-mail: For additional commands, e-mail:

classnotfound

2002-02-12 Thread Steven Dahlin
I am getting an error message indicating that a class cannot be found. It occurs after entering a user login and password into login.jsp and pressing the submit button. The class that cannot be found is: logwork.entities.Users. I have the following structure for my app: logwork (the jsps resi

Re: App Design

2002-02-12 Thread Ted Husted
Can "the action that doesn not really do anything" just forward to the desired page in the usual way? One approach would be to have the Javascript set the desired page as field in the form before it is submitted. The Action could then retrieve the page, and return the appropriate ActionForward.

Subject: Re: Best Approach for Database Access?

2002-02-12 Thread @Basebeans.com
Subject: Subject: Re: Best Approach for Database Access? 5311:From: Vic Cekvenich <[EMAIL PROTECTED]> === -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Best Approach for Database Access?

2002-02-12 Thread Rooms, Christoph
Check out castor, worked fine for me !!! http://www.castor.org -Original Message- From: Galbreath, Mark To: 'Struts Users Mailing List' Sent: 12/02/2002 22:52 Subject: RE: Best Approach for Database Access? Check out the "Guidelines" and "Patterns" at http://java.sun.com/blueprints/,

Re: App Design

2002-02-12 Thread Mark_Glatzer
Ted, Thank you. I actually thought of this after sending my e-mail and have been working on it. It is very comforting to hear your confirmation. Mark Ted Husted <[EMAIL PROTECTED]> on 02/12/2002 05:49:20 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]

Re: Editing a database record best practice?

2002-02-12 Thread @Basebeans.com
Subject: Re: Editing a database record best practice? From: Vic Cekvenich <[EMAIL PROTECTED]> === Oh, and... avoid EJB (it tends to be overused by newer developers, and is slow to develop and slow performance. Sun's way of selling hardware, but when projects fail, manager makes you go to : MS .

CODY: Re: Loading pdf files using jsp

2002-02-12 Thread Amir N. Nashat
The server should not have to accept the PDF mime-type. It actually sets the mime type and the client is the one who needs to make sure it can accept it(by having the correct plugin). If I am mistaken please correct me. amir >>> [EMAIL PROTECTED] 7:04:09 AM 02/12/02 >>> Maybe you meant t

RE: CODY: Re: Loading pdf files using jsp

2002-02-12 Thread Barr, Scott [IBM GSA]
Have a look at the FOP project. http://xml.apache.org/fop/ Scott > -Original Message- > From: Amir N. Nashat [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, February 13, 2002 9:58 AM > To: [EMAIL PROTECTED] > Subject: CODY: Re: Loading pdf files using jsp > > The server should not h

loading the drop down...

2002-02-12 Thread sridhar ramalingam
Hello, I'm very very new to Struts, I was developing a sample application using Struts. I then stumbled in to a problem, here it is ... I have to populate the down with a list of countries (say), the country list is in the database with a name value pair. I was wondering, how am I going to popu

Log4J and Struts - using Chiki's log4j configuration and getting tons of messages

2002-02-12 Thread Matt Raible
Hello, I am trying to implement log4j in my application. I'm using the Struts nightly build. If I don't have a log4j.properties file in my WEB-INF/classes directory, I get the following error: log4j:ERROR No appenders could be found for category (org.apache.commons.digester). log4j:ERROR Pleas

RE: loading the drop down...

2002-02-12 Thread Aamir Saalam
You could fetch the name-value pairs in either a Map or your own name-value pair beans and use the html:select in combination with html:options to render list drop down. For ex. <% Map k = new Hashtable(); // <-- populated from the database k.put("country_id_1", "country name 1"); k.put(

Re: Editing a database record best practice?

2002-02-12 Thread Ted Husted
> It means we are only shipping the data we need. But we are putting presentation >logic within the mid tier - ie objects that are purely there to populate data for a >specific screen. I would say that *what* is on the screen is a business requirement. Getting *what* we need for the screens ru

RE: Best Approach for Database Access?

2002-02-12 Thread Keith Chew
More pointers... In the example I gave earlier, the DaoBean is responsible for communicating with the database. So, you can implement the data access with any of these technologies: - direct SQL - O/R mapper like Castor, Toplink, Cocobase - JDO - ... In the CMP environment, the container will t

Re: Tiles Error

2002-02-12 Thread Ted Husted
It sounds like the Tiles definitions are not being loaded from the XML configuration file. Make sure the Tiles subclass of ActionServlet is installed properly. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.c

Question about loading adtional attributes

2002-02-12 Thread Julio Cesar Macavilca
Hello We are developing a large application in what the user in mayority of cases perform tasks like edting documents as an Invoice (it means Invoice and Items), but in fact more complex documents than a single master-detail Invoie. Imagine following tables: Invoice table: - Invoice

Re: A good database pool?

2002-02-12 Thread Sid Stuart
Hi Alex, You don't mention which app server you are using. Have you checked to see whether it has a connection pool manager? All that I have looked at do. Sid Alex Colic wrote: > Hi, > > I have a couple of struts apps that use a lot of database connections. I > have been moving them over to us

define tag usage within message tag

2002-02-12 Thread David Larson
any idea why this works??? <% String key="retail.shippingOption." + shippingOptionKey.toString(); %> but this does not (tried several variations of this)? thx -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Traffic

2002-02-12 Thread Michael
is it possible to be a member of the list an NOT get any email sent to me? i'd rather just read from archives.. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Re: Traffic Subject: Re: Traffi

Re: iterate tag usage

2002-02-12 Thread Arron Bates
Mark, You're absolutely correct. As for the "you can't use Object[]" stuff read the code. Primitive arrays are perfectly fine, and most likely faster again than ArrayLists. Arron. Galbreath, Mark wrote: >You should type with interfaces, not classes: > >private List vector; > >And unless

Re: iterate tag with nested collections?

2002-02-12 Thread Arron Bates
You can get the basic iterate tag to "view" the data, but it wont update within a form. Go here... http://www.keyboardmonkey.com/struts ...there's a turorial and examples that will take you through the system and get you nesting lists in no time. The tags this page is on about is in the Struts

Re: Traffic

2002-02-12 Thread @Basebeans.com
Subject: Re: Traffic From: Ted Husted <[EMAIL PROTECTED]> === Michael wrote: > > is it possible to be a member of the list an NOT > get any email sent to me? i'd rather just > read from archives.. Yes, just unsubscribe from the main Struts lists (and maybe join the digest). http://jakarta.ap

RE: A good database pool?

2002-02-12 Thread Sandra Cann
Suggest you try the Expresso Connection pooling at www.jcorporate.com as it is supported. Btw it is also open source. > -Original Message- > From: Alex Colic [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 12, 2002 4:58 PM > To: Struts > Subject: A good database pool? > > > Hi, > > I

struts-config_1_1.dtd

2002-02-12 Thread Andrew Myers
Hi, What do folks here suggest we do with the DOCTYPE declaration at the top of struts-config.xml when deploying to a live server? Currently it says http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> however I've noticed the action servlet fails to start when for some reason I can

Re struts-config_1_1.dtd

2002-02-12 Thread Andrew Myers
Ooops I just found someone had asked the same question (and received a very helpful answer from Ted Husted) in an early digest. Please ignore the previous message!! Andrew. :) -- __ Your favorite stores, helpful shopping tools

Re: Traffic

2002-02-12 Thread Martin Cooper
That would be one reason we have a JGuru FAQ: http://www.jguru.com/faq/Struts This is, of course, referenced from the Struts Resources page: http://jakarta.apache.org/struts/userGuide/resources.html The main problem, I think, is trying to educate people to use their heads to look before they u

isTokenValid(request) is always returning false

2002-02-12 Thread Antony Stace
Hi What would cause saveToken(request); if ( isTokenValid(request)) { System.out.println("isTokenValid(request) true"); } else { System.out.println("isTokenValid(request) false"); } To always print "isTokenValid(request) false". I am always getting the value of isTokenValid(request) bei

<    1   2