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

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

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 form. - If

[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 for

[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

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 from the

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 I

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

Tiles: using i18n string

2004-11-29 Thread Derek Broughton
Given a tile definition like: definition name=layout path=/layout/layout.jsp put name=body value=/ put name=title value=/ put name=header value=/common/header.jsp/ put name=footer value=/common/footer.jsp/ put name=menu value=/common/menu.jsp/ /definition and a message

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

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: 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

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

[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

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 form-validation formset

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

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

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: 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 behaviour for a

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 form

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 html:text

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

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 PROTECTED]

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

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

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: html:text name=iType styleId=%=sp + iterator% 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

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 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: html:text name=iType styleId=%=sp + iterator% property=sharesPer/ Thanks! That solved a problem I was about to ask ... -- derek

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/

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-8.

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

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

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% %@ taglib

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. html:checkbox property=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

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

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: 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

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

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 project

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: WAR

Re: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Vic
Here is a tomcat specific setup of the app: Context docBase=/dev3/apps/mds/web /Context 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

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.(a href=../documents/termsConditions.docView terms/a) so

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.

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 put name=body value=/startpage.jsp / 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

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

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

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

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 environments

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

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

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

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 business

RE: validator form not responding properly

2004-11-29 Thread Kinjal Sonpal
Nishant, Use *page* attribute while defining your validation.xml. Like this : --888-- field property=inquiryHeader.deliveryPeriod depends=required page=1 arg0 key=inquiry.form.header.deliveryPeriod/arg0 /field --888-- In your Jsp page, add a hidden

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,

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