Re: JSF -> Shale transition

2005-09-09 Thread Dakota Jack
Hi, Rick. The fact is that this gentleman asked for an opinion that will influence his business. I think he deserves an honest answer, even if the "debate" might be old hat to you. On 9/9/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Walton, Kaleb (ISS Southfield) wrote the following on 9/9/2005

Re: JSF -> Shale transition

2005-09-09 Thread Dakota Jack
The point is not about Struts, which performs fine. THe problem is with JSF, which does not. On 9/9/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > What do you mean by "inferior if you are interested in performance". Is > > the overhead of the dialog/navigation processing pretty high? > > > > I

Re: Who decides?

2005-09-09 Thread Dakota Jack
I sympathize entirely with what you are saying, Murray, and believe that there is no good reason for the present difficulties you face. The situation is NOT inevitable or even desirable. I would strongly suggest you consider the Spring alternative which is highly unlikely to change in fundamental

Re: Who decides?

2005-09-09 Thread Craig McClanahan
There's no way to respond to quite all of the fascinating questions you are raising in one message, but I'm packing up tonight to head for Beijing to speak at the inagural Java China Conference (http://www.javachina.cn), so I've got a few minutes to wax philosophical. This is also probably worth

Who decides?

2005-09-09 Thread Murray Collingwood
I'm just a humble Struts user (and relatively new), and I don't claim to speak for the group as a whole. I have read through Donald Brown's presentation (Struts 1.3 and beyond) and I get the feeling that the goal posts just don't stop moving. The time I have spent learning and creating a Stru

Re: "Struts 1.3 and Beyond" Presentation

2005-09-09 Thread Craig McClanahan
On 9/9/05, Don Brown <[EMAIL PROTECTED]> wrote: > > Heh, well, I can assure you I for one have my doubts :) Shale is one of > the > more interesting developments in Struts and certainly deserved a few > slides. > My goal was not to promote Shale as the future, but provide a snapshot of > the man

Re: "Struts 1.3 and Beyond" Presentation

2005-09-09 Thread Don Brown
Heh, well, I can assure you I for one have my doubts :) Shale is one of the more interesting developments in Struts and certainly deserved a few slides. My goal was not to promote Shale as the future, but provide a snapshot of the many growth areas within Struts, Shale included. I wanted to say

Re: "Struts 1.3 and Beyond" Presentation

2005-09-09 Thread 梁炳場
Don I have read your presentation. I give me an impression. Shale is the future of Struts without doubt!!! 2005/9/8, Don Brown <[EMAIL PROTECTED]>: > I just finished giving a presentation titled "Struts 1.3 and Beyond" to the > Silicon Valley Web Developer JUG that I thought folks on this lis

Re: [Shale] First shot at writing a "Shale filter"

2005-09-09 Thread gramani
Craig McClanahan <[EMAIL PROTECTED]> wrote on 09/09/2005 05:08:47 PM: > > > > > First, you put your exclude patterns for /index.jsp and /logon.faces on the > *second* command rather than the first, so they weren't rejected by the > initial filter. > > Second, not rejecting those patterns in

how to write cookie from a Struts jsp file

2005-09-09 Thread Legolas Woodland
Hi Thank you for reading my post. How i can write a cookie from a Struts jsp file into client system ? I mean when user pressed sub,it button i write the cookie in a way that i can use it within logic:present and logic:notPresents tags .

Re: [Shale] First shot at writing a "Shale filter"

2005-09-09 Thread Craig McClanahan
On 9/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > So. I am trying to write a Shale filter. This is how my chain.config.xml > looks like: > > > > > "org.apache.shale.application.ContextRelativePathFilter" > includes= > "\S*\.faces,\S*\.html,\S*\.gif,\S*\.jpg,/index\.jsp" > excludes="

ot: struts obsesed

2005-09-09 Thread Vic Cekvenich
http://jroller.com/page/RickHigh?entry=is_struts_dead_is_struts Is he going to get over it? I wonder who the #2 framework is? .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[Shale] First shot at writing a "Shale filter"

2005-09-09 Thread gramani
So. I am trying to write a Shale filter. This is how my chain.config.xml looks like: My PreprocessFilter extends ContextRelativePathFilter and has the foll. accept method: public void accept(ShaleWebContext context) throws Exception { ShaleWeb

Re: SingleSignOn for struts based app with SiteMinder

2005-09-09 Thread Joe Germuska
I have developed a few applications using SiteMinder, but none where my site was responsible for authenticating the user. I believe that you are likely a victim of the inflexibility of the container based security specifications. If you need a login to be effected within your container withou

SingleSignOn for struts based app with SiteMinder

2005-09-09 Thread abhay . b . chaware
Hi ! Ours is a struts based application and uses container based security. I want to protect the application site by Site Minder and enable single sign on for this application. The application uses j_security_check and userPrincipal object in the authentication mechanism. What can I do to make t

RE: Nested error

2005-09-09 Thread Wiebe de Jong
I am definitely using session scope. Struts-config snippet: Action snippet: private ActionForward doProductSetUpdate(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { log.debug("

SingleSignOn for struts based app with SiteMinder

2005-09-09 Thread abhay . b . chaware
Hi ! Ours is a struts based application and uses container based security. I want to protect the application site by Site Minder and enable single sign on for this application. The application uses j_security_check and userPrincipal object in the authentication mechanism. What can I do to make t

Re: Nested error

2005-09-09 Thread Michael Jouravlev
It was initialized when JSP was prepared, then response was returned to the browser. If you use formbean with request scope, it is gone. When you hit the submit button, you initiate new request, it which the form is recreated, and this field may not be initialized. So, the fact that you were able

Re: Nested error

2005-09-09 Thread Rick Reumann
Wiebe de Jong wrote the following on 9/9/2005 1:58 PM: Michael, The collection was initialized. In fact, it had several items in it and the form had successfully displayed, as I mentioned. The error occurs when I hit the submit button, whether I changed any values or not. But are you re-intia

RE: Nested error

2005-09-09 Thread Wiebe de Jong
Michael, The collection was initialized. In fact, it had several items in it and the form had successfully displayed, as I mentioned. The error occurs when I hit the submit button, whether I changed any values or not. Wiebe -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTE

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread Craig McClanahan
On 9/9/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > > Craig McClanahan wrote the following on 9/9/2005 12:18 PM: > > > For Shale in particular, the "application controller" part of Shale is > > implemented as a Commons Chain chain (similar in spirit to what's going > on > > with Struts 1.3's re

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread Gary VanMatre
This is another example: http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/clayplugin/src/java/org/apache/shale/clay/faces/ClayViewHandlerCommand.java?view=markup The only requirement is that the command's implement the Command interface. The common chains is a pretty sweet idea (http://jak

Re: Nested error

2005-09-09 Thread Michael Jouravlev
On 9/9/05, Wiebe de Jong <[EMAIL PROTECTED]> wrote: > I just started using nested tags on a page, and when I submit it, Struts > causes the following error: > > HTTP ERROR: 503 Service Unavailable > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > RequestURI=/ecom/productSetUpdateSubmit.do

RE: JSF -> Shale transition

2005-09-09 Thread Walton, Kaleb \(ISS Southfield\)
I should've shut my mouth earlier :). Kaleb -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Friday, September 09, 2005 12:18 PM To: Struts Users Mailing List Subject: Re: JSF -> Shale transition I prefer to do all my webapps in Assembly running on dedicated

Nested error

2005-09-09 Thread Wiebe de Jong
I just started using nested tags on a page, and when I submit it, Struts causes the following error: HTTP ERROR: 503 Service Unavailable java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 RequestURI=/ecom/productSetUpdateSubmit.do This happens before even getting to my action. The form is dis

RE:

2005-09-09 Thread Enda Dowling
Hey, I got it working by using a Meta tag to forward it to the right URL. Thanks for the email though Enda -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: 09 September 2005 02:52 To: user@struts.apache.org Subject: Re: Enda Dowling wrote: >

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread gramani
Rick Reumann <[EMAIL PROTECTED]> wrote on 09/09/2005 12:36:39 PM: > Craig McClanahan wrote the following on 9/9/2005 12:18 PM: > > > For Shale in particular, the "application controller" part of Shale is > > implemented as a Commons Chain chain (similar in spirit to what's going on > > with S

Re: Validation :: best practice?

2005-09-09 Thread Michael Jouravlev
On 9/9/05, emre akbas <[EMAIL PROTECTED]> wrote: > Hi, > I want to know what the state-of-the-art practices about Struts validation > are. Try these: https://strutslive.dev.java.net https://formdef.dev.java.net > It is well-known that there are some problems in automatic validation. > Here is

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread Rick Reumann
Craig McClanahan wrote the following on 9/9/2005 12:18 PM: For Shale in particular, the "application controller" part of Shale is implemented as a Commons Chain chain (similar in spirit to what's going on with Struts 1.3's request processor), so you can also implement a check like this as one

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread gramani
Gary, Rick, Craig: thanks very much! Geeta

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread Craig McClanahan
On 9/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Rick Reumann <[EMAIL PROTECTED]> wrote on 09/09/2005 12:01:48 PM: > > > > > I would think JSF could use regular servlet filters? If so, that's where > > > I'd do stuff that you want checked on almost every request. Even in > > Struts, I

Re: JSF -> Shale transition

2005-09-09 Thread Frank W. Zammetti
I prefer to do all my webapps in Assembly running on dedicated hardware with no OS at all. Beat *THAT* performance! ;) Frank Gary VanMatre wrote: What do you mean by "inferior if you are interested in performance". Is the overhead of the dialog/navigation processing pretty high? In persp

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread Gary VanMatre
>Thanks for your response Gary. Maybe I misunderstand your suggestion, but >I think you are telling me how to get "userName". But here's my real >question: don't you end up writing code like: > >String userName = getBean("sessionScope.userName"); >if (userName == null) return "loggedOff"; > >in

Re: JSF -> Shale transition

2005-09-09 Thread Rick Reumann
Walton, Kaleb (ISS Southfield) wrote the following on 9/9/2005 9:17 AM: What do you mean by "inferior if you are interested in performance". Is the overhead of the dialog/navigation processing pretty high? Oh no:) Here we go again:)... JSF sucks. No, Sruts sucks. Spring rules. No, Spring suck

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread gramani
Rick Reumann <[EMAIL PROTECTED]> wrote on 09/09/2005 12:01:48 PM: > > I would think JSF could use regular servlet filters? If so, that's where > I'd do stuff that you want checked on almost every request. Even in > Struts, I wouldn't touch the RequestProcessor. Use a ServletFilter. oh yes, c

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread gramani
[EMAIL PROTECTED] (Gary VanMatre) wrote on 09/09/2005 11:49:12 AM: > There are several ways to handle this, maybe too many options: > > From a view controller: > >String userName = getBean("sessionScope.userName"); Thanks for your response Gary. Maybe I misunderstand your suggestion, but I

RE: JSF -> Shale transition

2005-09-09 Thread Gary VanMatre
> What do you mean by "inferior if you are interested in performance". Is > the overhead of the dialog/navigation processing pretty high? > In perspective, vanilla servlet programming is faster than Struts. Isn't it relative to what you *value* in a web framework. Gary > -Original Mes

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread Rick Reumann
[EMAIL PROTECTED] wrote the following on 9/9/2005 10:19 AM: I can see myself doing this check many times in many methods in many backing beans (which extend AbstractViewController). What is the appropriate way to implement this check - or for that matter any other common code? I can of course

Re: Validation :: best practice?

2005-09-09 Thread Rick Reumann
emre akbas wrote the following on 9/9/2005 10:12 AM: , I want to know what the state-of-the-art practices about Struts validation are. It is well-known that there are some problems in automatic validation. Here is a good article: http://www.reumann.net/struts/articles/request_lists.jsp Are the

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread Gary VanMatre
There are several ways to handle this, maybe too many options: >From a view controller: String userName = getBean("sessionScope.userName"); Or, create a managed bean with the parameter like a Struts form bean: userParms myobject request userName #{sessionScope.user

Re: Generate ActionMessage object without referring to the resource file

2005-09-09 Thread Wendy Smoak
From: "Deepesh Nandal" <[EMAIL PROTECTED]> I need to generate an ActionMessage object without referring to the resource file, as the message is received from a different server on the fly. I need it so that the message could be a Java String object ,the Following code DOESN'T work : Strin

Re: Validation :: best practice?

2005-09-09 Thread Niall Pemberton
I think you're assertion is incorrect. including the tag on a page will generate all the javascript validations for a form - they get "invoked" by you putting some javascript in the 's onsubmit event - nothing to do with the validate setting in the struts config. All the validate=false setting con

[Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread gramani
Hi all: I am making small and halting progress with my Shale application and have this pretty fundamental question. Suppose my backing bean has this code: public String getWorkList() { String username = (String) FacesContext.getCurrentInstance() .getExternalContext().getSessionMap()

Validation :: best practice?

2005-09-09 Thread emre akbas
Hi, I want to know what the state-of-the-art practices about Struts validation are. It is well-known that there are some problems in automatic validation. Here is a good article: http://www.reumann.net/struts/articles/request_lists.jsp Are the ideas in this article obsolete? As far as I under

Hibernate 3 versioning/concurrency

2005-09-09 Thread Lee Harrington
Hi folks, Would love to get some "best practices" for setting up hibernate with struts. I'm gettin "staleobject" exceptions when I'm the only one editing. I had this problem with Hibernate 2 and eventually solved it, but never really understood. Now the problem is back, and I'm stuck again. N

Hib

2005-09-09 Thread Lee Harrington

Fwd: Re: Fwd: Re: Re: RE: how to represent nested bean properties in a jsp form

2005-09-09 Thread temp temp
I solved the problem by creating an instance of AddressVO in the formbean. Here is my code after modifications. public class ServiceSelectionForm extends ActionForm { private AddressVO addressVO = new AddressVO(); public AddressVO getAddressVO() { return addressVO;

Re: Eclipse 3.1 and struts 1.2.7

2005-09-09 Thread Ed Griebel
I've used myeclipse for 6-9 months and I've really come to like the JSP and XML editors. I've found the Struts editing to be useless unless your project is set up exactly the way the plugin expects it to be. I just started using NitroX, it is way better integrated with Struts and JSPs than myeclip

RE: JSF -> Shale transition

2005-09-09 Thread Walton, Kaleb \(ISS Southfield\)
What do you mean by "inferior if you are interested in performance". Is the overhead of the dialog/navigation processing pretty high? -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Thursday, September 08, 2005 4:19 PM To: Struts Users Mailing List Subject: Re: JSF -

Re: Cookie problem is killing me

2005-09-09 Thread Martin Gainty
Good Morning David The domain name you supply must conform to rfc2109 domain name specification (reference) http://www.faqs.org/rfcs/rfc2109.html to quote "7.2 Protocol Design The restrictions on the value of the Domain attribute, and the rules concerning unverifiable transactions, are mea

Re: Action based validations

2005-09-09 Thread Joe Germuska
At 2:55 PM -0400 9/8/05, rajiv verma wrote: I am using struts 1.2 and my client side validations using based on action rather than form are not working? Is there a bug in the 1.2 release. I have worked previously with 1.1 and it used to work just fine. In the validation file, instead of I coul

Re: Eclipse 3.1 and struts 1.2.7

2005-09-09 Thread Rafael Nami
I think wtp is a very good choice, but it doesn't run "for" Struts. If you want something that can simplify your development with Struts, I think is better thinking on the purchase of MyEclipse(awesome plugin, not too expensive), or if you want a free option, take a look at the new NetBeans(5.0). I

ActionForm Problem

2005-09-09 Thread OJAY78
[EMAIL PROTECTED] I have a problem with my Form Bean: On my jsp I have have a List of values and put them on my jsp with this code <%=lineNo.intValue()+1%> I get those values I want on my JSP. I tried to get those values into my ActionForm with indexed properties but it wont work

Re: Action based validations

2005-09-09 Thread Adam Hardy
rajiv verma on 08/09/05 19:55, wrote: I am using struts 1.2 and my client side validations using based on action rather than form are not working? Is there a bug in the 1.2 release. I have worked previously with 1.1 and it used to work just fine. In the validation file, instead of I could

Re: Template Depository, but how?

2005-09-09 Thread David Haynes
I'm not sure of your detailed requirements, but you may find a tool such as xmoon (http://xmoon.sourceforge.net) or velocity (http://jakarta.apache.org/velocity/) useful. -david- Danny Lee wrote: Hi guys, Let's imagine that I'm building a web store and have a lot of different product group

Template Depository, but how?

2005-09-09 Thread Danny Lee
Hi guys, Let's imagine that I'm building a web store and have a lot of different product groups. For every product group I have a template describing how to peresent the products in this group. My web store have to be cool, so there is an admin interface, where the admin can create new pro

Generate ActionMessage object without referring to the resource file

2005-09-09 Thread Deepesh Nandal
Hi There, I need to generate an ActionMessage object without referring to the resource file, as the message is received from a different server on the fly. Following code works fine if i have "Login.invalid" defined in the resource property file. ActionMessage message = new ActionMessage("Log

RE: Chain of commands in 1.3

2005-09-09 Thread Marco Mistroni
Hello Michael, Not sure if this is of any help, but Mr Ted Husted has written a MailReader application That uses Struts and Common Chains, When I checked it out (last april) it was at this link http://svn.apache.org/viewcvs.cgi/struts/sandbox/trunk/?root=Apache-SVN I have followed that a

AW: A nice easy question

2005-09-09 Thread Martin Kindler
I would use an int (whether cents or tenth of cent if you are in the oil business depends on your application). No rounding problems, no parsing problems. Martin > -Ursprüngliche Nachricht- > Von: Murray Collingwood [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 9. September 2005 09:15 >

Antwort: A nice easy question [ Virenprüfung durchgeführt]

2005-09-09 Thread oliver . graf
"Murray Collingwood" <[EMAIL PROTECTED]> am 09.09.2005 09:14:58 Bitte antworten an "Struts Users Mailing List" An: user@struts.apache.org Kopie: Thema: A nice easy question [Virenprüfung durchgeführt] b) use double If you have to do calculations with the value, it's better to use

RE: A nice easy question

2005-09-09 Thread Murray Collingwood
Thanks Kathir So which class do you use to format the float into a String representation like "$#,##0.00" ? Kind regards mc On 9 Sep 2005 at 12:50, Murugesan, Kathiresan (Cognizant) wrote: > Its always better to use Float object while handling price related fields... > > Regards > Kathir. >

RE: A nice easy question

2005-09-09 Thread Murugesan, Kathiresan \(Cognizant\)
--- Begin Message --- Its always better to use Float object while handling price related fields... Regards Kathir. From: Murray Collingwood [mailto:[EMAIL PROTECTED] Sent: Fri 9/9/2005 12:44 PM To: user@struts.apache.org Subject: A nice easy question Hi all

A nice easy question

2005-09-09 Thread Murray Collingwood
Hi all I put a price field (float) in a form (textbox) but had some trouble parsing the text using the DemicalFormat class (it doesn't seem to like the 'float' type). So I went through changing my field to 'int' but now of course I can only store whole dollar amounts. To save me lots of tim

Re: Struts forward and jsessionid

2005-09-09 Thread Craig McClanahan
On 9/8/05, Néstor Boscán <[EMAIL PROTECTED]> wrote: > > Hi Michael > > In my case, I'm working with WAP applications that require the jsessionid > to > be in the URL. In the case of Struts redirect forward it doesn't put the > jsessionid in the URL. When I browse using a WAP my session is lost i