Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread Jason Thurston
Musachi, I like that src link you included. I looked at it then found the Dispatcher.java class to look at the getInstance() method. It's getting a threadlocal of struts2 instance. So I realized sitemesh must be calling that header.jsp page before struts2 get's a chance to put it's instance in

JSTL Empty equivalent for struts 2.0.6

2007-03-19 Thread tom tom
Hi, What is the struts 2.0.6 equivalent for the empty check for the following do something Thanks TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/ -

Why following is not working

2007-03-19 Thread tom tom
Hi, Can some body let me know why following is not working "> Personal Details can't we have "> Personal Details

[s2] Possibility to hide input fields if not empty?

2007-03-19 Thread Piero Sartini
Just wondering how you guys would make something like this: When a Field in a form is null or empty it should be displayed, if it is already filled it should disappear. Is there an easy way to do this with s2? Use-Case is to ask the user missing information after login. Piero.

Re: How do you provide a Map from the application scope for the list of a s:select

2007-03-19 Thread Piero Sartini
Am Donnerstag, 15. März 2007 schrieb Dave Newton: > --- Piero Sartini <[EMAIL PROTECTED]> wrote: > > --- code --- > > Are you sure you are using the right Action to reach > the JSP? I cannot duplicate the problem with identical > code. (I am not using JSPX, although I'm not sure that > would matter

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Rick Schumeyer
This thread has been fascinating, because others have expressed exactly my thoughts. I have a lengthy background in C/C++, and some Java and C#. All of which are strongly typed languages. As someone else said, I really like when the compiler knows the difference between an int and a cat. I

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Dave Newton
--- James Mitchell <[EMAIL PROTECTED]> wrote: > Of course, I'm sure we all said the same thing about > Java when we first picked it up ;) Yeah... I said "Damn, it sure is a lot harder to solve problems in Java." Better IDEs have sure helped a lot, though. > Sorry, I'm not trying to push Ruby on

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread James Mitchell
I believe it's a combination of both. Coding in ruby changes the way you think about problem solving. It really does. Of course, I'm sure we all said the same thing about Java when we first picked it up ;) Given a specific problem to tackle, I could easily write the same number of lines

Tiles Migration Issue

2007-03-19 Thread Piwoni, Andre
I have a web application written using Struts and JSP. What I'd like to do is to move slowly to use Tiles as well. The following piece of code is used throughout JSP pages: In the first pass for new JSP pages instead of using the JSP include mechanism I'd like to use the Tiles insert m

Re: [s2] Confused about

2007-03-19 Thread Martin Gainty
Brian Looking at public class DynamicTreeSelectAction extends ActionSupport which acquires the org.apache.struts.action2.showcase.ajax.tree.Category category by nodeID as in private Category currentCategory; when the Action class acquires the Category by nodeID e.g. public String execute() thro

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Dave Newton
--- Ted Husted <[EMAIL PROTECTED]> wrote: > If you wanted to also make it a full Java ASF stack, > include Harmony, Derby, and iBATIS. > > Harmony : Derby : iBATIS : Tomcat : Struts - HITS You KNOW you want to put Struts first... and we can't have enough shitty Java books. d. _

Re: [s2] Confused about

2007-03-19 Thread Dave Newton
--- Brian Thompson <[EMAIL PROTECTED]> wrote: > [... issues] In my case, rootNode is a Hibernate POJO that has a mapping element with each element being the same type as the rootNode. So the pseudo-class for rootNode is: public class MyPojo { // nodeIdProperty attribute @property L

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Ted Husted
On 3/19/07, James Mitchell <[EMAIL PROTECTED]> wrote: If you ever do get the Agile Web Development with Rails book or pdf and build the Depot app along with the book, you'll be asking yourself why anyone does anything other than Rails. You've been warned! Do you credit Rails with that, or that

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Ted Husted
On 3/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: We should be able to "wrap the stack" so a mere mortal developer might get an S2 Hello World application running in less than a week. I don't know much about AppFuse, but it seems reasonable that a "click here to build app" could be writt

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > We should be able to "wrap the stack" so a mere > mortal developer might get an S2 Hello World > application running in less than a week. Again, to provide a counterpoint, I had a "Hello, World" S2 app running in about 10 minutes, not including the download, but in

[s2] Confused about

2007-03-19 Thread Brian Thompson
Hi, list I'm trying to render a list of objects from my action class as a tree menu using the Struts 2 tag, and I'm not having any luck. I can get the static example from planetstruts to work, but the dynamic example only leaves me scratching my head (Without digging in the source, how am I sup

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread James Mitchell
I took up Ruby and Rails about 5 months ago. I did so more along the lines of why I took up JSF. I wanted to take a serious look and be able to say with authority that I either liked or disliked it. I was a skeptic at first. I said all the same things that you hear most java folks chatt

Re: Bread Crumbs in Struts-2

2007-03-19 Thread Matt Filion
After you created it and add it to the project there will be :) Matt Filion CSC - GTS --> Raytheon - ISF (818) 468-6271 [EMAIL PROTECTED] --

Re: DownloadAction IE problem on Open

2007-03-19 Thread Martin Gainty
what advantage(s) does DownloadAction have over doPut In classic HttpServelet if a doPut is badly formatted you get a 501 if DownloadAction request is badly formatted is the exception eaten..what happens? M-- --- This e-mai

RE: DownloadAction IE problem on Open

2007-03-19 Thread Scott Smith
This happens the first time I attempt to download the file. I also have tried it on IE7 and Firefox and it works fine on both those browsers. Only IE6 has a problem (don't have a IE5 or IE5.5 to try). I also looked in the cache (since the full path is in notepad) and there is nothing there under

Re: DownloadAction IE problem on Open

2007-03-19 Thread Bindul Bhowmik
Hello Scott, On 3/19/07, Scott Smith <[EMAIL PROTECTED]> wrote: I've implemented a file download using the Struts 1.2.9 version of org.apache.struts.actions.DownloadAction. When the user hits the download button, he or she gets the save/open/cancel dialog with the correct filename. In Firefox,

DownloadAction IE problem on Open

2007-03-19 Thread Scott Smith
I've implemented a file download using the Struts 1.2.9 version of org.apache.struts.actions.DownloadAction. When the user hits the download button, he or she gets the save/open/cancel dialog with the correct filename. In Firefox, hitting "save" or "open" does exactly what I expect (i.e., I can s

Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread stanlick
Musachy -- Not exactly sure what an "OP" is, but I am trying to save my brother from banging his head on the keyboard. I have found S2's Ajax support to be harder to actually write than the docs would otherwise suggest. Understand this comment does not apply generally to S2, but rather a slice

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread stanlick
Now this is an interesting thread! I attended NFJS this weekend here in St Louis, and there was no buzz around Struts whatsoever. In fact, most presenters (and the "expert" panel) even downplayed Java and described it as a language that was no longer productive enough for their companies. It wa

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Leon Rosenberg
On 3/19/07, Ted Husted <[EMAIL PROTECTED]> wrote: I know many of us think of JavaScript as a tinkertoy language, but it's not. There's nothing that people do in Java or Ruby or Python that we couldn't do just as easily in JavaScript. CrockFord's video training clips are a real eye-opener How a

Re: Bread Crumbs in Struts-2

2007-03-19 Thread Ray Clough
Yeah, That's how I see it, too. That's how I did it in Struts-1, with the ability to go to the current page, previous page, or page before previous. I'm wondering if there is some existing facility to do this. Ray Clough Matt Filion wrote: I would imagine you'd actually want to do this wit

Re: Bread Crumbs in Struts-2

2007-03-19 Thread Matt Filion
I would imagine you'd actually want to do this with an interceptor. Each successful execution update the breadcrumbs (probably stored in the value stack in some properly modeled container :) ). Matt Filion CSC - GTS --> Raytheon - ISF (818) 468-6271 [EMAIL PROTECTED] -

Re: Using Struts Validator framework

2007-03-19 Thread Dave Newton
--- "Kaushal, Anubhav" wrote: > The user input is taken and then corresponding > record is fetched from the database. Depending on > the query result, I need to display appropriate > message to the user. How can I achieve this? It's not clear to me what this has to do with the Validator framewor

Using Struts Validator framework

2007-03-19 Thread Kaushal, Anubhav
I am using Struts Validator framework and DynaActionForm for performing form data validations. The user input is taken and then corresponding record is fetched from the database. Depending on the query result, I need to display appropriate message to the user. How can I achieve this? It will be of

Bread Crumbs in Struts-2

2007-03-19 Thread Ray Clough
Is there any established "bread crumb" technique in Struts2 - that is: execute an action and then return to the current page, whatever that page might be. I implemented this feature in Struts-1 with a custom controller, and it seems to me that a custom Interceptor would probably be the best w

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Greg Reddin
On 3/19/07, Ted Husted <[EMAIL PROTECTED]> wrote: To me, the attractive thing about Ruby is that it's a full stack. We can code in Ruby, soup to nuts ("turtles all the way down"), and the Rails framework provides an interesting way to generate starter applications. With Java and JavaScript inte

Re: struts.xml - change default location

2007-03-19 Thread James Mitchell
I don't understand why it has to be loaded from outside the classpath. There are facilities in place to let you do what you want, but you would be fighting an uphill battle. I don't see the justification for changing code to simplify this. Please help me understand why you have to have y

Is Struts version 1.2.4 compatible with J2EE 1.4 and Java 5?

2007-03-19 Thread Sunitha Garapati
Is Struts version 1.2.4 compatible with J2EE 1.4 and Java 5? Thanks for your help!

Re: Howto Construct Editable Tree

2007-03-19 Thread Angelo zerr
No problem. I hope that JSControlsTags will please you. Angelo 2007/3/19, Peter Neu <[EMAIL PROTECTED]>: Sorry, I overlooked it. Thanks for the hint. -Pete > -Ursprüngliche Nachricht- > Von: Angelo zerr [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 19. März 2007 15:39 > An: Struts Us

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Dave Newton
--- Ted Husted <[EMAIL PROTECTED]> wrote: > I know many of us think of JavaScript as a tinkertoy > language, but it's not. One thing that's been particularly interesting to me, coming from a Smalltalk and Lisp background, is people's reactions to JavaScript. Lots of the JavaScript techniques are

AW: Howto Construct Editable Tree

2007-03-19 Thread Peter Neu
Sorry, I overlooked it. Thanks for the hint. -Pete > -Ursprüngliche Nachricht- > Von: Angelo zerr [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 19. März 2007 15:39 > An: Struts Users Mailing List > Betreff: Re: Howto Construct Editable Tree > > Hi pete, > have you read > http://jscontro

[BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-19 Thread Ted Husted
On 3/19/07, James Mitchell <[EMAIL PROTECTED]> wrote: Oh, lol I do RoR on the side. I'm not sure where all this dynamic language stuff is heading (ruby vs groovy vs others) with respect to java, but I plan to be a part of it. More on that later... -- James Mitchell The Ruby Roundup http://

Re: Howto Construct Editable Tree

2007-03-19 Thread Angelo zerr
Hi pete, have you read http://jscontrolstags.sourceforge.net/controls/treeview/treeview.htmldocumentation ? Regards Angelo 2007/3/19, Peter Neu <[EMAIL PROTECTED]>: Hi, I just deployed the jscontrolstags war. This looks good to me. Is there some more documentation on how set it up in your o

AW: Howto Construct Editable Tree

2007-03-19 Thread Peter Neu
Hi, I just deployed the jscontrolstags war. This looks good to me. Is there some more documentation on how set it up in your own app? :o) Cheers, Pete > -Ursprüngliche Nachricht- > Von: Angelo zerr [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 19. März 2007 15:19 > An: Struts Users Mai

RE: Howto Construct Editable Tree

2007-03-19 Thread Sarr, Nathan
Hi Pete, Unfortunately, I've never actually had to edit the nodes - however for displaying a tree it was one of the best I found. The user guide can be found here: http://www.jenkov.com/projects/prizetags/download/Tree_Tag_User_Guide.pdf There may be better tree implementations for edi

Re: Howto Construct Editable Tree

2007-03-19 Thread Angelo zerr
Hi, you can see http://jscontrolstags.sourceforge.net/ too. There is treeview tag based on tafeltree (javascript treeview), prototype and scriptaculous. You have demo at http://jscontrolstags.sourceforge.net/demo/treeview/treeview.html (AJAX doesn't works at sourceforge). You can drag/drop node, e

AW: Howto Construct Editable Tree

2007-03-19 Thread Peter Neu
Hi, Looks good - can you edit the nodes? Cheers, Pete > -Ursprüngliche Nachricht- > Von: Sarr, Nathan [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 19. März 2007 15:09 > An: Struts Users Mailing List > Betreff: RE: Howto Construct Editable Tree > > Hi Pete, > > You might want to try >

Re: Is there a mailing list for S2 only?

2007-03-19 Thread Ted Husted
:) If you want to pick nits, I'm a .NET/YUI guy these days :) -Ted On 3/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Thanks. BTW, what's a Ruby Roundup guy doing here? Just curious. Scott On 3/19/07, James Mitchell <[EMAIL PROTECTED]> wrote: > > No >

RE: Howto Construct Editable Tree

2007-03-19 Thread Sarr, Nathan
Hi Pete, You might want to try http://www.jenkov.com/prizetags/introduction.tmpl They have a tree tag that I have found very useful. Best, -Nate -Original Message- From: Peter Neu [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 9:43 AM To: user@struts.apache.org Subject: Howto

Re: Is there a mailing list for S2 only?

2007-03-19 Thread James Mitchell
Oh, lol I do RoR on the side. I'm not sure where all this dynamic language stuff is heading (ruby vs groovy vs others) with respect to java, but I plan to be a part of it. More on that later... -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 8:31 A

Howto Construct Editable Tree

2007-03-19 Thread Peter Neu
Hello, I have a hierarchically organized data object which I need to display. The user may edit some of its attributes. I figured it must be a tree like structure with editable nodes. Is there an easy way to do this in Struts 1.x? I'm not very good at writing JavaScript code. :o( Has anybody do

Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I honestly think you are barking up the wrong tree > using S2 for Ajaxy UI. Just to provide a counter-example, I am using many of the S2 tags in multiple applications to provide a fair amount of Ajaxification very successfully. There are definitely many use-cases t

Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread Musachy Barroso
How exactly does your comment help the OP? musachy On 3/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Musachy -- I have given up on the AJAX theme and moved exclusively to Prototype.jsfor asynch behaviors. There is no mystery prototype.js and it is very clear to code/read. I had been

Re: Is there a mailing list for S2 only?

2007-03-19 Thread stanlick
Thanks. BTW, what's a Ruby Roundup guy doing here? Just curious. Scott On 3/19/07, James Mitchell <[EMAIL PROTECTED]> wrote: No -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 8:10 AM, [EMAIL PROTECTED] wrote: > ??? > > -- > Scott > [EMAIL PROTECTED]

Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread stanlick
Musachy -- I have given up on the AJAX theme and moved exclusively to Prototype.js for asynch behaviors. There is no mystery prototype.js and it is very clear to code/read. I had been using XHR directly and thought S2's tags would make my life simpler. However, even coding with XmlHttpRequest

Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread Musachy Barroso
Looking at that line here: http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_6/core/src/main/java/org/apache/struts2/views/jsp/ComponentTagSupport.java?annotate=509057 Container container = Dispatcher.getInstance().getContainer(); it seems like Dispatcher.getInstance() is returning

Re: struts.xml - change default location

2007-03-19 Thread Bartek
Hi James Well, the default location of struts.xml is classpath location e.g. WEB-INF/classes. And I want to load it from outside the classpath, e.g. directly from WEB-INF directory. How can I do this? I thought , I coudl do this as in case of struts1 - using config of actionservlet. Of course in

Re: Is there a mailing list for S2 only?

2007-03-19 Thread James Mitchell
No -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 8:10 AM, [EMAIL PROTECTED] wrote: ??? -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Is there a mailing list for S2 only?

2007-03-19 Thread stanlick
??? -- Scott [EMAIL PROTECTED]

Re: struts.xml - change default location

2007-03-19 Thread James Mitchell
Can you restate your question? -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 5:21 AM, Bartek wrote: Hi I have to face up the following issue. My location of struts.xml shoudl be WEB-INF directory, not WEB-INF/classes. What is the easiest way to achie

Re: Do I really need to migrate to Struts2?

2007-03-19 Thread skillipedia
Thank you for your replies That's what I am going to do, Laurie Harper . I modified many parts of Struts1.x and it's better to keep it as it is. Besides the controller module works perfect for me Cheers -- View this message in context: http://www.nabble.com/Do-I-really-need-to-migrate-to-St

Generic Selection Screen

2007-03-19 Thread Michel Van Asten
Hi, I need a generic "selection screen" in my application. By Selection screen I mean 1° Two html select one for "selectable items" And an other for "selected items" 2° five buttons "copy" "copy all" "remove" "remove all" an d confirm. Very basic code... I just want to avoid copy paste the c

struts.xml - change default location

2007-03-19 Thread Bartek
Hi I have to face up the following issue. My location of struts.xml shoudl be WEB-INF directory, not WEB-INF/classes. What is the easiest way to achieve this?? I tried several different config locations (e.g. WEB-INF/struts.xml) for StrutsXmlConfigurationProvider, none of them worked. Creating cu