RE: ModelDriven CRUD validation failure still causes JPA update - RESOLVED

2007-10-02 Thread Al Sutton
Just a thought, are you actually using transactions? If so why not modify the interceptor to only commit if a SUCCESS is returned or perform a rollback if ERROR is returned from the action invocation. Al. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 02

how to get a dynamic form bean object if it's not linked to the action

2007-10-02 Thread Leo Asanov
Hi, I've got the survey-like application. Survey is divided into several pages and each of those is represented by a dynamic action form. All forms are stored in the session. Once survey is completed it's stored in the database and anyone can go back at any time, retrieve his/her results, change

[S2] formatting informations in properties files

2007-10-02 Thread setecastronomy
In my jsp pages I often need to limit the number of decimals and I learnt how to create a properties file with the same name of the action and use the s:text tag: s:text name=un.decimales:param value=%{value * #sensore.scale}//s:text I ended up with many properties files which have most the

Popup window with session param

2007-10-02 Thread Diego Ezquerro
Hi to everybody. I have a problem with a JSP page, I think this is a stupid question but I was hours searching the Internet and found nothing. What i wanna do is to pre-process a session attribute and then show a popup window with the result. My code is as follows: a href=#

Re: Popup window with session param

2007-10-02 Thread Wes Wannemacher
This may be a dumb question, but if it's a session attribute, why pass it as a request parameter? Can't you just pull it from the session in the target action? -Wes On 10/2/07, Diego Ezquerro [EMAIL PROTECTED] wrote: Hi to everybody. I have a problem with a JSP page, I think this is a stupid

Re: Ajax forms not working

2007-10-02 Thread Musachy Barroso
On top of that, that won't work on IE. set showLoadingText=false on the submit tag. musachy On 10/1/07, Moacir Cardoso [EMAIL PROTECTED] wrote: Hi, I'm unable to make my ajax form work body div id='two' style=border: 1px solid yellow;binitial content/b/div s:form id=theForm2

Struts 1... any new types of Actions that have come along?

2007-10-02 Thread Rick Reumann
I'm back coding in Strut1.x after being away from it for a while (since 1.1). What type of Action do most people prefer to use now and days? I'm typically using MappingDispatchAction which I really like. Other than the submit button of course, other buttons I end up adding a little javascript that

Can I access URL parameters within struts.xml using ognl ?

2007-10-02 Thread mikeh96
I would like to do something like this: (e.g. http://foo/view.action?page=help.vm) action name=view class=com.opensymphony.xwork2.ActionSupport interceptor-ref name=defaultStack / result type=velocity/templates/screens/#request['page']/result /action I know I

RE: Struts2 Cookbook Question

2007-10-02 Thread cilquirm
There's nothing preventing you from adding back commons-beanutils or OSCore ( http://www.opensymphony.com/oscore/ ) to get back to that level of functionality. I'm not 100% sure why this mechanism is necessary. If you name your getter on your TestBean appropriately, S2 should take care of it.

ActionForward is not workinh

2007-10-02 Thread aum strut
Hi all, i am new to the struts,i am developing a struts based small application for loggin and then to forward the control to the sucess.html if loggin succeed else to failure. my index form is being displayed ok.but when i submittedthe form it is showing the blank page. the criteria for the

Accessing a row in a table on a JSP page.

2007-10-02 Thread JohnLangan
I call the database and create an ArrayList of beans to hold the data. Using JSTL I iterate over the list to display the data in an html table inside a form in a JSP page. c:set var=dataItems value=${lmdao.listingManagerData} / c:forEach var=item items=${dataItems} varStatus=row I can give each

RE: ModelDriven CRUD validation failure still causes JPA update - RESOLVED

2007-10-02 Thread Jon_French
Yes. But I am using Spring managed transactions that in my understanding are outside of the struts Interceptor stack. My DAO's are annotated with the org.springframework.transaction.annotation.Transactional annotation and thus have their transactions managed as detailed here:

Re: Struts URLs for perfectionists like Ebay's URLs

2007-10-02 Thread Vinny
Also, you might want to look at URLRewrite http://tuckey.org/urlrewrite/ That is what I've been using in S1 and S2 to have my urls go from this : /myAction.do?p1=v1p2=v2 to /myAction/p1,v1/p2,v2/ I'm also using the zero config and code behind plugins in struts2 that also work to hide

datetimepicker displayFormat=yyyyMMdd: bug or feature?

2007-10-02 Thread Giovanni Azua
hi all, I am on Struts 2.0.9 here ... using datetimepicker with the following displayFormat setting makes the control work incorrectly i.e. permanently display 2007 only and wrongly: displayFormat=MMdd using separators works fine though e.g. displayFormat=.MM.dd TIA, regards,

Re: [S2] formatting informations in properties files

2007-10-02 Thread Chris Pratt
On 10/2/07, setecastronomy [EMAIL PROTECTED] wrote: I wonder if there is a smarter and centralized way to store the formatting informations used in different jsp pages associated to different actions. I believe you can either do it at the package level using something like:

Re: ModelDriven CRUD validation failure still causes JPA update - RESOLVED

2007-10-02 Thread Musachy Barroso
That's what it does indeed. musachy On 10/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes. But I am using Spring managed transactions that in my understanding are outside of the struts Interceptor stack. My DAO's are annotated with the

Look for Tutorials for Struts2 + Tiles2

2007-10-02 Thread Emi Lu
Hello, May I know where to find tutorials for struts 2 + Tiles 2 ? I'd like to know . how to setup Tiles 2 with struts2 . Layout examples of using Tiles2 with struts2 Thanks a lot! - To unsubscribe, e-mail: [EMAIL

Re: Look for Tutorials for Struts2 + Tiles2

2007-10-02 Thread Dave Newton
--- Emi Lu [EMAIL PROTECTED] wrote: May I know where to find tutorials for struts 2 + Tiles 2 ? http://struts.apache.org/2.x/docs/tiles-plugin.html http://tiles.apache.org/tutorial/index.html The S2 plugin link *may* be somewhat dated; if there are changes needed please follow up and / or

RE: Inheritance within form beans

2007-10-02 Thread Kothari, Kailash
Thaks Rick. This will give me an instance of the parent bean OR the child bean. What I need is a child bean pre populated with data from the parent bean. Note that we cannot get an instance of the parent bean and downcast it to an instance of a child bean like - child bean = ((child

RE: ModelDriven CRUD validation failure still causes JPA update - RESOLVED

2007-10-02 Thread cilquirm
You can throw an exception , which you can specify in your @Transactional( rollbackFor = ) to have it rollback. jon_french wrote: Yes. But I am using Spring managed transactions that in my understanding are outside of the struts Interceptor stack. My DAO's are annotated with the

RE: Inheritance within form beans

2007-10-02 Thread Dave Newton
--- Kothari, Kailash wrote: This will give me an instance of the parent bean OR the child bean. What I need is a child bean pre populated with data from the parent bean. I'd probably consider hooking in to the request processor (or chain if you're using 1.3, I suppose) and implement the

Calling struts 2 actions

2007-10-02 Thread Henry Park
Consider the following segment from my struts.xml: action name=Item class=action.ItemAction result name=input/jsp/items/itemEntry.jsp/result result name=success/jsp/items/itemView.jsp/result result name=error/jsp/error.jsp/result /action What could be the cause for an action call not

RE: Calling struts 2 actions

2007-10-02 Thread Henry Park
I found a site that explains a similar problem: http://www.nabble.com/-s2--no-result-defined-error-after-failed-validation---can-someone-help--t4030311.html My problem is also trying to find an 'input' method. I have not even defined an input method but it is still looking for it. I tried

Struts Application is not running

2007-10-02 Thread aum strut
hi all, i have developeda small application in struts.but itis not running.andtomcat log file is giving the error that it is unable to find ActionServlet calss. i have configured ActionServlet class in web.xml as servlet servlet-nameaction/servlet-name

Re: Struts Application is not running

2007-10-02 Thread Dave Newton
I'd turn up the logging level. My initial suspicion would be a configuration error, but it's kind of hard to say at the moment. --- aum strut [EMAIL PROTECTED] wrote: hi all, i have developeda small application in struts.but itis not running.andtomcat log file is giving the error that it

Struts2 Pre-Action

2007-10-02 Thread Tom Holmes Jr.
I've been playing with Struts2+Spring2 beans+Hibernate and that all works very well. So, now I am trying something simpler ... so consider this a new web-project altogether with just Struts2 ... no Spring2 and no Hibernate. Basically, I want to call a pre-Action action that loads a bean into a

Re: Struts Application is not running

2007-10-02 Thread aum strut
I hav configured all the files in the right way and I m using My Eclipse. Its showing in the tomcat log files that its not getting the ActionServlet. On 10/3/07, Dave Newton [EMAIL PROTECTED] wrote: I'd turn up the logging level. My initial suspicion would be a configuration error, but it's

Re: Struts2 Pre-Action

2007-10-02 Thread Dave Newton
--- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Basically, I want to call a pre-Action action that loads a bean into a session and then calls a JSP page ... simple right? Right. Is that all I need? Is there anything else? Can you send me some links for examples? What exactly are you asking /

Re: Struts Application is not running

2007-10-02 Thread Dave Newton
--- aum strut [EMAIL PROTECTED] wrote: I hav configured all the files in the right way Cool... but if everything was configured properly it would probably work. Its showing in the tomcat log files that its not getting the ActionServlet. This is usually due to a configuration error, missing

Can't build XWork 2.0.4 with Maven 2.0.7?

2007-10-02 Thread MassimoH
While developing a Struts 2 app, I've encountered a bug within the framework. I've debugged this and I believe I've identified the exact cause of the issue. I'd like to try a fix and then submit it as a recommended patch. However, before I even try to add my code change, I am having trouble

Re: Struts Application is not running

2007-10-02 Thread aum strut
can u send me a small demo project in struts.so that i cn take help frm it On 10/3/07, Dave Newton [EMAIL PROTECTED] wrote: --- aum strut [EMAIL PROTECTED] wrote: I hav configured all the files in the right way Cool... but if everything was configured properly it would probably

Re: Struts Application is not running

2007-10-02 Thread Dave Newton
--- aum strut [EMAIL PROTECTED] wrote: can u send me a small demo project in struts.so that i cn take help frm it No, but there are many, many Struts tutorials and projects searchable on the web, including those that come with Struts itself. Perhaps posting some configuration beyond

Re: Can't build XWork 2.0.4 with Maven 2.0.7?

2007-10-02 Thread Wes Wannemacher
I work with the trunk and I get test failures periodically. I usually ignore them so that I can do whatever I need to do. To get maven to create the JAR file, you have to tell it to skip tests - mvn -Dmaven.test.skip=true On 10/2/07, MassimoH [EMAIL PROTECTED] wrote: While developing a

[Struts 2] : Zero Configuraiton : some feedback

2007-10-02 Thread Sami Dalouche
Hi, On http://struts.apache.org/2.x/docs/release-notes-209.html, I can read : Please help us test these brave new features. Feedback appreciated. So, here is some feedback about Zero configuration : - the feature is pretty cool, though not much documented. For instance, it was not obvious to me

Tiles 2 setup with Struts2

2007-10-02 Thread Emi Lu
Hello, I looked at this page: http://struts.apache.org/2.x/docs/tiles-plugin.html Done: = [1] Added dependency groupIdorg.apache.struts/groupId artifactIdstruts2-tiles-plugin/artifactId version${version.tiles}/version scopecompile/scope /dependency to web.xml [2]

Struts debug mode

2007-10-02 Thread Viplav Kallepu
Hi, I am using struts 1.3.8 with eclipse 3.1 (wtp) and tomcat 5.5. Can anyone please tell me how to enable debugging in it like we debug the core java application in eclipse. I googled it but the I wasn't able to find a single correct solution to try (I cant use myeclipse because I have to use

Re: Tiles 2 setup with Struts2

2007-10-02 Thread Jason Deffenbaugh
You also need to add the jars that tiles requires: copy the Tiles dependencies JARs: * Jakarta Commons BeanUtils 1.7.0 or above; * Jakarta Commons Digester 1.8 or above; * Jakarta Commons Logging (at least API) 1.1 or above http://tiles.apache.org/getting_started.html -Jason

Re: Tiles 2 setup with Struts2

2007-10-02 Thread Roberto Nunnari
Hello Emi. see below my comments. Emi Lu wrote: Hello, I looked at this page: http://struts.apache.org/2.x/docs/tiles-plugin.html Done: = [1] Added dependency groupIdorg.apache.struts/groupId artifactIdstruts2-tiles-plugin/artifactId version${version.tiles}/version

Re: Tiles 2 setup with Struts2

2007-10-02 Thread Roberto Nunnari
Hello Emi. see below my comments. Emi Lu wrote: Hello, I looked at this page: http://struts.apache.org/2.x/docs/tiles-plugin.html Done: = [1] Added dependency groupIdorg.apache.struts/groupId artifactIdstruts2-tiles-plugin/artifactId version${version.tiles}/version

[S2] Can a custom component have a body? or, using fieldset with themes

2007-10-02 Thread Jim Cushing
Is something like this legal in a Struts 2 custom component: s:component template=/my/custom/component.vm s:param name=key1 value=value1/ s:param name=key2 value=value2/ Some text to be wrapped in my component. s.text name=someProperty / /s:component In other

Re: Struts debug mode

2007-10-02 Thread João Vieira da Luz
Remote debugging is the keyword. WTP already supports that. On 10/2/07, Viplav Kallepu [EMAIL PROTECTED] wrote: Hi, I am using struts 1.3.8 with eclipse 3.1 (wtp) and tomcat 5.5. Can anyone please tell me how to enable debugging in it like we debug the core java application in eclipse. I

Re: [Struts 2] : Zero Configuraiton : some feedback

2007-10-02 Thread Zarar Siddiqi
I think the Zero Configuration idea is a nice idea but the implementation is far from sufficient and will probably get better over time (hopefully). The problem mainly is with the limit of annotations. There are things that can be represented in struts.xml that have no chance of being

Re: Struts debug mode

2007-10-02 Thread Viplav Kallepu
Thanks for the reply.. when I put breakpoints in my action class and start the server in debugging mode and run my application in browser.. its stopping at the breakpoint and not going forward(It is showing it in the debug console)..I feel it is not able to find the source files as in .deployables

Re: Ajax forms not working

2007-10-02 Thread Moacir Cardoso
Yes I do. Dave Newton wrote: Do you have an s:head theme=ajax/ tag? --- Moacir Cardoso [EMAIL PROTECTED] wrote: Hi, I'm unable to make my ajax form work body div id='two' style=border: 1px solid yellow;binitial content/b/div s:form id=theForm2 cssStyle=border: 1px solid

Re: Ajax forms not working

2007-10-02 Thread Dave Newton
If you set the debug flag do you get any error messages? --- Moacir Cardoso [EMAIL PROTECTED] wrote: Yes I do. Dave Newton wrote: Do you have an s:head theme=ajax/ tag? --- Moacir Cardoso [EMAIL PROTECTED] wrote: Hi, I'm unable to make my ajax form work body div

Exadel Studio is showing Evalution version Expired why?

2007-10-02 Thread msg2ajay
Hello friends, I just downloaded ExadelStudio 4.0.4 for Eclipse 3.2.2 .But when i tried to do Struts project, i am geting a message as Evalution Version Expired. Why it is showing like that. ThanQ in Adv, Ajay -- View this message in context:

[OT]Re: Exadel Studio is showing Evalution version Expired why?

2007-10-02 Thread Nuwan Chandrasoma
This is not related to struts. msg2ajay wrote: Hello friends, I just downloaded ExadelStudio 4.0.4 for Eclipse 3.2.2 .But when i tried to do Struts project, i am geting a message as Evalution Version Expired. Why it is showing like that. ThanQ in Adv, Ajay

Re: [OT]Re: Exadel Studio is showing Evalution version Expired why?

2007-10-02 Thread AJAY KUMAR UPPALAPATI
where can i get help regarding this can u guide me. thanQ On 10/3/07, Nuwan Chandrasoma [EMAIL PROTECTED] wrote: This is not related to struts. msg2ajay wrote: Hello friends, I just downloaded ExadelStudio 4.0.4 for Eclipse 3.2.2 .But when i tried to do Struts project, i am geting a

[S2] doublemultiple doesn't work in doubleselect ?

2007-10-02 Thread Annie Wang
It seems like the doublemultiple attribute set to true without the multiple attribute set to true in doubleselect doesn't work. If I set both multiple and doublemultiple attributes to true, then I'm able to select multiple choices on the second select and as well as the first select but

Location of struts.xml (Struts 2)

2007-10-02 Thread Fredy Provoste
Hi, the location of struts.xml in Struts 2, should be in WEB-INF/classes or just WEB-INF?? I've a struts.xml in WEB-INF/classes, ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN

Re: Location of struts.xml (Struts 2)

2007-10-02 Thread Chris Pratt
On 10/2/07, Fredy Provoste [EMAIL PROTECTED] wrote: Hi, the location of struts.xml in Struts 2, should be in WEB-INF/classes or just WEB-INF?? Technically it has to be on the CLASSPATH. The most common place to put it is WEB-INF/classes. (*Chris*)