Re: Issues in Struts 2 and WASCE

2010-12-02 Thread Maurizio Cucchiara
I've never heard of such behavior. The only thing I can advise is to enable struts2 log and see in what the correct and the wrong behavior differ. Are you sure there isn't any error log? 2010/12/2 Swapnil Raverkar : > Hi, > > We are observing issues in our Struts 2 based application, when deployed

any ideas about handle user's relogin using interceptor?

2010-12-02 Thread maven apache
Hi: In our application,if user logined in one browser or computer,then he/she login in another brower/computer,the first login information should be removed. For example. User login in computer A,then he did not logout and then login in computer B,then if he back to computer A do some Authorizatio

Re: AJAX file upload

2010-12-02 Thread Alex Rodriguez Lopez
Still off-topic, but recently I've been using this neat feature in GMail where one simply grabs an actual file from, say, your desktop, and drop it into a designated zone in the page when composing mail. The file starts uploading when droped, so I guess you could call this "ajax upload". I wond

Re: execute javascript after action's html renders

2010-12-02 Thread Colin Freas
So, the "parent" action is using a Dojo *div* tag, with the *executeScripts* attribute set to true. The script in the "child" action, which is referenced in the *div* tag, is inline JavaScript. So parent is like: Child is: ... html/jsp fragments ... alert("blah blah blah"); If I go to

Re: labelizing submit buttons

2010-12-02 Thread M. Rakowski
maybe it is a little late, but here is a "legal" way to put a label on s:submit: With btn.search defined in .properties file. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread Li Ying
The problem will be: (1)How to save the information about who is logged in from which session. and (2)How to check this information before every action execution For problem 1, if you only have one app server, you can save this information in global variable, if you need support multi app serv

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread maven apache
Thanks,your answer can not be detailed more. :) only a little confused. Map attibutes = ActionContext.getContext().getSession() I can get the session this manner,but it seems that it is a Map,not a HttpSession,so what is the id? I have debug the session yet,and I found there is a property in th

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread Li Ying
ActionContext is just a wrap class for convenience. If you need the real HttpSession. You should get the HttpRequest first, from ServletActionContext.getRequest(). See: http://struts.apache.org/2.2.1/struts2-core/apidocs/org/apache/struts2/ServletActionContext.html And then, you can get the Htt

Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
Struts 1.3.8 I am writing and application where end user insert the email address and get inserted in table shown on web page after successfully validation. For that I am doing following: 1. Get email from user in text box. 2. When user press add button AJAX post is called, email get validat

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 11:44 AM, Anjib Mulepati wrote: > 1. My record in the table disappear if page is refresh. > Don't refresh? Otherwise you need a mechanism to "remember" what you're working with, like the session. > 2. And If some of my email is incorrect I don't want that to be get back t

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
1. By refresh I mean when user press F5 all content lost. 2. I will try second one. Anjib On 12/2/2010 11:58 AM, Dave Newton wrote: On Thu, Dec 2, 2010 at 11:44 AM, Anjib Mulepati wrote: 1. My record in the table disappear if page is refresh. Don't refresh? Otherwise you need a mechanism to

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 12:33 PM, Anjib Mulepati wrote: > 1. By refresh I mean when user press F5 all content lost. > That is the nature of Ajax-heavy applications. You need to store a means of retrieving the object/data you're currently working with. One place to store it is in the session. Dave

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
Ok second also doesn't work. 1. I have AJAX post as follow: $.post( "validateEmail.do", {sendValue: email}, function(returnValue){ addToTable(returnValue); }, "text" ); 2. I have action as: { String email = (String) request.getPara

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 12:43 PM, Anjib Mulepati wrote: > Ok second also doesn't work. > "It doesn't work" actually isn't descriptive enough to allow anybody to help effectively--you'd need to say what actually happens, what you *expect* to happen, what's in your JavaScript console, what the actio

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
I am trying to validate email user have entered in textbox. I am using AJAX call for validation. So I am sending my email as post request and if validated it will add email in the table in the web page. This is what I want to happen. But problem I am having is I can't tap the condition where e

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 1:25 PM, Anjib Mulepati wrote: > But problem I am having is I can't tap the condition where email is > invalid. > > $.post( >"validateEmail.do", >{sendValue: email}, >function(returnValue){ >addToTable(returnValue); //add email to table

RE: Struts 1 and AJAX

2010-12-02 Thread Biesbrock, Kevin
> Although personally I'd still use JSON; easier. > Dave Yep. So a successful response could look like this: response = { validEmail:true, emailAddress:'user@struts.apache.org' } and a failed response could look like this: response = { validEmail:false, emailAdd

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
So do I need to map two different view in action class as follow { String email = (String) request.getParameter("sendValue"); // perform validation of email address try { insp.validate(email); //iF EMAIL IS VALID it return email and map email.jsp pag

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
You *could* do that, or do it in the view layer, or just serialize a rational JSON object to the response and skip all the other issues, and make things easier. Dave On Thu, Dec 2, 2010 at 2:06 PM, Anjib Mulepati wrote: > So do I need to map two different view in action class as follow > > > {

best way to ajaxize a Struts2 application

2010-12-02 Thread webmeiker
Hi, I want to ask to the Struts2 community what technology do you recommend to “ajaxize” a Struts2 web application? (Dojo, Jquery, YUI, …) What do you think are the newest tendencies? Thanks in advance (and sorry if it has been asked thousands of times before –I’am new in the mailing list-)

RE: best way to ajaxize a Struts2 application

2010-12-02 Thread Vikas Kumar Gupta
Hi, I'm also trying to use ajax using struts 2 dojo plugin which comes with struts-2.2.1 but I'm not getting documentation of this plugin as how to use dojo javascripts. Plz suggest. Regards, Vikas Gupta India -Original Message- From: webmeiker [mailto:i...@webmeiker.com] Sent: 03 Decem

RE: best way to ajaxize a Struts2 application

2010-12-02 Thread Biesbrock, Kevin
I read some statistics that jQuery is the fastest JavaScript library. It was between jQuery and Dojo, but Dojo failed tests in some browsers. I used to be a Prototype/Scriptaculous fan until I realized how much better jQuery performs. And jQuery has a really good user base with great documentatio

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
I am trying with simple things but result are not as I expected. After call to Struts action I get either SUCCESS or FAILURE view. And these same page are displayed in the row itself. I was planning to display email if it is valid(SUCCESS) or error message on page (in div area fro error) if th

RE: Struts 1 and AJAX

2010-12-02 Thread Biesbrock, Kevin
You *need* a means of telling your application whether the validation was successful or a failure. All you're currently doing is reiterating to your server of a successful or failed validation...which it already knows by virtue of your validation method. As Dave and I have both suggested, a JSON

Re: best way to ajaxize a Struts2 application

2010-12-02 Thread Frank W. Zammetti
Depends very much on what your goals and requirements are. Do you want to just sprinkle in some AJAX calls to your server? Pretty much any library or plug-in will do the trick pretty well for you. Are you looking for a whole GUI toolkit? If so I'd personally suggest ExtJS as being the best, but

Re : best way to ajaxize a Struts2 application

2010-12-02 Thread François Rouxel
without hesitation http://www.weinfreund.de/struts2-jquery-showcase/index.action - Message d'origine De : Frank W. Zammetti À : Struts Users Mailing List Envoyé le : Jeu 2 décembre 2010, 15h 5

Re: Struts2 + Dojo 1.5

2010-12-02 Thread developer researcher
Hello Stephen, After several tests and corrections now I can run the basics for a project with Struts 2 and dojo. Part of the problem was due to the way I was using dojo, in that sense I will share what I have discovered, perhaps they can util to others and also having a feedback from th

Re: Struts2 + Dojo 1.5

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 4:23 PM, developer researcher wrote: > Now what worries me is that there are cases where the javascript (dojo) > works well in Firefox but not on Internet Explorer. Any suggestions to > tackle this problem? > Talk to the Dojo mailing list? Dave

Spring 3 Upgrade

2010-12-02 Thread Zoran Avtarovski
I just wanted to check if there were any issues with upgrading spring to version 3 with struts 2.2.1? I notice the complete download still has Spring 2.5 libraries. I'd appreciate any feedback from people who've made the jump and any issues to look out for. Z.

Re: Spring 3 Upgrade

2010-12-02 Thread Jason Ferguson
I had no trouble with it. On Thu, Dec 2, 2010 at 5:08 PM, Zoran Avtarovski wrote: > I just wanted to check if there were any issues with upgrading spring to > version 3 with struts 2.2.1? > > I notice the complete download still has Spring 2.5 libraries. > > I'd appreciate any feedback from peopl

Re: Spring 3 Upgrade

2010-12-02 Thread Maurizio Cucchiara
I'm using 3.0.5 and I haven't any trouble. 2010/12/3 Jason Ferguson : > I had no trouble with it. > > On Thu, Dec 2, 2010 at 5:08 PM, Zoran Avtarovski > wrote: > >> I just wanted to check if there were any issues with upgrading spring to >> version 3 with struts 2.2.1? >> >> I notice the complete

Re: Spring 3 Upgrade

2010-12-02 Thread Frans Thamura
but if we use struts2 maven, the spring default is 2.x i have 2 deployment, spring3 and spring2 (from maven) should we fix and upgrade the maven F On Fri, Dec 3, 2010 at 6:37 AM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > I'm using 3.0.5 and I haven't any trouble. > > 2010/12/

Re: Re : best way to ajaxize a Struts2 application

2010-12-02 Thread Maurizio Cucchiara
I've used Dojo and Dijit in the past and I've encountered problem with them. I personally prefer jquery, as it's the most intuitive and less intrusive. ExtJS is a good library, but you should consider sencha licence condition http://www.sencha.com/products/license.php 2010/12/2 François Rouxel :

Re: Spring 3 Upgrade

2010-12-02 Thread Li Ying
I built a web app in this summer, using the latest Struts2.2.1 and the latest Spring3.x. And there was nothing going wrong. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@s

Using Dojo with Struts 2

2010-12-02 Thread Dean Schulze
How do I use Dojo with Struts 2?  Struts 2.2.1 has a Dojo plugin with it, but I've heard several people say not to use the plugin.  No one says what the problem is, however. What is the Dojo plugin?  Is it based on an old version of Dojo?  Why does it have such a bad reputation? I'd appreciat

Re: Using Dojo with Struts 2

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 7:47 PM, Dean Schulze wrote: > How do I use Dojo with Struts 2? Just use Dojo. > Struts 2.2.1 has a Dojo plugin with it, but I've heard several people say > not to use the plugin. No one says what the problem is, however. > Antiquated version of Dojo (0.4.3). More diff

Re: Using Dojo with Struts 2

2010-12-02 Thread Dean Schulze
When you say "Just use Dojo" do you mean to drop Struts 2, or to just use Dojo in the JSPs that I create for Struts 2?   --- On Thu, 12/2/10, Dave Newton wrote: From: Dave Newton Subject: Re: Using Dojo with Struts 2 To: "Struts Users Mailing List" Date: Thursday, December 2, 2010, 6:21 PM

Re: Using Dojo with Struts 2

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 8:32 PM, Dean Schulze wrote: > When you say "Just use Dojo" do you mean to drop Struts 2, or to just use > Dojo in the JSPs that I create for Struts 2? > Door number two. Dave

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread maven apache
Hi: Thanks for Liying's answer,I have a try just now,and it works well(say the result,it meet my requirements). However I found that my codes are rathre ugly,have no logic. So I wonder any one can spare some time to have a check? Notice:I remove the jars in the WEB-INF/lib. You should add it you

z29 dadb0j

2010-12-02 Thread patwary rao
http://vicperformanceparts.com.au/images/zh98.html aec4 phcsk mr2xbqj - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread Li Ying
The only data need to save is UserID and SessionID, I think it will not over 100 bytes per user. For 1000 user, the total memory will not over 10MB. So, you don't have to worry about memory problem. For the DB solution, if you worry about response speed. You can change the solution: Do not check

Re: Using Dojo with Struts 2

2010-12-02 Thread Brian Thompson
I don't think Dojo quite has what it takes to replace Struts 2. -Brian On Thu, Dec 2, 2010 at 7:32 PM, Dean Schulze wrote: > > When you say "Just use Dojo" do you mean to drop Struts 2, or to just use > Dojo in the JSPs that I create for Struts 2? > > > --- On Thu, 12/2/10, Dave Newton wrote:

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread Li Ying
I read your code, and noticed one thing. You saved the whole HttpSession instance in Map, this will waste memory. The information you really need is just the SessionID, but not the whole Session. SessionID can be retrieved from HttpSession.getId(); See: http://download.oracle.com/javaee/5/api/

Re: result type Jasper [Struts 2]

2010-12-02 Thread @rju
hi Dave, Hope you remember me recently i have asked the problem in jasper reports with struts. In that the problem is only on iText2.1.0.jar but now am facing problem due to the slow processing... Especially the JasperFillReport method is performing very slow and data base issues are also coming..

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread maven apache
Thanks! So the way I use the interceptor is right? Nothing have to be changed except saving the session id intead of sessin it self? 2010/12/3 Li Ying > I read your code, and noticed one thing. > > You saved the whole HttpSession instance in Map, this will waste memory. > > The information you

Issues in

2010-12-02 Thread Rajesh
Hi All,     Actually I have a requirement, which fetch the drop down values from JS and show it in jsp.     I have to use ajax auto completer  to achieve this.     Here the issue is, i can able to enter any value in the auto completer box and pass that valu

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread Li Ying
It looks like so. 2010/12/3 maven apache : > Thanks! > > So the way I use the interceptor is right? > > Nothing have to be changed except saving the session id intead of sessin it > self? > - To unsubscribe, e-mail: user-unsubscr

Re: Re : best way to ajaxize a Struts2 application

2010-12-02 Thread webmeiker
After reading all your responses I think I'am going to use* JQuery*. :-) Thanks!! 2010/12/3 Maurizio Cucchiara > I've used Dojo and Dijit in the past and I've encountered problem with > them. > I personally prefer jquery, as it's the most intuitive and less intrusive. > ExtJS is a good library