RE: Retrieve Data From WebServer

2006-08-30 Thread Anil Kumar T
Hi, I was also having similar problem some time back. According to my knowledge... If the data is common to all the users then may be you can have a singleton class and then only once you can populate the data, and every time you use the same data. If the data is user specific then I think stori

Retrieve Data From WebServer

2006-08-30 Thread Rokariya, Raman
Hi, I am developing web client using Struts Framework. I am facing a problem in following scenario. I have an arraylist of Data , which is populated in Table Grid using Display-Tag library. The first time when the page appears, the data comes from the Database. It is working fine for the first

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
Thanks a lot for all that feedback. I think it gets me a step further. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Antwort: Re: Creating new Session without invalidating the old one [*]

2006-08-30 Thread David Durham
[EMAIL PROTECTED] wrote: Hello! Thank you to all for your hints. Now, I want to tell you, what I did at last. My application consists of nearly 100% forms. The application is logically devided into two parts (-> represented by two browser windows), and it must be possible to get from one part

Re: [Shale] Old form values still there after "Cancel" button.

2006-08-30 Thread Craig McClanahan
On 8/30/06, Jason Vincent <[EMAIL PROTECTED]> wrote: Hi all, For the life of me I can't get JSF to stinkn forget values that were entered on a form. The view controller is "request" scope. Are you using Shale for this? If so, you'd be best off joining the Shale user list, as Shale is now it

[Shale] Old form values still there after "Cancel" button.

2006-08-30 Thread Jason Vincent
Hi all, For the life of me I can't get JSF to stinkn forget values that were entered on a form. The view controller is "request" scope. If I start to enter data in a form and then click the "Cancel" button, which has immediate="true", the values entered by the user reappear in the form when I r

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Wendy Smoak
On 8/30/06, Tom Bednarz <[EMAIL PROTECTED]> wrote: What is the correct or preferred way to link business-objects with form beans. Is this only possible by copying data from a business object to a form bean or is there any 'smarter' way? You might want to take a look at FormDef: https://formdef

Re: validator and DynaValidatorActionForm

2006-08-30 Thread David Durham
Tom Bednarz wrote: So I used Don't specify value. Simply copy the properties from a subscriber object (session scoped or otherwise) to a formbean (the one being used to render the form values). There's a copyProperties method in org.apache.commons.beanutils.BeanUtils: http://tinyurl.c

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
Thanks a lot for all your input and help. It looks like I need some basic concepts clarified. Here a very short background of the application and what my intension is: The object 'subscriber' is a special business object: it represents the logged in user and contains a lot of information about

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Laurie Harper
Tom Bednarz wrote: David Durham wrote: Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. Or at least two action mappings, if

Extending tag libraries

2006-08-30 Thread Scott Van Wart
This is a little OT, but it, uh, kind of has to do with Struts :). I'm interested in adding a few attributes to some of the struts tags. They're really only useful in the context of a specific web project I'm working on, so I'd really prefer not to edit the Struts TLD and implementation (for

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Wendy Smoak
On 8/30/06, Tom Bednarz <[EMAIL PROTECTED]> wrote: The idea is, that I show a form that contains already data and the user can edit it. When the form is submitted, the validator should check the user input. Here is my validator configuration: ... Now it seems, that the validator gets fired BEF

Re: Best way to secure struts-webapps?

2006-08-30 Thread Laurie Harper
Thomas Hamacher wrote: Laurie, thanks for the input. I am aware of the container managed security. But as far as I read in the internet, there is no good solution to use container managed security together with tiles. So if I wanna have a login-box on every page, that redirects dynamically to

RE: validator and DynaValidatorActionForm

2006-08-30 Thread David Friedman
Why are you making these fields so complex? You have Instead of the simple form: ? Why do you need to specify all of that redundant information like value and name when you have the property attribute? And why are you pulling values from the session scope instead of the request data that

Re: Dynamically Initializing Checkbox Value

2006-08-30 Thread Laurie Harper
Yes you do, the form is passed in as one of the parameters to execute(). The typical pattern is for the action to be invoked via an action mapping, populate the form bean and forward to the JSP. It's during this action processing that you copy your business data into the form bean, thus initial

Re: Dynamically Initializing Checkbox Value

2006-08-30 Thread Michael Jouravlev
On 8/30/06, Anthony N. Frasso <[EMAIL PROTECTED]> wrote: I don't have the form bean until I get to the JSP page, so there's no way to initialize it. Struts being a classic Model 2 framework requires all requests to go through an action. Well, this is not a strict requirement just a standard pra

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
David Durham wrote: Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. David, This is EXACTLY what I like to AVOID! With th

Re: Dynamically Initializing Checkbox Value

2006-08-30 Thread Anthony N. Frasso
I guess I don't follow How do I prepopulate the form bean? I have a list page which lists all of the roles in the system. When the form on the list page is submitted, I can retrieve the ID of the role that the user wants to edit. In the action class I then retrieve that role, and put it int

Re: validator and DynaValidatorActionForm

2006-08-30 Thread David Durham
Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. I have the following form bean defined in struts-config.xml: type="o

validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! I have the following form bean defined in struts-config.xml: type="org.apache.struts.validator.DynaValidatorActionForm" >

Re: Struts Book?

2006-08-30 Thread Simon Chappell
On 8/30/06, Ted Husted <[EMAIL PROTECTED]> wrote: On 8/30/06, Simon Chappell <[EMAIL PROTECTED]> wrote: > Is that an unofficial announcement of the 1.3 release date? :-) There is already a 1.3.5 beta release pending. * http://struts.apache.org/announce.html How soon it goes GA depends on how s

Re: Dynamically Initializing Checkbox Value

2006-08-30 Thread Albert L. Sapp
Anthony, I am puzzled by your comment that you don't have a form bean before you get to the jsp. We do this all the time. Say I want to display a list of inventory items for a user. I retrieve a list of inventory items matching the query data the user gave me and create an array of invento

Re: [Tiles 2.0] Tiles Without Intermediate Pages WAS: [tiles] page content

2006-08-30 Thread Wendy Smoak
On 8/30/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: P.S.: Should we use [Tiles 2.0] when referring to new Tiles? I asked this because the site it is written to use [tiles] instead (anyway [Tiles 2.0] is much clearer). It's just a tag for those who want to filter on the subject line... I wo

Re: Struts Book?

2006-08-30 Thread Ted Husted
On 8/30/06, Simon Chappell <[EMAIL PROTECTED]> wrote: Is that an unofficial announcement of the 1.3 release date? :-) There is already a 1.3.5 beta release pending. * http://struts.apache.org/announce.html How soon it goes GA depends on how soon people like Simon Chappell take it for a spin w

Re: scriptlet not evaluated inside tag

2006-08-30 Thread Laurent Duparchy
I found that onclick="this.value=${labelPrinterButton}" is working Leon Rosenberg wrote: hi, try: onclick="<%="this.value='"+labelPrinterButton+"'"%>'" regards Leon On 8/29/06, Laurent Duparchy <[EMAIL PROTECTED]> wrote: Hi, I'm forced to use a scriptlet to insert a localized label in

Re: [Tiles 2.0] Tiles Without Intermediate Pages WAS: [tiles] page content

2006-08-30 Thread Antonio Petrelli
Greg Reddin ha scritto: Default Header Stuff Default Body Stuff Default Footer Stuff Then you extend it with a page like this: Extended/Overridden Body Content It seems that already accepts the body so it "potentially"

Re: Struts Book?

2006-08-30 Thread James Mitchell
Ha! If Holmes can predict the future, I've got a few lottery tickets I'd like him to look over for me ;) -- James Mitchell 678.910.8017 On Aug 30, 2006, at 11:00 AM, Simon Chappell wrote: On 8/30/06, James Holmes <[EMAIL PROTECTED]> wrote: Thanks for the vote of confidence Ted. A 2nd ed

Re: Session Timeout

2006-08-30 Thread John De Lello
I think I found the offending code. It is located in the Struts RequestProcessor.processLocale method (which is called *before* the pre-process). In that method is the following code: // Has a Locale already been selected? HttpSession session = request.getSession(); So I will *always* get a non-n

Multipart request

2006-08-30 Thread Raghuveer
What are best practices in using Multipart request for file uploads using struts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts Book?

2006-08-30 Thread Simon Chappell
On 8/30/06, James Holmes <[EMAIL PROTECTED]> wrote: Thanks for the vote of confidence Ted. A 2nd edition of my Struts: The Complete Reference will be out at the end of the year that is up to date with Struts 1.3. Is that an unofficial announcement of the 1.3 release date? :-) Simon -- www.sim

Re: [Tiles 2.0] Tiles Without Intermediate Pages WAS: [tiles] page content

2006-08-30 Thread Mehdi Bahribayli
Greg Reddin <[EMAIL PROTECTED]> wrote: One thing that has often bothered me about Tiles in a standalone web application is the need for a JSP page that "calls" a tiles definition. Consider the following from the Tiles 2.0 test application: tiles-defs.xml

FormFile

2006-08-30 Thread Raghuveer
What is minimum requirement for file upload configuration in struts. My ActionForm is in "session" scope in actionmapping. What are precautions to configuring declaritively in struts-config.xml or in action in order to avoid unwanted thread/IO stream hanging or some other problems. After file

Re: [tiles] page content

2006-08-30 Thread Mehdi Bahribayli
Greg Reddin <[EMAIL PROTECTED]> wrote: On Aug 30, 2006, at 8:40 AM, Mehdi Bahribayli wrote: > II. I think you have misunderstood what I wanted to say. I think > there is no need for /subviews/welcome.jspf because it is used just > once and there is no need to put the contenet in a separate

Re: Struts Book?

2006-08-30 Thread James Holmes
Thanks for the vote of confidence Ted. A 2nd edition of my Struts: The Complete Reference will be out at the end of the year that is up to date with Struts 1.3. Thanks, James On Wed Aug 30 8:23 , 'Ted Husted' <[EMAIL PROTECTED]> sent: >Struts: The Complete Reference > >* http://opensource.at

Re: [tiles] page content

2006-08-30 Thread Mehdi Bahribayli
Antonio Petrelli <[EMAIL PROTECTED]> wrote: Mehdi Bahribayli ha scritto: >> >> >> >> >> > I. I have already tried that. I get an exception: > javax.servlet.jsp.JspException: Invalid attribute type: java.lang.String > This could be possibly a bug, I will investigate it. > II. I thi

RE: Struts Book?

2006-08-30 Thread John De Lello
I recommend: http://www.objectsource.com/ It's a free PDF book -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 10:24 AM To: Struts Users Mailing List Subject: Re: Struts Book? Struts: The Complete Reference * http://opensource.atlassian

[s2] Simple Tag Question and

2006-08-30 Thread Mark Menard
Is this following possible? If it isn't how do you change the value of something on the value stack once you are either into a JSP or in a FreeMarker template? I have been struggling with this for days now. I know it's got to be something really really really stupidly simple, but

RE: Session Timeout

2006-08-30 Thread John De Lello
I think I found the offending code. It is located in the Struts RequestProcessor.processLocale method (which is called *before* the pre-process). In that method is the following code: // Has a Locale already been selected? HttpSession session = request.getSession(); So I will *always* get a non-n

[Tiles 2.0] Tiles Without Intermediate Pages WAS: [tiles] page content

2006-08-30 Thread Greg Reddin
One thing that has often bothered me about Tiles in a standalone web application is the need for a JSP page that "calls" a tiles definition. Consider the following from the Tiles 2.0 test application: tiles-defs.xml In this case y

Re: [tiles] page content

2006-08-30 Thread Greg Reddin
On Aug 30, 2006, at 8:40 AM, Mehdi Bahribayli wrote: II. I think you have misunderstood what I wanted to say. I think there is no need for /subviews/welcome.jspf because it is used just once and there is no need to put the contenet in a separate file. I think both /subviews/welcome.jspf an

Re: Struts Book?

2006-08-30 Thread Ted Husted
Struts: The Complete Reference * http://opensource.atlassian.com/confluence/oss/display/BOOKS/ISBN-0072231319 On 8/30/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote: Hi, Can anyone suggest a good Struts book covering advanced Struts topics and covering Struts 1.2. regards, Pankaj -- HTH, Ted.

File Upload Causing page expire

2006-08-30 Thread Raghuveer
I have useed struts1.2 file upload in many projects for many times.It worked well perfectly. But in my current project struts1.2.8 After uploading file ,I am showing data in jsp by nested tags. When clicked any of the action in JSP latest data is not set to ACTIONFORM. to be simple, Data is

Re: Best practice for external webapp configuration ?

2006-08-30 Thread Nicolas De Loof
Thanks for this info, I'm targeting Tomcat 4 (for developpers) and Websphere 5 (for production) Nico. Lance a écrit : On jboss, this can be done by configuring the SystemPropertiesService. @see jboss\server\all\deploy\properties-service.xml Properties can be configured inline in the xml fil

RE: Best practice for external webapp configuration ?

2006-08-30 Thread Lance
On jboss, this can be done by configuring the SystemPropertiesService. @see jboss\server\all\deploy\properties-service.xml Properties can be configured inline in the xml file or can be declared in a separate file which is referenced by properties-service.xml. > Hello, > > I'm searching for best p

Re: [tiles] page content

2006-08-30 Thread Antonio Petrelli
Mehdi Bahribayli ha scritto: I. I have already tried that. I get an exception: javax.servlet.jsp.JspException: Invalid attribute type: java.lang.String This could be possibly a bug, I will investigate it. II. I think you have misunderstood what I wanted to say. I think there is

Re: Session Timeout

2006-08-30 Thread Ed Griebel
[moving to struts-user list] A new session is created when you request a new session somewhere, it's not created automatically. However, there could be a filter, request processor, action, or JSP somewhere that does a request.getSession() or .getSession(true) (or '... session="true"...' in JSP),

Re: [tiles] page content

2006-08-30 Thread Mehdi Bahribayli
> I think (but I didn't try) that you can do, in welcome.jsp: > > > > > > The attribute "body" will be filled only in a specific request. > Let me know if it works. > > Ciao > Antonio I. I have already tried that. I get an exception: javax.servlet.jsp.JspException: Invalid attribute type: ja

Re: Come back to same JSP

2006-08-30 Thread Martin Gainty
Eric -- I would also check out http://MachineName:Port/struts-examples/exercise/welcome.do for some good examples, (link courtesy of wendy smoak) Thanks, Martin -- * This email message and any files transmitted with it contain con

Re: [tiles] page content

2006-08-30 Thread Antonio Petrelli
Mehdi Bahribayli ha scritto: * Use a fixed length font to see this message in correct layout. In order to create a layout like this, I use six elements. +---+ |Header | +--++ | || | |

[tiles] page content

2006-08-30 Thread Mehdi Bahribayli
* Use a fixed length font to see this message in correct layout. In order to create a layout like this, I use six elements. +---+ |Header | +--++ | || | || | Menu | Body

Reg : Exception Handling

2006-08-30 Thread Karthikn
Hi, I am new user. I am implementing exception handling in my application. In my action class I have try, catch block. in the catch block catch(Exception e) { return mapping,findforward("failure"); } I def

Re: Dynamically Initializing Checkbox Value

2006-08-30 Thread Anthony N. Frasso
Actually, that's incorrect. I want to *read* from the Role bean. I want to *write* to the form bean. I just don't know how to go about it yet. :) It seems like I have to read/write to the same form bean, which doesn't make sense, because I don't have the form bean until I get to the JSP page, s

RE: Come back to same JSP

2006-08-30 Thread Givler, Eric
Your best bet would be to read some of the tutorials here: http://www.learntechnology.net/ The Struts CRUD lesson or the Struts iBATIS Lesson 1 would be helpful. -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 11:45 AM To: user@struts.apache.

Struts Book?

2006-08-30 Thread Pankaj Gupta
Hi, Can anyone suggest a good Struts book covering advanced Struts topics and covering Struts 1.2. regards, Pankaj

Re: Struts 1.2.9 - build failed

2006-08-30 Thread James Mitchell
The 1.2.x nightly builds are running just fine. I don't know how you're kicking off Ant, but here's what the nightly script does: $ ant download-dependencies nightly -- James Mitchell 678.910.8017 On Aug 30, 2006, at 1:01 AM, Laurie Harper wrote: Darren, the examples serve as documentat

Re: Dynamically Initializing Checkbox Value

2006-08-30 Thread Puneet Lakhina
On 8/30/06, Anthony N. Frasso <[EMAIL PROTECTED]> wrote: Hello all, public class Role { private int id; private String name; private String description; private boolean permissionA; private boolean permissionB; ... private boolean permissionN; } Each of those prop

Re: Best practice for external webapp configuration ?

2006-08-30 Thread Nicolas De Loof
You didn't understand my problem : My configuration requires a path that is system dependent. I cannot include this info in my WAR. I need to set it on the production server. I'm using a single system property that gives me a filesystem path (or URL) and get it in my app to setup application

Re: Best way to secure struts-webapps?

2006-08-30 Thread Antonio Petrelli
Thomas Hamacher ha scritto: But as far as I read in the internet, there is no good solution to use container managed security together with tiles. So if I wanna have a login-box on every page, that redirects dynamically to the same page after login I will have some trouble with the container m

RE: Best practice for external webapp configuration ?

2006-08-30 Thread Kalra, Ashwani
You can set them in your startup class by reading the configuration file. System.setProperty() /Ashwani -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 1:08 PM To: Struts Users Mailing List Subject: Best practice for external webapp

Re: Best way to secure struts-webapps?

2006-08-30 Thread Thomas Hamacher
Laurie, thanks for the input. I am aware of the container managed security. But as far as I read in the internet, there is no good solution to use container managed security together with tiles. So if I wanna have a login-box on every page, that redirects dynamically to the same page after logi

Best practice for external webapp configuration ?

2006-08-30 Thread Nicolas De Loof
Hello, I'm searching for best practice in JEE applications to put configuration elements outside the war/ear. Here is what I mean : My webapp requires some filesystem path to work (logs dir, system-dependent config files...). I'm using a java sytem property to setup a root path for external