RE: Primitive type bean property

2003-12-31 Thread Amanpreet
Hi Patrick Do you want to Map the to a Beanproperty of type CHAR.? Regards Amanpreet -Original Message- From: Patrick Cheng [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 8:26 AM To: Struts Users Mailing List Subject: Primitive type bean property Hi All, A quick ques

RE: Primitive type bean property

2003-12-31 Thread Patrick Cheng
Yes!! Exactly. Is it Possible? Rgds, Patrick. -Original Message- From: Amanpreet [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 31, 2002 3:33 PM To: 'Struts Users Mailing List' Subject: RE: Primitive type bean property Hi Patrick Do you want to Map the to a Beanproperty of type CH

RE: need some sample Tiles definitions usage

2003-12-31 Thread Amanpreets
Hi jim Javaworld gives a good example of using tiles in struts http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html I guess it will solve the purpose. Regards. A Subject: need some sample Tiles definitions usage I've taken the Login example from "Struts in Action" and converted

R: is there an eta for struts 1.2 beta?

2003-12-31 Thread Grassi Fabio
I have similar concerns and needs. I would like to start using Struts 1.2 (mainly for the validwhen validation), but would rather wait for an official beta. I asked the same question a few weeks ago, but had no answer. TIA, Fabio. > -Messaggio originale- > Da: John McGrath [mailto:[EMAI

RE: Problem with action chaining

2003-12-31 Thread shirishchandra.sakhare
Hi , As pointed out by Mohan, Action chainning is not a good design practice... You can forward from one action to another but they should eb performing completely independent units of work.If two actions are used to complete only bits of work to complete one logical response, then it is a bad de

RE: [OT] eclipse and jsp editing

2003-12-31 Thread Todd G. Nist
MyEclipse works well. It dose cost $30.00, but seems well worth it based on the features and ease of use and no I am not associated with the company. For more information look at: http://www.myeclipseide.com Hope that helps. Regards, Todd -Original Message- From: Ashish Kulkarni [mai

Re: Problem with action chaining

2003-12-31 Thread Domingo A. Rodriguez S.
Can you post the naughty class source code and the stack trace so we can check the problem better? Regards, Domingo A. Rodriguez S. --- [EMAIL PROTECTED] escribió: > Hi, > > > > I have a problem with action chaining. My action tag > > > type="com.epolicy.arch.brokerage.web.agen

Custom Link Tag

2003-12-31 Thread Duggal, Sanjay
Hi, I am writing a custom tag: MyLinkTag that extends the org.apache.struts.taglib.html.LinkTag. MyLinkTag has two fields. They are showAlways : Boolean & alternateLink : String. The functionality of the MyLinkTag is captured in the following code snippet: *

creating a class that extends Action Mapping...what is the purpose of it?

2003-12-31 Thread deepak saini
Hi, I was trying one struts example. In that example, it has created one class whcih extends ActionMapping class. I was just wondering why we need to create this class and when is it used and whether we define this class in struts-config or web.xml? Regards Deepak Saini ___

Re: Custom Link Tag

2003-12-31 Thread Nicolas De Loof
Place your code in doStartTag as it can return SKIP_BODY to exclude body from resulting HTML. return EVAL_BODY_INCLUDE if you want the body to be included Nico. > Hi, > > I am writing a custom tag: MyLinkTag that extends the > org.apache.struts.taglib.html.LinkTag. > > MyLinkTag has two field

Re: [OT] eclipse and jsp editing

2003-12-31 Thread Patrick Scheuerer
Todd G. Nist wrote: MyEclipse works well. It dose cost $30.00, but seems well worth it based on the features and ease of use and no I am not associated with the company. For more information look at: I'm using MyEclipse as well and I'm really happy with it. I tried several Eclipse plugins but all

Re: creating a class that extends Action Mapping...what is the purpose of it?

2003-12-31 Thread Nicolas De Loof
Sometime we need to add some info to struts mappings, and for this we use a class that extends ActionMapping. As an example, we need for a webapp to add a "description" to any mapping to build some stats. DescActionMapping defines a "description" attribute. every action-mapping in struts-config

RE: creating a class that extends Action Mapping...what is the purpose of it?

2003-12-31 Thread Mohan Radhakrishnan
I remember that this is done to use custom properties in your action mapping in the struts-config.xml file. You can access them in your action. Mohan -Original Message- From: deepak saini [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 6:08 PM To: [EMAIL

Configuration Issue when Splitting up the struts-config.xml file

2003-12-31 Thread Harrison, Joseph
All, I recently brought my struts application to a relatively stable point (no problems whatsoever). However, I split apart my struts-config.xml file into 6 sub struts xml files. I updated the web.xml file, but it gives me the following error when trying to parse the resource paths. [ERROR]

Re: Configuration Issue when Splitting up the struts-config.xml file

2003-12-31 Thread Martin Gainty
Straight from Craig McClanahan "splitting struts-config.xml": ]> &part1; &part2; &part3; -Martin - Original Message - From: "Harrison, Joseph" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, Decembe

Re: Configuration Issue when Splitting up the struts-config.xml file

2003-12-31 Thread Kris Schneider
Try inserting a leading "/" in your paths. For example: /WEB-INF/struts-arrest.xml. Also ensure that each of the config files is valid with respect to the Struts 1.1 config DTD. Quoting "Harrison, Joseph" <[EMAIL PROTECTED]>: > All, > > > > I recently brought my struts application to a relati

Re: Primitive type bean property

2003-12-31 Thread Paulo Rezende
Patrick, Probabily you'll have problems with null values. Paulo - Original Message - From: "Patrick Cheng" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 31, 2003 12:55 AM Subject: Primitive type bean property Hi All, A quick questi

RE: Configuration Issue when Splitting up the struts-config.xml f ile

2003-12-31 Thread Harrison, Joseph
I added the "/" and have ensured that my sub config files are Struts 1.1 config DTD compliant. I am using tiles and am using the definition names in lieu of the jsp page for my paths. Would this be a problem? -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Wednes

RE: Configuration Issue when Splitting up the struts-config.xml f ile

2003-12-31 Thread Kris Schneider
Have you tried running the app outside of JDeveloper to make sure it's not an IDE config issue? Although I'm not that familiar with Tiles, I don't think that's your problem. Quoting "Harrison, Joseph" <[EMAIL PROTECTED]>: > I added the "/" and have ensured that my sub config files are Struts 1.1

Key words in struts-config.xml

2003-12-31 Thread Swaminathan Rajagopalan
Title: Key words in struts-config.xml Hi, I have to specify a URL in the path for an action mapping in struts-config.xml. The URL has a key word “context” and on server start up the xml file could not be loaded. How to overcome the same? Regards, Swaminathan Rajagopalan, Ph : (8520261)

ConcurrentModificationException on ActionErrors

2003-12-31 Thread Richard Mixon (qwest)
I have a Struts action that is trying to show all of the errors that might occur from either or both of two subordinate methods. The code looks like: ... ActionErrors errors = new ActionErrors(); ActionErrors errors1 = null; ActionErrors errors2 = null; Obj1 obj1 = new Obj1(); Obj2 o

Re: ConcurrentModificationException on ActionErrors

2003-12-31 Thread Paul-J Woodward
I don't know what is causing the exact error from your code snippet, but a ConcurrentModificationException is thrown when you try to modify a list on which you have an iterator. See here: http://java.sun.com/j2se/1.4.1/docs/api/java/util/ConcurrentModificationException.html Paul -

RE: ConcurrentModificationException on ActionErrors

2003-12-31 Thread Richard Mixon (qwest)
Paul, Thanks I had seen the exception javadoc. An in one of my subordinate methods I do have a logging snippet that uses an Iterator to display ALL of the contents of the ActionErrors. And I imagine that my subsequent use of the ActionErrors.add(ActionErrors) method also uses an Iterator to enum

Re: ConcurrentModificationException on ActionErrors

2003-12-31 Thread Kris Schneider
It almost sounds like your code isn't handling errors1 and/or errors2 in a thread-safe manner. ConcurrentModificationException will be thrown if one thread is in the proces of iterating over a collection and another thread modifies that collection. ActionMessages.add(ActionMessages) will iterate ov

RE: JAAS and roles attribute of logic:present

2003-12-31 Thread Karr, David
Are you using basic auth, or form auth? I would use form auth, but I don't know that it would make a difference. You may have to secure the entire application with a role that all users will be guaranteed to have. > -Original Message- > From: Daniel Massie [mailto:[EMAIL PROTECTED] > Se

Re: ConcurrentModificationException on ActionErrors

2003-12-31 Thread Ben Anderson
Could you show the implementation(s) of your ObjX.getErrors() methods. I'm guessing there's probably a better way to do what you're trying to do. It probably has something to do with the implementation of: http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionMessages.html#add(org.

RE: Problem with action chaining

2003-12-31 Thread Tim Lucia
So is it a bad design if you have Action1 -> add CollectionOfObject1 to request Action2 -> add Object2 request And then chain them together to produce two request attributes? I have some pages which display a list of Object1, and other pages which require the Collection to populate a select. So

RE: ConcurrentModificationException on ActionErrors

2003-12-31 Thread Richard Mixon (qwest)
Ben, The implementation is a pretty simple "getter". The ActionErrors object is built by the call to obj1.method1(). /** * Get ActionErrors object */ public ActionErrors getErrors() { return errors; } The actual code for obj1 is very large (1900 lines) and of cou

RE: ConcurrentModificationException on ActionErrors

2003-12-31 Thread Richard Mixon (qwest)
Kris, Thanks - I do not think I have multiple threads involved, but certaily multiple Iterators may be hanging around that are not GC'd yet. And yes that was a typo. Because the real code is so huge, I created a simple example to paste in and obviously did not compile it :) - Richard -Or

Struts Workflow Extension - backwards workflow

2003-12-31 Thread Richard Newton
I am using the Struts Workflow Extension in a sequence of pages, with one workflow per page, to prevent users from navigating with the browser buttons, and this works very well. I would however like to have my own back button on some pages so that the user can go back to a page with attributes et

Tomcat Ant tasks and JDeveloper

2003-12-31 Thread Ed Dowgiallo
When using the custom Ant definitions for the Tomcat Manager web application, the instructions are normally to place the catalina-ant.jar file in the ant/lib directory.  Within which JDeveloper directory should this jar file be placed when using the Ant 1.5 support in the JDeveloper 9.0.5 pr

RE: ConcurrentModificationException on ActionErrors

2003-12-31 Thread Kris Schneider
Although it's possible to generate that exception from within the same thread, it's usually triggered by multiple threads accessing the same collection. In general, if you grab an iterator, then modify the underlying collection, and then call iter.next(), you'll see that exception. Having multiple

Re: Key words in struts-config.xml

2003-12-31 Thread Kirk Wylie
Could you provide your struts-config.xml file as well as any output from your servlet container indicating what errors happen when you try to load the application? Kirk Wylie M7 Corporation Swaminathan Rajagopalan wrote: Hi, I have to specify a URL in the path for an action mapping in struts-

RE: Problem with action chaining

2003-12-31 Thread Ted Husted
On Wed, 31 Dec 2003 12:36:33 -0500, Tim Lucia wrote: > So is it a bad design if you have > > > Action1 -> add CollectionOfObject1 to request > Action2 -> add Object2 request > > > And then chain them together to produce two request attributes? I > have some pages which display a list of Object1, a

Re: JAAS and roles attribute of logic:present

2003-12-31 Thread Daniel Massie
I am using form based authentication. If I was to secure the entire application how can I assign a role to user's who have not logged in? Karr, David wrote: Are you using basic auth, or form auth? I would use form auth, but I don't know that it would make a difference. You may have to secure th

Serving up Tiles based on Role

2003-12-31 Thread Matt Raible
I'd love to serve up a specific tile based on a role, but it doesn't seem like it's currently possible in the Tiles Framework. Basically, I want to do the following: In this example, users with role "admin" get the userProfile.jsp, while users wi

Re: Serving up Tiles based on Role

2003-12-31 Thread Tin Pham
Role based tiles is possible in the Tiles framework by putting your own controller before the tile definition. The pdf document, http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf gives an example of how to do this at Cedric Dumoulin's site, http://www.lifl.fr/~dumoulin/tiles/ Happy Ne

Re: is there an eta for struts 1.2 beta?

2003-12-31 Thread Ted Husted
On Tue, 30 Dec 2003 15:52:03 -0500, John McGrath wrote: > we've been using a nightly build of 1.2, in order to be be able to > more easily put ActionMessages into the session object. we're a > little leery of putting it into production, though, until there's > at least an official beta... any idea

Bean As A Parameter In A Method - Compilation Error

2003-12-31 Thread Caroline Jen
I followed the MVC design. I give the data access activity (insertThread) to the ThreadHandler class. And a bean is passed as a parameter of the insertThread method. However, I got compilation error saying that insertThread(java.lang.String, java.lang.String, ... , java.sql.Timastamp, int, ...