[OT] Using to test if collection is empty

2003-12-10 Thread Ajay Patil
Hi, I am trying to use the JSTL tag to test if a collection is empty. In terms of java code, I would like to write.. if (products != null && products.size() > 1) { .. } I have written the following in the JSP. ... The above isnt working. The test always fails even if the products collecti

RE: Handle dynamic contents using map backed form

2003-12-10 Thread Andrew Hill
So *thats* what a "map-backed" actionform is! lol, Ive been doing something like that for a while and been wondering if I should investigate these mysterious "map-backed" forms I keep hearing about as a potentially better alternative. However, moving forward, JSDK version 1.4 supports LinkedHashM

Handle dynamic contents using map backed form

2003-12-10 Thread Sharad Acharya
Hi all; From Ted and others comments, it looks like some of you are trying to implement forms that should handle 'real' dynamic contents. In my recent project, I had pleasure to work handling dynamic contents in which the contents to render were not available until the time to render. DynaActio

Re: Problems with Tomcat and nested:iterate + jsp:include

2003-12-10 Thread Arron Bates
Rouven, What Struts version are you running? Arron. > Hi there, > > hope someone has a clue, why this doesn't work with Tomcat, but > works with Resin : > > I have a tile, where i want to show a treelike menu based on the > monkey example for the struts-nested taglibs, see my code at the

RE: 1.0 to 1.1

2003-12-10 Thread Lucas
Thanks! Any online resources? Lucas From: Marcus Peixoto [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:55 PM To: Struts Users Mailing List Subject: Re: 1.0 to 1.1 Struts in Action by Ted Husted Chapter 16 -

Re: Can large upload cause tomcat hanging?

2003-12-10 Thread Martin Cooper
"Lukas Bradley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Understood, but this is a Jakarta rule, not a standard Internet rule. > > You cross-posted to at least two Jakarta mailing lists. The rule applies. > > I cross posted nothing. Zsolt did. Sorry - I wasn't paying pro

Re: 1.0 to 1.1

2003-12-10 Thread Marcus Peixoto
Struts in Action by Ted Husted Chapter 16 --- Begin Message --- Dear all, I'm in the process of upgrading a pretty large application from Struts 1.0 to 1.1. Do you know any documentation/guidelines that I can attend to in order to assist me in the process? Thanks a bunch. Lucas

Re: Can large upload cause tomcat hanging?

2003-12-10 Thread Lukas Bradley
> > Understood, but this is a Jakarta rule, not a standard Internet rule. > You cross-posted to at least two Jakarta mailing lists. The rule applies. I cross posted nothing. Zsolt did. I was just wondering why people are extremely sensitive about what I consider to be valid cross posts. Lukas

Re: Can large upload cause tomcat hanging?

2003-12-10 Thread Martin Cooper
"Lukas Bradley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > http://jakarta.apache.org/site/mail.html > > http://www.catb.org/~esr/faqs/smart-questions.html#forum > > > The first lists the rules you agreed to abide by when you subscribed to > the > > list. This includes the ru

1.0 to 1.1

2003-12-10 Thread Lucas
Dear all, I'm in the process of upgrading a pretty large application from Struts 1.0 to 1.1. Do you know any documentation/guidelines that I can attend to in order to assist me in the process? Thanks a bunch. Lucas - To unsub

Re: Can large upload cause tomcat hanging?

2003-12-10 Thread Lukas Bradley
> http://jakarta.apache.org/site/mail.html > http://www.catb.org/~esr/faqs/smart-questions.html#forum > The first lists the rules you agreed to abide by when you subscribed to the > list. This includes the rule "Do not cross post messages". Understood, but this is a Jakarta rule, not a standard

Re: Can large upload cause tomcat hanging?

2003-12-10 Thread Martin Cooper
"Lukas Bradley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > First of all, do *not* cross-post your questions to multiple lists. I'm > > going to reply here and ignore your cross-post to commons-user. > > Why not? I've really never understood why people get upset about this. If

Re: Can large upload cause tomcat hanging?

2003-12-10 Thread Lukas Bradley
> First of all, do *not* cross-post your questions to multiple lists. I'm > going to reply here and ignore your cross-post to commons-user. Why not? I've really never understood why people get upset about this. If the answer may be produced by an investigation or knowledge by Struts users, Tomca

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
Thanks, I figured it out, but it still didn't work. I talked with the lead developer, and we decided to just use session scope for this, and now it works. -Andy -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 4:36 PM To: 'Str

Re: ActionErrors without resource bundle.

2003-12-10 Thread Derek Clarkson
Hi, I don't think it's possible. I've been looking at issues with ActionErrors and ActionMessages and I could not find any constructors that wuld let you pass a message String rather than a key to use in a resource bundle. I have the problem where I an using more than one file with resou

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Yee, Richard K,,DMDCWEST
Andy, Check out http://jakarta.apache.org/commons/collections/apidocs/org/apache/commons/col lections/decorators/LazyList.html With a lazy list, if you try and get using an index that is greater than the size of the list, then it will return an empty object instead of resulting in an ArrayIndexOut

Re: dynamically sized form (mostly solved)

2003-12-10 Thread Mark Lowe
No the form (to the best of my knowledge) has to scoped to session, it all looks like it works using request until you submit. IMO you're best off using standard action forms for this kinda thing dynaform get annoying for several reasons although they do work. On 10 Dec 2003, at 22:01, Andy S

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
Does this mean it's impossible to do through request scope? I am attempting to do this, and it would be nice to know if my work is in vain :) -Andy -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 3:20 PM To: 'Struts Users Mai

Re: Can large upload cause tomcat hanging?

2003-12-10 Thread Martin Cooper
First of all, do *not* cross-post your questions to multiple lists. I'm going to reply here and ignore your cross-post to commons-user. I have uploaded files much, much larger than 70MB without any problems. Try using the struts-upload example, and see if you still have problems. If you do, you ha

Re: dynamically sized form (mostly solved)

2003-12-10 Thread Mark Lowe
What's the problem? On 10 Dec 2003, at 21:20, Yee, Richard K,,DMDCWEST wrote: I thought it worked, but it didn't. -Richard -Original Message- From: Nifty Music [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: RE: dynamically sized form

Validation error: bean not found in any scope

2003-12-10 Thread Ciaran Hanley
Hey can anybody help me with this validation problem please: I have in my JSP page for printing error messages I have in my ActionForm class: public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors error

RE: Tabbed menus using Tiles

2003-12-10 Thread Edgar P Dollin
Try struts-menu at sourceforge. It integrates very well and gives you nice choices for menus without writing a lot of javascript. Edgar > -Original Message- > From: Gopal Venkata Achi [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 10, 2003 3:36 PM > To: Struts Users Mailing List

Re: Drow-Down list HashMap???

2003-12-10 Thread Joe Germuska
See the documentation for the tag: http://jakarta.apache.org/struts/userGuide/struts- html.html#optionsCollection Basically, your value for the "label" attribute would be "value" (the 'property' of a Map.Entry element in each iteration through the Map) and your value for the ""value" attri

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
Would someone be able to point me somewhere that could explain the LazyList? I'm having a very similar problem with my jsp, and I found the javadoc, but I don't understand how to actually instantiate the LazyList... Thanks, Andy -Original Message- From: Nicholas L Mohler [mailto:[EMAIL PR

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Yee, Richard K,,DMDCWEST
I thought it worked, but it didn't. -Richard -Original Message- From: Nifty Music [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: RE: dynamically sized form (mostly solved) Nicholas, What you said definitely makes sense to me. Rich

Re: Tag for adding no-cache header.

2003-12-10 Thread Adam Hardy
On 12/10/2003 09:18 PM Christian Bollmeyer wrote: AFAIK Struts issues only the 'standard three' set of NoCache directions, so the IE extensions are not there. The same is true from wget -S 3 Pragma: No-cache 4 Cache-Control: no-cache 5 Expires: Thu, 01 Jan 1970 00:00:00 GMT Adam -- struts 1.1 +

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Nifty Music
Nicholas, What you said definitely makes sense to me. Richard graciously replied off-list with a similar response. I remember reading documentation which stated that when using dynamic arrays with DynaForms, it is necessary to place the DynaForm in session scope. However, I 'm almost positi

Re: Tabbed menus using Tiles

2003-12-10 Thread Marcus Peixoto
Here is a simple code to create tabbed menus. I guess it's easy to convert it to Tiles. Just create a new JSP page and drop this code on it. Daily Data Survey
    .tab{
color: navy;
background-c

RE: Tabbed menus using Tiles

2003-12-10 Thread Fullam, Jonathan
Look into using the struts-menu libraries. It contains tabbed menus. http://raibledesigns.com/wiki/Wiki.jsp?page=StrutsMenu -Jonathan -Original Message- From: Gopal Venkata Achi [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 3:36 PM To: Struts Users Mailing List Subject: Tab

Tabbed menus using Tiles

2003-12-10 Thread Gopal Venkata Achi
Hi All, I am presently designing a web application, and curious to learn whether there is any way we can create and use the tabbed menus using Struts libraries. We have chosen tiles for the layout design already. I appreciate any help. cheers gopal --

Re: Tag for adding no-cache header.

2003-12-10 Thread Christian Bollmeyer
Am Mittwoch, 10. Dezember 2003 18:30 schrieb Trieu, Danny: > If I remember correctly, I think the request processor did exactly > what you did on 2. And I think (1) approach is better and it > consistent with MVC. Just make sure that all of your request will go > through the FrontController then

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Nicholas L Mohler
The reason you get the null pointer exception is that the "inventoryList" property in your DynaActionForm is created empty. The exception occurs when Struts tries to populate inventoryList[0].startNumber or inventoryList[0].endNumber. Even though I haven't used the DynaActionForm, I know tha

Re: logic tag using locale

2003-12-10 Thread Ted Husted
I'd suggest resolving this type of language choice in the Action. For example, there could be one product bean that is populated with whatever language is preferred by the client. The page could then just write whatever has been placed into the bean. HTH, Ted. Tsang, F (Fred) wrote: All, I'm

Re: session.invalidate() throws exception.

2003-12-10 Thread Martin Gainty
so you call invalidate() Causes this representation of the session to be invalidated and removed from its context. then you call get on the invalidated session.. Reminds me of the construction worker who said no matter how many times I cut this it's still too short.. Think about it.. -Martin -

Re: Incompatibility between STRUTS TAGS and JSTL TAGS

2003-12-10 Thread Christian Bollmeyer
Am Mittwoch, 10. Dezember 2003 17:57 schrieb Todor Sergueev Petkov: > When I try JSTL > > > > > > doesn't work... The above code looks for *attributes* in request scope, not parameters. To access parameters via JSTL, you have to make use of the implicit EL variable (actually a java.util.Map) n

Re: getServletContext() throws null pointer

2003-12-10 Thread Oliver Meyn
On Wed, 2003-12-10 at 12:55, Richard Yee wrote: > Oliver, > In the last email I sent, I should have asked if you > overrode the init(ServletConfig) method in the servlet > that is having the null pointer exception, not your > init servlet. > Oh I see - sorry but before testing Claire's hypothesis

Re: getServletContext() throws null pointer

2003-12-10 Thread Oliver Meyn
On Wed, 2003-12-10 at 12:50, Claire Wall wrote: > as i understand it, in order to retrieve the servlet context, you need to > use the ServletConfig to retrieve it like so: > > config.getServletContext() > > > this sounds similar to a problem that i had where i was trying to log > something from

Can large upload cause tomcat hanging?

2003-12-10 Thread Zsolt Koppany
Hi, I uploaded a 70Mb file using struts-1.1. The JVM process (jre-1.2.4_02, Linux, SuSe-8.1) got much larger and a couple of hours later tomcat didn't react to the most of the events. What can be the reason? Additionally I found strange the tomcat didn't create the localhost_log... files since the

RE: .do's come back as 404 file not found

2003-12-10 Thread Dhaliwal, Pritpal (HQP)
I have concluded that it is not a struts problem.. My application server is doing some wrong. 404 is being sent my Apache, and not my Application Server. Apache sits in front of the application server. So my application server is not notifying apache that requests for *.do should come to the app s

Re: 'Module scoped' variables

2003-12-10 Thread Joe Germuska
On Dec 10, 2003, at 10:47 AM, Fullam, Jonathan wrote: Yes. I actually thought of that issue after I replied to you. Another option you can look into is subclassing the ControllerConfig class and specify your new Config class in the className attribute of the controller element in each of your m

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Nifty Music
I apologize in advance if this comes through twice. Our email server was having issues this morning, so I'm resending it in case it didn't make it out the first time. Thanks! I am attempting to do something similar to what has been posted here in the current Struts application that I'm working

RE: Validation: Problem with datePattern and JavaScript

2003-12-10 Thread Andy Schmidgall
It looks like the following line of code (in the date validator rule in validator-rules.xml) loads the pattern: var datePattern = oDate[x][2]("datePatternStrict"); As far as I can tell, nothing is ever loaded for plain "datePattern", and this matches up with my experiences of using datePattern (i

logic tag using locale

2003-12-10 Thread Tsang, F (Fred)
All, I'm trying to do a bean:write based on the user's current language. Before you ask, this isn't just internationalization using the properties files. I'm displaying item attributes stored in a database, where there are german and english descriptions. I know I can set a bean in my action and

Re: When HashMap will replace ActionForm ?

2003-12-10 Thread Ted Husted
As mentioned, you can use a map-backed ActionForm to store whatever fields you need without defining them elsewhere. http://tinyurl.com/ymkr You do need to code the forms a little differently, and your forms still need to know what properties/entries to ask for. Personally, I would strongly re

Re: deployment environment

2003-12-10 Thread Kirk Wylie
struts wrote: Hi, I have an intranet application created locally struts framework, tomcat/with a sybase database. I want to distribute to the intranet sites of other users. So basically I need to install tomcat, JDK, .war and the database engine. So my question... What is the best way to insta

JavaScript validation of indexed properties

2003-12-10 Thread Andy Schmidgall
Hello, I'm using Struts 1.1, and I have a jsp that is using indexed fields that I need to validate using javascript. It seems as though the struts validator just ignores javascript validations on my fields completely! For example, if it is the only field that uses a particular validator, say integ

Re: getServletContext() throws null pointer

2003-12-10 Thread Richard Yee
Oliver, In the last email I sent, I should have asked if you overrode the init(ServletConfig) method in the servlet that is having the null pointer exception, not your init servlet. -Richard --- Oliver Meyn <[EMAIL PROTECTED]> wrote: > Hi, > > I've put an object into the ServletContext with an

Re: [OT] Log4J and Pre-Processor

2003-12-10 Thread Kirk Wylie
Tim Lucia wrote: Would you rather have that 5ns, or the ace-in-the-hole where you can debug your app in an installed production environment by turning on (assuming you don't use the final static boolean method) the appropriate logger? This has been extremely helpful in debugging. It also catches

Re: Validation: Problem with datePattern and JavaScript

2003-12-10 Thread Zakaria khabot
Hi, Do u have an example of using validate-rules.xml in a JSP file. Thanks - Original Message - From: "Rouven Gehm" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, December 04, 2003 1:53 PM Subject: Validation: Problem with datePattern and JavaS

Re: getServletContext() throws null pointer

2003-12-10 Thread Claire Wall
as i understand it, in order to retrieve the servlet context, you need to use the ServletConfig to retrieve it like so: config.getServletContext() this sounds similar to a problem that i had where i was trying to log something from a servlet, just used the log() method and it through an exceptio

Re: How to detect that session has expired ?

2003-12-10 Thread Kirk Wylie
D'oh! That's the one I ment, not ServletContextListener. Kirk "Must proofread before sending" Wylie M7 Corporation Curtis Taylor wrote: HttpSessionListener is your friend...;-) http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html Kirk Wylie wrote: > Ashis

Re: ActionErrors without resource bundle.

2003-12-10 Thread Ted Husted
You can put a single entry in the bundle general.error={0} and use this with all your error messages. HTH, Ted. Antony Paul wrote: Hi, I want to display error messages saved in Action class using saveErrors without looking at resource bundle. Instead of the key provide message. Possible ?

Re: Incompatibility between STRUTS TAGS and JSTL TAGS

2003-12-10 Thread Kris Schneider
You seem to be confusing request parameters and request attributes (or request-scoped variables). Try: JSTL gives you two ways (implicit objects) to get at request parameters: param a Map that maps parameter names to a single String parameter value (obtained by calling ServletRequest.getParamet

RE: Tiles setup question

2003-12-10 Thread Richard Hill
Thanks David for explaining this so clearly. I now understand the problem and have been able to get my application working. Thanks Tim for your help too. - Richard -Original Message- From: Hibbs, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 6:43 AM To: Richard Hill

Re: getServletContext() throws null pointer

2003-12-10 Thread Oliver Meyn
On Wed, 2003-12-10 at 12:18, Richard Yee wrote: > Oliver, > Are you overriding init(ServletConfig config) in your > init servlet? If so, did you call super.init(config) > before you tried accessing the ServletContext? > I'm not overriding init(config) but I am overriding init(). I hadn't been cal

Drow-Down list HashMap???

2003-12-10 Thread Mauricio T. Ferraz
How can I generate I dropDown List with a HashMap getting the key(HashMap) how value(HTML) and the value(HashMap) how name(HTML) With this HashMap: HashMap map = new HashMap(); map.put("1","test1"); map.put("2","test2"); map.put("3","test3"); map.put("4","test4"); And I want

Re: When HashMap will replace ActionForm ?

2003-12-10 Thread Gus Heck
In my experience (with Ant mostly) the best way to get anything started in an apache project is with a patch submitted in the bugzilla :) Gus Antony Paul wrote: Hi, Is there any move to support HashMap in place of ActionForm ?. I dont want to start any argument. I have read a lot on Acti

RE: Tag for adding no-cache header.

2003-12-10 Thread Trieu, Danny
If I remember correctly, I think the request processor did exactly what you did on 2. And I think (1) approach is better and it consistent with MVC. Just make sure that all of your request will go through the FrontController then all of your response will have it header set with no-cache. --danny

Re: Tag for adding no-cache header.

2003-12-10 Thread Sylvain Cliche
1- Does someone know precisely what headers are added to HTTP responses when adding the following to the controller element of the struts-config file ? 2- I am currently using the following to disable user-agent cache inside of my Struts Actions. Does anyone know if the solution mentionned in (1

Re: getServletContext() throws null pointer

2003-12-10 Thread Richard Yee
Oliver, Are you overriding init(ServletConfig config) in your init servlet? If so, did you call super.init(config) before you tried accessing the ServletContext? -Richard --- Oliver Meyn <[EMAIL PROTECTED]> wrote: > Hi, > > I've put an object into the ServletContext with an > init servlet start

RE: getServletContext() throws null pointer

2003-12-10 Thread Oliver Meyn
On Wed, 2003-12-10 at 12:12, Trieu, Danny wrote: > Constructor is the answer to your problem. There are no guarantee that the > servlet that set the data will be loaded before the servlet that accessing > it. > I'm attempting to make that guarantee but I can see how the servlets might not care.

RE: getServletContext() throws null pointer

2003-12-10 Thread Trieu, Danny
Constructor is the answer to your problem. There are no guarantee that the servlet that set the data will be loaded before the servlet that accessing it. Danny Trieu Internet Business Group Downey Savings and Loan Association, F.A. [EMAIL PROTECTED] (949) 509-4564 "The beginning of knowledge

getServletContext() throws null pointer

2003-12-10 Thread Oliver Meyn
Hi, I've put an object into the ServletContext with an init servlet started on load via web.xml. Accessing it with my main Action works fine, but when I try to use another servlet (extend HttpServlet) to getServletContext() it throws a null pointer exception (doesn't just return null - goes strai

Question about logweb

2003-12-10 Thread Fabrice BLANQUART
Hi, I try to use the logweb application from codeczar and I have problem with the Jdk 1.3. Is there someone who knows how to get the source ? I try the web site but the information about the cvs access seems for me incorrect. Rgs -- Fabrice BLANQUART Banque COVEFI ---

Incompatibility between STRUTS TAGS and JSTL TAGS

2003-12-10 Thread Todor Sergueev Petkov
Hello everybody. I have a small problem that maybe someone has already had in the past. In a jsp page I try to retrive request parameters thus ( STRUTS + Jakarta TAGLIBS ) : Name: Value: and this works fine... When I try JSTL doesn't work... The names of the the request parameters tha

Re: When HashMap will replace ActionForm ?

2003-12-10 Thread Guido García Bernardo
or "philosophical purity should always yield to pragmatism" Hookom, Jacob wrote: Anyone who's done major business application development knows that academic arguments on programming 'style' get thrown right out the window in favor of efficient progress ;-) -Original Message- From: Trieu,

RE: 'Module scoped' variables

2003-12-10 Thread Fullam, Jonathan
Yes. I actually thought of that issue after I replied to you. Another option you can look into is subclassing the ControllerConfig class and specify your new Config class in the className attribute of the controller element in each of your modules. You could then build in the functionality to

RE: PlugIn Scheduler

2003-12-10 Thread Trieu, Danny
Huh, I don't know if managing your own Thread is recommended by container. Is there another way around this? Like JMX or implement the service action and have a Demom periodically ping that service action to execute the intense action? -danny Danny Trieu Internet Business Group Downey Savings

RE: When HashMap will replace ActionForm ?

2003-12-10 Thread Hookom, Jacob
Anyone who's done major business application development knows that academic arguments on programming 'style' get thrown right out the window in favor of efficient progress ;-) -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 10:38 AM To:

RE: When HashMap will replace ActionForm ?

2003-12-10 Thread Trieu, Danny
I don't want to offense any one, and all though HashMap or DynaWhatever are convenience, but isn't it anti OO? Meaning there are no type checking, and you are just passing a bag of chunk around? Danny Trieu Internet Business Group Downey Savings and Loan Association, F.A. [EMAIL PROTECTED] "T

RE: Tag for adding no-cache header.

2003-12-10 Thread Fullam, Jonathan
Setting the nocache in the web.xml has actually been deprecated. A better solution for you is to set the nocache header as an attribute inside the controller element of you struts-config file. -Jonathan -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED] Sent: Wednesday, De

RE: 'Module scoped' variables

2003-12-10 Thread Lawrence Williams
Thanks Jonathan, That's kind of the half solution I have at present - the problem is I have to specify the parameter in all my actions as it is 'global to the module'. This makes changing the value a bit tedious. Does this make sense? Regards Lawrence -Original Message- From: Fullam, J

RE: Tag for adding no-cache header.

2003-12-10 Thread Trieu, Danny
In your deployment descriptor, web.xml, you can can set the ActionServlet's parameter no-cache=true. The container will take care of this for you as long as all of your request go through the FrontController. Danny Trieu Internet Business Group Downey Savings and Loan Association, F.A. [EMAIL

RE: 'Module scoped' variables

2003-12-10 Thread Fullam, Jonathan
Not sure if it's exactly what you want but I know you can use the parameter attribute of the action tags to specify a value that is accessible using mapping.getParameter() from withing you Action class. -Jonathan -Original Message- From: Lawrence Williams [mailto:[EMAIL PROTECTED] Sent:

RE: session.invalidate() throws exception.

2003-12-10 Thread Trieu, Danny
Usually, it is a bad idea to do these thing inside a JSP(or View). Front Controller is where you want to do all these tuff. Sure, you can query the session object before you invalidate its or just try/catch IlligalStateException and ignore it. Danny Trieu Internet Business Group Downey Savings

'Module scoped' variables

2003-12-10 Thread Lawrence Williams
Hi, Hope this isn't too naïve a question Is there anyway of setting parameters in a module-level struts-config file and referencing those variables within an action? Effectively giving me a module scope. Regards Lawrence --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus

Re: deployment environment

2003-12-10 Thread Gus Heck
This gave me a crazy idea, and I don't know if it works, but I wonder if one could use JNLP/webstart to handle this since it has facilities for handling JDK requirements and such. I am not sure how you get the war file deployed that way, but it could possibly pull a pre-configured tomcat I

RE: logic tag using locale

2003-12-10 Thread Joe Hertz
I've got a similar problem. You could write a scriptlet function that appended the correct languageCode onto your "default" property name and use the result of that string in the bean:write tag. Please let me know if you find a more elegant way around this. > -Original Message- > From:

Multiple Properties Files

2003-12-10 Thread ZCurtis
I have searched the archive and could not resolve my issue. I have a struts-config.xml file where I would like to specify multiple properties files. A "common" properties file for the main application and an "image" properties file. I tried the following: struts-config.xml I see that both pr

deployment environment

2003-12-10 Thread struts
Hi, I have an intranet application created locally struts framework, tomcat/with a sybase database. I want to distribute to the intranet sites of other users. So basically I need to install tomcat, JDK, .war and the database engine. So my question... What is the best way to install this all at o

Re: [OT] using tld inside jar

2003-12-10 Thread Nicolas De Loof
So simple I didn't thik about it ! Thanks. - Original Message - From: "Kris Schneider" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 4:06 PM Subject: Re: [OT] using tld inside jar > Don't put anything in web.xml. Just do thi

Re: [OT] using tld inside jar

2003-12-10 Thread Kris Schneider
Don't put anything in web.xml. Just do this in your JSP: <%@ taglib prefix="string" uri="http://jakarta.apache.org/taglibs/string-1.0.1"; %> Quoting Nicolas De Loof <[EMAIL PROTECTED]>: > Hi all, > > I would like to use the jakarta String-1.0.1 taglib in my app, but tld is > packaged

logic tag using locale

2003-12-10 Thread Tsang, F (Fred)
All, I'm trying to do a bean:write based on the user's current language. Before you ask, this isn't just internationalization using the properties files. I'm displaying item attributes stored in a database, where there are german and english descriptions. I know I can set a bean in my action and

RE: Tiles setup question

2003-12-10 Thread Hibbs, David
IMHO, the documentation is somewhat misleading. I struggled with this for some time before I realized what it was really saying. To clarify: You can use a tiles name as a forward in your struts-config.xml file either as a global-forward or a local forward for an action.

[OT] using tld inside jar

2003-12-10 Thread Nicolas De Loof
Hi all, I would like to use the jakarta String-1.0.1 taglib in my app, but tld is packaged inside jar. I use tomcat 4.1.27, that is servlet 2.3 compliant so taht should be able to use this taglib "as is", but I don't know what to set in web.xml as element (especially for ) Could you help me p

RE: token pattern

2003-12-10 Thread Ben Anderson
http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html From: "Kalra, Ashwani" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts (E-mail)" <[EMAIL PROTECTED]> Subject: token pattern Date: Wed, 10 Dec 2003 22:12:52 +0800 hi, Can any one poin

token pattern

2003-12-10 Thread Kalra, Ashwani
hi, Can any one point me to the above pattern documentation/usage used in struts. Thanks & Regds Ashwani Kalra This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group

ActionErrors without resource bundle.

2003-12-10 Thread Antony Paul
Hi, I want to display error messages saved in Action class using saveErrors without looking at resource bundle. Instead of the key provide message. Possible ? Our app does not need internatilisation support and putting all errors related to business logic in resource bundle is unnecessary.

Re: When HashMap will replace ActionForm ?

2003-12-10 Thread Antony Paul
but it prints the form field name like this map(username). I want to get the key as name of form field. here username. possible ? rgds Antony Paul. - Original Message - From: "Fullam, Jonathan" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, Dece

logic tag using locale

2003-12-10 Thread Tsang, F (Fred)
All, I'm trying to do a bean:write based on the user's current language. Before you ask, this isn't just internationalization using the properties files. I'm displaying item attributes stored in a database, where there are german and english descriptions. I know I can set a bean in my action and

RE: When HashMap will replace ActionForm ?

2003-12-10 Thread Fullam, Jonathan
That's where a map-backed Hashmap is useful. -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 6:02 AM To: Struts Users Mailing List Subject: Re: When HashMap will replace ActionForm ? I know that but one have to define 10 to 30 elements

Problems with Tomcat and nested:iterate + jsp:include

2003-12-10 Thread Rouven Gehm
Hi there, hope someone has a clue, why this doesn't work with Tomcat, but works with Resin : I have a tile, where i want to show a treelike menu based on the monkey example for the struts-nested taglibs, see my code at the bottom. On the Resin and WSAD server, the tree is shown correctly, but w

Re: Tag for adding no-cache header.

2003-12-10 Thread Adam Hardy
That xml config tells the struts servlet to put those headers in all responses. If you want to control the headers differently per page, then I guess it won't help. There is no struts taglib to do it, but there may be a jakarta commons-taglib taglib. I'm not sure. Adam On 12/10/2003 01:38 PM A

Re: Tag for adding no-cache header.

2003-12-10 Thread Antony Paul
pls explain. I want to put header in JSP's. The values are //to prevent page-caching in client response.addHeader("pragma","No-cache"); response.addHeader("Cache-Control","no-cache"); response.addDateHeader("Expires",0); rgds Antony Paul. - Original Message - From: "Adam Hardy" <[EMAIL

Re: session.invalidate() throws exception.

2003-12-10 Thread Antony Paul
A sample code is given. Using Tomcat 4.1.27. Struts 1.1 I think downloaded on june 03. <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> <% session.invalidate(); %> Th

RE: session.invalidate() throws exception.

2003-12-10 Thread Milind Kulkarni
It seems that your session is getting killed when you navigate to another site and subsequently when you try to invalidate the session it is giving an error since session is already killed. May be you should check for the existence of session and then if the session exists then only try to invalida

Re: session.invalidate() throws exception.

2003-12-10 Thread Gurpreet Dhanoa
hi Antony Can you please briefly explaing the scope and the error Thanks Gary - Original Message - From: "Antony Paul" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 5:30 PM Subject: Re: session.invalidate() throws exception. >

Re: Tag for adding no-cache header.

2003-12-10 Thread Adam Hardy
On 12/10/2003 12:16 PM Antony Paul wrote: Hi, Does any Struts tag generate the headers necessary to say browser not to cache a JSP page. It still exists as a scriptlet in my JSP. If one is added it will be useful. I think every dynamic page need this. rgds Antony Paul. Put this tag inside the c

Re: session.invalidate() throws exception.

2003-12-10 Thread Antony Paul
Then index.jsp is to be mapped to an action in web.xml. My situation is user goes to another site then returns to home page of our application. rgds Antony Paul. - Original Message - From: "Raman Garg" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday,

Re: session.invalidate() throws exception.

2003-12-10 Thread Raman Garg
Hello Antony Here is a sample of code, hopes this solves your problem... public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse resp

  1   2   >