Re: New Struts2 Book : Feedback Requested

2008-01-21 Thread Alvaro Sanchez-Mariscal
http://www.struts2.org/free-struts2-book/ Will it be free? Alvaro. -- Alvaro Sanchez-Mariscal Arnaiz Java EE Architect Instructor [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: New Struts2 Book : Feedback Requested

2008-01-21 Thread Al Sutton
Jayson, Some comments; 1) Reduce the amount of side bars. At the moment the readability is impaired by having two right hand bars reducing the meat of your book to only 2/3rds of the width of the page. 2) Put up more than one chapter. If you want comments on your formatting then we need to

Re: File Upload

2008-01-21 Thread Pablo Vázquez Blázquez
Thanks for your reply. I have looked the links below and I tried what it says: The form: form id=myform action=nodecorate/myaction.action enctype=multipart/form-data method=post s:file name=myfile/s:file input type=button onclick=sendIt(); return false; /form The javascript:

fly-out cross frame menu

2008-01-21 Thread Kavita Mehta
Hi, I have to build a fly out cross frame menu . ...I have come across many paid products / trial versions but I want to know if struts supports such development ..and has any tag lib for this . Thanks in advance, Kavita

Scriplets not working in html:xyz tags

2008-01-21 Thread The_Developer
Hi, I've been trying to use scriptlets and/or bean:write tags inside html:select onchange= and html:button onclick= tags. However it seems that in either case the expression is not evaluated at runtime. The end result is something like this html:select onchange=javascript:update('bean:write

Re: New Struts2 Book : Feedback Requested

2008-01-21 Thread James Mitchell
Looks to be so .. Struts2 Guide for Web Application Developers is a free Struts2 book made available through http://www.struts2.org. On Jan 21, 2008 3:15 AM, Alvaro Sanchez-Mariscal [EMAIL PROTECTED] wrote: http://www.struts2.org/free-struts2-book/ Will it be free? Alvaro. -- Alvaro

Struts 2: hibernate optimistic locking - allows user to merge conflicting data

2008-01-21 Thread Cheng Wei Lee
Currently for client/server side validation, struts is able to maintain the data and shows it to the user, with the error messages and preserved user input. I'm using Hibernate for persistence. The StaleObjectStateException is caught inside the filter that I use to set up the Hibernate session.

Struts2 and Quartz

2008-01-21 Thread Shantur Rathore
Hello Everyone, I am new to Struts2. I am trying to work with Quartz and integrate it in my Struts2 WebApp. I found some info on Quartz and Struts2 at http://struts.apache.org/2.x/docs/how-can-we-schedule-quartz-jobs.html But i am still unclear what is the function of ActionJob? and how do i

Re: Pretty urls without .action

2008-01-21 Thread Jeromy Evans
Hi, Yes, I'm 100% certain this option allows struts to use a blank and/or alternative extensions. I just tried action,,com myself and it works loading my /test/test.action, /test/test.com and /test/test. Did /email.action work? Did /email.com work? Do you have the mentioned filter mapping

[Somewhat OT] RSS lib for Struts app?

2008-01-21 Thread Manos Batsis
Hello, This is somewhat OT but can someone please suggest a java RSS lib for my struts1 app? What I want to do is fetch, cache (daily) and display the latest one or two news items from a set of different feeds in jsp 2.0 pages so any taglibs along with the lib would be great. A quick

Unable to verify action class

2008-01-21 Thread Gunnar Boström
Hi, How can I make the org.apache.struts2.dispatcher.FilterDispatcher NOT to verify action classes when the Tomcat web server starts? I use struts 2 together with spring and the actions classes communicate with the server application with rmi. The action classes are defined with lazy-init=true

Re: Pretty urls without .action

2008-01-21 Thread jignesh.patel
Hi, This is my web.xml web-app display-nameProject Name/display-name filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class /filter filter filter-namestruts2/filter-name

Question on validation

2008-01-21 Thread Martin Braure de Calignon
Hello :-), I have two questions, the first one is more important for me : I have a validation xml files, but I want to validate only if user click on 'OK' button, and not on 'Cancel'. How to do this ? Do I have to make all my fields as expression or fieldexpression and test the value of the

Re: Question on validation

2008-01-21 Thread Martin Braure de Calignon
Le lundi 21 janvier 2008 à 14:35 +0100, Martin Braure de Calignon a écrit : Hello :-), I have two questions, the first one is more important for me : I have a validation xml files, but I want to validate only if user click on 'OK' button, and not on 'Cancel'. How to do this ? Do I have to

Re: using YUI with struts 2

2008-01-21 Thread Ted Husted
Does this count as being documented * http://struts.apache.org/2.x/docs/ajax.html or do we need something more specific? -Ted. On Jan 20, 2008 5:56 AM, ravi_eze [EMAIL PROTECTED] wrote: hi Jeromy Evans, Thanks for the quick reply. The YUI is working with the html tags also. I dont know if

Re: using YUI with struts 2

2008-01-21 Thread ravi_eze
thanks a ton jayson. i may require it later, shall check it then:) Jayson Joseph Chacko wrote: Hi Ravi, Here is an example which uses YUI along with JSON to create a menu in Struts2. You might find it useful.

Re: Scriplets not working in html:xyz tags

2008-01-21 Thread Laurie Harper
The_Developer wrote: Hi, I've been trying to use scriptlets and/or bean:write tags inside html:select onchange= and html:button onclick= tags. However it seems that in either case the expression is not evaluated at runtime. The end result is something like this html:select

Re: Struts2 and Quartz

2008-01-21 Thread Laurie Harper
Shantur Rathore wrote: Hello Everyone, I am new to Struts2. I am trying to work with Quartz and integrate it in my Struts2 WebApp. I found some info on Quartz and Struts2 at http://struts.apache.org/2.x/docs/how-can-we-schedule-quartz-jobs.html But i am still unclear what is the function of

Re: Unable to verify action class

2008-01-21 Thread Laurie Harper
Gunnar Boström wrote: Hi, How can I make the org.apache.struts2.dispatcher.FilterDispatcher NOT to verify action classes when the Tomcat web server starts? I use struts 2 together with spring and the actions classes communicate with the server application with rmi. The action classes are

Re: New Struts2 Book : Feedback Requested

2008-01-21 Thread bhaarat Sharma
please for sanity's sake do not have maven involved like this book did http://www.apress.com/book/view/1590599039 This book was a disappointment for me. Also, you should have a completely different chapter on struts2 html tags. Forums are filled with questions about s2 html tags and there

Re: File Upload

2008-01-21 Thread Pablo Vázquez Blázquez
Hello again, If I change: load: function(type, data, evt){ document.getElementById(mydiv).innerHTML = data.firstChild.innerHTML; for: load: function(type, data, evt){ document.getElementById(mydiv).innerHTML = 'HELLO'; it works. But I want to show the response content. Do

Re: File upload using Dyna Action Form

2008-01-21 Thread nuwan chandrasoma
http://wiki.apache.org/struts/StrutsFileUpload this link will help you. its just a matter of configuring the same from bean in struts-config as a dyna action from Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) On Jan 21, 2008 9:55 AM, Vikash Manoranjan [EMAIL PROTECTED] wrote:

Re: fly-out cross frame menu

2008-01-21 Thread Martin Gainty
since today is a federal holiday and most folks have the day off I'll offer a suggestion The first step is to d/l the flyout logic I would recommend this link as a working example (which uses basic html/js) http://www.msifc.com/flyout.htm Struts wraps dojo controls.. since flyout is not

[Struts2] Ajax anchor tag problem

2008-01-21 Thread Raghuveer Rawat
Hi, I have a requirement where only logged in users are allowed to put their comment. I have implemented that form with struts2 ajax theme...anchor has theme=ajax If logged in user puts his comment then everything works fine perfectly..I am able to see text message returned from action in

How to create a new Struts2 project with maven2?

2008-01-21 Thread Thai Dang Vu
Hi, From http://cwiki.apache.org/confluence/display/WW/Struts+Maven+Archetypes, it says mvn archetype:create -DgroupId=tutorial \ -DartifactId=tutorial \ -DarchetypeGroupId=org.apache.struts \

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread Roberto Nunnari
try this: result name=login type=redirect-actionlogin/result Best regards. -- Robi Raghuveer Rawat wrote: Hi, I have a requirement where only logged in users are allowed to put their comment. I have implemented that form with struts2 ajax theme...anchor has theme=ajax If logged in user

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread Roberto Nunnari
oopss.. sorry.. I read your post to fast and didn't notice you already tried redirect-action.. I believe the problem is that it's not the browser who is getting the redirect message from the server, but the ajax async call system, and so it puts the login form in the div, as it was instructed..

Re: How to create a new Struts2 project with maven2?

2008-01-21 Thread Laurie Harper
Thai Dang Vu wrote: Hi, From http://cwiki.apache.org/confluence/display/WW/Struts+Maven+Archetypes, it says mvn archetype:create -DgroupId=tutorial \ -DartifactId=tutorial \ -DarchetypeGroupId=org.apache.struts \

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread Raghuveer Rawat
Thanks Robi, I think you are right but how to come out of this ajax call if something goes wrong.sometimes I am getting some technical error and error page is also opening under target div. Is there anyone who faced this issue early? On Jan 21, 2008 3:29 PM, Roberto Nunnari [EMAIL PROTECTED]

[Formatting data] - Format a number as currency

2008-01-21 Thread Pascal SEREMES-DAMAL
Hi everyone!!! I'd like to know if it is possible to format a number into a currency with the struts taglib. Thanks.

Re: [Formatting data] - Format a number as currency

2008-01-21 Thread Alberto A. Flores
I'll recommend using using JSTL instead. On Jan 21, 2008 8:11 PM, Pascal SEREMES-DAMAL [EMAIL PROTECTED] wrote: Hi everyone!!! I'd like to know if it is possible to format a number into a currency with the struts taglib. Thanks. -- Alberto http://www.linkedin.com/in/aflores

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread WongTseng
since the request is sent via ajax, so the browser side redirect can not work. i suggest you don't redirect you user directly, instead you send back a piece of js, let the js redirect the browser. script window.location='xxx'; /script 2008/1/21, Raghuveer Rawat [EMAIL PROTECTED]: Thanks Robi, I

Re: Scriplets not working in html:xyz tags

2008-01-21 Thread The_Developer
Thanks Laurie, I tried the solution you gave but to no avail. Here's what i did, % int i=0; % html:select property=ewPrdProduct onchange=update('%=i %') name=ProductPricelistForm styleClass=inputbox html:options

best way for handling i18n

2008-01-21 Thread akshi gupta
Can anybody tell me the best way of handling i18n in struts2. The problem is everyone is using their own properties files for internationalization due to which messages are conflicting with each others properties file even i only have 4 properties files and my own messages are conflicting .

回复:best way for handling i18n

2008-01-21 Thread 张云勇
use the custome 标签 在2008-01-22,akshi gupta [EMAIL PROTECTED] 写道: Can anybody tell me the best way of handling i18n in struts2. The problem is everyone is using their own properties files for internationalization due to which messages are conflicting with each others properties file even i

Re: Unable to verify action class

2008-01-21 Thread Gunnar Boström
Hi, I've just found a way to do precisely what you proposed, hanks, Regards Gunnar Laurie Harper wrote: Gunnar Boström wrote: Hi, How can I make the org.apache.struts2.dispatcher.FilterDispatcher NOT to verify action classes when the Tomcat web server starts? I use struts 2 together