RE: Struts and Rational XDE

2004-11-30 Thread Mark Benussi
Is there a product called called Rational XDE for Struts? I dont think there is. If you mean can you use Rational XDE with Struts then you need to get hold of the model files for the version of Struts your using and integrate them into your XDE environment.

Re: Struts and Rational XDE

2004-11-30 Thread Sanjay Gupta
Hi Mark, yes, i want to use rational xde with struts. u told, i need to get hold of model files. from where can i get these files ? can u please explain it more ? thanks sanjay gupta On Tue, 30 Nov 2004 07:59:07 +, Mark Benussi [EMAIL PROTECTED] wrote: Is there a product called called

Re: Struts and Rational XDE

2004-11-30 Thread Mark Benussi
OK Sanjay. Are you using Websphere Studio Application Developer 5? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Searching pattern/best-practise for forms

2004-11-30 Thread Alexander Czernay
Hollaway, Shedrick L CIV TRIREFFAC wrote: Alexander, This should help you understand applying DAO/DTO patterns in a Struts app: http://javaboutique.internet.com/tutorials/ApacheDAOs/ Shed. Thanks for all your replys and suggestions, but I'm afraid I didn't ask the right question. What I really

RE: Searching pattern/best-practise for forms

2004-11-30 Thread McDonnell, Colm (MLIM)
I've tried some ways to do this and ended up with three actions for one form: one for setting it up, one for displaying and validating it and one for the selected backend action. I just wonder if that is a good way or if I'm introducing some problems into my applications. The Struts

RE: validator form not responding properly

2004-11-30 Thread Kinjal Sonpal
Nishant, Following links may also help you. If you have time, try to read the entire FAQs. They are really good. http://struts.apache.org/faqs/newbie.html#avoidValidate and For Wizard like WorkFlow http://struts.apache.org/faqs/newbie.html#wizard HTH. Kinjal Sonpal

RE: data caching in web application

2004-11-30 Thread Jesse Alexander (KBSA 21)
concerning the actual access, that Javaworld article about sql in Java sounds a cool way to do it... about the initializing: - create a standard servlet that fetches the data and sets up a JavaBean (aka POJO) and stores that in the servlet-context - define this servlet in the web.xml and add

RE: Automatic logging

2004-11-30 Thread Kinjal Sonpal
Eddie, Thanks for your immediate and thorough reply. 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

struts 1.2.2 to 1.2.4 upgrade conflict log4j

2004-11-30 Thread Ian van der Neut
Hello all, I downloaded struts 1.2.4 yesterday to replace the 1.2.2 version that I am developping against. However, testing my application with the new jars (I copied all of the jars in the 1.2.4 tarball to the WEB-INF/lib directory of my webapp) generates an exception: [snipped] root cause

Re: data caching in web application

2004-11-30 Thread Vic
A more MVC approach is to do DATA chacing in the DATA layer. It is recomended that you do datacaching via a DAO. (iBatis, Hibrenate, etc.) .V Jesse Alexander (KBSA 21) wrote: concerning the actual access, that Javaworld article about sql in Java sounds a cool way to do it... about the

Re: Migrating to Struts

2004-11-30 Thread Leon Rosenberg
Hi, we recently migrated an application, which i consider large (about 100K loc java code) from XSLT / XSP / EJB to JSP / STRUTS / COD To be true we have not reused a single line of java code. We reused much of XSLT code in jsps, because the outgoing html had to look the same. We reused some of

Re: Migrating to Struts

2004-11-30 Thread Leon Rosenberg
Hi, we recently migrated an application, which i consider large (about 100K loc java code) from XSLT / XSP / EJB to JSP / STRUTS / COD To be true we have not reused a single line of java code. We reused much of XSLT code in jsps, because the outgoing html had to look the same. We reused some of

Re: UTF-8 encoding in html form

2004-11-30 Thread Guillaume Cottenceau
Otto, Frank otto 'at' delta-barth.de writes: 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

Re: data caching in web application

2004-11-30 Thread Mark Benussi
I was going to say something along those lines as well. Create a class that represents a row in your table. Create an associated class that has knowledge of how to persist the data to the table i.e. CRUD methods. Populate the data's primary key (Or keys) and read it with a passed database

Subclassing RequestProcessor

2004-11-30 Thread Brij Naald
Hi, I'm trying to work with a subclass of requestprocessor. Therefore I add controller processorClass=app.MyRequestProcessor/ in the struts-config.xml. How simple this looks, it doesn't work. When I add this line to the struts-blank config-file, the end of the file looks like this:

Re: Struts training

2004-11-30 Thread Vic
I teach it for $ on client site and you can google for 12 more places. Email offline if you need more. .V Hi, Could somebody recommend a good, advanced Struts classroom training course in the US,that covers topics like Tiles/JSTL, JSF et al? Thanks, Shyam

RE: Subclassing RequestProcessor

2004-11-30 Thread McDonnell, Colm (MLIM)
The answer is in the error message The content of element type struts-config must match (display-name?,description?,data-sources?,form-beans?, global-exceptions?,global-forwards?,action-mappings?,controller?, message-resources*,plug-in*). The order of the struts-config elements is

Re: Every time Refreshing the Screens

2004-11-30 Thread James Mitchell
Was your question answered? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Srinivas [EMAIL PROTECTED] To: Struts [EMAIL PROTECTED] Sent: Sunday, November 28, 2004 10:55 PM Subject: Every time Refreshing

Validator question

2004-11-30 Thread Vinicius Caldeira Carvalho
Hi there! I'm trying to make my validator projetct work on oc4j (oracle 10g) and so far I got no success at all. First thing that is really strange is that at deploy time the application runs it complains about some attributes being used but not declared: XML-0149: (Error) Element 'arg0' used

Re: Validator question

2004-11-30 Thread Bill Siggelkow
Make sure you are using the latest release of Struts (http://struts.apache.org/acquiring.html). In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator that caused this problem. -Bill Siggelkow Vinicius Caldeira Carvalho wrote: Hi there! I'm trying to make my validator projetct

Re: Automatic logging

2004-11-30 Thread bryan
Incidentally I use a HUGE amount of AOP stuff and logging is the only thing I am not using with it. I use AOP for the following Declarative security management ( down to filtering returned Collections by an ACL ) Declarative transaction management ( so that I don't have any transaction

Re: struts 1.2.2 to 1.2.4 upgrade conflict log4j

2004-11-30 Thread Joe Germuska
The Category class in log4j has been deprecated for a long time, and I recall some recent discussions on the commons-dev list about bringing commons-logging up-to-date with that. I don't remember the details, but basically you just need to have compatible versions of commons-logging and

Re: UTF-8 encoding in html form

2004-11-30 Thread Joe Germuska
At 12:23 PM +0100 11/30/04, Guillaume Cottenceau wrote: Otto, Frank otto 'at' delta-barth.de writes: 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

Re: UTF-8 encoding in html form

2004-11-30 Thread Guillaume Cottenceau
Joe Germuska Joe 'at' Germuska.com writes: [...] As far as I know, the most reliable way is to specify accept-charset as UTF-8 in the form of the HTML (w3.org's description of this parameter: This attribute specifies the list of character encodings for input data that is accepted by the

Re: Validator question

2004-11-30 Thread Vinicius Caldeira Carvalho
Bill Siggelkow wrote: Make sure you are using the latest release of Struts (http://struts.apache.org/acquiring.html). In Struts 1.2.2 (IIRC) there was an inconsistency with the Validator that caused this problem. -Bill Siggelkow Vinicius Caldeira Carvalho wrote: Hi there! I'm trying to make my

Re: struts 1.2.2 to 1.2.4 upgrade conflict log4j

2004-11-30 Thread Ian van der Neut
On Tue, 30 Nov 2004 08:37:23 -0600, Joe Germuska [EMAIL PROTECTED] wrote: The Category class in log4j has been deprecated for a long time, and I recall some recent discussions on the commons-dev list about bringing commons-logging up-to-date with that. I don't remember the details, but

Re: Validator question

2004-11-30 Thread Duncan Mills
It might be worth enabling logging on the digester classes to see what's happening on the XML. I run validator using apps with Struts 1.1 in OC4J with no problem so there's not a fundamental issue here. Are you using OC4J inside JDeveloper or deploying to it from an external IDE? / Manually

RE: Tiles and Forms

2004-11-30 Thread Hollaway, Shedrick L CIV TRIREFFAC
Graeme, What is the attributes of your form (formAction)? Do you have a getter/setter for delete? I believe that this what 'html:checkbox property=delete' is looking for. Shed. -Original Message- From: Graeme Miller [mailto:[EMAIL PROTECTED] Sent: Monday, November 29, 2004 21:16 To:

RE: Searching pattern/best-practise for forms

2004-11-30 Thread Hollaway, Shedrick L CIV TRIREFFAC
And if you really like DispatchAction go a step further an try LookupDispatchAction. Shed. -Original Message- From: McDonnell, Colm (MLIM) [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 3:41 To: Struts Users Mailing List Subject: RE: Searching pattern/best-practise for forms

Re: Validator question

2004-11-30 Thread Vinicius Caldeira Carvalho
Duncan Mills wrote: It might be worth enabling logging on the digester classes to see what's happening on the XML. I run validator using apps with Struts 1.1 in OC4J with no problem so there's not a fundamental issue here. Are you using OC4J inside JDeveloper or deploying to it from an

RE: Validator question

2004-11-30 Thread Ram Venkataswamy
Check required validator in your validator-rules file - the message takes one argument {0} is required - whereas in validation file you are passing two values for 1 argument msg name=requerido key=erro.requerido/ arg0 key=login.nome/arg0 try removing msg.../

RE: Validator question

2004-11-30 Thread Ram Venkataswamy
Or if you want custom msg for required validator then name attribute of msg element should match that specified for depends attribute -Original Message- From: Ram Venkataswamy Sent: Tuesday, November 30, 2004 9:57 AM To: Struts Users Mailing List Subject: RE: Validator question Check

Newbie question regarding html:select

2004-11-30 Thread admin
Hello folks. I have a Bean called users with two properties (Id and Name) html:select name=users property=name html:options collection=users property=name labelProperty=name / /html:select When a choose a name in this selection i need to know the ID of the selected user. How can i do

request between actions

2004-11-30 Thread Morales de Frías, David
Hi all¡¡ I need your help, please. I have an action that forwards to another action, and i'm loosing request parameters. I have in struts-config this lines: forward name=xxx redirect=true path=/Xxxx.do / but it doesn't work. Can you help me?

Re: request between actions

2004-11-30 Thread Lee Harrington
redirect=false :) Lee On Tue, 30 Nov 2004 21:17:08 +0100, moralesdefrías moralesdefrías wrote: Hi all¡¡ I need your help, please. I have an action that forwards to another action, and i'm loosing request parameters. I have in struts-config this lines: forward name=xxx

RE: request between actions

2004-11-30 Thread Ram Venkataswamy
Set to true if a redirect instruction should be issued to the user-agent so that a new request is issued for this forward's resource. If true, RequestDispatcher.Redirect is called. If false, RequestDispatcher.forward is called instead. [false]. The culprit is redirect=true - check the

RE: Want to reject all-whitespace text input.

2004-11-30 Thread Dahnke, Eric (Company IT)
field property=email depends=required Cheers, Eric -Original Message- From: Frank Burns [mailto:[EMAIL PROTECTED] Sent: Sunday, November 21, 2004 8:23 AM To: Struts Users Mailing List Subject: Want to reject all-whitespace text input. Hi, I am trying to write a regular

RE: Want to reject all-whitespace text input.

2004-11-30 Thread Joe Germuska
At 3:40 PM -0500 11/30/04, Dahnke, Eric (Company IT) wrote: field property=email depends=required I think you missed some other discussion on this -- Frank wants a completely blank value to be accepted, but not a value which consists only of one-or-more whitespace characters. This is impossible

RE: Tiles and Forms

2004-11-30 Thread Graeme Miller
Simple question with no helpful responses so far. I must therefore conclude either a)Noone uses tiles because they are broken b)Noone understands tiles c)The way I am proposing to use tiles is so dramatically wrong at a design level that noone has a clue what I am asking. Just as a quick

Getting ActionMessages from session

2004-11-30 Thread Wes Kubo
Hi. I noticed that Struts 1.2.x has a new method saveMessages(HttpSession session, ActionMessages messages) that allows the ActionMessages to be stored in the session instead of the request. This is very helpful for displaying messages after a redirect. However, it doesn't seem like html:messages

Re: Tiles and Forms

2004-11-30 Thread Bill Siggelkow
I don't think it is possible to split a form across multiple Tiles because the Tile is a complete (translated) response. A form must be complete on a Tile. However, you can achieve the desired behavior by using the JSP include directive -- the included fragment will can be a portion of the

RE: Applicaton-specific logging in Struts

2004-11-30 Thread Graeme Miller
Firstly make sure you have no spaces after the commas and that the struts entry is on a separate line from the rootlogger entry Try something like log4j.rootCategory=DEBUG,stdout log4j.logger.org.apache.struts=FATAL -Original Message- From: Allen Day [mailto:[EMAIL PROTECTED] Sent:

Re: nested tiles

2004-11-30 Thread Stefan Clos
thanks Bill, your way to make nested tiles works fine. (After i changed extends to template in the second definition). It has the advantage that the jsp´s are smaller and easier to understand, but at the cost you need 2 definitions for each page. If you are only use one BodyFrame, you need a

RE: Applicaton-specific logging in Struts

2004-11-30 Thread Allen Day
That didn't make any difference, but it was worth a try so thanks! Is there a way to turn off the Struts logging? [EMAIL PROTECTED] 11/30/2004 2:30:54 PM Firstly make sure you have no spaces after the commas and that the struts entry is on a separate line from the rootlogger entry Try

AW: UTF-8 encoding in html form

2004-11-30 Thread Otto, Frank
Hello, thanks for your answer, but how can I do that the polish characters submitted correctly? f.e.: character #281; (\u0119). How can I convert this character to unicode. In the same way, that native2ascii do this. Is there any possibility? I use a servlet filter too. kind regards, Frank

RE: Applicaton-specific logging in Struts

2004-11-30 Thread Joe Germuska
At 10:30 AM +1300 12/1/04, Graeme Miller wrote: Firstly make sure you have no spaces after the commas and that the struts entry is on a separate line from the rootlogger entry Try something like log4j.rootCategory=DEBUG,stdout log4j.logger.org.apache.struts=FATAL Note that Struts uses a few

RE: Applicaton-specific logging in Struts

2004-11-30 Thread Allen Day
Thanks for your helpful advice Joe Graeme! Allen [EMAIL PROTECTED] 11/30/2004 2:35:59 PM At 10:30 AM +1300 12/1/04, Graeme Miller wrote: Firstly make sure you have no spaces after the commas and that the struts entry is on a separate line from the rootlogger entry Try something like

MVC initialization

2004-11-30 Thread jeichels
I know this is a bit off topic, but I figured I could get a better answer here. I am using Tomcat 4.1 and the latest production build for Struts in an MVC setup and have a large application already in production on the web. I need to enhance the model, but this enhancement will require me to

RE: MVC initialization

2004-11-30 Thread Robert Taylor
A standardized approach would be to implement a ServletContextListener and define it in your web.xml for the web app. It will be invoked before the web app accepts any requests and when the web app is shutdown. A more Struts approach would be to use a PlugIn and define it in your

Re: Tiles and Forms

2004-11-30 Thread Dakota Jack
If you want a form across Tiles is one thing. If you want a html:form across Tiles is another. Do you have to have the html:form ? If so, you can fairly easily write a custom sub-tag for html:form that would allow you to open the tag and close it part way through on one tile and open it again

RE: MVC initialization

2004-11-30 Thread Joe Germuska
At 6:02 PM -0500 11/30/04, Robert Taylor wrote: A standardized approach would be to implement a ServletContextListener and define it in your web.xml for the web app. It will be invoked before the web app accepts any requests and when the web app is shutdown. A more Struts approach would be to

RE: Tiles and Forms

2004-11-30 Thread David G. Friedman
Grasshopper! The solution is in plain site in the userGuide for the HTML Taglib. Use the name=someBeanName attribute available to many html:taglib fields. Hopefully, you are using a version of Struts which is recent enough to support that attribute (should be supported in 1.0, definitely in 1.1

RE: Tiles and Forms

2004-11-30 Thread David G. Friedman
Heh, hey. Substitute sight for site. in the first sentence of the below letter. Too much time spent on web development for me, don't you think? -David right sound, wrong spelling Friedman -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30,

Re: Struts training

2004-11-30 Thread M. Bitner
DevelopMentor offers a Struts class: http://www.develop.com/us/training/course.aspx?id=202 I haven't taken this particular class but I've gone to two of their other classes and was really impressed with them. Melissa - To

Re: Struts training

2004-11-30 Thread Eddie Bush
quote You will be introduced to Struts, the primary MVC framework for building Java Web Applications. /quot Doesn't sound like they go into it very deeply. It may be a very good class for a person that hasn't done any web development using Java technologies though. quot You should have

Re: Struts training

2004-11-30 Thread M. Bitner
You're right - I should have looked more closely. Sorry about that. On Tue, 30 Nov 2004 19:38:15 -0600, Eddie Bush [EMAIL PROTECTED] wrote: quote You will be introduced to Struts, the primary MVC framework for building Java Web Applications. /quot Doesn't sound like they go into it very

Re: nested tiles

2004-11-30 Thread Bill Keese
Yeah, I also wish there was more documentation on this. I think I found the flaw in your original design. In layout.jsp you want to take the body attribute defined in tiles-def.xml and pass it on to bodyFrame.jsp as bodypage. So you need to use beanName, right? tiles-def.xml:

Re: caching large data in web application

2004-11-30 Thread Shih-gian Lee
Well, if the data is read only, then you can just cache the data in a Hashtable and make it accessible through out the application. If your data is volatile, then you may consider writing a simple time based caching service - http://www.javaworld.com/javaworld/jw-07-2001/jw-0720-cache_p.html

RE: Automatic logging

2004-11-30 Thread Kinjal Sonpal
But realistically, I'm with Eddie -- what logging can you really apply consistently and automatically in a way that is more useful than noisy? If you have a bunch of fairly repetitive stuff spit out, then finding the real information is fairly tedious. I also agree with it. I'm only looking