Re: [OT] Struts + AJAX Trumps JSF

2005-10-13 Thread Michael Jouravlev
On 10/13/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > It's not going to kill Flash because, when used properly, Flash is > fantastic and different from anything else out there. Just as a silly > example: how am I going to a StrongBad eMail in Ajax? A lot of people > hate Flash, but I think

Re: [OT] Struts + AJAX Trumps JSF

2005-10-13 Thread Frank W. Zammetti
Speaking as someone who has been a huge Ajax proponent, as evidenced by my article on it, my Struts HTML taglib extension, my AjaxTags component in Java Web Parts and my reviewing of a new Ajax book to be released shortly, I ironically have to say that Ajax isn't something that is going to make

RE: [OT] Struts + AJAX Trumps JSF

2005-10-13 Thread Kito D. Mann
> > At this point, with the clear promise of AJAX, I cannot see > any reason > > to give up Struts and go to JSF. If I was starting a new web > > application today, I would use Struts and AJAX. > > Not that I going to jump JSF anytime soon, but: > http://www.icesoft.com/products/icefaces.htm

Custom Struts code or 1.2.8?

2005-10-13 Thread Paul Benedict
Does anyone ever run any custom versions of Struts or the Commons library? The reason I ask is because the bug that I need fix (it is now fixed) in Commons Validator isn't released for the Struts 1.2.x branch, but most likely will be released with Struts 1.3 Well I don't like using release 1 of

Re: problem with html:select / html:options

2005-10-13 Thread Sunil_Sahu
Troy, I think it should work like this Hope it helps Sunil Troy Bull <[EMAIL PROTECTED]> 10/13/2005 11:33 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject problem with html:select / html:options Hi I am trying to us

Re: struts 1.2.7 culprit.....?????

2005-10-13 Thread Wendy Smoak
From: "bib_lucene bib" <[EMAIL PROTECTED]> Any Comments? ... I got it to work with struts.jar details of which are ... Implementation-Title: Struts Framework Implementation-Version: 1.1 ... However if I use struts.jar from struts-1.2.7 I get an error saying ... The first thing I would try

Re: [Shale] Changing String type to HtmlInputText in Backingbean gives No Propertyeditor error

2005-10-13 Thread gramani
Rahul Akolkar <[EMAIL PROTECTED]> wrote on 10/13/2005 07:40:06 PM: > > I was tempted to change the prefix to JSF, but didn't want to break > the email thread. Much to my surprise I actually know why you say this - my "progress" with JSf/Shale has been so halting that most times i don't know if I

Re: [Shale] Changing String type to HtmlInputText in Backingbean gives No Propertyeditor error

2005-10-13 Thread gramani
Wendy Smoak <[EMAIL PROTECTED]> wrote on 10/13/2005 05:57:58 PM: > From: <[EMAIL PROTECTED]> > > > So my jsp has this: > > >value="#{registration.userName}" /> > > .. > > >binding="#{registration.password}" /> > > > > My backingbe

Re: struts 1.2.7 culprit.....?????

2005-10-13 Thread bib_lucene bib
Any Comments? Does struts 1.2.7 has problem? bib_lucene bib <[EMAIL PROTECTED]> wrote: ok got it to work... But here is the catch. I got it to work with struts.jar details of which are ... Manifest-Version: 1.0 Extension-Name: Struts Framework Specification-Title: Struts Framework Specificat

Re: [Shale] Changing String type to HtmlInputText in Backingbean gives No Propertyeditor error

2005-10-13 Thread Rahul Akolkar
On 10/13/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: <[EMAIL PROTECTED]> > > > So my jsp has this: > > >value="#{registration.userName}" /> > > .. > > >binding="#{registration.password}" /> > > > > My backingbean RegistrationB

Socket exception - please help

2005-10-13 Thread Murray Collingwood
Hi I have an action class that serves us images from my application. The java class is fairly simple and mostly copied from (our friend) the wiki: public class Image extends Action { /** Creates a new instance of Image */ public Image() { super(); } public Act

Re: not working when sending a file to client with struts.

2005-10-13 Thread Kishore Senji
> response.setContentType("application/zip"); > response.setHeader("Content-Disposition", "attachment; filename=" + > zipFileName); > response.setContentLength((int)tempCSVFile.length()); > BufferedInputStream bufferedInput = new BufferedInputStream(new > FileInputStream(tempCSVFile)); > BufferedOu

Re: validator. i need help

2005-10-13 Thread Simons Kevin
Miren, I have a working example now this is the validator-rules.xml (nothing changed in fact the normal one delivered with apache) "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd

Re: [Shale] Changing String type to HtmlInputText in Backingbean gives No Propertyeditor error

2005-10-13 Thread Wendy Smoak
From: <[EMAIL PROTECTED]> So my jsp has this: .. My backingbean RegistrationBean has the following: private HtmlInputText userName = null; private HtmlInputSecret password = null; with appropriate getters and setters. What happens if you use 'binding' instead of 'value' for the userName?

Re: Re: not working when sending a file to client with struts.

2005-10-13 Thread Simons Kevin
horshaq can you provide some details. I just spent four hours! on just getting a simple validation going!... But perhaps I can help you. - Original Message - From: "horshaq" <[EMAIL PROTECTED]> To: Sent: Thursday, October 13, 2005 9:39 PM Subject: Re: not working when sending a file to

Re: not working when sending a file to client with struts.

2005-10-13 Thread horshaq
Thanks for responding. >From you action after setting the headers and I assume you also >write the Zip >file contents to the OutputStream how are you going >back to the JSP. Yes, i do the following: response.setContentType("application/zip"); response.setHeader("Content-Disposition", "attachme

Re: not working when sending a file to client with struts.

2005-10-13 Thread Kishore Senji
> file along with any errors in creating the csv files. I'm finding that my > ActionErrors do not get returned to my .jsp file after calling the setHeader > method and changing the header. Does anyone have any suggests on how to best > to return errors to the user keeping in mind I already have a

[Shale] Changing String type to HtmlInputText in Backingbean gives No Propertyeditor error

2005-10-13 Thread gramani
I *finally* had time to download and build Shale from source and I did notice that error(UICompnenet, String) is indeed fixed (thank you again, Ronald Holshausen:)).. So anyway i decided to make parallel changes to another of my backing bean's attributes. So my jsp has this: .. My backingbea

Re: Validation Configuration for Multiple Modules

2005-10-13 Thread Adam Hardy
Sorry forgot to mention, I set it up with struts 1.1 (not the beta tho!) Yes you can use bugzilla to look for an old bug. A key word search is probably easiest but the search parameters on bugzilla can be set quite extensively. Sympathy for your situation. What a pain. Adam [EMAIL PROTECTED

using request tag from jstl

2005-10-13 Thread temp temp
I am trying to use jstl request tag to save an object into request scope. As per the docs syntax is AAbb I want to put an object rather than a string in the request.How can I acheieve this? thanks®ards __ Yahoo! Music Unlimited Acces

Re: validator. i need help

2005-10-13 Thread Kishore Senji
Either extend ValidatorForm or ValidatorActionForm. There are Dyna flavors of those forms as well. If you use Struts 1.2.4 your form can just be a POJO without extending any flavor of ValidatorForm, Struts will just turn it into a BeanValidatorForm which is a ValidatorForm and so the Validations wo

Re: Shale Question

2005-10-13 Thread Rahul Akolkar
On 10/13/05, Ryan Wynn <[EMAIL PROTECTED]> wrote: > Everything is working correctly now. I think the ViewControllerMapper was > not being set/picked up because I had specified the myFaces > org.apache.myfaces.webapp.FacesServlet directly instead of > javax.faces.webapp.FacesServlet. OK, I did gl

Re: Shale Question

2005-10-13 Thread Ryan Wynn
Everything is working correctly now. I think the ViewControllerMapper was not being set/picked up because I had specified the myFaces org.apache.myfaces.webapp.FacesServlet directly instead of javax.faces.webapp.FacesServlet. The filters are not causing a problem in Websphere Portal environme

Re: [OT] Struts + AJAX Trumps JSF

2005-10-13 Thread Michael Jouravlev
On 10/13/05, Mike Duffy <[EMAIL PROTECTED]> wrote: > I think AJAX will evolve to the point where it will become a serious Flash > competitor IMHO Flash sucks: http://jroller.com/page/javadujour?entry=laszlo > At this point, with the clear promise of AJAX, I cannot see any reason to > give up St

Re: Shale Question

2005-10-13 Thread Rahul Akolkar
On 10/13/05, Ryan Wynn <[EMAIL PROTECTED]> wrote: > I seem to be getting warning "No ViewControllerMapper has been configured > for this application". > > This started happening in the portlet environment, not in plain servlet > environment. > > First question, should I have to set up a view contro

Re: not working when sending a file to client with struts.

2005-10-13 Thread horshaq
Nobody? I've searched the web for the past few hours and can't seem to find anything related this topic. I can't be the only one to have this problem occur. I should also mention that i've try using as well and they don't show up either. Someone must know the answer, please speak up if you d

Re: casting a request attribute into Object

2005-10-13 Thread Dave Newton
temp temp wrote: So my question is how to cast an object retrieved from request attribute into its Original form ? http://struts.apache.org/userGuide/struts-bean.html#define Set the type? Dave - To unsubscribe, e-mail:

casting a request attribute into Object

2005-10-13 Thread temp temp
I have a jsp (Parent Jsp) in which I use jsp:include to include other jsp (child Jsp) . In the Parent Jsp I retrieve an Object from the formbean and set it in request scope. <%=ramQuestionsDocument%>

Re: [OT] Struts + AJAX Trumps JSF

2005-10-13 Thread Vic Cekvenich
Mike Duffy wrote: I think AJAX will evolve to the point where it will become a serious Flash competitor Or JDNC, like roomity.com, that now in beta.roomity.com has video streaming and on main site foaf and tagging ;-) .V ---

[OT] Struts + AJAX Trumps JSF

2005-10-13 Thread Mike Duffy
I am exploring AJAX for the purpose of creating rich Internet applications. I am very impressed. I think AJAX will evolve to the point where it will become a serious Flash competitor (there are already libraries emerging for custom web components; see: http://www.backbase.com). One of the ea

Re: validator. i need help

2005-10-13 Thread Simons Kevin
Miren, I just start with the validators too. I don't have a working example yet... However you have the class ActionForm, ValidatorFor and ValidatorActionForm. If you don't use validation with the commons validator u extend ActionForm. If you do you a validator and you want to associate the val

Re: [OT] Re: Struts and db connections :: best practice

2005-10-13 Thread Frank W. Zammetti
On Thu, October 13, 2005 12:37 pm, Dave Newton said: > Frank W. Zammetti wrote: > >> Everyone else raised completely valid points about not doing what your >> doing in an Action and why you shouldn't, so I'll just try and answer >> the question :) > > Thus ending a fine and noble tradition. > > Boo

Re: Communication between Applet and Struts

2005-10-13 Thread Leon Rosenberg
On 10/13/05, Matthias Holthus <[EMAIL PROTECTED]> wrote: > Hi! > > Perhaps this is offtopic but I don't know a better place to ask. Sorry for > that. ;) > Step 1. Define a protocol to be spoken between the applet and the server side application. XML would be first choice, but you also can use Java

Re: Communication between Applet and Struts

2005-10-13 Thread Leon Rosenberg
On 10/13/05, Matthias Holthus <[EMAIL PROTECTED]> wrote: > Hi! > > Perhaps this is offtopic but I don't know a better place to ask. Sorry for > that. ;) > Step 1. Define a protocol to be spoken between the applet and the server side application. XML would be first choice, but you also can use Java

Re: Communication between Applet and Struts

2005-10-13 Thread Leon Rosenberg
On 10/13/05, Matthias Holthus <[EMAIL PROTECTED]> wrote: > Hi! > > Perhaps this is offtopic but I don't know a better place to ask. Sorry for > that. ;) > Step 1. Define a protocol to be spoken between the applet and the server side application. XML would be first choice, but you also can use Java

Re: problem with html:select / html:options

2005-10-13 Thread Dave Newton
Troy Bull wrote: and if I try this on the same page what I can't figure out is how to make this work: http://struts.apache.org/userGuide/struts-html.html#options Note the differences between property and labelProperty, and marvel at the power of documentation! ;) Also

problem with html:select / html:options

2005-10-13 Thread Troy Bull
Hi I am trying to use the struts taglibs as much as I can and I have the following situation. I have a collection object filled with DTO beans stored in session. The following prints out the list as I would expect: and if I try this on the same page what I can't figure

Re: How to do Multiple String comparisons Using struts tags

2005-10-13 Thread Kishore Senji
With logic:equal and logic:notEqual the multiple "OR" logic can be done in a round about way, but I don't think it's recommended. Just use JSTL or use Niall Pemberton's tag extensions http://husted.com/struts/resources/logic-niallp.htm On 10/13/05, Meenakshi Singh <[EMAIL PROTECTED]> wrote: > > H

Shale Question

2005-10-13 Thread Ryan Wynn
I seem to be getting warning "No ViewControllerMapper has been configured for this application". This started happening in the portlet environment, not in plain servlet environment. First question, should I have to set up a view controller mapper instance in the first place because shouldn't S

Communication between Applet and Struts

2005-10-13 Thread Matthias Holthus
Hi! Perhaps this is offtopic but I don't know a better place to ask. Sorry for that. ;) I'm building a webapp with some function for painting specific diagrams. This part is outsourced into an applet while the rest remains in normal HTML/JSP-pages. As I need to load data from the server into th

[OT] Re: Struts and db connections :: best practice

2005-10-13 Thread Dave Newton
Frank W. Zammetti wrote: Everyone else raised completely valid points about not doing what your doing in an Action and why you shouldn't, so I'll just try and answer the question :) Thus ending a fine and noble tradition. Booo, Frank, bo! ;) Dave

Re: action class not being called for repeat requests when using validation

2005-10-13 Thread Dave Newton
John Andrews wrote: Is there someway to get the validator to only return directly to the jsp page only after a submit - not after an initial request? - or is there some other good way to solve/design around this issue? I simply turn off auto-validation. In my Actions I forward to the inpu

Validator Error

2005-10-13 Thread RathinaGanesh MeenakshiSundaram
Hi All, Can anyone please help me with the following error message. I'm using Struts 1.2.7 and commons-validator-1.1.4 I had the validator working previously, but now for some reasons..its not working.. Please help me in this. The following is the error message Iam getting. 11:01:12,039 ERROR [

Re: Struts and db connections :: best practice

2005-10-13 Thread Bryon Lape
I'm not sure about best practices, but I try to avoid database connections in my actions. I tend to put this code in the model objects and let them handle exceptions and so forth. > Hi all, > In a well written struts application, we assume declarative exception > handling is used. Therefore the c

Re: Struts and db connections :: best practice

2005-10-13 Thread Frank W. Zammetti
Everyone else raised completely valid points about not doing what your doing in an Action and why you shouldn't, so I'll just try and answer the question :) * Wrap your call to getConnection() in a try block with only a finally: try { Connection con = getDataSource().getConnection(); }

not working when sending a file to client with struts.

2005-10-13 Thread horshaq
Hello, this is my first post here. I am pretty new to struts and have wasted a ton of time trying to figure out why my error messages (using ActionErrors) were not getting displayed on my .jsp page. After commenting out all of my code, i've realized it has to do with the following lines of cod

Re: Struts and db connections :: best practice

2005-10-13 Thread Vic Cekvenich
Best practice has nothing to do w/ struts. On Struts wiki there are several DAO's you can pick from. Struts allows MVC layers, so that you can unit test each layer. For example unit test the model and dao. Even w/in a DAO... you never use a connection. So I recommend you select a dao, and unit

Re: Struts and db connections :: best practice

2005-10-13 Thread DGraham
Am I experiencing DejaVu? Links that might interest you: http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html (see Figure 9.1) http://www.hibernate.org/ http://www.springframework.org/docs/ref

Re: Struts and db connections :: best practice

2005-10-13 Thread Larry Meadors
I would argue that a well-written struts application will *never* (at least 99.999% of the time) have jdbc code in it. Larry On 10/13/05, emre akbas <[EMAIL PROTECTED]> wrote: > Hi all, > In a well written struts application, we assume declarative exception > handling is used. Therefore the code

Struts and db connections :: best practice

2005-10-13 Thread emre akbas
Hi all, In a well written struts application, we assume declarative exception handling is used. Therefore the code of the action classes will look clean and short (and nice) because all the exception handling is done via the exception-handler classes outside. My question is about db connection mana

How to do Multiple String comparisons Using struts tags

2005-10-13 Thread Meenakshi Singh
Hi All I have been working with Struts Framework for some time now. However, I am stuck with a problem. While writing code in JSP, whenever I want to compare multiple String cases, I can cod it as below <% String s="ABC"; if(s.equals("BC")||s.equals("CD")||s.equals("ABC")){ System.out.print

Where to go after unsuccesfull ActionForm validation?

2005-10-13 Thread Koen Jans
Here is the problem; (sorry for long text) Normally, when you validate an actionform and there is a validation error, the "input" argument in struts-config.xml points you back to the inputform, so you can place an error message on the form where the incorrect input is.. First problem: ---

RE: action class not being called for repeat requests when using validation

2005-10-13 Thread John Andrews
Hi Sunil, I am much clearer now on what the problem is. It is a problem with the struts validator. If I follow the following sequence: 1) Request a URL 2) Struts reads action mapping 3) Struts creates a formbean 4) Struts passes this FORMBean to the validator - Before!!! the page has ever been

Re: Validation Configuration for Multiple Modules

2005-10-13 Thread tarek . nabil
Thanks Adam. I'm sure no one will be able to verify whether this was a bug in 1.1b2 (why I'm using b2 is a looong story, but I'm stuck with it). Is there a way I can find out from Bugzilla whether this was a bug that was fixed in later versions? - Original Message - >From Adam Hardy

Re: Free Database Graphical Tool

2005-10-13 Thread 梁炳場
I just try it. SQuirrel SQL Client Version 2.0 final is very good. 2005/10/13, Zsolt <[EMAIL PROTECTED]>: > At http://squirrelsql.org I cannot see anything about eclipse. Can you help > me please where I can find the eclipse plug-in. > > Zsolt > > >-Original Message- > >From: news [mailt

[ANN] JAVAWUG / BOF XIII / Belgo Central / Friday 28th Sept 2005 / 19:00

2005-10-13 Thread Pilgrim, Peter
Hi The ``JAVA Web User Group'' is pleased to announce. Please meet for the BOF XIII London meet-up at the ``Belgo Central Restaurant'' at 19:00M on Friday, 28th October, 2005. 50 Earlham Street, Covent Garden, London, WC2H 9HP United Kingdom Nearest Tube: Covent Garden Cuisine: Belgian Te

Tiles and XHTML mode

2005-10-13 Thread Fredrik Fornwall
Does xhtml mode () work with tiles? Only on the main page does the xhtml mode work, all included tiles from there does not use it. Is it because xhtml mode is a page context attribute which the included tiles cannot access? Any workarounds?