RE: Getting acknowledgment for an AJAX request

2008-09-24 Thread ravindra
You can process the json response using yui plugins.There is a module called ConnectionManager in yui using that you can invoke your json action class as shown below var mySource = new DataSource('some/some/example.action?'); below is yui link. http://developer.yahoo.com/yui YAHOO.util.Event.

Re: Getting acknowledgment for an AJAX request

2008-09-24 Thread ManiKanta G
> As I said, the JSON plugin would be a good starting point. > > http://cwiki.apache.org/S2PLUGINS/json-plugin.html Thanks. I've experimented with the JSON and I m able to return a JSON string, but was not able to process that in the jsp. How I m going to process the JSON in jsp? Do I need to w

Re: Question abt jsp and struts 1.3

2008-09-24 Thread Kavita Mehta
Hi Pankaj, If you open firefox and see the page info-->Media ,you can see the image path being picked up by the JSP . That might help . Regards, Kavita "Pankaj Gupta" <[EMAIL PROTECTED]> 09/25/2008 09:56 AM Please respond to "Struts Users Mailing List" To user@struts.apache.org cc S

Question abt jsp and struts 1.3

2008-09-24 Thread Pankaj Gupta
Hi, I am using struts 1.3. I have kept jsp folder parallel to WEB-INF folder. Inside jsp pages I have images folder, where I am keeping the images referred by jsp. In jsp I giving src of images as as : "images/image-1". So when I access the jsp directly, then I can see the images.. But if try

Re: Newbie Help: Struts 2 + Spring + Hibernate

2008-09-24 Thread David C. Hicks
Ryan, I just went through a similar learning process. I found that by following the model of the online tutorial, I had a lot more luck getting started than trying to start from scratch. Load up the WTP plugins for Eclipse, grab the "quickstart" zip file mentioned in the online tutorial, an

Newbie Help: Struts 2 + Spring + Hibernate

2008-09-24 Thread Ryan Detert
I just read the Manning book on Struts 2 and understand the theory behind Struts but am a little bit confused as to how to actually implement my first app in practice. The locations of the config files, etc are a little confusing. For my development environment I'm using Maven 2 + Ecplise IDE. I'

"Preparable" influence hibernate transaction management when using "OpenSessionInViewFilter"

2008-09-24 Thread Jack_Ryde
Keyword: struts2 preparable, spring OpenSessionInViewFilter, hibernate transaction management. Background: We use OpenSessionInViewFilter in our web xml to enable lazy loading in web views. The struts action class provides a basic function in adding, updating and deleting data entity as a cont

ApplicationListener issue

2008-09-24 Thread Martín Mauri
Hi all, I'm having an issue while implementing an App Listener for my App. Thing is that the ApplicationListener appears to be working fine, as from the logs I can see that the contextInitialized method is being invoked. Inside the method I do this call, same way as the Mailreader sample app does

Re: Best Practice for Transfer Data from Action to Viewer JSP?

2008-09-24 Thread Guojun Zhu
Thank you very much. I actually needed to display one set as the property and the other as label property. So it is strictly for the output. I have implemented that as the request.attribute and it works with just fine. Thanks very much. Sincerely Zhu, guojun On Wed, Sep 24, 2008 at 3:31 PM,

Re: Custom tag and map-backed action

2008-09-24 Thread stanlick
Like you, I was under the impression that generics were erased and you were out of luck at runtime! After the type conversion burn at the top of this thread, I started to dig in and found this article. I have experimented with it and it works great. As it turns out, this is probably about all an

RE: I am trying to ignore any white space entered by the user in the autocompleter combobox.

2008-09-24 Thread Jishnu Viswanath
That you can do it in server side also, I mean you intercept, remove the white space and proceed. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Messag

Re: Best Practice for Transfer Data from Action to Viewer JSP?

2008-09-24 Thread Laurie Harper
Guojun Zhu wrote: Hi, I am new to struts. I am using Struts 1.2.9. I have two String arrays generated in an action should go to the JSP pages . I can set it as an attribute in request/session and pull them in jsp pages. But it seems a bit against the idea of separation between model and view

Re: Getting acknowledgment for an AJAX request

2008-09-24 Thread Laurie Harper
ManiKanta G wrote: Thanks Laurie, If all you need to return is a number or true/false, simply write that to the response in your action method and return null what do you mean writing to response? You mean using response.xxx methods? or some thing else? More or less, yes: write your respons

Re: Problem in using logic:iterate in struts

2008-09-24 Thread Laurie Harper
If the action isn't being called, that would explain why the data the action pushes into request scope can't be found... Sounds like the link is pointing to the JSP instead of the action, then. How are you rendering the links? What are they rendering as? (i.e. what is the generated HTML?) L.

Re: Custom tag and map-backed action

2008-09-24 Thread Laurie Harper
I stand corrected -- and thanks for the link; I've never seen this documented before. Very interesting... L. [EMAIL PROTECTED] wrote: http://www.google.com/gwt/n?eosr=on&q=Reflection+generics+Java+&source=m&hl=en&ei=ZWfZSODxI5nYqAKR1t53&sa=X&oi=blended&ct=res&cd=4&rd=1&u=http%3A%2F%2Ftutorials

Using JSP 2.0 syntax inside Sitemesh decorator

2008-09-24 Thread Zarar Siddiqi
I can't believe I haven't run into this issue before but I just noticed that you can't use JSP 2.0 syntax inside a Sitemesh decorator. My Sitemesh config is exactly like as described here: http://struts.apache.org/2.x/docs/sitemesh-plugin.html The only difference is that I'm using PageFilter ins

Re: Is my struts.xml never read?

2008-09-24 Thread Emil Lundberg
I finally got it! I spotted this attribute: deploy-name="MyProject"/> in org.eclipse.wst.common.component (see below). I changed that and the context root to "/" and now I can access my actions from the server root (http://localhost/foo.action)! Thanks a lot for your help! /Emil -org.ecli

RE: I am trying to ignore any white space entered by the user in the autocompleter combobox.

2008-09-24 Thread rza
I want to do it on the client side, basically I want the autocompleter to work and find the proper string even if there is a difference between the string from the list and the string typed by the user.. Jishnu Viswanath wrote: > > You want a client side removal or server side? If server si

RE: I am trying to ignore any white space entered by the user in the autocompleter combobox.

2008-09-24 Thread Jishnu Viswanath
You want a client side removal or server side? If server side, why don't you write interceptor for it? And if client side you have to write js. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE

Problem with input attribute - the action doesn't progress

2008-09-24 Thread Daniele Development-ML
Hello everybody, I have a problem with configuring an action mapping. The related Struts-config.xml chunk is: The input form beans are all declared: The problem is that when from the URL /insertAuthor I access to the url /showInsertedAuthor, Tomcat indeed access to the new URL but

I am trying to ignore any white space entered by the user in the autocompleter combobox.

2008-09-24 Thread rza
I am trying to ignore any white space entered by the user in the autocompleter combobox. I appreciate any help/hint -- View this message in context: http://www.nabble.com/I-am-trying-to-ignore-any-white-space-entered-by-the-user-in-the-autocompleter-combobox.-tp19652266p19652266.html Sent from

RE: Struts vs JSF newbie questions

2008-09-24 Thread Martin Gainty
some clarification on which (Struts vs JSF) lifecycle does what would be appreciated thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission i

Re: Extending Struts Tags

2008-09-24 Thread Alberto Flores
Assumming you are talking about Struts 2, I would recommend checking out the source code and trace how the UIBean delegates to the Component class (super class). All Struts2 ui objects are subclasses of "Component". Additionally, UIBean adds a set of methods that are very useful (particularly t

Re: Is my struts.xml never read?

2008-09-24 Thread Alberto Flores
I think this is hardly a Struts question, but an Eclipse question (which granted could be a bit complicated when not understanding WTP well enough). I'm going to assume that the following assumptions are true: - You are using WTP in Eclipse. - You are using Eclipse 3.3.x - You are working on a

I18n problem with annotation validation

2008-09-24 Thread Jeroen Simons
Hi, I have a i18n problem when validating a field in my action. (Struts 2.0.11.2) My validation: @RequiredStringValidator( fieldName = "user.username", key = "error.required", message = "") My resource bundle reads this: error.required=${getText(fieldName)} is required. To have a lo

RE: Extending Struts Tags

2008-09-24 Thread Jishnu Viswanath
Cant you put if condition in the ftl? Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Narayana S [mailto:[EMAIL PROTECTED] Sent: Wedn

Extending Struts Tags

2008-09-24 Thread Narayana S
Hi i missed my previous email about the same topic, one guy helped me to implement struts UI tag customization. i could extend the Bean and Tag classes to implement the required behavior. now based on some value from the database i want to stop rendering of the control itself. means for ex

Re: Struts vs JSF newbie questions

2008-09-24 Thread UseTheFork
Wow, nice !!! Thanks Joachim !!! -- View this message in context: http://www.nabble.com/Struts-vs-JSF-newbie-questions-tp19645533p19646792.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe,

Re: Struts vs JSF newbie questions

2008-09-24 Thread Joachim Rohde
There is a JSF-plugin for Struts. Have a look at http://struts.apache.org/2.1.2/docs/jsf-plugin.html Hopefully this answers some of your questions. Joachim UseTheFork schrieb: Hi, I am still in my quest to understand J2EE technologies. Today, I am reading about JSF. My questions are: i) I u

Re: Performance and High CPU utilization

2008-09-24 Thread Owen Berry
Is avoiding OGNL a possibility rather than avoiding Struts 2 altogether? On Wed, Sep 24, 2008 at 6:47 AM, yorlick kilroy <[EMAIL PROTECTED]> wrote: > a few weeks ago I posted the same problem with struts2 concerning poor > OGNL performance. Absolutely none of the advice given has helped. The > App

Re: Performance and High CPU utilization

2008-09-24 Thread yorlick kilroy
a few weeks ago I posted the same problem with struts2 concerning poor OGNL performance. Absolutely none of the advice given has helped. The Application I wrote in Struts2 needs to handle and render large lists displayed in rather complex tables. I have a similar application with similarly complex

Issue using struts2 autocompleter.

2008-09-24 Thread sheva j
Hi, I am facing an issue in struts2.0.11 autocompleter. Issue: In jsp page where I have used autocompleter, IE is showing an alert message with "stack overflow at line: 8259" and in the same jsp page, I have an error as "djConfig.baseScriptUri.length' is null or not an object" Jsp code for auto

Struts vs JSF newbie questions

2008-09-24 Thread UseTheFork
Hi, I am still in my quest to understand J2EE technologies. Today, I am reading about JSF. My questions are: i) I understand that in JSF, you have to define a navigation model from pages to pages. Therefore, it means that JSF is incompatible with Struts, correct? It is an either/or situation, on

RE: Issue using struts2 autocompleter.

2008-09-24 Thread Rag
Hi, I tried the example given in "http://struts.apache.org/2.x/docs/autocompleter.html";(to get list from an action), but it is not working with struts2.0.11. It is getting the list form action, but all the values are displaying in same line. Kindly help me. Thanks in advance. Rag wrote:

Re: Issue using struts2 autocompleter.

2008-09-24 Thread sheva j
Hi, Thanks for your replay Martin. I am new to struts. In my project I am not at all changing any dojo file. Whether I need to include any javascript code to fix the issue. Kindly help me... Thanks in advance. On 9/23/08, Martin Gainty <[EMAIL PROTECTED]> wrote: > > > djConfig.baseScriptUri.le

Re: Best Practice for Transfer Data from Action to Viewer JSP?

2008-09-24 Thread Paweł Wielgus
Hi Guojun, in case of struts1 i would use form (struts form). Best greetings, Paweł Wielgus. 2008/9/24 Guojun Zhu <[EMAIL PROTECTED]>: > Hi, > > I am new to struts. I am using Struts 1.2.9. I have two String arrays > generated in an action should go to the JSP pages . I can set > it as an att

Re: Getting acknowledgment for an AJAX request

2008-09-24 Thread ManiKanta G
Thanks Laurie, If all you need to return is a number or true/false, simply write that to > the response in your action method and return null what do you mean writing to response? You mean using response.xxx methods? or some thing else? The bottom line is that, once you understand what it is yo