RE: Object in request

2005-02-14 Thread Krishna Srinivasan, ISDC Chennai
the object is visible only for a request. -Original Message- From: Sab [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 12:57 PM To: 'Struts Users Mailing List' Subject: Object in request MyCart mycart = new MyCart(...); request.setAttribute(cart, mycart); is immediately

Parameters to actions from actions

2005-02-14 Thread Robert Postill
Hi, I'm a bit of struts noob and I'm just trying to get my head round actions. Particularly, I have an action that tries to call another action. That action is normally called .../formLoader.do?aID=x (x being a number). In my calling code I have: if (request.getParameter(cancel)!= null){

struts middlegen character problem

2005-02-14 Thread Metin Erksan
hi i try to use middlegen tool.it generates *.hbm.xml , struts actions , forms and jsps. but some errors occured for turkish characters.how can i handle this problem ? yours sincerely - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second

I search for tool for graphical representation of developped Struts-system

2005-02-14 Thread jj endenburg
Hi member of user@struts.apache.org, In a previous live, I developped a java-system using ellips. I used omondo for creating a UML of my java system. The graphical representation was generated automatically out of the code. Now I am looking for a similar tool that generates a graphical

Validation Strategies?

2005-02-14 Thread Rooney.Dave
Hi folks! My apologies if this has been asked before - I looked through the FAQ's and archives, but couldn't find any pertinent answers. We have several applications that use a common code base, and have both a Swing and Web (Struts/JSP) front end. The business validation logic for the

Re: Validation Strategies?

2005-02-14 Thread Vic
That is the struts way (and it makes it secure) .V Rooney.Dave wrote: create some sort of mapping between domain model properties and the form properties -- Forums, Boards, Blogs and News in RiA http://www.boardVU.com - To

RE: Validation Strategies?

2005-02-14 Thread Rooney.Dave
-Original Message- From: Vic [mailto:[EMAIL PROTECTED] Sent: February 14, 2005 8:01 AM To: user@struts.apache.org Subject: Re: Validation Strategies? That is the struts way (and it makes it secure) .V Vic, OK, what form do these maps take - XML, properties files, etc.? Do

RE: Validation Strategies?

2005-02-14 Thread Martin Gainty
Being a former DBA I would wonder if this design would adhere to First Normal Second Normal Third Normal In other words if the Data lives in 2 places what happens when one data item is updated but the 2nd data item is not updated and the representation of data is for the moment out of synch

Re: Validation Strategies?

2005-02-14 Thread Erik Weber
I use Struts' declarative exception handling abilities to handle manager-layer validation errors. Exceptions that are not caught by your Actions can be configured to be handled by Struts' default exception handler, or even better, your own exception handler (Struts is easy to extend in this

RE: Validation Strategies?

2005-02-14 Thread Rooney.Dave
-Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: February 14, 2005 8:20 AM To: user@struts.apache.org Subject: RE: Validation Strategies? Being a former DBA I would wonder if this design would adhere to First Normal Second Normal Third Normal In

RE: Validation Strategies?

2005-02-14 Thread Rooney.Dave
-Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: February 14, 2005 8:19 AM To: Struts Users Mailing List Subject: Re: Validation Strategies? I use Struts' declarative exception handling abilities to handle manager-layer validation errors. Exceptions that are

RE: html-el oddities

2005-02-14 Thread Trevor Hill
As I said in my original question, I had tried 'cur.prdNumber' and had the same result, and so had tried shoving the value of cur.prdNumber into a page-scoped variable named 'curPrdNumber', with the exact same less-than-spectacular results. So I guess I'm still stuck, but thanks.

RE: Validation Strategies?

2005-02-14 Thread Rooney.Dave
-Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: February 14, 2005 8:39 AM To: Struts Users Mailing List Subject: Re: Validation Strategies? What I'm suggesting would not cause duplicate validation logic. The (business) validation logic is still performed in

Re: Validation Strategies?

2005-02-14 Thread Erik Weber
Rooney.Dave wrote: -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: February 14, 2005 8:39 AM To: Struts Users Mailing List Subject: Re: Validation Strategies? What I'm suggesting would not cause duplicate validation logic. The (business) validation logic is still

RE: Validation Strategies?

2005-02-14 Thread Ashish Kulkarni
Hi we had some similar sort of issue, we have AS400 RPGLE programs doing business logic and validation (not screen but business related) to get the messages from RPGLE to JSP using struts we defined one ErrorMessage class, then we trap the message from AS400 in this ErrorMessage class and then

How to avoid filtering of bean:message within struts1.0

2005-02-14 Thread René Thol
Hello everybody, is there any possibility to avoid the filtering within the bean:message tags, so that I'll receive text encoded in HTML entities as is? ATM I've sth. like this: text.name=#12345;#12354; After getting these string using bean:message the text is displayed like this within the

Re: How to avoid filtering of bean:message within struts1.0

2005-02-14 Thread Jeff Beal
The documentation at http://struts.apache.org/userGuide/struts-bean.html#message does not mention any such mechanism. If you can use the JSTL tags, try this: fmt:message key='text.name' var='textName'/ %-- saves the value of key text.name as a page-scoped attribute --% c:out

Re: Validation Strategies?

2005-02-14 Thread Vic
It depends what you domain looks like. Is it a Collection, RowSet, Bean A lot of people manualy code it in the get/sets. (or puts) (In my case the Domain, DTO and FormBean are a collection ... no flames please) .V Rooney.Dave wrote: OK, what form do these maps take - XML, properties files,

FormFile Question

2005-02-14 Thread Wu, William [IT]
Hello, I would like to know if it is possible to store the path of the file that the user is trying to upload utlizing FormFile. Thanks in advance, William - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: RequestProcessor instantiation doubt ( in .NET)

2005-02-14 Thread J Q
Leandro, You might want to post this on the struts-dev mailing list. You might get more help there. JQ. On Sun, 13 Feb 2005 13:37:38 -0300 (ART), Leandro Melo [EMAIL PROTECTED] wrote: Hi all. The last days I've been working in a Struts like framework for .NET. I guess most people that work

Re: FormFile Question

2005-02-14 Thread Martin Gainty
William FormFileName has a getFileName() method which can retrieve the FileName ans write it out either as a property or session variable Anyone else? Martin - Original Message - From: Wu, William [IT] [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, February 14, 2005 11:35 AM

custom controls

2005-02-14 Thread Mark Bennett
I am looking for a good date picker along with other convenient web controls. Does anyone recommend anything other than struts-layout? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: FormFile Question

2005-02-14 Thread Wu, William [IT]
Yes I'm aware of the method, I'm more interested in the canonical path. For example. c:\directory\file.txt I want to be able to capture the whole path. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 12:35 PM To: Struts Users Mailing

Caching Appliction Level Data?

2005-02-14 Thread David Johnson
Hi All I have a need in an app I'm working on to cache data that is valid and shared across users, like standard country codes, region codes, industry codes... stuff like that. What's the best way to do that with my struts 1.2 application? Is there something built in that I'm not aware of that I

Re: FormFile Question

2005-02-14 Thread Jeff Beal
It seems to me that sending the full client path to a file is probably a security concern, and therefore not included in a typical HTTP request with input type='file'. (Just a guess, but if there's no method in FormFile that gets the full path, chances are that is because the full path is not

Re: Caching Appliction Level Data?

2005-02-14 Thread Wendy Smoak
From: David Johnson [EMAIL PROTECTED] I have a need in an app I'm working on to cache data that is valid and shared across users, like standard country codes, region codes, industry codes... stuff like that. What's the best way to do that with my struts 1.2 application? Is there something

Radio Button Default Values

2005-02-14 Thread Daniel Kies
I am trying to configure a default value for a radio button as done by Ted Husted on - http://www.jguru.com/faq/view.jsp?EID=1028442 My action has: ArrayList shippers = new ArrayList(); shippers.add(new LabelValueBean(UPS, UPS));

Re: Caching Appliction Level Data?

2005-02-14 Thread Erik Weber
I use the same strategy often. Another option (besides a ServletContextListener) for loading your application scope attributes is a Struts PlugIn. Erik Wendy Smoak wrote: From: David Johnson [EMAIL PROTECTED] I have a need in an app I'm working on to cache data that is valid and shared

Re: Radio Button Default Values

2005-02-14 Thread Wendy Smoak
From: Daniel Kies [EMAIL PROTECTED] and struts config for this dynaactionform is form-property name=expectedVia type=java.lang.String /form-property I just can't figure out how to get UPS as the default radio button selected. Any suggestions? Did you try using the 'initial' attribute of

FormFile Question

2005-02-14 Thread DGraham
Return Receipt Your FormFile Question document:

RE: FormFile Question

2005-02-14 Thread DGraham
Return Receipt Your RE: FormFile Question document:

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
Ahhh a little more information on using a Struts plugin? I'm such a noobie I've never done this.. anywhere you can point me for examples? UGH! Sorry for the simpleton question On Mon, 14 Feb 2005 13:26:12 -0500, Erik Weber [EMAIL PROTECTED] wrote: I use the same strategy often. Another option

Re: Caching Appliction Level Data?

2005-02-14 Thread Erik Weber
http://struts.apache.org/userGuide/building_controller.html#plugin_classes Just set your application scope attributes in the init method. An example of a custom PlugIn that is often used by Struts developers is the Validator PlugIn, so you'll also learn a little about the mechanism if you read

Re: Caching Appliction Level Data?

2005-02-14 Thread Martin Wegner
A PlugIn works nicely as well. I am not sure which is the recommended Struts practice. --- Wendy Smoak [EMAIL PROTECTED] wrote: From: David Johnson [EMAIL PROTECTED] I have a need in an app I'm working on to cache data that is valid and shared across users, like standard country codes,

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
Ah! After reading up on the Struts Plugins, I have the following question Are struts plugins a perfectly acceptable way to handle Application level caching? How about best practices-wise? Thoughts? D On Mon, 14 Feb 2005 11:03:24 -0800 (PST), Martin Wegner [EMAIL PROTECTED] wrote: A PlugIn

Re: Caching Appliction Level Data?

2005-02-14 Thread Craig McClanahan
On Mon, 14 Feb 2005 11:03:24 -0800 (PST), Martin Wegner [EMAIL PROTECTED] wrote: A PlugIn works nicely as well. I am not sure which is the recommended Struts practice. If you're on a Servlet 2.3 or later container (which is when ServletContextListener was introduced), you should use it

Re: Radio Button Default Values

2005-02-14 Thread Daniel Kies
Worked great, thank you very much. On Mon, 14 Feb 2005 11:45:00 -0700, Wendy Smoak [EMAIL PROTECTED] wrote: From: Daniel Kies [EMAIL PROTECTED] and struts config for this dynaactionform is form-property name=expectedVia type=java.lang.String /form-property I just can't figure out how

Re: Caching Appliction Level Data?

2005-02-14 Thread Frank W. Zammetti
Using a plugin only tells you WHERE your going to read the information in, not where your going to STORE it. I think that's the question you really want to ask. Plugins are pretty standard practice when dealing with Struts, but if you have a concern that you might not be using Struts at some

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
I see your points. We arent sure yet what version of Weblogic we'll be deploying to, but I'm developing in Tomcat. Sounds like an open question to me. Where would you point me to learn how to do this the ContextListener way? On Mon, 14 Feb 2005 11:10:19 -0800, Craig McClanahan [EMAIL

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
Another question Currently, I'm modifying an alplication that HAS a struts plug-in for creating Application wide stuff... the thing I want to create will depend on that stuff already being there, so would it be safe to assume that it will exist if I simply implement a vanilla ContextListener

Re: Caching Appliction Level Data?

2005-02-14 Thread Vic
Caching DATA in a view (Servlet) is a bad practice. Best practice is to use DAO, A DAO does caching for you! It has fine grain control of how, when to flush, what size... all with no or minimal coding. Data caching ...in Data Layer. .V David Johnson wrote: Hi All I have a need in an app I'm

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
Frank I see what you mean. I was assuming I'd just store the data in a hashtable or something in the Application Context I have stupid question...where is your AppConfig actually getting stored? I'd think you'd need to do the above at some point and do a getServletContext().setAttribute(

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
Ugh, that of course also sounds logical. how would you do this, then? Imagine you have a list of state codes (to keep it simple) that you want to share across Sessions (imagine that's a really long list and you dont want each session having a copy) one more thing, I also have a service factory

[ANNOUNCE] JSF Central Launches 'In the Trenches' Series About Real-World JSF Projects

2005-02-14 Thread Kito D. Mann
JSF Central today announced the start of “In the Trenches” – a series of articles about real-world experiences when developing applications with JavaServer Faces. In order to help organizations understand how they can best leverage JSF, “In the Trenches” showcases projects that use JSF for

Re: Caching Appliction Level Data?

2005-02-14 Thread Rick Reumann
David Johnson wrote the following on 2/14/2005 12:54 PM: I have a need in an app I'm working on to cache data that is valid and shared across users, like standard country codes, region codes, industry codes... stuff like that. Everyone has given you good suggestions, but I still think you should

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
Frank, I think I get it. Static classes I get, but I guess I didnt consider that any static member of a static class is always accessible. It still strains my brain a little, actually, but I guess it makes sense. so you'd recommend this above creating some hashtable and just plunking it in

Re: Struts In Action - Still up to date?

2005-02-14 Thread Graham Reeds
Funny you should mention this...Nick Heudecker (Hibernate Quickly) and I have just agreed to write Struts in Action, 2nd Edition which will target 1.2 and 1.3 as appropriate. Our goal is to bring the trusted tome up to date, and include more practical solutions to common problems that arise on

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
I love the sound of that product, but given the time contstraints I'm not sure I can take on learning something new and get the thing in place on time. The other thing is that while I'm using the example of country codes, there are in fact some things that will be quite large for example a list

Re: Caching Appliction Level Data?

2005-02-14 Thread Frank W. Zammetti
On Mon, February 14, 2005 2:53 pm, David Johnson said: I think I get it. Static classes I get, but I guess I didnt consider that any static member of a static class is always accessible. It still strains my brain a little, actually, but I guess it makes sense. Yeah, static is one of those

Re: Struts In Action - Still up to date?

2005-02-14 Thread Don Brown
Unfortunately, all I can say is we are starting on the book now and are dedicated to getting it out as soon as we can. The first edition is good up to 1.1 and is still very relevant. Struts 1.2 added some minor features, but is very close to 1.1. Struts 1.3, on the hand, is shaping up to be

Re: Caching Appliction Level Data?

2005-02-14 Thread Rick Reumann
David Johnson wrote the following on 2/14/2005 2:59 PM: I love the sound of that product, but given the time contstraints I'm not sure I can take on learning something new and get the thing in place on time. Oh I understand. I wasn't really suggesting to learn a new product. I just meant that if

Re: Caching Appliction Level Data?

2005-02-14 Thread Soaring Eagle
how do you manage cross container caches if you are clustered - when you are using static members on classes? How do guarantee sameness on different physical machines? We do have a few caches in our application and are facing issues due to this design or an improperly implemented version of this

Re: Caching Appliction Level Data?

2005-02-14 Thread Antony Joseph
You may want to look at Oscache. It allows clustering. That is what I use in my applications. Even though I use iBATIS, for list of values which change infrequently, I use oscache with with a spring AOP interceptor invalidating the cache whenever updates/inserts happen. Because I am using

Re: Caching Appliction Level Data? (session listener)

2005-02-14 Thread Leon Rosenberg
* There are also other listeners that you should explore which are available in this version -- did you know, for example, that you can be notified whenever anyone else in your app adds, removes, or replaces an application or session scope attribute? (In Servlet 2.4 you can do

Re: Caching Appliction Level Data? (session listener)

2005-02-14 Thread Leon Rosenberg
* There are also other listeners that you should explore which are available in this version -- did you know, for example, that you can be notified whenever anyone else in your app adds, removes, or replaces an application or session scope attribute? (In Servlet 2.4 you can do

Re: Caching Appliction Level Data? (session listener)

2005-02-14 Thread Craig McClanahan
HttpSessionBindingListener only works on an attribute itself (so you can tell when you get added or removd) -- it's been around since Servlet 2.0. I was referring to HttpSessionListener (tells you about session creations and deletions) and HttpSessionAttributeListener (tells you about attribute

Re: custom controls

2005-02-14 Thread Antony Joseph
I was looking for data picker for struts myself and could'nt find one. So I wrote a custom tag using the calender popup javascript available at http://www.mattkruse.com The custom date picker tag is available at http://www.logicden.com in the Workeffort application download (Apache license).

bean:include

2005-02-14 Thread wo shi ni baba
Hi folks, I am new to struts, I am trying to get the equivalent of jsp:include in struts. I tried bean:include id=top page=/Top.jsp / this itself does not actually print the content. what else do I need to do to get Top.jsp onto the screen? thanks in advance

Re: Handle images path in one place

2005-02-14 Thread Graham Reeds
I do this in a different way to everyone else:-) I use this piece of JavaScript in the head of every jsp file: if (window.location.href.indexOf(localhost) = 1) { document.write('base href=http://localhost/mysite/; /'); } else { document.write('base href=http://www.mysite.com/; /'); } Which writes

[HELP] Using scriptlet to to generate a property

2005-02-14 Thread Pham Anh Tuan
html:link href='%= / + name + /index.jsp %' I don't know how the line above is correct ? Anyone can help me where can I get instructions how to make a complete expression. thanks for advance Anh Tuan - To unsubscribe, e-mail:

Re: Will struts handles any methods other than get and post?

2005-02-14 Thread Billy Ng
Sorry, my question was misleading. Basically, I expect Struts to just accept the GET and POST methods because some of my customers concern other methods would cause security problem. Billy Ng This mailbox protected from junk email by

Re: Will struts handles any methods other than get and post?

2005-02-14 Thread Craig McClanahan
On Mon, 14 Feb 2005 20:50:57 -0800, Billy Ng [EMAIL PROTECTED] wrote: Sorry, my question was misleading. Basically, I expect Struts to just accept the GET and POST methods because some of my customers concern other methods would cause security problem. Unless you override ActionServlet and

Re: Will struts handles any methods other than get and post?

2005-02-14 Thread Billy Ng
Thank you very much! Billy Ng - Original Message - From: Craig McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Cc: Joe Germuska [EMAIL PROTECTED] Sent: Monday, February 14, 2005 9:18 PM Subject: Re: Will struts handles any methods other than get and post?

Dispatch action handler and pop-up window problem

2005-02-14 Thread Manisha Sathe
I am having a form with 2 submit buttons. I am using DispatchActionHandler to handle the 2 separate actions. After submit it opens the new window and depending on the button pressed it shows the o/p (one button is for html report and another is for pdf report). I get the reports but just

Design pattern for struts.

2005-02-14 Thread Sandip Khetle
Hi all Can anyone tell me what all design patterns does the struts framework use.? Does it uses the mediator design pattern? Thanks in advance Regards, Sandip Khetle - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Handle images path in one place

2005-02-14 Thread Neil Aggarwal
Graham: I don't like depending on JavaScript for this. I think your modification to html:base would be perfect. I have voted for it. Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating

Use of Message Resource/Factory

2005-02-14 Thread Nils Liebelt
Hi all, Trying to perform a lookup on the message resource out of my businessobject. Code looks like this: MessageResourcesFactory mFactory = MessageResourcesFactory.createFactory(); MessageResources mRes = mFactory.createResources(null);

Use of Message Resource/Factory

2005-02-14 Thread Nils Liebelt
Hi all, Trying to perform a lookup on the message resource out of my businessobject. Code looks like this: MessageResourcesFactory mFactory = MessageResourcesFactory.createFactory(); MessageResources mRes = mFactory.createResources(null);