Re: Struts internationalization best practices

2006-02-10 Thread Laurie Harper
Keith Fetterman wrote: We could use some help from people that have experience internationalizing their Struts applications. I'd like to find out what the best practice is for handling these three cases: 1. One or more large paragraphs of text. Depending on how large the paragraphs are and

Bean Population When Form Cancelled

2006-02-10 Thread Tom Ansley
Hi all, I have a form that uses validator to check for simple validation like making sure that a cash amount is a double. I have the "cancel" button on the form set so that if it is pressed that validation does not take place. This is great except when you type a letter into the cash text box an

Re: struts mapped properties

2006-02-10 Thread vladimir lenin
Laurie Harper holoweb.net> writes: > > http://struts.apache.org/struts-doc- 1.2.x/userGuide/building_view.html#indexed > Thank you for the link. I tried list[0](key1) to get the value of "key1" in the map in the list at location 1. but it is not working --

Re: struts mapped properties

2006-02-10 Thread Laurie Harper
vladimir lenin wrote: I have a List of HashMaps (both the key and value are strings) List list=new ArrayList(); for(int i=0;i<10;i++) { Map map=new HashMap(); for(int j=0;j<10;j++) { map.put("key"+j,"value"+j); } list.add(map); } This list is in an action form. wha

Re: Trouble processing JSP containing variable number of parameters

2006-02-10 Thread Laurie Harper
[EMAIL PROTECTED] wrote: I'm trying to capture a variable number of records from a JSP page and place those records into an ArrayList in a form bean. I know I should be able to figure it out, but I'm stuck. My jsp page contains: action="/testel/processMailData.do">

Re: Auto generated JSP for beans

2006-02-10 Thread Torgeir Veimo
On Fri, 2006-02-10 at 10:31 -0500, Grant Ingersoll wrote: > I > was wondering if anyone knows of any JSP tags that would allow me to > auto-generate the HTML input tags for the properties to these > interface implementations. I don't have any code that I can send you, but we do this for LDAP b

Re: [Shale] Property in ViewController Backing Bean is null

2006-02-10 Thread Craig McClanahan
On 2/10/06, Peter Goetz <[EMAIL PROTECTED]> wrote: > > Hello Craig, > > thank you very much, I didn't know that the action method is not > executed when a validation error occurs. That seems to be the problem, > because all of my form input fields are required fields and the messages > get filled.

Re: [Shale] Property in ViewController Backing Bean is null

2006-02-10 Thread Peter Goetz
Hello Craig, thank you very much, I didn't know that the action method is not executed when a validation error occurs. That seems to be the problem, because all of my form input fields are required fields and the messages get filled. Is there a way to skip validation on some actions? I would l

struts mapped properties

2006-02-10 Thread vladimir lenin
I have a List of HashMaps (both the key and value are strings) List list=new ArrayList(); for(int i=0;i<10;i++) { Map map=new HashMap(); for(int j=0;j<10;j++) { map.put("key"+j,"value"+j); } list.add(map); } This list is in an action form. what is syntax to get/set va

Re: [SHALE] Using the Test Framework

2006-02-10 Thread Craig McClanahan
On 2/10/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > The only classes in shale-test.jar that depend on the rest of Shale is the > convenience base classes in the org.apache.shale.test.base package. The > mock object classes have no dependencies on Shale, so you're welcome to use > them to

RE: With a new project, what technologies should I use?

2006-02-10 Thread Vu, Thai
Wow, an answer from a prof. :) Sorry that I didn't give any information about the project I want to do. Your question showed that I missed a lot of things. - I am a sole developer building a 3MB source code application in a reasonable amount of time period (don't laugh at me please :) ). - The

Re: {shale] Backing bean (prerender) functionality in buttons on a tile

2006-02-10 Thread gramani
[EMAIL PROTECTED] wrote on 02/10/2006 04:54:15 PM: > [EMAIL PROTECTED] wrote on 02/10/2006 03:58:11 PM: > > > > > I would clarify this "recommended method" to have one backing bean per > > *Tile* not just for the whole page. That sounds pretty much like what > you > > did below. > > > > Ah,

Re: {shale] Backing bean (prerender) functionality in buttons on a tile

2006-02-10 Thread gramani
[EMAIL PROTECTED] wrote on 02/10/2006 03:58:11 PM: > > I would clarify this "recommended method" to have one backing bean per > *Tile* not just for the whole page. That sounds pretty much like what you > did below. > Ah, I didn't know that! Ok, so my app certainly doesn't follow this rule, b

Re: With a new project, what technologies should I use?

2006-02-10 Thread Frank W. Zammetti
Wow Ted, that was just about the most cliche-ridden post I've seen in a while :) If that's what you were going for, mission accomplished! LOL Of course, every single cliche you used is completely true and applicable here, so no one minds I'm sure :) -- Frank W. Zammetti Founder and Chief Soft

Re: [SHALE] Using the Test Framework

2006-02-10 Thread Wendy Smoak
On 2/10/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote: > Thanks, Wendy. So where do I look for the weekly Maven repositories? > The Shale PDF document mentions these, but it only gives a url for the > nightly builds, not for a Maven repository. > > I'm new to Maven as well (unfortunately)

Re: [OT off topic] Oracle Database Performace Issue

2006-02-10 Thread Jason King
Have you run an explain plan? Jonnalagadda, Sumithra wrote: Here is the query SELECT PTI.PARTY_ID AS "CUSTID", PTI.CMA_CUSTOMER_NUMBER AS "CUSTNUM", PTI.SOURCE_ID AS "CUSTSOURCE", PTI.PARTY_CLASS_CD AS "CLASS", (SELECT CMAPSV.STATUS_VALUE FROM type3 CMAPS, type4 CMAPSV WHERE PTI.PARTY_TYPE_IN

RE: [SHALE] Using the Test Framework

2006-02-10 Thread CONNER, BRENDAN \(SBCSI\)
Thanks, Wendy. So where do I look for the weekly Maven repositories? The Shale PDF document mentions these, but it only gives a url for the nightly builds, not for a Maven repository. I'm new to Maven as well (unfortunately), so the above question may sound naive. I may just stick with getting t

Re: [OT off topic] Oracle Database Performace Issue

2006-02-10 Thread Legolas Woodland
Jonnalagadda, Sumithra wrote: Here is the query SELECT PTI.PARTY_ID AS "CUSTID", PTI.CMA_CUSTOMER_NUMBER AS "CUSTNUM", PTI.SOURCE_ID AS "CUSTSOURCE", PTI.PARTY_CLASS_CD AS "CLASS", (SELECT CMAPSV.STATUS_VALUE FROM type3 CMAPS, type4 CMAPSV WHERE PTI.PARTY_TYPE_INSTANCE_ID = CMAPS.PARTY_TYPE_IN

Re: With a new project, what technologies should I use?

2006-02-10 Thread Ted Husted
On 2/10/06, Vu, Thai <[EMAIL PROTECTED]> wrote: >. Now what should I use if I > have to write a new web application? And correct me if I'm wrong > anywhere please. It's a little bit like asking a building contractor: "What materials should I use to build a new structure?" Just to pose a few rheto

RE: security struts action servlet

2006-02-10 Thread Garner, Shawn
I'm only using servlet 2.3. I wrote a filter and tried that out but I couldn't ever detect the /pages/* context. All I could see was index.jsp and /welcome.do. Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Friday, February

Logic Tag Question

2006-02-10 Thread Kalcevich, Daniel
Everyone, I have two modules defined (/ & /app). I want to use the logic tag (either redirect or forward) to take me to the URL "/myApp/index.htm" when I enter in just "/myApp/". I have defined an action within the "/" module Struts Config File that is called "/index" and forwards to a Tiles

RE: [OT off topic] Oracle Database Performace Issue

2006-02-10 Thread Jonnalagadda, Sumithra
yes. its a prepared statement. I am not the authour of the query. In production we started to have performance issues so trying to investigate. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Larry Meadors Sent: Friday, February 10, 2006 1:03 PM To: Struts Us

Re: [OT off topic] Oracle Database Performace Issue

2006-02-10 Thread Larry Meadors
Huh...and that runs slow? Imagine that. ;-) Sweet mother of mystery, that is one gnarly query. Seems to have a lot of repetition in it...could it be redone as a stored procedure? Are you running it as a prepared statement? Larry On 2/10/06, Jonnalagadda, Sumithra <[EMAIL PROTECTED]> wrote: >

RE: [OT off topic] Oracle Database Performace Issue

2006-02-10 Thread Jonnalagadda, Sumithra
Here is the query SELECT PTI.PARTY_ID AS "CUSTID", PTI.CMA_CUSTOMER_NUMBER AS "CUSTNUM", PTI.SOURCE_ID AS "CUSTSOURCE", PTI.PARTY_CLASS_CD AS "CLASS", (SELECT CMAPSV.STATUS_VALUE FROM type3 CMAPS, type4 CMAPSV WHERE PTI.PARTY_TYPE_INSTANCE_ID = CMAPS.PARTY_TYPE_INSTANCE_ID AND CMAPS.PARTY_STATUS

Re: {shale] Backing bean (prerender) functionality in buttons on a tile

2006-02-10 Thread Craig McClanahan
On 2/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thanks for reading my note. > > I have a Shale/MyFaces/ app which i have been using with Tiles. I have > pages home.jsp, search.jsp etc. And since the recommended method is to > have one backing bean per jsp, I have corresponding HomeBean

Re: [SHALE] Using the Test Framework

2006-02-10 Thread Wendy Smoak
On 2/10/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote: > Also, I noticed links to nightly downloads on the Shale project's web > site, but I was not able to locate any "release" downloads. Are there > "release" downloads available? If so, are they relatively up-to-date, > or would I be b

RE: using Token issues

2006-02-10 Thread fea jabi
I solved it just by setting transaction attribute to true in html:link. Once I did that everything woked fine like magic. This forum has been real helpful to me. thankyou all for helping. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Su

{shale] Backing bean (prerender) functionality in buttons on a tile

2006-02-10 Thread gramani
Thanks for reading my note. I have a Shale/MyFaces/ app which i have been using with Tiles. I have pages home.jsp, search.jsp etc. And since the recommended method is to have one backing bean per jsp, I have corresponding HomeBean, SearchBean, etc. and everything works quite nicely. But now I

Re: security struts action servlet

2006-02-10 Thread Craig McClanahan
On 2/10/06, Garner, Shawn <[EMAIL PROTECTED]> wrote: > > Sorry, that's what I meant. It's a forward. Not a redirect. > > How do I apply my security to /pages/* in this case? If you are talking about container managed security, you cannot ... you'll have to use a redirect. If you are using some

RE: security struts action servlet

2006-02-10 Thread Garner, Shawn
Sorry, that's what I meant. It's a forward. Not a redirect. How do I apply my security to /pages/* in this case? Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Friday, February 10, 2006 1:35 PM To: Struts Users Mailing L

Re: [OT] Re: With a new project, what technologies should I use?

2006-02-10 Thread Larry Meadors
By "knows", I mean the basics (insert/update/delete) and at least how to do sub-selects and how to use "group by". I do not expect *everyone* to be a stored procedure stud, but they need to know when and how to use them if they need to, and be able to say "I don't know, can you help me?" when need

Re: [SHALE] Using the Test Framework

2006-02-10 Thread Craig McClanahan
On 2/10/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote: > > I'm new to Shale, but I've been using JSF (and the MyFaces > implementation) for about 18 months now. I'm interested in utilizing > the Test Framework that Shale offers, but I'm unsure about how much that > framework depends upon t

[SHALE] Using the Test Framework

2006-02-10 Thread CONNER, BRENDAN \(SBCSI\)
I'm new to Shale, but I've been using JSF (and the MyFaces implementation) for about 18 months now. I'm interested in utilizing the Test Framework that Shale offers, but I'm unsure about how much that framework depends upon the rest of Shale. Can I use it in isolation with a vanilla JSF applicati

Re: [shale] cannot run unit test framework with java 1.4

2006-02-10 Thread Craig McClanahan
On 2/10/06, Ryan Wynn <[EMAIL PROTECTED]> wrote: > > java.lang.UnsupportedClassVersionError: > org/apache/shale/test/base/AbstractViewControllerTestCase (Unsupported > major.minor version 48.0) > > Does AbstractVCTestCase require java 1.5 now or is this a build > problem? I am using java 1.4 and c

[OT] Re: With a new project, what technologies should I use?

2006-02-10 Thread Dave Newton
Larry Meadors wrote: > - iBATIS because HQL sucks, and every coder worth *paying* knows SQL > I'd actually disagree with this... unless we're using different definition of "knows". Many (most?) developers might have the basics of SQL down, but becoming an expert in SQL is the same as in any oth

Re: security struts action servlet

2006-02-10 Thread Craig McClanahan
On 2/10/06, Garner, Shawn <[EMAIL PROTECTED]> wrote: > > I was messing around with security in the web.xml and tried to implement > authorization restrictions with the struts-blank.war. > > I put restrictions on the /pages/* directory. > > Funny thing is that it seems that since the index.jsp does

Re: [Shale] Property in ViewController Backing Bean is null

2006-02-10 Thread Craig McClanahan
One thing to double check is whether some validation rules are failing, which would cause the action method call to get bypassed. The simplest way to verify this is to add an component to your page, which will display any validation messages that exist, or nothing if there were no messages. It's

RE: With a new project, what technologies should I use?

2006-02-10 Thread Tom Ansley
"because HQL sucks" - sounds very scientific Could you explain that please? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Meadors Sent: Friday, February 10, 2006 11:27 AM To: Struts Users Mailing List Subject: Re: With a new project, what technol

Re: With a new project, what technologies should I use?

2006-02-10 Thread Larry Meadors
I have to agree w/ Simon on this: it really does depend on the project, but tried and true is key - use what you know you can succeed with. Don't experiment with real projects. Learning new stuff is great, but getting paid is great, too. :) I started a project in December, and went with: - JDK5

Re: With a new project, what technologies should I use?

2006-02-10 Thread Simon Chappell
The answer is "it depends". I love playing with new stuff, but when my back's against the wall (corporate deadlines, gotta love 'em) I stick with the tried and tested. I'm leading a small project right now that we started in December and we're using Struts. There are a number of reasons for this:

Problem whith html:optionscollection

2006-02-10 Thread José María Tristán
Hi, I have a bean form: import java.util.*; import org.apache.struts.action.ActionForm; import org.apache.struts.util.LabelValueBean; public class CustomSubmitForm extends ActionForm { private String m_firstName = null ; private String[] m_countryCode; priva

RE: With a new project, what technologies should I use?

2006-02-10 Thread Garner, Shawn
I'd use JSF/Shale/JBoss/Hibernate/MySQL. I've never used Spring or Shale (Although I think it'd be worthwhile after reading about Shale) so I'll let others voice on that one. I've only used the MyFaces implementation and didn't have any problems on JBoss. I've been using struts for 3 years now an

With a new project, what technologies should I use?

2006-02-10 Thread Vu, Thai
Hello everybody, Could you give me some advices? Assume that I know how to use Struts, Hibernate, iBATIS and know nothing about Spring, JSF (but willing to learn :) ). Now what should I use if I have to write a new web application? And correct me if I'm wrong anywhere please. I heard that Spring

RE: MVC + ORM

2006-02-10 Thread Tom Ansley
Hi Marcio, I use Hibernate with Struts and the way I ensure that the session does not get closed is by using a filter. This filter opens up and closes a session at the beginning and end of each request. Then, if I need to use those objects again I associate them with the session and carry on. T

Re: [shale] clay method binding symbol replacement

2006-02-10 Thread Ryan Wynn
On 2/10/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: > This was bug http://issues.apache.org/bugzilla/show_bug.cgi?id=38492, fixed in > the 20060205 nightly build. Thanks, Gary. Missed that one.

[shale] cannot run unit test framework with java 1.4

2006-02-10 Thread Ryan Wynn
java.lang.UnsupportedClassVersionError: org/apache/shale/test/base/AbstractViewControllerTestCase (Unsupported major.minor version 48.0) Does AbstractVCTestCase require java 1.5 now or is this a build problem? I am using java 1.4 and cannot run my test cases now. using shale-test.jar from 2/10.

Re: [shale] clay method binding symbol replacement

2006-02-10 Thread Gary VanMatre
>From: Ryan Wynn <[EMAIL PROTECTED]> > > As of 20060202 version of clay I cannot specify a method binding as > the value of a symbol. > > For example > does not work. Is this something that has been fixed post 20060202? > I could have sworn that the symbol replacement was always being done >

Re: MVC + ORM

2006-02-10 Thread Srini Pillai
You could use servlet filters to have the hibernate session open until the request is processed. There are articles in the www.hibernate.org that explains different patterns to handle situations similar to yours... Hibernate session needs to be open in order for the objects to load the collectio

security struts action servlet

2006-02-10 Thread Garner, Shawn
I was messing around with security in the web.xml and tried to implement authorization restrictions with the struts-blank.war. I put restrictions on the /pages/* directory. Funny thing is that it seems that since the index.jsp does a redirect to the pages directory and the action servlet does the

MVC + ORM

2006-02-10 Thread Marcio Ghiraldelli
I´m using Struts 1.2.8 with Hibernate 3.0.5 and I´m doubt with some concept designs for ORM with MVC: A Hibernate session get's instantiated in my DAO constructor (Model). Later on, the JSP (View) catches the Hibernate persisted objects populated in the request or session by the Control

using Token issues

2006-02-10 Thread fea jabi
In my JSP, there are 4 buttons add, delete, save, return which returns to previous JSP. I am trying to use Token, to handle double submit. My post action is a LookupDispatchAction, and have implemented code for add, delete, save, return. I am trying to use isTokenValid(request,true) in all

Auto generated JSP for beans

2006-02-10 Thread Grant Ingersoll
Hi, I am a long time user of Struts, but am new to the mailing list. I am using a LazyValidatorForm in Struts 1.2.7 and I am trying to setup some configuration screens for some interfaces that have a fair number of weights/properties. Additionally, there are several implementations of the in

[Shale] Property in ViewController Backing Bean is null

2006-02-10 Thread Peter Goetz
Hi there! I'm new to Struts, to Shale and to this list, so excuse if I'm asking dumb questions. I have a simple .jsp (personmaintenance.jsp), backed by a backing bean (PersonMaintenance.class. In the jsp I have buttons with actions "save", "edit", "delete", "create", for which I defined the co

[shale] clay method binding symbol replacement

2006-02-10 Thread Ryan Wynn
As of 20060202 version of clay I cannot specify a method binding as the value of a symbol. For example works, but does not work. Is this something that has been fixed post 20060202? I could have sworn th

Re: prevent validation of disabled fields on the JSP page

2006-02-10 Thread Madhav Bhargava
Unfortunately i am using Struts 1.1 and commons-validator 1.0 On 2/10/06, Vladislav Pernin <[EMAIL PROTECTED]> wrote: > Which version of commons-validator are you using. > > I'm using Struts 1.2.8 and commons-validator 1.2.0, it validate only the > non disabled field. > >

[ANN] Slides Available JAVAWUG BOF XV

2006-02-10 Thread Pilgrim, Peter
Hi All Very quickly, we recently held the JAVAWUG (Java Web User Group) BOF XV at Oracle City of London. Slides are available from here. http://jroller.com/page/javawug?entry=updated_new_presentation_slides_for -- Peter Pilgrim :: J2EE Software Development Operations/IT - Credit Suisse Group - "O

Re: prevent validation of disabled fields on the JSP page

2006-02-10 Thread Vladislav Pernin
Which version of commons-validator are you using. I'm using Struts 1.2.8 and commons-validator 1.2.0, it validate only the non disabled field. Extracted from commons-validator.jar : function validateRequired(form) { var isValid = true; var focusField = nu

prevent validation of disabled fields on the JSP page

2006-02-10 Thread Madhav Bhargava
Hi All, I have a JSP page where on the select of a radio button some controls are disabled/enabled. The form bean associated with this JSP extends ValidatorForm. I have created rules in validation-xml for each of these controls which are there on the screen. One rule that is common to all the cont

Re: [test] ignore

2006-02-10 Thread David Delbecq
I see nothing but 7bit charset in you mail, sorry :) Pilgrim, Peter a écrit : >Testing using Micro$oft Outlock 200 sp3 > >I seem to be have problems with my mail sent to google group sent as 7bit >character set. Just want to prove that apache and sourceforge dont >have to the problem, and elimin

[test] ignore

2006-02-10 Thread Pilgrim, Peter
Testing using Micro$oft Outlock 200 sp3 I seem to be have problems with my mail sent to google group sent as 7bit character set. Just want to prove that apache and sourceforge dont have to the problem, and eliminate these providers. -- Peter Pilgrim :: J2EE Software Development Operations/IT -