Re: Where should I store image files?

2001-12-17 Thread Sarath Chandra .K
Hi antony, IF you put the image files in the directory structure that contains your webapp, you might hit a security situation where a clever user can directly access these directories with a normal http request to the file. It would not be very difficult to guess your image directory str

Performance issue

2001-12-17 Thread saisrinivas
Hi, I would like to know the impact in Performance context if There are so many fields in SingleBean which I'm using in an application Could someone throw some light on that... Regards Sai -- To unsubscribe, e-mail: For additional commands, e-mail:

StrutsTestCase for JUnit -- Question

2001-12-17 Thread Joncker, Oliver
Hi! I just found StrutsTestCase for JUnit and started using it for testing my web site. Just after I started to write my tests, I got into troubles and I couldn't find an answer to my question in the javadoc. I have a web site that first starts with a login page. Then, if the login is successf

R: Hi I'm totally new, yes a total idiot on STRUTS ;-) but a free guy

2001-12-17 Thread Samuele Brignoli
Yes I can buy of course. But Who can tell me that tomorrow you at jcorporate make me pay 20.000 $ for Expresso. In that case I can' t move away to ensure my applications still works. I use Java hoping to be free from platforms and sqlservers and app servers etc. Why do I have to purchase Expresso?

bean- performance

2001-12-17 Thread saisrinivas
Hi, I would like to know the impact in Performance context if There are so many fields in SingleBean which I'm using in an application Could someone throw some light on that... Regards Sai -- To unsubscribe, e-mail: For additional commands, e-mail:

example for displaying tables?

2001-12-17 Thread Sunil Mandya
Hi everyone, Is there an eaxmple out there for displaying table data? How do I use iterate? With the code below, it just prints Next element is Thanks for any help. Sunil Here's my jsp: Test.jsp: Next element is My Form: TestForm public class TestForm extends ActionForm { priv

RE: example for displaying tables?

2001-12-17 Thread Cuperus, Bob
Hello: Whatever is inside the iterate will be replicated on each iterate. Here's an example that might work for you...but it really depends on what you are looking for when the data is output. This is my data You could a

objective html

2001-12-17 Thread keithwong
Hi everyone, I'm working on an open source project called "Objective html". Its a toolkit that aims at making html form development similar to the code you would write for something like Java-Swing. I've also got an example of how you can use Struts with Ohtml, I'm hoping some people on this ma

RE: example for displaying tables?

2001-12-17 Thread Keith Bacon
Sorry if I'm off the mark here but I think, 1 - Change your iterate tag so name="myTestForm" The iterate tag will the look for a bean named myTestForm. 2 - In your action class create that bean:- request.addAttribute("myTestForm", new TestForm()); keith. --- "Cuperus, Bob" <[EMAIL PROTEC

Populate ActionForm with an XML DOM object

2001-12-17 Thread ltorrence
I have a back-end data source that provides me with an XML object. I'd like to populate an ActionForm based on that XML. Is there sample code like this somewhere? Most uses of the Digester I've seen deal with loading config files, or an initial load of an in-memory database. Would the Digester be

RE: Populate ActionForm with an XML DOM object

2001-12-17 Thread sven . ehrke
> I have a back-end data source that provides me with an XML > object. I'd like > to populate an ActionForm based on that XML. Is there sample > code like this > somewhere? In my project we are using JAXB http://java.sun.com/xml/jaxb/ which is works perfect and is very convenient to use.

form bean populated from wrong request

2001-12-17 Thread Mâris Orbidâns
hello Did you see my last email ? About form bean populated from wrong request. so... Is it possible to remove parameters from request before forwarding ? Maris -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Populate ActionForm with an XML DOM object

2001-12-17 Thread Pete Carapetyan
> I have a back-end data source that provides me with an XML object. I'd like > to populate an ActionForm based on that XML. Is there sample code like this > somewhere? > There may be more straightforward answers than this, but if all else fails, Expresso extends ActionForm and then also has buil

Re: My implementation of Action chaining - Fixed

2001-12-17 Thread Keith Bacon
Hi Tuomo, I've had a quick look - seems good. I only do struts part time so I can't really keep up with you, which is a shame. I'll try to use your code - if you'd like to post it here or mail latest version(s). Someone is working on a workflow component for struts, which I think is the same job

Re: form bean populated from wrong request

2001-12-17 Thread Keith Bacon
In Struts a request is forwarded to another jsp - & those parameters are part of the 'request'. In the case where the 1st jsp exams the request & routes it to an appropriate action to handle it you might want struts to work as it does now. It's common to have code in your action class that detect

RE: form bean populated from wrong request

2001-12-17 Thread Mâris Orbidâns
yes, this might help. But I haven't found any code example yet. Maris -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 3:32 PM To: Struts Users Mailing List Subject: Re: form bean populated from wrong request In Struts a request is forw

Dispatch Action Conundrum

2001-12-17 Thread Andrew B Forman
I'm having trouble utilizing the DispatchAction correctly. I've a page of links which serve as section areas for my application. Each of them will need to call an action to setup the data & forward to the correct jsp. >From what I've read, it seems that the DispatchAction is perfectly suited f

AW: Populate ActionForm with an XML DOM object

2001-12-17 Thread Hudayioglu, Fehmi
Hi, I have done reading XML file thing in JSP. this works with jaxp1.1.3 (if you dion't have this in your application server, just put in the lib directory of your application - tmcat 4 doesnot require this anyway). In the attachment you can find useful methods hope work fine. good luck. fehmi.

This would be a question for Kyle Brown, however ...

2001-12-17 Thread Marco Spadoni
... however I think that it could be interesting to other people I am interested into understanding more deeply the sentence below in your paper at http://www7.software.ibm.com/vad.nsf/Data/Document2557?OpenDocument&p=1&BCT= 1 namely: "Another potential mismatch is in trying to apply Struts t

how to detect which form is being posted ?

2001-12-17 Thread Mâris Orbidâns
>It's common to have code in your action class that >detects whether it was started from it's form being >posted or elsewhere. (lots of posts about how to test >for this). How to do it ? >If coming from elsewhere you just ignore >whatever values are in the formbean. >Does this help? thanx

[ANN] Mapper ActionForm-to-Value Object and back

2001-12-17 Thread Sobkowski, Andrej
Hi All, after reading a lot about problems related to mapping an ActionForm (somehow a "set of String properties mapping the data on the Presentation layer") to more business-oriented objects (Value Objects for example), I've written a simple "mapper" that will allow you to: - keep 'em separated

Checkbox's question.

2001-12-17 Thread Hong Xing
Hi all, I am a newbie. I used in my work. But it worked strange. When I first view the page and submit the form, the checkbox is OK. Then if I view the page again and change the checkbox's state, the checkbox is not ok. It's always checked. How to fix it? public void setOpenWind

Re: how to detect which form is being posted ?

2001-12-17 Thread Keith Bacon
Here it is - this is my way - a design pattern copied from non-strus programs. == in your jsp === in your action class EditUserForm thisForm = (EditUserForm) form; String formName = thisForm.getFormName(); if (formName == n

Re: Struts/FOP

2001-12-17 Thread Sandeep Takhar
when you emit RTF, can the users edit this format (unlike PDF). is there an import into word and does it lose the formatting? sorry for my ignorance. Sandeep --- Vic Cekvenich <[EMAIL PROTECTED]> wrote: > Cocoon and Struts are different. > Since I wanted to avoid server side production load > i

html:errors handling

2001-12-17 Thread Frédéric Houbie - ABSIS-GROUP
Hi, I have a strange behaviour in my application. in my logonaction, I do some check, when error occurs, I use errors.add(xxx, "yyy") to set some errors. But when I use tag to display it, I get "null My_Error null", so my error message is preceded by null text et followed by null text. I don't u

RE: html:errors handling

2001-12-17 Thread Barry Jia
did you set your error text in your application resource file ? -Original Message- From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 11:22 AM To: Struts-User Subject: html:errors handling Hi, I have a strange behaviour in my application. in

RE: Files download

2001-12-17 Thread Thinh Doan
Thanks Daniel. Almost missed it. Will give it a try and let you know. Thinh -Original Message- From: Daniel WAMARA 2 [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 2:54 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Files download I know none but I made

RE: Checkbox's question.

2001-12-17 Thread Jesse Alexander (KABS 11)
Hi, use the form's reset()-methode. why: - check out the links in the Struts resource area - search the mailing list archive regards Alexander Jesse -Original Message- From: Hong Xing [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 4:06 PM To: [EMAIL PROTECTED] Subject: Che

RE: html:errors handling

2001-12-17 Thread Jesse Alexander (KABS 11)
Hi, have you defined the errors.header and .footer texts in the application resource file? hope this helps Alexander Jesse -Original Message- From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 5:22 PM To: Struts-User Subject: html:errors handl

Form Bean with a Mutliselect box

2001-12-17 Thread Stiles, Brian
Ahhh! I have a struts form on a jsp page that uses a select box that allows multiple selections. I am wondering how to setup my form bean to handle this or if struts will even do it. I have tried using an Array getter and setter in the form bean, and an Array List, but I continue to get a argum

RE: html:errors handling

2001-12-17 Thread Keith Bacon
Frédéric, I think you need these 2 lines in your ApplicationResources.properties file. (obviously the html can be different (maybe just  ) errors.header= errors.footer= Struts assumes you will always have them (it should default to a null string if you don't - I think it maybe does in later vers

RE: html:errors handling

2001-12-17 Thread Frederic Houbie - ABSIS-GROUP
Great helps, thanks -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: lundi 17 decembre 2001 17:44 To: Struts Users Mailing List Subject: RE: html:errors handling Fridiric, I think you need these 2 lines in your ApplicationResources.properties file. (obviously the

Good taglib to format number

2001-12-17 Thread Frédéric Houbie - ABSIS-GROUP
Which taglib are you using to format number, date, using Locale config of Browser ? Thanks Frederic Houbie ABSIS GROUP -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Checkbox's question.

2001-12-17 Thread Linnea Ahlbeck
Hi! Use the reset method in the form bean: public void reset(ActionMapping mapping, HttpServletRequest request) { openWindow= false; } This is a well known problem, see link: http://www.jguru.com/faq/view.jsp?EID=471957 Good luck / Linnéa - Original Message - From: "Hong Xing"

Re: howto set

2001-12-17 Thread Keith Bacon
did u get an answer - in case you didn't. Does this line put outside the wrote: > > I am trying to extract my ActionForm's .getApp() > property into the > 'value=""' attribute. > > value=" name="AttributesForm" property="app"/>"> >labelProperty="applicationLabels" /> > > > > But I

RE: Form Bean with a Mutliselect box

2001-12-17 Thread Siggelkow, Bill
I have done this by with getter/setter that uses an array of Strings as follows: public String[] getMergeeIds() { return mergeeIds; } public void setMergeeIds(String[] ids) { this.mergeeIds = ids; } Then in my form I use the multiple=true ... -Orig

RE: example for displaying tables?

2001-12-17 Thread Sunil Mandya
Thanks folks! Has anyone used the struts-layout library from Improve? Sunil -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 3:29 AM To: Struts Users Mailing List Subject: RE: example for displaying tables? Sorry if I'm off the mark here

RE: howto set

2001-12-17 Thread SHURTLEFF,ROBERT (HP-FtCollins,ex1)
Yes, Works just fine outside! Tested it that way before embedding inside of other tag. I will try the single-quote approach. Thanks! Robert -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 9:59 To: Struts Users Mailing List Subject: Re: h

accessing EJB components from a Struts application?

2001-12-17 Thread Thomas Corte
Hi all, after browsing the FAQ and searching the mailing list archive, I have not yet found a 'premium way' to go for EJB business logic integration into a Struts application. It's pretty clear that the EJB stuff should go into the action classes. I also saw hints that it might be useful to add

Help with session problems

2001-12-17 Thread Terrence August
I am experiencing a problem with session expiration I believe. Basically, my struts application grabs job objects and places them into the session for viewing on the page. Everything works fine until I leave the computer alone overnight and come back in the morning. At this time, I'll hit subm

Image References in jsp

2001-12-17 Thread Dave J Dandeneau
We have an action that is used from a couple of different mappings. Depending on a parameter it displays differently. When forwarded to the jsp the images fail under different mappings. i.e. if it is "/reg/action1" then it fails, but if it is "/action1" then it works. All the images are in the roo

RE: Form Bean with a Mutliselect box - Followup Question

2001-12-17 Thread Paul
Thanks Bill- just a follow up to that- can you use MergeeIds to then pull a second hashtable/array(from a form) to list a set of values based on the ID Select Box? I guess I'm a bit confused on the syntax. Thanks again, Paul --- "Siggelkow, Bill" <[EMAIL PROTECTED]> wrote: > I have done this

internationalization numeric formats

2001-12-17 Thread Nathan Coast
Hi, does struts support different formats for numbers dependent upon the locale of the user? I've had a look in the bean write tag code which seems to indicate using keys such as org.apache.struts.taglib.bean.format.float. Should this be used in the Application.properties and Application_de.prop

RE: Checkbox's question.

2001-12-17 Thread Yunming . Li
coincidentally, I was working on the check box today for the first time. I found the problem too. It seems OK when you set the check box "unchecked" as defaut (openWindow=null;). but when you set it "checked" as default, each time you uncheck the box and submit. the value won't change, it still r

RE: [ANN] Mapper ActionForm-to-Value Object and back

2001-12-17 Thread Sobkowski, Andrej
Sorry, it looks like the ZIP file is corrupted. I'll fix it tonight so that the code is available tomorrow. The documentation should cover most of the details required to understand the main principles of the package. Thanks. Andrej > -Original Message- > From: Sobkowski, Andrej [mailto

Re: Checkbox's question.

2001-12-17 Thread Linnea Ahlbeck
Hi!! All values from your formbean are sent in the request as parameters when you press submit - but checkbox values are only in this request if they have the value on = they are checked. If you use the reset method it should work in a correct way - values are first set to false by the reset me

Re: several ActionForm accessing one Action class

2001-12-17 Thread Don Saxton
By design ActionForms won't "know" about Action classes. But rather the ActionForm reference will be passed to the Action in its perform method. So forms are used by actions. Actions are actually defined by you in the struts-config.xml and several may be implemented in the same Action class. Fi

RE: Checkbox's question.

2001-12-17 Thread Dan Cancro
I was just thinking about this problem, too. I think this checkbox-in-request-only-when-checked anomaly should be handled with javascript like this: The checkbox jsp tag should create a hidden field named after the property, and a checkbox with some other name. When the checkbox is checked or u

RE: struts and jserv

2001-12-17 Thread nandkumar rayanker
Thanks, Nandkumar --- Phase Communcations <[EMAIL PROTECTED]> wrote: > JSERV!!! kinda outdated don't ya think : ) > > -Original Message- > From: nandkumar rayanker > [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 14, 2001 7:27 PM > To: [EMAIL PROTECTED] > Subject: struts and jserv >

RE: struts and jserv

2001-12-17 Thread nandkumar rayanker
Hi Mâris, Thanks, Nandkumar --- Mâris Orbidâns <[EMAIL PROTECTED]> wrote: > > I don't think so. JServ doesn't support JSP pages. > > Try Tomcat ! > > Maris > > > --- > > I would like to know whether I can develop struts > app > and run under JSERV AND APACHE environment. > > than

RE: Form Bean with a Mutliselect box - Followup Question

2001-12-17 Thread Siggelkow, Bill
If you want to do something on the same form with the selected IDs without hitting the Submit button then you can use the IDs with some javascript ... However, if you are talking about processing the form after Submit, you can do anything with the values. For example, in my case, I have a wizar

RE: Checkbox's question.

2001-12-17 Thread Yunming . Li
So it is the way supposed to be or just a bug of struts? -Original Message- From: Dan Cancro [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Checkbox's question. I was just thinking about this problem, too. I think this ch

Re: This would be a question for Kyle Brown, however ...

2001-12-17 Thread @Basebeans.com
Subject: Re: This would be a question for Kyle Brown, however ... From: Vic Cekvenich <[EMAIL PROTECTED]> === I disagree with the statement. I want to use as little technology as possible to leverage it to be productive. I too looked at integrating other, but it turns out YOU DO NOT NEED anyth

RE: Checkbox's question.

2001-12-17 Thread Dan Cancro
This was just an idea for an improvement to the CheckboxTag tag that would help cope with some HTML wierdness. What do the rest of you think? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 17, 2001 11:28 AM > To: [EMAIL PROTECTED] > Sub

Re: Checkbox's question.

2001-12-17 Thread Linnea Ahlbeck
Hi!! I think it's a bug... Javascript is funny but it slows down the prestanda a lot /Linnéa - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 8:27 PM Subject: RE: Checkbox's question. So it is the way supposed to be or just a

Re: using MySQL as a datasource

2001-12-17 Thread Peter Kordel
Try these things first: Verify that you have the latest stable version of mysql - 3.23.46 I think. Get the latest driver - 2.0.8 I ran into an issue with a third-party connection pool that passed transaction-level parameters to a pre-3.23.36 mysql server, causing *pages* of StackOverflows. Finall

struts integration to turbine (semi-working)

2001-12-17 Thread Phillip Rhodes
I am using turbine, and using the struts html tags. Yes, it is working! I have it working "manually", if I create an instance of my object and set all the properties of it manually and push my object onto the request, I can use the struts html objects. Simple example: <% Survey survey

[ANNOUNCE] Struts Console v1.2

2001-12-17 Thread James Holmes
Struts Console version 1.2 is now available. http://www.jamesholmes.com/struts/ http://www.jamesholmes.com/struts/struts-console-1.2.zip This is mostly a bug fix release with a couple of new features. Most notably is the addition of support for opening multiple files at once in the standalone v

Re: Struts/FOP

2001-12-17 Thread @Basebeans.com
Subject: Re: Struts/FOP From: Vic Cekvenich <[EMAIL PROTECTED]> === INLINE Sandeep Takhar wrote: > when you emit RTF, can the users edit this format > (unlike PDF). YES, USER COULD EDIT IT I SUPPOSE. > > is there an import into word and does it lose the > formatting? FORMATTING IS PERFECT,

Re: using MySQL as a datasource

2001-12-17 Thread Marcus Blackhall
Thanks for the reply, it turned out that the property auto-commit must be set to true and not false. I changed the line to and all went well, Marcus - Original Message - From: "Peter Kordel" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTE

Two Struts Research Questions...

2001-12-17 Thread Jeff_Mychasiw
I have asked several questions in preparation for a Struts demo this week, so here is another two. Question one: Our current app uses "non visual' JSP files to act as our actions. As with struts actions, we only access the pages through these files. Each page will have a 'load' and upon subm

Struts/Tomcat 4.0 Sealing Violation

2001-12-17 Thread Christian Velez
Hi, I am trying to run the sample applications that com with Struts. I have tried using the binary distributions and have used Ant with the source distributons. I keep getting a java.lang.SecurityException: sealing violation when I try to enter any example application. I am also unable to comp

Re: Checkbox's question.

2001-12-17 Thread Hong Xing
Thanks all!!! -ÓʼþÔ­¼þ- ·¢¼þÈË: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]] ·¢ËÍʱ¼ä: 2001Äê12ÔÂ18ÈÕ 3:48 ÊÕ¼þÈË: Struts Users Mailing List Ö÷Ìâ: Re: Checkbox's question. Hi!! I think it's a bug... Javascript is funny but it slows down the prestanda a lot /Linn¨¦a - Original

How to use ActionMessages *and* redirects

2001-12-17 Thread T. Wheeler
Hello, In my application, I need to show status messages after a record is updated. I am using ActionMessages to do this -- and it works. However, there is some other information on the page that shows the status message. The user will very likely refresh this page so that information is updat

Re: Invalidating a session

2001-12-17 Thread Rakesh
Can you please elaborate on the error message that you got ? Were you trying to access any attribute from the session after the point where you invalidated it ? --Rakesh --- - Original Message - From: "Struts Newsgroup" <@[EMAIL PROTECTED]> To: <[E

Personolized content using Struts. Jetspeed?

2001-12-17 Thread VEDRE, RANAPRATAP REDDY
I would like to know what is the best way to provide customized content to the user like providing layout and color change etc., similar to portal sites. Is Jet Speed the solution for this?. Are there any competetors. I use Templates Tags in struts on Tomcat and Apache web server. Saw a

Moving to Struts

2001-12-17 Thread aneesha . singh
Dear all I need to move my standard MVC application to the Struts Framework ... Can anyone tell me the following : What components will I need to build and what will be available to me via the Struts library. What is the average rough effort estimate per component What is the effort estimate for

trouble with DB connection pool - style question

2001-12-17 Thread Andy Timm
Hello. I am trying to implement a DB connection manager with my Struts webapp. I created a servlet that gets called when Tomcat is initialized, that creates a DbConnectionBroker, and puts it in the ServletContext: getServletContext().setAttribute("dbPool", dbPool); In a 'ActionForm', I'm valida

is it possible to use two forms and one action?

2001-12-17 Thread victor
Hi, Is it possible to use use two forms in one action? For example, ActionForm1 has two instance variable userID and name and is already populated and Action1 gets done. During another Action2, ActionForm2 is populated but ActionForm2 has no instance variable userID. In Action2, userID is needed

Re: Good taglib to format number

2001-12-17 Thread Volker Krebs
Frédéric Houbie - ABSIS-GROUP wrote: > Which taglib are you using to format number, date, using Locale config of > Browser ? Hi, take a look at the format Attribute from . You have to download the nightly Build, it's not in Struts 1.01. Volker -- To unsubscribe, e-mail: