About Tiles

2004-08-16 Thread Koon Yue Lam
Hi, I want to build a webpage using tiles, the structure is: Header Body Footer super classic layout but I have one question, if the content in Header and Footer are read only and will be nearly the same throughout entire user session. How can I just reload the body part? and keep the Header and

RE: Multiple Tiles Definitions Factories in a servlet context?

2004-08-16 Thread Alef Arendsen
Guys, just wanted to pop this one up again. A user on our list has problems applying multiple tiles definition factories. Is there any way this is possible?? Thanx, Alef Arendsen From: Alef Arendsen Sent: Mon 8/2/2004 10:45 AM To: [EMAIL PROTECTED] Subject:

Re: Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Janne Mattila
With Tiles: without tiles (works fine):

RE: Missing message for key

2004-08-16 Thread Kataria, Satish
Hi, Have you kept the properties file in the classpath. Can you check this? Thanks, Satish -Original Message- From: Bibhu Kalyan [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 10:59 AM To: [EMAIL PROTECTED] Subject: Missing message for key Hi All, I have a typical problem. R

Missing message for key

2004-08-16 Thread dangmp
Return Receipt Your Missing message for key document :

Missing message for key

2004-08-16 Thread Bibhu Kalyan
Hi All, I have a typical problem. Recently I developed a new page with struts 1.1. All the labels of the page come from the properties file. I access these labels with bean:message tag. Example : This works fine in my local server where struts 1.1 is there. When I moved this to remote server w

RE: connection pooling

2004-08-16 Thread Jignesh Patel
Suppose I will put following code in my struts-config.xml instead of tomcat's server.xml will it work as per the expectation for abandoned connection. -Jignesh On Mon, 2004-08-16 at 18:20, Jim Barrows wrote: > > -Original Message- >

Re: Connection and Tomcat server

2004-08-16 Thread Jignesh Patel
I can say, this is purely a connection closing problem. That's the reason when you restart the tomcat it works fine till the time all the connection in the connection pool utilize and then after it hangs. Are u closing your connection in finally block? -Jignesh On Mon, 2004-08-16 at 02:14, Rajes

Re: html:text - want to set disable= to a bean value

2004-08-16 Thread Stuart Guthrie
Thanks Rick. I need to rely on the backend to decide whether to enable/disable as the requirement is a 'business rule' not an interface decision. Here are the factors: - What 'stage' is this row of the table reached determines if this field can be changed or not. - What 'security level' the curre

multiselect with a map-backed form property

2004-08-16 Thread Adam Murray
I have a form with a dynamically generated list of constraints that can be turned on or off, and each constraint has a set of values associated with it. My form has two relevant fields: private String[] selectedConstraints; private Map values; public String[] getSelectedConstraints() { return

Re: html:text - want to set disable= to a bean value

2004-08-16 Thread Stuart Guthrie
Thank you Susan, that looks spot on. I'll try it this AM.. ATB Stuart On Tue, 2004-08-17 at 01:09, Susan Bradeen wrote: > Stuart Guthrie <[EMAIL PROTECTED]> wrote on 08/16/2004 10:01:49 AM: > > > Hi there, > > > > What I'm trying to do is re-use the same jsp for ADD/UPDATE modes. In > > order

RE: connection pooling

2004-08-16 Thread Jim Barrows
> -Original Message- > From: Saurabh Bhatla [mailto:[EMAIL PROTECTED] > Sent: Monday, August 16, 2004 3:16 PM > To: Struts Users Mailing List > Subject: RE: connection pooling > > > Jim, > I understand most part of it now. the only thing that i dont > understand is how will the connec

RE: connection pooling

2004-08-16 Thread Saurabh Bhatla
Jim, I understand most part of it now. the only thing that i dont understand is how will the connection pooling be handled. I am using tomcat 5. will the following code(from the link that u sent me) serve the purpose? . . . .. regards saurabh On Mon, 2004-08-16 at 16:45

Re: Overwritting RequestProcessor, how to???

2004-08-16 Thread David Durham
Rick Reumann wrote: This is another reason why I still think calling validate() manually from your Action is a much better approach then relying on Struts do it for you. If you call form.validate() from your Action you then have control over what you want to do. So in your Action you could do...

RE: connection pooling

2004-08-16 Thread sridhar ramalingam
Saurabh, If you want to do some kind of initialization when your server starts up, you can implement the org.apache.struts.action.PlugIn interface and override the init() method to do your initialization. Check Logon example application, org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn.

Re: connection pooling

2004-08-16 Thread Saurabh Bhatla
yeah, I am planning to use OJB for persistence. Thankx for your advice. regards saurabh On Mon, 2004-08-16 at 16:43, David Durham wrote: > Jim Barrows wrote: > > > Ah, okay.. I also posted a link to the struts way to do the JNDI data > > source stuff in that case.. you follow your web app s

RE: connection pooling

2004-08-16 Thread Jim Barrows
> -Original Message- > From: Saurabh Bhatla [mailto:[EMAIL PROTECTED] > Sent: Monday, August 16, 2004 2:42 PM > To: Struts Users Mailing List > Subject: RE: connection pooling > > > Jim, >I am sorry but I am confused now. Just correct me if I am > wrong I want to call my DAO

Re: connection pooling

2004-08-16 Thread David Durham
Jim Barrows wrote: Ah, okay.. I also posted a link to the struts way to do the JNDI data source stuff in that case.. you follow your web app servers guide on how to setup a data source, then you follow the destructions for a normal jndi data source. Something like: Additionally, Saurabh, hav

RE: connection pooling

2004-08-16 Thread Saurabh Bhatla
Jim, I am sorry but I am confused now. Just correct me if I am wrong I want to call my DAO from my Action class. So the snippet that you sent me would go in my DAO class in the function getConnection() (or something like that). And if what I said is correct then does it mean that I

RE: connection pooling

2004-08-16 Thread Jim Barrows
> -Original Message- > From: Saurabh Bhatla [mailto:[EMAIL PROTECTED] > Sent: Monday, August 16, 2004 2:24 PM > To: Struts Users Mailing List > Subject: Re: connection pooling > > > David, > But i want to make a business layer and call the DAO from there. I > think that the links tha

Re: connection pooling

2004-08-16 Thread Saurabh Bhatla
David, But i want to make a business layer and call the DAO from there. I think that the links that you have sent me couple presentation layer and database tightly. I know i can use EJB for presentation layer but I dont want that as it would be overkill for the small project I am working on. I w

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Jim Barrows
> -Original Message- > From: Michael Finger [mailto:[EMAIL PROTECTED] > Sent: Monday, August 16, 2004 2:22 PM > To: Struts Users Mailing List > Subject: RE: Overwritting RequestProcessor, how to??? > > > Or you look at this as a opportunity to take aspectj for a spin :) *LOL* now thats

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Michael Finger
Or you look at this as a opportunity to take aspectj for a spin :) Mike -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 2:17 PM To: [EMAIL PROTECTED] Subject: RE: Overwritting RequestProcessor, how to??? Frankly, that's a pretty trivial ch

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Joe Hertz
> > Another option is that you can still have your forms over-ride a base > ActionForm and then at the end of the validate method, if you get > errors, you can then call super.validate() which will call your > mySpecificMethod(); of your Super class. I was about to say something like this, but I d

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Frank Zammetti
Frankly, that's a pretty trivial change to make to all your ActionForms, I would in all probability, were it me, just add that code to all of them. Either that or do the base class approach, but that still requires you to touch all the classes. I wouldn't override RequestProcessor for somethin

Re: Overwritting RequestProcessor, how to???

2004-08-16 Thread Rick Reumann
Leandro Melo wrote: Frank, as i said, i only want to call another method everytime validate() fails. That's the only thing i wanna do. If i only overwritte ActionForm and create a MyBaseActionForm, in my specific forms i'd have to do something like this inside validate() method. if (errors != null)

RE: connection pooling

2004-08-16 Thread Jim Barrows
> -Original Message- > From: David Durham [mailto:[EMAIL PROTECTED] > Sent: Monday, August 16, 2004 2:01 PM > To: Struts Users Mailing List > Subject: Re: connection pooling > > > Saurabh Bhatla wrote: > > > Now i want to > > know how to initialize the connection pool object and how >

Re: connection pooling

2004-08-16 Thread David Durham
David Durham wrote: I think you want to look at a piece of technology called JNDI. Here's a link to Tomcat's JNDI Datasource How-To: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html Considering the list topic, I guess I should post this link instead: http://st

Re: connection pooling

2004-08-16 Thread David Durham
Saurabh Bhatla wrote: Now i want to know how to initialize the connection pool object and how to pass that object to all Action classes. I think you want to look at a piece of technology called JNDI. Here's a link to Tomcat's JNDI Datasource How-To: http://jakarta.apache.org/tomcat/tomcat-5.0-do

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Leandro Melo
Frank, as i said, i only want to call another method everytime validate() fails. That's the only thing i wanna do. If i only overwritte ActionForm and create a MyBaseActionForm, in my specific forms i'd have to do something like this inside validate() method. if (errors != null){ mySpecificMeth

connection pooling

2004-08-16 Thread Saurabh Bhatla
Hi all, I have just started working with struts a few days ago, and I understand most of it. The only thing that i dont understand is, if i make a connection pool then where will it be initialized. In servlets I know that it can be done in the init() method but in struts framework there is noth

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Jim Barrows
> -Original Message- > From: Frank Zammetti [mailto:[EMAIL PROTECTED] > Sent: Monday, August 16, 2004 1:15 PM > To: [EMAIL PROTECTED] > Subject: RE: Overwritting RequestProcessor, how to??? > > > Maybe it would be enough to just write your own base class > that extends > ActionForm, h

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Frank Zammetti
Maybe it would be enough to just write your own base class that extends ActionForm, have your "common" code in it, and then extend your ActionForms from that class? If not, take a look at my code from http://www.omnytex.com/strutsws for an example of writing your own command processor. I get t

Re: How to call multiple submits in a jsp form(in STRUTS other than using javascript)

2004-08-16 Thread Frank Zammetti
Alternatively, don't forget that Actions are just classes, and as such you can always instantiate an instance of an Action from within another and call it's execute() method yourself. Your app has to be designed to allow for this, but it's fairly trivial to do so. LookupDispatchAction is I thi

RE: Caching Framework

2004-08-16 Thread sridhar ramalingam
Ravi, Take a look at the logon example again, org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn.java. Regards, Sridhar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 6:54 AM To: [EMAIL PROTECTED] Subject: RE: Caching Framewo

Re: Read only iterate?

2004-08-16 Thread dhay
Mike, The indexed tags do make the code much cleaner. And they are definitely not read-only (as you've discovered, you don't need them if you want things read only!!). There are lots of posts in the archives about it, and I posted working code here: http://www.mail-archive.com/[EMAIL PROTECTED]

RE: error code 404 not used in IE

2004-08-16 Thread Martin Gainty
Did you look at Ted Husted's article on implementing ActionError class? http://www.mail-archive.com/[EMAIL PROTECTED]/msg18580.html HTH, Martin Gainty From: lixin chu <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Subject

Re: Difficult index properties problem

2004-08-16 Thread Nathan Maves
or jsp 2.0! On Aug 16, 2004, at 9:55 AM, Rick Reumann wrote: Rick Reumann wrote: Of course this assumes using html el tags. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: [OT] Open/free SQL Query Wizard

2004-08-16 Thread Nathan Maves
Not web based but i think AquaStudio rocks! Auto-completion of sql! http://www.aquafold.com/ On Aug 16, 2004, at 9:16 AM, [EMAIL PROTECTED] wrote: Anybody aware of any open/free packages that contain a web-based SQL query wizard/editor? Thanks, Dennis-

RE: JSTL duplication of tag content

2004-08-16 Thread Karr, David
What container are you using? > -Original Message- > From: Johan Wasserman - BCX - Infrastructure Services > > Anyone else experiencing duplication of tag contents with JSTL? > > e.g. > > > > > > > > > where: > > form.title=Log new {0} > person.form.name=Person >

RE: Simple design question

2004-08-16 Thread Jim Barrows
> -Original Message- > From: Kenneth Litwak [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 3:54 PM > To: Struts Users Mailing List > Subject: Simple design question > > > I'm trying to teach myself Struts while writing an actual > application . I need to go from an index.

Re: Difficult index properties problem

2004-08-16 Thread Rick Reumann
Rick Reumann wrote: Of course this assumes using html el tags. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Difficult index properties problem

2004-08-16 Thread Rick Reumann
Nathan Maves wrote: I have a 2 layered nested bean. ie Bean1 has n number of associated Bean2 Bean2 has n number of associated Bean3 I want to have a form that has an Array of Bean3's Probem is that while iterating though Bean2's the count for the indexed property gets reset. Any clever ideas to

Difficult index properties problem

2004-08-16 Thread Nathan Maves
Here is the setup... I have a 2 layered nested bean. ie Bean1 has n number of associated Bean2 Bean2 has n number of associated Bean3 I want to have a form that has an Array of Bean3's Probem is that while iterating though Bean2's the count for the indexed property gets reset. Any clever ideas to

Re: [OT] DAO ... where to draw the line?

2004-08-16 Thread Rick Reumann
Matthew J. Vincent wrote: Hi all, Thanks for the info. Here's another issue. What if I have an employee search screen that wants to show only some of the information of an employee (not all). What do you do then? 1. Instanatiate an Employee object and only fill in the relative information? Kee

Re: [OT] Open/free SQL Query Wizard

2004-08-16 Thread James Mitchell
May not be what you are looking for, but I use DbVisualizer.it simply rocks!! Is there a reason it needs to be web-based? Remote access?? If DbVis doesn't work for you, I can give you a copy of a little jsp that I put together that works with DB2. It displays 3 text area inputs, 1 for stra

RE: [OT] DAO ... where to draw the line?

2004-08-16 Thread Robert Taylor
Strategy 3. I would basically have a DAO that handles the search query and returns a collection of value objects for the related use case. When the user clicks on a specific employee, then render the details using your employee DTO. As far as patterns are concerned you may want to take a look as

Re: html:text - want to set disable= to a bean value

2004-08-16 Thread Rick Reumann
Stuart Guthrie wrote: Hi there, What I'm trying to do is re-use the same jsp for ADD/UPDATE modes. In order to do this, certain field attributes will be different depending on the modes and sometimes even on the user's security credentials or the 'status' of the customer row. To this end I need t

[OT] Open/free SQL Query Wizard

2004-08-16 Thread DGraham
Anybody aware of any open/free packages that contain a web-based SQL query wizard/editor? Thanks, Dennis- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: html:text - want to set disable= to a bean value

2004-08-16 Thread Susan Bradeen
Stuart Guthrie <[EMAIL PROTECTED]> wrote on 08/16/2004 10:01:49 AM: > Hi there, > > What I'm trying to do is re-use the same jsp for ADD/UPDATE modes. In > order to do this, certain field attributes will be different depending > on the modes and sometimes even on the user's security credentials

Re: JSTL duplication of tag content

2004-08-16 Thread Kris Schneider
Sure, but then he'd probably be seeing a translation error instead, right? Note that the inner isn't closed either. Seems to work fine for me (using proper syntax) on TC 5.0.27 with Standard 1.0.6 (JSTL 1.0): <%@ page contentType="text/plain" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/js

Re: JSTL duplication of tag content

2004-08-16 Thread Niall Pemberton
Looks like you're not closing thetag: Instead of ... Shouldn't it be: Niall - Original Message - From: "Johan Wasserman - BCX - Infrastructure Services" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 16, 2004 3:20 PM Subject: JSTL duplicatio

Re: AW: error code 404 not used in IE

2004-08-16 Thread lixin chu
this url explains this: http://www.404-error-page.com/404-error-page-too-short-problem-microsoft-ie.shtml --- lixin chu <[EMAIL PROTECTED]> wrote: > sorry, i am new to this, what message ? > > --- "Rosenberg, Leon" > <[EMAIL PROTECTED]> wrote: > > > Send a message with more then 1024 bytes.

Re: Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Niall Pemberton
OK so post the bits of your struts-config which show the forms and action mappings for 1) The action which renders the page 2) The action the form will post to (i.e. "/TilesSaveInputs") Niall - Original Message - From: "Janne Mattila" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Mo

Re: AW: error code 404 not used in IE

2004-08-16 Thread lixin chu
sorry, i am new to this, what message ? --- "Rosenberg, Leon" <[EMAIL PROTECTED]> wrote: > Send a message with more then 1024 bytes. > (resin does it) > > > -Ursprüngliche Nachricht- > > Von: lixin chu [mailto:[EMAIL PROTECTED] > > Gesendet: Montag, 16. August 2004 16:22 > > An: [EMAIL

AW: error code 404 not used in IE

2004-08-16 Thread Rosenberg, Leon
Send a message with more then 1024 bytes. (resin does it) > -Ursprüngliche Nachricht- > Von: lixin chu [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 16. August 2004 16:22 > An: [EMAIL PROTECTED] > Betreff: error code 404 not used in IE > > Hi, > MS IE has default setting: > Tools->Optio

error code 404 not used in IE

2004-08-16 Thread lixin chu
Hi, MS IE has default setting: Tools->Options->Advanced->Browsing->"Show friendly HTTP error message" When it is checked, the IE default error page is used not your own 404 error page. How can I change the http status code in Struts application so that my own 404 page is used ? thanks li xin

JSTL duplication of tag content

2004-08-16 Thread Johan Wasserman - BCX - Infrastructure Services
Anyone else experiencing duplication of tag contents with JSTL? e.g. where: form.title=Log new {0} person.form.name=Person Results in "Log new Person" the first time you open the form and "Log new PersonPerson" the second time and "Log new PersonPersonPersonPersonPerson" the

Re: Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Janne Mattila
Yes. And, (for example) works as long as I take out the multibox part. From: "Niall Pemberton" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: Tiles breaks my page that uses logic:iterate Date: Mon, 16

Re: [OT] DAO ... where to draw the line?

2004-08-16 Thread Matthew J. Vincent
LAST . I promise! Thanks! Hi all, Thanks for the info. Here's another issue. What if I have an employee search screen that wants to show only some of the information of an employee (not all). What do you do then? 1. Instanatiate an Employee object and only fill in the relative information? Ke

Re: Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Niall Pemberton
I'm guessing you changed the action your form is pointing to ("/TilesSaveInputs") - so is the form name still "inputsForm"? > Niall - Original Message - From: "Janne Mattila" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 16, 2004 2:59 PM Subject: Tiles breaks m

html:text - want to set disable= to a bean value

2004-08-16 Thread Stuart Guthrie
Hi there, What I'm trying to do is re-use the same jsp for ADD/UPDATE modes. In order to do this, certain field attributes will be different depending on the modes and sometimes even on the user's security credentials or the 'status' of the customer row. To this end I need to pass in the form be

Tiles breaks my page that uses logic:iterate

2004-08-16 Thread Janne Mattila
I have a simple page for editing some form properties. It works. There's a select box, a multibox, single-select select and a text input field. Now I tried to "Tiles-ify" it, just using Tiles to add some silly decorations around the actual form. Using tiles seems to break the form, the exception

Re: OC4J and struts issue

2004-08-16 Thread simarjit singh
Kindly have a look at my struts-config.xml , i have reduced it almost nothing *** struts-config.xml** http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> ApplicationResources.properties is under WEB-INF/classes ** jsp page **

Re: OC4J and struts issue

2004-08-16 Thread Vic Cekvenich
It's usualy a case issues in some xml, since windows is not case sensetive. Look for that. Next time, if you deploy to unix, develop in unix. .V I am able to run it in windows environment but when i move it to solaris, it is failing.:-( ---

Re: If not logged in, login and redirect do requested page scenario.

2004-08-16 Thread Oli Kessler
Pavel Kolesnikov wrote: On Mon, 16 Aug 2004 [EMAIL PROTECTED] wrote: I'm trying to implement a scenario in which if the user who has not logged in clicks on a link to a page "for logged in users only" should be redirected to "login page", and then if the login operation succeeds another redirecti

Re: OC4J and struts issue

2004-08-16 Thread simarjit singh
it is like <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> so uri is different . Thanks simar Veerabhadra Rao R wrote: In jsp page if you are including the tag lib files like this <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ t

Re: Modifying Tiles definitions dinamically

2004-08-16 Thread Leandro Melo
I'm not sure if i get it right, i still have a couple doubts. Take this definition: ... ... Naturally i got a login page, would i have to redirect the login (or just forward the login) to this "TilesAction" and then manipulate my definition and insert the real jsp page i want??? I have

RE: OC4J and struts issue

2004-08-16 Thread Veerabhadra Rao R
In jsp page if you are including the tag lib files like this <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> your taglib code in web.xml file should be like this /tags/struts-bea

Re: OC4J and struts issue

2004-08-16 Thread simarjit singh
Thanks for quick reply, here is my web.xml entry. it is generated by jdeveloper.it is not manual. I am able to run it in windows environment but when i move it to solaris, it is failing.:-( /WEB-INF/struts-bean.tld /WEB-INF/struts-bean.tld /WEB-INF/struts-html.tld /WEB-INF/struts

Re: Still need help with layered Map iteration in JSP

2004-08-16 Thread Kris Schneider
It's certainly not a bad idea to grab a JSTL book, but the spec itself is quite readable and full of good information: http://jcp.org/aboutJava/communityprocess/final/jsr052/ The only JSTL book I've even partially read is "JSTL in Action" by Shawn Bayern and I have no reservations recommending it

RE: OC4J and struts issue

2004-08-16 Thread Veerabhadra Rao R
Hi, Can you verify the tag lib directives in web.xml. you will get such type of error messages only when there is mismatching in tag lib directives. /tags/struts-bean /WEB-INF/struts-bean.tld /tags/struts-html /WEB-INF/struts-html.tld /tags/struts-logic

OC4J and struts issue

2004-08-16 Thread simarjit singh
Hi, I am getting th following error mesage in OC4J for 9i. javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:793) at org.apache.struts.util.RequestUtils.message(RequestUtils.java

Re: Still need help with layered Map iteration in JSP

2004-08-16 Thread Erik Weber
Kris, once again you have helped me get my work done. bean:size did the trick. I was looking over and over again for a JSTL tag or expression to do this; I probably never would have thought of bean:size. To complete the post for any other reader who is as suicidal as I am after trying to figure

Re: HTTP Compression

2004-08-16 Thread Navjot Singh
Upload file thru activex or applet. Can't see anything to happen from browser(currently) otherwise. - Navjot Singh Shailender Jain wrote: Hi, Using the servlet 2.3 specification one can compress the data (gzip) while sending from server and uncompress on the client (Browser). Has anybody tried,

HTTP Compression

2004-08-16 Thread Shailender Jain
Hi, Using the servlet 2.3 specification one can compress the data (gzip) while sending from server and uncompress on the client (Browser). Has anybody tried, if the reverse can be achieved i.e. the browser always sends a compressed data and webserver decompress it. This can be important when t

Re: Still need help with layered Map iteration in JSP

2004-08-16 Thread Kris Schneider
I guess the first thing to make sure you understand is that, when iterating over a Map, the object exposed by JSTL via the var attribute is of type Map.Entry. It's equivalent to doing a map.entrySet().iterator(). As for getting the size of an array, Collection, or Map, use the tag. Quoting Erik W

Re: Accessing bean properties problem

2004-08-16 Thread Janne Mattila
Janne Mattila wrote: OK, Cap't of the Eh Team! Maybe you should go and add "Note: this is a clear, extensible, light, fast, loosely coupled, solution compared to a messy, solution specific, heavy, slow, tightly coupled version!" to the Wiki page? After all, you have invented an elegant solution

Re: Dynamic add an action mapping ??

2004-08-16 Thread Niall Pemberton
http://struts.apache.org/faqs/newbie.html#reload Why would you want to? Niall - Original Message - From: "Eric Chow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 16, 2004 11:28 AM Subject: Dynamic add an action mapping ?? > Hello, > > Is it possible to add an acti

Dynamic add an action mapping ??

2004-08-16 Thread Eric Chow
Hello, Is it possible to add an action mapping in run-time ? Or is it possible to reload the struts-config.xml in run-time ??? Eric == If you know what you are doing, it is not called RESEARCH! ==

RE: Indexed properties and DynaActionForm

2004-08-16 Thread Jaakko Rytinki
-Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: 12. elokuuta 2004 18:48 To: Struts Users Mailing List Subject: RE: Indexed properties and DynaActionForm > -Original Message- > From: Jaakko Rytinki [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 12, 2004

Re: Accessing Session attribute from action

2004-08-16 Thread Rajesh
Hai use request.getSession(); u can access from request object. vineesh . kumar wrote: Hi all, I wanna do store two values in the session when one logs in and i have to access the two values throughout the pages.also i have to access these two variables from some action classes. How can i do thi

Re: HTML Filtering?

2004-08-16 Thread Niall Pemberton
org.apache.struts.taglib.TagUtils.filter(String) Niall - Original Message - From: "Mike Elliott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 16, 2004 10:44 AM Subject: HTML Filtering? > I have a situation where I need to populate a table with values. Sometimes > th

Re: Accessing Session attribute from action

2004-08-16 Thread Erik Weber
Implement a checkLogin method in a base Action class that returns a User object or similar, whatever you need. This method takes an argument of type HttpServletRequest and looks for the User object in the request's HttpSession. Your Login Action would set this attribute, and your Logout Action

RE: handling multiple independent window

2004-08-16 Thread Kailash Vasani
Thanks Antonio, this seems to be simpler solution. for benefit of all, we have opted to update RequestUtil class of struts so that all the JSPs would now be passing one parameter always. Hence we r doing the same thing, but in slightly differnt way. I wonder whether struts ppl had considered sim

Accessing Session attribute from action

2004-08-16 Thread vineesh . kumar
Hi all, I wanna do store two values in the session when one logs in and i have to access the two values throughout the pages.also i have to access these two variables from some action classes. How can i do this thanks, vinu

Still need help with layered Map iteration in JSP

2004-08-16 Thread Erik Weber
OK, I'll take ANY WAY TO DO THIS AT ALL. I have a c:forEach over a Map. The value for each key in the Map can be an array of objects, or I can make it a List. I don't care at this point. All I want to do is get the length of this array or List, before I start iterating over *it*, during the curr

HTML Filtering?

2004-08-16 Thread Mike Elliott
I have a situation where I need to populate a table with values. Sometimes those values are empty. Mozilla, for reasons outside of this discussion will not fully render a table datum that is empty; that is, it will render nothing (correctly) but also not render the border of the table datum ei

Re: Overwritting RequestProcessor, how to???

2004-08-16 Thread Niall Pemberton
Although you haven't specified the TilesRequestProcessor in the element the TilesPlugin automatically changes it to TilesRequestProcessor. If you do however specify your own custom RequestProcessor in the element and you use tiles then if it doesn't extend TilesRequestProcessor then the TilesPlu

RE: Mapping ActionPath to a method in DispatchAction

2004-08-16 Thread Amit Kumar Sharma
Try lookupDispatchAction instead of DispatchAction and have a message resources(applicationresource.properties) for the mappings...that you way you can achieve multiple submits as well as no need to check for the method parameter. You need to check for the html:submit code for that. Regards Amit

Re: If not logged in, login and redirect do requested page scenario.

2004-08-16 Thread Pavel Kolesnikov
On Mon, 16 Aug 2004 [EMAIL PROTECTED] wrote: > I'm trying to implement a scenario in which if the user who has not > logged in clicks on a link to a page "for logged in users only" should > be redirected to "login page", and then if the login operation succeeds > another redirection takes the use

Re: Modifying Tiles definitions dinamically

2004-08-16 Thread brenmcguire
think the best (and the most elegant) way to make dynamic tiles is by using TilesAction. This because this class has knowledge of the use of Tiles. So write your TilesAction (it is similar to a plain Action, except of some more parameters in the "execute" method). In the "execute" method put your c

RE: Action Servlet not getting called.

2004-08-16 Thread Jitender K Chukkavenkata
Hi Veera, You have used an identifier called employees for logic:iterate name attribute. The name should be a valid bean name defined in any scope. I guess you are giving a wrong reference. Try giving a valid bean reference that exist in any scope. Regards, Jitender Kumar C.V.

Re: Need help with layered Map iteration in JSP

2004-08-16 Thread Erik Weber
I have a c:forEach where "items" refers to a Map, and "var" refers to the current Map entry. The value for each Map entry is an array. How do I switch on the length of this array? I tried this: But I get a syntax error; it says I supplied the "." operator with an index value of type "java.la

RE: If not logged in, login and redirect do requested page scenario.

2004-08-16 Thread Aru
Dei.. Kaelvi ium kaettuttu Pathilum neeyae solluriyaa? :) Uthai vilum :)) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 3:22 PM To: [EMAIL PROTECTED] Subject: If not logged in, login and redirect do requested pag

If not logged in, login and redirect do requested page scenario.

2004-08-16 Thread hicnar_struts_list
Hi, Some pages in the site I'm working on should be available only for users who have previously logged in, but links to them may appear on pages that area accessible for anybody. I'm trying to implement a scenario in which if the user who has not logged in clicks on a link to a page "for logg

RE: Action Servlet not getting called.

2004-08-16 Thread Veerabhadra Rao R
Hi, I am getting the following error while running a sample struts application from MasteringJakartaStruts pdf file. javax.servlet.ServletException: Cannot find bean employees in any scope at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:478)