Re: Struts tags with Groovy meta programming

2009-11-10 Thread Musachy Barroso
please pardon the bot, it hasn't been patched in a while, this *is* the right place to ask this question. musachy On Tue, Nov 10, 2009 at 12:57 PM, Martin Gainty wrote: > > ask this question on tomcat-users list > > Groovy and all CGI languages do not exist in J2EE world (correction i havent >

RE: Struts tags with Groovy meta programming

2009-11-10 Thread Martin Gainty
ask this question on tomcat-users list Groovy and all CGI languages do not exist in J2EE world (correction i havent seen any Groovy parsers implemented in TC,GF or WL or JBoss) Groovy Rails as GRAILS with Spring Framework is available at http://grails.org Martin Gainty

Re: Inline downloading of file with Struts 1.2

2009-11-10 Thread Daniele Development-ML
Problem solved. The mistake was using part of the old content disposition tag: response.setHeader("Content-disposition", "inline; filename=file.jar"); instead of specifying only inline, like this: response.setHeader("Content-disposition", "inline"); Thanks, Dan On Tue, Nov 3, 2009 at 2:25 P

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Christopher Maloof
Oh, that's much nicer! Yes, using the "action" built-in variable works perfectly. Thank you very much - Chris On 11/10/2009 12:53 PM, Musachy Barroso wrote: can you try "${action.someMethod()} ? I think that should work musachy On Tue, Nov 10, 2009 at 9:46 AM, Christopher Maloof wrote:

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Musachy Barroso
can you try "${action.someMethod()} ? I think that should work musachy On Tue, Nov 10, 2009 at 9:46 AM, Christopher Maloof wrote: > Thanks!  I don't know what that's really doing, but it does work.  Adding > parameters to the methods is a bit wonky; it's very difficult to get the > syntax right

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Christopher Maloof
Thanks! I don't know what that's really doing, but it does work. Adding parameters to the methods is a bit wonky; it's very difficult to get the syntax right for ${stack.findValue("getScore('${st.name()}')")} as opposed to the expected ${getScore(st.name())} but it's something. Maybe t

Re: Access Denied error with Struts 2.1.8

2009-11-10 Thread Eric Martin
Musachy Barroso wrote: > > did you try asking in the GAE forums? This is more of a GAE problem, > so you have a better chance to find an answer there. > I posted a question in the GAE group (http://groups.google.com/group/google-appengine-java/topics), but it has not made it through moderatio

RE: Problem Sumitting Struts Form containing a drop down list

2009-11-10 Thread Kawczynski, David
> how can I render my description page into "example" action > while it's configured to maintain the business logic of the > data rendered into that drop down list That example action is a tutorial designed to demonstrate how the optionsCollection tag works. It is not meant to be a starting p

Re: struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-10 Thread reason
wehey! it worked :) i'm positive i had copy/pasted that line from somewhere official. is someone playing tricks on us struts2 newbies? evil bums! cheers, kostis hum, I use this all the time: mvn archetype:create -DgroupId=tutorial \ -DartifactId=tutorial \

Re: Problem Sumitting Struts Form containing a drop down list

2009-11-10 Thread Hanen Ben Rhouma
Ok, that's your point and I respect it. Sorry for engendering all this mess in your rows. I take back my thread. On Tue, Nov 10, 2009 at 5:06 PM, Paul Benedict wrote: > Hanen, > > I think your response to Dave is outrageous and over-the-top. I didn't > see anything offensive in his email. > > P

Re: Struts tags with Groovy meta programming

2009-11-10 Thread Musachy Barroso
yes, field/methods are calling using reflection, I have no idea how the Groovy MetaClass works. You can look at the OGNLReflectionProvider class, that's the one doing the reflection stuff. musachy On Tue, Nov 10, 2009 at 7:10 AM, Ronny Løvtangen wrote: > Anyone? > > Does the struts tags do some

Re: struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-10 Thread Musachy Barroso
hum, I use this all the time: mvn archetype:create -DgroupId=tutorial \ -DartifactId=tutorial \ -DarchetypeGroupId=org.apache.struts \ -DarchetypeArtifactId=struts2-archetype-starter \ -DarchetypeVersion=

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Haroon Rafique
Hi Chris, See reply embedded below... On Today at 10:32am, CM=>Christopher Maloof wrote: CM> I guess no one recognizes the problem. Next question: Has anyone CM> gotten this (calling action methods from FreeMarker tags) to work CM> successfully? Just trying to figure out whether the correct

Re: Action tag is forced to use input result if outer action has action errors

2009-11-10 Thread Matt Jiang
Hi Oscar, Thanks for your advise, I also tried this approach, I make a new interceptors stack and apply on tag to avoid validation and workflow interceptors. But it seems that in sitemesh jsp, can't access the same http session if target action has action error. Did you get the same problems bef

Re: Problem Sumitting Struts Form containing a drop down list

2009-11-10 Thread Paul Benedict
Hanen, I think your response to Dave is outrageous and over-the-top. I didn't see anything offensive in his email. Paul On Tue, Nov 10, 2009 at 9:36 AM, Hanen Ben Rhouma wrote: > Thanks for your reply Davidn but please guys try to stop talking to me as if > I'm an idiot stubborn girl who doesn'

Re: Problem Sumitting Struts Form containing a drop down list

2009-11-10 Thread Hanen Ben Rhouma
Thanks for your reply Davidn but please guys try to stop talking to me as if I'm an idiot stubborn girl who doesn't know what she wants or even what she's talking about. I'm working with struts for almost 6 months now and I'm still finding some difficulties not because of my stupidity but because o

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Christopher Maloof
I guess no one recognizes the problem. Next question: Has anyone gotten this (calling action methods from FreeMarker tags) to work successfully? Just trying to figure out whether the correct approach is to hammer on my configuration somehow, or to file a bug. Thanks, Chris On 11/9/2009 10:1

Re: Problem with Global Exceptions

2009-11-10 Thread Brian Thompson
Something like this may help: /pages/defaultPage.jsp You could have myDefaultAction throw an exception for your exception mappings, or you could simply have the "defaultPage" in that mapping be an appropriate error page. -Brian On Tue, Nov 10,

Re: Struts tags with Groovy meta programming

2009-11-10 Thread Ronny Løvtangen
Anyone? Does the struts tags do some reflection magic that bypass the Groovy MetaClass? On Nov 9, 2009, at 5:55 PM, Ronny Løvtangen wrote: How can I from a Struts tag access properties that is overridden by Groovy meta programming? Example: Bar.groovy --- class Bar {

Re: Alligning multiple buttons in a single row.

2009-11-10 Thread vikrant S
Hi , My problem is solved -- View this message in context: http://old.nabble.com/Alligning-multiple-buttons-in-a-single-row.-tp26284283p26284848.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsub

Re: Alligning multiple buttons in a single row.

2009-11-10 Thread vikrant S
Hi, I am very much thankful to you. My problem is solved. But the buttons are not at equal distance from each other. They are spaced unequally. Any Suggestions Please. -- View this message in context: http://old.nabble.com/Alligning-multiple-buttons-in-a-single-row.-tp26284283p26284846.html S

RE: Problem Sumitting Struts Form containing a drop down list

2009-11-10 Thread Kawczynski, David
I believe I understand what you are trying to accomplish: Ignoring the details (dojo, struts , etc) for now... at a high level, you want to render a page containing a list of items. You want to enable a user to get low-level details on any one of those items. So far so good? While there are pl

Re: JQuery UI datepicker doesn't work in a struts 2 ajax page

2009-11-10 Thread fireapple
Thanks, Johannes, I tried the plugin of the second link but it didn't work out. It seems the plugin doesn't work for my struts 2.0.11. The build in Datepicker from dojo doesn't work for me because I use . segmentList[%{#stat.index}].departureDate can transfer value back(can't display value) whil

Re: Alligning multiple buttons in a single row.

2009-11-10 Thread Paweł Wielgus
Hi, add theme="simple" inside s:submit. Best greetings, Paweł Wielgus. 2009/11/10 vikrant S : > > Hi All, > I am new to struts programming and trying to learn struts from the tutorials > provided online. > First Let me descibe my application. >  I am using html inside  a jsp page for the frontend

Alligning multiple buttons in a single row.

2009-11-10 Thread vikrant S
Hi All, I am new to struts programming and trying to learn struts from the tutorials provided online. First Let me descibe my application. I am using html inside a jsp page for the frontend. I have three buttons in this page. They are as "START" , "STOP", and "CHANGE". I have different actions f

Re: struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-10 Thread reason
thanks musachy that was actually my initial attempt but it ran aground (see below) so i gave up and did it the hard way [kos...@ares tmp]$ echo $JAVA_HOME;echo;echo;mvn archetype:create -DgroupId=tutorial-DartifactId=tutorial -DarchetypeGroupId=o

Re: Action tag is forced to use input result if outer action has action errors

2009-11-10 Thread Oscar Calderón
Hi Matt, You could add to your action declaration in the struts.xml a parameter called excluded methods, where you can add the name of the methods of your action that you don't want to be validated, for example: methodName1,methodName2 Even if your interceptor is a default interceptor like wo

Re: Problem Sumitting Struts Form containing a drop down list

2009-11-10 Thread Paweł Wielgus
Hi Hanen, firstly I see no attachements, maybe because they are deleted by mailing list itself. Secondly, if the problem You have is hard to explain, then maybe You have trouble to understand it. If You want to understand your problem better You need to shrink it to minimum size, best if this will

Action tag is forced to use input result if outer action has action errors

2009-11-10 Thread Matt Jiang
Hi All, I use Sitemesh as template engine with Struts2. In my decorator jsp file, I use for division content source. Now I encounter a problem that if an action has an action error, there will be a "input" result used. It will cause all in decorator JSP file also execute input result directly. T

Problem with Global Exceptions

2009-11-10 Thread RogerV
Could someone just confirm what sort of exception I should be catching to intercept "There is no Action mapped for namespace /secure and action name" errors. I've currently got; and which I assumed would catch everything, but if I enter gibberish into the browser url bo

Re: Problem Sumitting Struts Form containing a drop down list

2009-11-10 Thread Hanen Ben Rhouma
Morning, If I give code details, no one will show interest with so much details and with only the description of my requirement no one also could understand, that's pretty complicated you know!! Well, let me represent it with another approach, by screeshots maybe is better (please take a look at