RE: Blank archtype not working?

2009-11-09 Thread Sanjaya Kumar Patel
You can try that way: mvn archetype:generate -DarchetypeCatalog=http://www.lenart.org.pl/maven/ I'm working on the rest and hopefully they will be released soon ;-) Thanks for help, Lukasz. I was able to create my eclipse application using the tutorial here:

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

2009-11-09 Thread Johannes Geppert
Long time ago I also have trouble to execute Scripts in AJAX Content. http://old.nabble.com/-S2--No-JavaScript-in-TabbedPanel-to14772176.html#a14772176 So I switch to jQuery also for AJAX functions. Why do you mix Dojo and jQuery? You can use the build in Datepicker from dojo or switch to one

Re: sx:div and executeScript

2009-11-09 Thread irene zeller sancho
Thanks Martin, I wil try to do it. However, I'm using Firefox and not Windows. Irene 2009/11/9 Martin Gainty mgai...@hotmail.com Irene- the standard onLoad=javascript:function doesnt seem to work (in IE at least) so use this document.write to replace __ie_onload /*information courtesy of

RE: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
Thanks Likasz. However I am using JBOSS 5.1.0 GA JDK 6, not Jboss 5.0.1 GA. Anyays, I added a constant in struts.xml : constant name=actionPackages value=com.eni.dvtejb.clientStruts2.action / And removed the init-param param-name param-value tags from the web.xml file. It still does not

Re: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
2009/11/9 Fernandes Celinio cfernan...@sopragroup.com: However I am using JBOSS 5.1.0 GA JDK 6, not Jboss 5.0.1 GA. I downloaded and checked also with 5.1 - no problems spotted Anyays, I added a constant in struts.xml :  constant name=actionPackages value=com.eni.dvtejb.clientStruts2.action

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

2009-11-09 Thread Jozef Fiflik
Hello, couple of things: 1. Struts2 Action is not Servlet, so you don't need following part in your web.xml: servlet servlet-nameHelloWorld/servlet-name servlet-classtutorial.HelloWorld/servlet-class /servlet Based on your first email I assume that tutorial.HelloWorld is an action class,

RE: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
Well, the problem now is that if I remove that param from the web.xml file, it complains about it : !-- init-param-- !--param-nameactionPackages/param-name-- !-- param-valuecom.eni.dvtejb.clientStruts2.action/param-value-- !-- /init-param -- 12:48:52,978

Re: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
2009/11/9 Fernandes Celinio cfernan...@sopragroup.com: 12:48:52,978 ERROR [Dispatcher] Dispatcher initialization failed java.lang.RuntimeException: java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException:

RE: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) Is that latest filter implementation part of the Struts 2.1.8

Re: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
2009/11/9 Fernandes Celinio cfernan...@sopragroup.com: Is that latest filter implementation part of the Struts 2.1.8 distribution ? Sorry, tiny mistake, should be org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter Regards -- Lukasz http://www.lenart.org.pl/

RE: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
It still does not work. It is still looking for that actionPackages parameter. And if i add it, I get an error related to the path. --- web.xml content :--- filter filter-namestruts2/filter-name filter-class

Re: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
2009/11/9 Fernandes Celinio cfernan...@sopragroup.com: It still does not work. It is still looking for that actionPackages parameter. And if i add it, I get an error related to the path. Strange, you have something messed up with a configuration. Could you list what kind of jars do you have

RE: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
web.xml full content : ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;

RE: sx:div and executeScript

2009-11-09 Thread Martin Gainty
/* for FF add a window.addEventListener */ window.addEventListener('DOMContentLoaded', init, false); /* when DOMContentLoaded event is detected the init method is called */ Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de

RV: migrating from 2.0 to 2.1.8: s:bean tag

2009-11-09 Thread Nicola de Saint-Aubert
Hi, It seems that OGNL # operator isn't anymore interpreted while migrating from 2.0 to 2.1.8 (in a jboss applications server). The same code does work with version 2.0, but none of OGNL # operator expressions are evaluated in my jsp with 2.8. Is there something to configure in 2.8 to get it

RE: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
It works if i use an exploded EAR and an exploded WAR. However I get an HTTP 404 error on all actions I try to call. Has there been any change in actions handling between Struts 2.0 and Struts 2.1.8 ? -Message d'origine- De : Fernandes Celinio [mailto:cfernan...@sopragroup.com]

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

2009-11-09 Thread reason
Hello Jozef Great bit of help, along with the other guys! After dozens of hours of frustration finally got the app running! Struts seem to have a steep learning curve but i'll get there in the end... ;) many thanks, kostis Hello, couple of things: -- View this message in context:

Re: advice on building front-end rapidly

2009-11-09 Thread Terry Gardner
http://netbeans.org On Nov 8, 2009, at 4:32 PM, Farshad Rabbani wrote: Hi Dave, Why?! At the very least why wouldn't you use something that can edit and understand JSP, custom tags, etc.? So, what would your recommend as something to edit and understand JSP, custom tags etc.?

RE: advice on building front-end rapidly

2009-11-09 Thread Fernandes Celinio
I would recommend Eclipse. www.eclipse.org -Message d'origine- De : terry.gard...@sun.com [mailto:terry.gard...@sun.com] Envoyé : lundi 9 novembre 2009 15:15 À : Struts Users Mailing List Objet : Re: advice on building front-end rapidly http://netbeans.org On Nov 8, 2009, at 4:32

Trouble calling action methods from FreeMarker

2009-11-09 Thread Christopher Maloof
I'm just starting to use FreeMarker (2.3.15) with Struts 2.1.8. It mostly works fine: my templates are retrieving bean information with no problem. However, I can't figure out how to call methods defined in my action classes. If my action class looks like this: public class MyAction

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

2009-11-09 Thread fireapple
Thanks, I tried your method and it didn't work out. I also tried to put all JQuery library and Javascript block in my ajax page(which is supposed to appear in the s:div). Still doesn't work. However, after adding executeScripts=true in my s:submit, if I add alert('test'); into my ajax page, I

Re: S2: how to deal with NULL value with s:text tag?

2009-11-09 Thread Dave Newton
Burton Rhodes wrote: Thanks for the reply. There should definately be some sort of enhancment to the s:text tag. I found a more susinct solution with the fmt:formatNumber tag - it doesn't display the null text if the value is null. If JSTL functionality is the same as the S2 tag then the

Re: RV: migrating from 2.0 to 2.1.8: s:bean tag

2009-11-09 Thread Dave Newton
Nicola de Saint-Aubert wrote: It seems that OGNL # operator isn't anymore interpreted while migrating from 2.0 to 2.1.8 (in a jboss applications server). The same code does work with version 2.0, but none of OGNL # operator expressions are evaluated in my jsp with 2.8. Is there something to

Re: S2: how to deal with NULL value with s:text tag?

2009-11-09 Thread Musachy Barroso
that should be fixed, could you please open a jira ticket with the details? http://issues.apache.org/struts/browse/WW musachy On Sun, Nov 8, 2009 at 8:31 AM, Burton Rhodes burtonrho...@gmail.com wrote: Thanks for the reply.  There should definately be some sort of enhancment to the s:text

Re: advice on building front-end rapidly

2009-11-09 Thread Burton Rhodes
I would agree with eclipse as well. However, if you are trying to do design too, the typical cycle is you create 'dumb HTML' pages in a wysiwyg editor. Then clean up the code in eclipse and convert to JSP. A wysiwyg editor will most likely create bloated code. So you will have to clean up quite a

Re: advice on building front-end rapidly

2009-11-09 Thread Bill Bohnenberger
Yes, this is frequently my workflow, also. I happen to use Dreamweaver because I am familiar with it and have it and it generates fairly clean HTML, but any such wysiwig editor would do I am sure. I suggest you avoid using MS Word to generate HTML, however, otherwise you will find the clean it up

Struts tags with Groovy meta programming

2009-11-09 Thread Ronny Løvtangen
How can I from a Struts tag access properties that is overridden by Groovy meta programming? Example: Bar.groovy --- class Bar { String baz } FooAction.groovy - class FooAction extends ActionSupport { Bar bar String

Re: advice on building front-end rapidly

2009-11-09 Thread Ronny Løvtangen
On Nov 9, 2009, at 5:53 PM, Bill Bohnenberger wrote: I suggest you avoid using MS Word to generate HTML, however, otherwise you will find the clean it up phase rather daunting :) From what I remember, DreamWeaver has a clean up Word HTML menu item. Says something about the ugliness of

Re: advice on building front-end rapidly

2009-11-09 Thread Musachy Barroso
Vi just kidding, it is monday you know :) On Sun, Nov 8, 2009 at 5:39 AM, Farshad Rabbani farshadrabb...@hotmail.com wrote: Hello: I am currently building all my JSPs using notepad.  It is a very slow and tedius process to get the struts tags to align and show exactly as I want and

Re: advice on building front-end rapidly

2009-11-09 Thread erikweber
That's what I use (vim). Although my front ends are Java code and not HTML/CSS. Hand-coding takes longer but in my experience results in a better product and also in my opinion makes you a better programmer. With that said I partnered on a project with a guy who did the HTML front end and he

Problem Sumitting Struts Form containing a drop down list html:optionsCollection

2009-11-09 Thread Hanen Ben Rhouma
Please, I need your help: I've spent more than one week on trying to figure out how to submit a struts 1 form containing a drop down list (using optionsCollection). The problem is that the items in the optionsCollection refer to the action assigned to the form while I need that same action to

RE: Problem Sumitting Struts Form containing a drop down list html:optionsCollection

2009-11-09 Thread Kawczynski, David
I'd love to be able to help but am confused with what you are having trouble with. I think I heard something about wanting to modify the action of a form based on the value selected in a drop-down. I also heard something about forwarding to another jsp page. If you can clarify your intent you

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

2009-11-09 Thread Jozef Fiflik
Hello Kostis, I am glad you finally got the app running! Your first app, my first comments in this forum... so I am double glad :-) Jozef. On Mon, Nov 9, 2009 at 2:07 PM, reason k...@pop.gr wrote: Hello Jozef Great bit of help, along with the other guys! After dozens of hours of

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

2009-11-09 Thread Musachy Barroso
using the maven archetype to get an app setup is a good idea, it can save you a lot of frustration. musachy On Mon, Nov 9, 2009 at 6:07 AM, reason k...@pop.gr wrote: Hello Jozef Great bit of help, along with the other guys! After dozens of hours of frustration finally got the app running!

Re: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
2009/11/9 Fernandes Celinio cfernan...@sopragroup.com: Any idea ? Thanks Dozen! First of all - remove all jars from server/default/lib - you shouldn't mix your jars between apps. As I remember only jdbc drivers should be shared. As you can see, you have duplicated ognl.jar and freemarker.jar.

Re: advice on building front-end rapidly

2009-11-09 Thread Paweł Wielgus
Hi all, i have been using eclipse (standard edition) + amateras jsp/html/xml editor for years now. What i like in it best is full support for CTRL+Space. It also has some kind of wysiwyg editor but i have never used it so i can't say if it's ok. You can check it out here:

Re: advice on building front-end rapidly

2009-11-09 Thread Bill Bohnenberger
I've used the standard edition for years, also. But for web projects I think the enterprise edition is better because I can run my web server (Tomcat) from within the IDE and therefore interactively debug servlet (in this case, struts2) code. - Bill 2009/11/9 Paweł Wielgus poulw...@gmail.com

Re: advice on building front-end rapidly

2009-11-09 Thread Paweł Wielgus
Hi Bill, You can also run Tomcat from eclipse standard edition, there is Sysdeo TomcatEclipsePlugin for it. Which i also use for a long time and i also think that's more comfortable to run it from eclipse. Best greetings, Paweł Wielgus. 2009/11/9 Bill Bohnenberger bill98...@gmail.com: I've used

Re: advice on building front-end rapidly

2009-11-09 Thread Ronny Løvtangen
You could easily interactively debug from our IDE when running tomcat or other servers outside the IDE as well. As long as you start your server with some command line parameters. e.g. -Xdebug - Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 I usually just run 'mvn tomcat:run'.

Re: Question about OGNL in JSP

2009-11-09 Thread Musachy Barroso
That's because creating an object in a scriptlet doesn't mean it will be in the page context, you need to actually add it to the context. musachy On Mon, Nov 9, 2009 at 1:47 PM, Oscar Calderón oscar.kalde...@gmail.com wrote: Hi to all, this is my first question here. I have a doubt about the

Question about OGNL in JSP

2009-11-09 Thread Oscar Calderón
Hi to all, this is my first question here. I have a doubt about the use of OGNL expressions on JSP to access to an object that i declared in a scriptlet in the same JSP. I have the following code: % AnObject obj = request.getSession().getAttribute(AnObject.OBJECT_NAME); % s:if

Re: Question about OGNL in JSP

2009-11-09 Thread Oscar Calderón
Ohh ok, thanks. I googled about that and i found that i can add a variable or Object to page context with this: pageContext.setAttribute(obj, obj); Thanks. 2009/11/9 Musachy Barroso musa...@gmail.com That's because creating an object in a scriptlet doesn't mean it will be in the page