Migrating to Struts

2004-11-29 Thread Unni
All Struts Gurus: We have a pretty large application which needs to migrate into Struts and possibly to Tiles for the UI. The existing application is quite similar to MVC-2 model. We have our own Controller and Handlers. The Handlers communicate with Session EJB to process data through stored p

Struts and Rational XDE

2004-11-29 Thread Sanjay Gupta
Hi Friends, How can I use Rational XDE for Struts ? If anyone has any idea please share with me. -- Sanjay Gupta Research Engineer C-DOT, New Delhi India - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

RE: validator form not responding properly

2004-11-29 Thread Kinjal Sonpal
Nishant, Use *page* attribute while defining your validation.xml. Like this : --8<8<8<-- --8<8<8<-- In your Jsp page, add a hidden attribute defining the value for the page. Like this : --8<8<8<-- --8<8<8<

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Eddie Bush
- Original Message - From: "Frank W. Zammetti" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 29, 2004 10:10 PM Subject: Re: WAR based project layout vs Sun J2SE blueprint layout In the one or two instances were I had page developers and bu

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Frank W. Zammetti
In the one or two instances were I had page developers and business logic developers separate, it was a fairly simple approach... Everyone checked the appropriate files out of source control each morning (page developers got JSPs, back-end develoeprs got Java files) and both teams got the lates

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Corey Scott
We do the same as Eddie, with 1 exception. Our test server (really only for clients and a good point of reference) runs CruiseControl, I find that this takes care of the hassle of keeping the client/test copy up-to-date. It also allows the developers to have complete freedom in their testing/deb

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Eddie Bush
Our development servers are essentially our own workstations :-) Our development/test box we may only deploy to via a web interface. It's not so terribly convenient considering it's not typically necessary to publish things unless there's been significant advancement. Oh there's some times w

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Eddie Bush
Response in-line ... - Original Message - From: "Frank W. Zammetti" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 29, 2004 7:35 PM Subject: Re: WAR based project layout vs Sun J2SE blueprint layout We actually have two production environme

Tiles and Forms

2004-11-29 Thread Graeme Miller
What is the correct pattern for placing a struts html:form tag in a layout where - the controls may be in a different location (and hence different tiles) from the buttons that submit the form - where you want the action the form submits to to be customisable by whatever jsp uses this form? If an

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Frank W. Zammetti
We actually have two production environments here... One is a real hosting environment where there are admins in charge of everything. They require nothing but WARs. Then there is another environment that was SUPPOSED to be THE environment eventually, but that plan got nixed. All the apps hos

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Frank W. Zammetti
I couldn't agree with Craig more. Especially when we're talking about development, I can't concieve of having to WAR things up, whether it's going on my own machine or a remote box. I've even seen some people work with something like Resin that will pick up ANY change instantly and automatica

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Craig McClanahan
On Mon, 29 Nov 2004 17:58:20 -, McDonnell, Colm (MLIM) <[EMAIL PROTECTED]> wrote: > Have you considered deploying exploded versions of your WAR file in the > development environment? This approach works great for me ... the lack of copying really improves turnaround time on redeployments duri

Re: nested tiles

2004-11-29 Thread Bill Keese
Interesting. I'm not sure why your code doesn't work. Maybe the value attribute in should be /WEB-INF/pgs/startpage.jsp. Anyway, I haven't done nested tiles in the same way as you do. This is how I do nested tiles. Maybe someone can comment on which way is better.

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Eddie Bush
Do people really deploy things to production like this? We generally just publish an EAR or WAR file to the server and keep the source in a versioning system. It seems like pretty wasteful space on a production server to have an application plus all the files that make up the application. ...

Tiles:displaying document with tiles

2004-11-29 Thread rose maria
Hi, Iam converting an existing frames based WebApp to tiles based WebApp. I have a requirement where i need to show a word document in the browser when the user clicked on a link. In the old application it was a hard link to the document.(http://my.yahoo.com ---

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Vic
Here is a tomcat specific setup of the app: Folder web is much war like! But... next to it in ../mds/src is where src is. hth, .V Dahnke, Eric (Company IT) wrote: Thanks for the response. In this case then, the dev/ folder is presumably under vcs and the layout would be fairly WAR based? Thx.

RE: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Dahnke, Eric (Company IT)
Thanks for the response. In this case then, the dev/ folder is presumably under vcs and the layout would be fairly WAR based? Thx. > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic > Sent: Monday, November 29, 2004 6:18 PM > To: [EMAIL PROTECTED] > Subject: Re:

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Vic
I think most projects point "Tomcat" to the dev folder, and then issue a reload command. As soon as you change JSP or java and "reload", you see it. Read up on tomcat reload and then find out your container'saproach. .V Dahnke, Eric (Company IT) wrote: Hello List Members, Whether to layout a proj

Re: Automatic logging

2004-11-29 Thread Eddie Bush
Possible? Yes ... but you're not going to get much meaningful information. IMHO, meaningful information comes out of exceptions, and I personally trap those and cause the app to show meaningful errors to the user. The best place to have logging is in your catch statements - be that in your act

Re: Validator outside Struts

2004-11-29 Thread Eddie Bush
Commons-Validator :-) You've got the wrong list, my friend. Try: http://jakarta.apache.org/commons/validator/ They have their very own user list (well, their very own shared user list!) ;-) http://jakarta.apache.org/site/mail2.html#Commons It's possible you might get some leads here, but I'd

nested tiles

2004-11-29 Thread Stefan Clos
hi, i have a problem with nested tiles. I found not much about it in the struts doc. the problem is that it not displays the correct body page.I get a directory listing there. At the definition startpage i have the value "/startpage.jsp" This should be displayed at my page. But it doesn´t :( I

Re: data caching in web application

2004-11-29 Thread Jeff_Caswell
These techniques: http://www.javaworld.com/javaworld/jw-10-2004/jw-1018-filter.html http://www.javaworld.com/javaworld/jw-11-2004/jw-1122-select.html Used against a collection loaded at application init() Might be what you are looking for. JC

RE: Form tag spanning more than one tile - surely this is possible or is there alternative pattern?

2004-11-29 Thread Hollaway, Shedrick L CIV TRIREFFAC
It looks for bean "myProperty". Shed. -Original Message- From: Graeme Miller [mailto:[EMAIL PROTECTED] Sent: Monday, November 29, 2004 16:21 To: [EMAIL PROTECTED] Subject: Form tag spanning more than one tile - surely this is possible or is there alternative pattern? Hi guys, Here

Form tag spanning more than one tile - surely this is possible or is there alternative pattern?

2004-11-29 Thread Graeme Miller
Hi guys, Here is what I think should be a very simple tiles question. So simple in fact that I am left scratching my head thinking there is no way struts could not do this - I must be doing something wrong! Lets say I have a base layout jsp simple-layout.jsp <%@ page language="java"%> <%@ tagl

data caching in web application

2004-11-29 Thread Ashish Kulkarni
Hi I have a table in DB2 on AS400 which has about 1 records, i want to cache this data to improve my web application performance, I dont want to cache it in session, I was thinking of loading the data in array or some class and load it in servlet context, what is the best way to do it? is the

RE: Searching pattern/best-practise for forms

2004-11-29 Thread Hollaway, Shedrick L CIV TRIREFFAC
Alexander, This should help you understand applying DAO/DTO patterns in a Struts app: http://javaboutique.internet.com/tutorials/ApacheDAOs/ Shed. -Original Message- From: Dahnke, Eric (Company IT) [mailto:[EMAIL PROTECTED] Sent: Monday, November 29, 2004 11:01 To: Struts Users Mailing Li

UTF-8 encoding in html form

2004-11-29 Thread Otto, Frank
Hi, I have a html form. The user can input text in ISO-8859-2 format. After submit the form the characters are wrong. I don't know why. I have set <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> and there is a filter (filters.SetCharacterEncodingFilter) to encode UTF-

RE: prepopulating forms

2004-11-29 Thread Brij Naald
Thanks for all the answers. The problem was indeed that i used perform instead of execute :-s _ Kies nu de Site Van Het Jaar en win prachtige prijzen! http://www.sitevanhetjaar.be/ --

Re: Help : creating dynamic styleId inside Logic:iterate

2004-11-29 Thread Derek Broughton
On Monday 29 November 2004 14:27, Aidas Semezys wrote: > It is not allowed to have just part of attribute value as JSP expression. > Here is the correct solution: > " > property="sharesPer"/> Thanks! That solved a problem I was about to ask ... -- derek -

RE: Reset button does not clear JSP fields

2004-11-29 Thread O. Oke
Thank you all. I will experiment with the Javascript option. O. Oke --- [EMAIL PROTECTED] wrote: > I'm not sure how tricky it is in JavaScript... > > function doit(obj) { > obj = obj.form; > i = 0; > while (obj.elements[i] != null) { > if (obj.elements[i].type.toLowerCase() != > "bu

RE: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread fzlists
I'm a big believer in simplicity. To that end, the way we work here at my behest, at least during development, is that applications are simply zipped up when they need to be moved somewhere and deployed in exploded form. All developers have Tomcat on their desktop, set up identically, so they

Re: Help : creating dynamic styleId inside Logic:iterate

2004-11-29 Thread Aidas Semezys
It is not allowed to have just part of attribute value as JSP expression. Here is the correct solution: " property="sharesPer"/> Peace, Aidas sachin <[EMAIL PROTECTED]> wrote: > I have a jsp page in which i have a loop and a text field inside it. > Now to create a dynamic styleid i have used the

RE: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Dahnke, Eric (Company IT)
Damn, that's not bad is it. I had thought of variations of that, but hadn't considered ant. Those types of ant tasks would be fast too wouldn't they. Having client siders use ant is not a show stopper (they use it now to reload after struts-conf and tiles-defs changes they make). Thanks > Hav

RE: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread McDonnell, Colm (MLIM)
Eric, Have you considered deploying exploded versions of your WAR file in the development environment? The client side coders could then copy their deltas directly into the application without having to build and redeploy it. The means of copying the files could be automated by making the explod

Re: Data in a MxN grid

2004-11-29 Thread Niall Pemberton
Try the nested tags: http://struts.apache.org/api/org/apache/struts/taglib/nested/package-summary.html#package_description http://www.keyboardmonkey.com/next/index.jsp Niall - Original Message - From: "atta-ur rehman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTE

WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Dahnke, Eric (Company IT)
Hello List Members, Whether to layout a project within version control as a WAR based layout (images/ pages/ tiles/ WEB-INF/ WEB-INF/src) or as a sun J2SE blueprint layout (build/ conf/ src/ lib/ webapp/ docs/ test/ etc. http://java.sun.com/blueprints/code/projectconventions.html) is an issue tha

Data in a MxN grid

2004-11-29 Thread atta-ur rehman
All, What's the 'standard' way in Struts to input data in a table whose number of rows and columns (yes, for both rows and columns) is decided dynamically on every request? Indexed properties don't seem to be working with variable number of columns. So far I've to deal with only elements but th

RE: Reset button does not clear JSP fields

2004-11-29 Thread fzlists
I'm not sure how tricky it is in JavaScript... function doit(obj) { obj = obj.form; i = 0; while (obj.elements[i] != null) { if (obj.elements[i].type.toLowerCase() != "button") { obj.elements[i].value = ""; } i++; } } Attach this to the onClick event of a button in the f

Re: Searching pattern/best-practise for forms

2004-11-29 Thread bryan
And if actionForms just used reflection ( to detect if there was a validate method ) or had to implement an interface rather than having to inherit from a base class you and everyone else wouldn't have to do this ... --b > Then lookin into the DispatchAction class of struts, and you'll need

RE: Reset button does not clear JSP fields

2004-11-29 Thread Pilgrim, Peter
> -Original Message- > From: aris [mailto:[EMAIL PROTECTED] > > > Instead of a reset you could use a simple button and the > related onClick > event to call a javascript that sets all field to "". > What do you think about this "workaround"? > Take note that it isn't an expected behavio

Validator outside Struts

2004-11-29 Thread Per Lövdinger
Hi there, I would like to try out Validator outside Struts. I've got the initializion of validatorResources working. Does anyone have sample-code for using the resources and calling the validator,extracting validationResult ? thanks in advance

RE: Searching pattern/best-practise for forms

2004-11-29 Thread Dahnke, Eric (Company IT)
That should be: public EmployeeDTO create(EmployeeDTO employee) Thinking and typing at the same time. ;-) > -Original Message- > From: Dahnke, Eric (Company IT) > Sent: Monday, November 29, 2004 10:56 AM > To: Struts Users Mailing List >

RE: Searching pattern/best-practise for forms

2004-11-29 Thread Dahnke, Eric (Company IT)
Look into the DAO pattern. Create, for example, an EmployeeDTO (transport object) and an EmployeeDAO class with create(EmployeeDTO employee), update(EmployeeDTO employee), delete(EmployeeDTO employee) and getById(...) - is also a crucial method in the DAO pattern. Here's the create method for exa

validation rule in one place

2004-11-29 Thread Per Lövdinger
Hi there, I have a question concerning Struts validator framework: If have the same attribute for example salary in two forms is there any possibility to define the validation rule in one place. So that my form-field can depend on that rule. regards

[ANNOUNCE] JavaSever Faces in Action available in book stores

2004-11-29 Thread Kito D. Mann
Hello, I'm pleased to announce that my book, JavaServer Faces in Action (ISBN:1932394125), is now available in book stores, including Amazon. The book covers JSF 1.0 and 1.1, and also includes the following features: - How JavaServer Faces works and how it relates to other frameworks and techno

Random error SRVE0026E: [Servlet Error]-[action]: java.lang.NullPointerException

2004-11-29 Thread Rosemary Philip
Hi, I am using Struts1.1. The development env is Websphere(WSAD5.1) on WinXP. Here is a strange thing. When I click on submit on a page, which used to work earlier, I get a HTTP 500 Internal Server error. No other link/function in the application gives me this error. The strange thing is that th

Re: caching large data in web application

2004-11-29 Thread Ashish Kulkarni
Hi The data which i want to cache has about 1 rows and i want to cache it in may be servlet context, what is the best way to cache it, do i just create a java bean and cache it or some kind of mechanism already exist like Hibernation (i am not sure what is does) Ashish --- "Frank W. Zammetti"

Re: Reset button does not clear JSP fields

2004-11-29 Thread Derek Broughton
On Monday 29 November 2004 10:15, aris wrote: > Instead of a reset you could use a simple button and the related onClick > event to call a javascript that sets all field to "". > What do you think about this "workaround"? > Take note that it isn't an expected behaviour for a reset button. I suggest

Re: Reset button does not clear JSP fields

2004-11-29 Thread aris
Instead of a reset you could use a simple button and the related onClick event to call a javascript that sets all field to "". What do you think about this "workaround"? Take note that it isn't an expected behaviour for a reset button. I suggest you to name such a button with a value different from

Reset button does not clear JSP fields

2004-11-29 Thread O. Oke
Please help! Background == I retrieve data from the database, copy the data into an Action Form, the data is then automatically entered into corresponding fields. After viewing the data, I want the RESET button to empty all fields whenever it is clicked. Presently, after clicking the RE

Searching pattern/best-practise for forms

2004-11-29 Thread Alexander Czernay
I'm searching for a pattern/best-practise for handling standard data-manipulation forms (like list, create, edit, update, delete functionality) in Struts. I've read about the CRUD (create/read/update/delete) pattern many times, but couldn't find any in-depth papers on it. Is there any recommen

Tiles: using i18n string

2004-11-29 Thread Derek Broughton
Given a tile definition like: and a message that I would normally retrieve like: How can I pass the message to the tile? I realized that in this particular case, it made more sense to invoke the tile using: and have layout.jsp get the message from the k

Automatic logging

2004-11-29 Thread Kinjal Sonpal
Hi listers, I'm developing a struts 1.2.4 based small-medium sized application with around 35-40 JSPs, 6-8 formbeans, 6-8 DispatchActions. I'm going to make the application available for the testing users (for kind of blackbox functional testing). I've so far not used logging of any kind in my ap

Re: [OT] Eclips 3.01 + IBM WTP + Tomcat 5

2004-11-29 Thread Eddie Bush
WTP = Web Tools Platform I've seen the Sysdedo plugin, but I was trying to keep my environment here congruent with what's at work. The WTP seems to be what's running inside of WSAD. I don't see anything inside the Windows -> Preferences section. I do see a top-level node for "Solar Eclipse"

RE: [OT] Eclips 3.01 + IBM WTP + Tomcat 5

2004-11-29 Thread Pilgrim, Peter
> -Original Message- > From: Eddie Bush [mailto:[EMAIL PROTECTED] ==== > > > Has anyone successfully setup IBM WTP with Tomcat 5 under > Eclipse 3.01? > Every time I go to fire the server off it fails and says > there was a problem in thread main. I can launch Tomcat just > fine

[OT] Eclips 3.01 + IBM WTP + Tomcat 5

2004-11-29 Thread Eddie Bush
Has anyone successfully setup IBM WTP with Tomcat 5 under Eclipse 3.01? Every time I go to fire the server off it fails and says there was a problem in thread main. I can launch Tomcat just fine from the command prompt or as a service :-| My guess is that it's doing something wrong in trying t

[SOLVED] Re: IllegalAccessException using trivial formbean

2004-11-29 Thread Nicolas De Loof
Solved ! I used a struts-1.2.6 jar i compiled myself. Replacing it with binary dist makes my app work. Don't know where I failed building struts jar... Nico. > > Heloo, > > I'm getting strange troubles on my webapp and I've set a minimalist webapp to > test it : > > 1 action "/logon" & 1 fo

IllegalAccessException using trivial formbean

2004-11-29 Thread Nicolas De Loof
Heloo, I'm getting strange troubles on my webapp and I've set a minimalist webapp to test it : 1 action "/logon" & 1 for "LogonForm" with 2 fields "username" & "password". Struts 1.2.6 without any plugin - If I use DynaForm for my formbean, my (trivial) jsp runs fine and displays the HTML for

Re: Performance issues

2004-11-29 Thread Bill Keese
Jason King wrote: It caches by default. To test this, put some arbitrary obscure string like "I am not a number, I am a free man" inside your js file, clear the browser cache, load the page once and you should find this in the cache once. You'll have to use a find utility that searches on str

Re: [OT] different java versions in same project

2004-11-29 Thread Duncan Mills
I don't see that there will be an issue there - the Applet will run in a different JVM from the server side part of the application and you probably want to package it separately in any case as a stand alone JAR Regards Duncan Mills http://www.groundside.com/blog Ashish Kulkarni wrote: Hi Has a