[ot] RE: Images

2007-10-19 Thread Manu Mahajan
Try removing the / before the image path Change this to -Original Message- From: Prashant Desai [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 5:05 AM To: user@struts.apache.org Subject: Images I have some images displayed on my website... the images on the first page do n

RE: and Hibernate

2007-10-19 Thread Manu Mahajan
I had to use the s:tree with struts 2.0.9 some time back. I had posted an example with working code(including the action class) at http://www.codepencil.com/?p=7#more-7. It might be useful. Manu -Original Message- From: Cosmin Stanciu [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18,

RE: Callback after AJAX call

2007-10-19 Thread Manu Mahajan
With notify topics you can handle before and after topics separately. Suppose submitForm is the name of the topic that you are publishing then you can do something like this. dojo.event.topic.subscribe("/submitForm", function(data, type, e){ if (type=="before"){ //do something bef

RE: specifying the location of struts.xml

2007-09-27 Thread Manu Mahajan
As far as I know the struts.xml has to be in the root of your classpath and there is no way of changing this. The maximum you can do is add it to the root of a jar in the WEB-INF/lib folder but not directly in the WEB-INF folder. Manu -Original Message- From: Pavel Sapozhnikov [mailto:[EM

RE: listen/notify Topics doubt

2007-09-27 Thread Manu Mahajan
Hi If you want to handle the before and after topics separately you can do something like this. Note I am publishing a separate topic for the form (submitForm) and then handling it using some javascript code ...

RE: Set the tree node to a given value

2007-09-14 Thread Manu Mahajan
You are right there is no way to expand the parents. That is why in my example every time a node is selected I am storing the state in a cookie and then restoring the tree to the same state before selecting. -Original Message- From: GEDA [mailto:[EMAIL PROTECTED] Sent: Friday, September 1

RE: Set the tree node to a given value

2007-09-13 Thread Manu Mahajan
Hi. For your specific question Try treeSelector = dojo.widget.byId('treeSelector_TREENAME') treeNode = dojo.widget.byId(ID) treeSelector.doSelect(treeNode); dojo.event.topic.publish("treeSelected", {node:dojo.widget.byId(treeSelection)}); Replace TREENAME with the name of your tree, ID is th

RE: Dynamic Tree Example

2007-09-06 Thread Manu Mahajan
Hi Session I am really sorry I couldn't work on the examples as I had promised. I have just been extremely busy over the last few weeks. I want to contribute and it's the first thing I will do when I get some time. I have already answered your question on saving and restoring the state of a tree.

RE: reloading a tree at a certain level of expension

2007-09-06 Thread Manu Mahajan
Hi Session I don't know if it can be done only via the struts tags but I was able to achieve this by using some dojo javascript code in my jsp. Here are some code snippets that might solve your problem . . . //The following extensions are required to save or restore state of a tree

RE: [ot] multiple messages (Solved)

2007-09-04 Thread Manu Mahajan
It seems that the error was coming from outlook. It's duplicating the incoming message. The same thing is working fine in thunderbird. Now I need to find an outlook mailing list or maybe it's time to shift to thunderbird ;) Sorry for the bother. Manu -Original Message-----

[ot] multiple messages

2007-09-04 Thread Manu Mahajan
Hi All I had recently subscribed to the mailing list using this email id (earlier I had a subscription for another address). The problem is that I am getting two copies of all messages on *this* email id after subscription. I have tried to unsubscribe and then subscribe again but I'm still getting

Re:

2007-08-22 Thread Manu Mahajan
/ajax in your application ? Thanks. Manu Mahajan-2 wrote: This is the link to the file that I used http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/template/ajax/tree.ftl?view=markup&pathrev=528866 All I did was 1. added this file to a template/ajax folder i

Re:

2007-08-21 Thread Manu Mahajan
This is the link to the file that I used http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/template/ajax/tree.ftl?view=markup&pathrev=528866 All I did was 1. added this file to a template/ajax folder in my app 2. modified the function treeNodeSelected in treeExampl

Re:

2007-08-21 Thread Manu Mahajan
tId; } GEDA wrote: I did download the tree.ftl file from the file attachement but still doesn't work. The link you gave me is not an actual file but a diff file which I don't know how to use it. :( Manu Mahajan-2 wrote: Hi Try this. Create a directory template/ajax in your application

Re:

2007-08-21 Thread Manu Mahajan
Hi Try this. Create a directory template/ajax in your application and copy the file tree.ftl from this page https://issues.apache.org/struts/browse/WW-1813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel You can search for this string "/struts/struts2/trunk/plugins/dojo/src/

Re: Dynamic Tree Example

2007-08-13 Thread Manu Mahajan
I have worked with the tree extensively but that was about two months ago with 2.0.6. I faced a lot of problems when I first encountered this and so I'll try and fix the showcase examples in the coming weekend and submit a patch next week . I hope not much would have changed between then and in

Re: [s2] weird problem with Chinese characters and SOLVED

2007-06-13 Thread Manu Mahajan
Ok! I've found a solution. It seems that I was looking at the wrong place. I am using sitemesh and the problem was coming due to a bug in sitemesh. If you use for your action path in decorators.xml then it will not print utf-8 encoded characters properly. I created a simple decorator and chan

Re: [s2] weird problem with Chinese characters and

2007-06-12 Thread Manu Mahajan
Thanks Dave. I tried and I seem to get correct output when using properties files but the problem occurs when I put an object containing Chinese data on the value stack. The same code works fine if I bypass the action and run it directly from a jsp. Dave Newton wrote: I am, but all the Chines

Re: [s2] weird problem with Chinese characters and

2007-06-12 Thread Manu Mahajan
Also I would like to know if anyone is using struts 2 to develop a site containing Chinese content because my entire application seem to be affected by this. Either I am missing something very trivial or no one has used struts2 in this context.

Re: [s2] weird problem with Chinese characters and

2007-06-12 Thread Manu Mahajan
I'm disappointed that I did not get any response. Anyway I have filed a bug here https://issues.apache.org/struts/browse/WW-1985 Manu Mahajan wrote: Hello I tried removing the s:iterate and s:property tags and shifted the code to a scriptlet, I was still getting the same problem. But

Re: [s2] weird problem with Chinese characters and

2007-06-12 Thread Manu Mahajan
server logs. - So in my browser I get an html terminated abruptly at a random place towards the end. - No exceptions are being thrown - The same code works perfectly for other languages. I really dont know how to proceed with this. Any help would be appreciated. Thanks Manu Manu Mahajan wrote

[s2] weird problem with Chinese characters and

2007-06-12 Thread Manu Mahajan
Hi I am having a really weird problem with data containing chinese characters. I have something similar to the following code in a jsp. This works fine otherwise but when 'translationText' contains Chinese characters an incomplete jsp is painted. Like say

[s2] s:url escaping '&' between params

2007-04-11 Thread Manu Mahajan
Hi I'm facing a very annoying problem with s:url. For some reason it is encoding the '&' between the params to & Here's my code The above code outputs the url with parameters and '&' encoded What could be the reason?

Re: [S2] redirect-action to different namespace

2007-04-06 Thread Manu Mahajan
joey wrote: only interceptors,results will be inherited from parent package. Ok. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] redirect-action to different namespace

2007-04-06 Thread Manu Mahajan
Ok. So what happens when I extend a package? Do i inherit its namespaces, interceptors and actionmappings in the sub package? joey wrote: Package 's name is the key to for other packages to reference like extend. Namespace could be different to name. On 4/6/07, Manu Mahajan <

Re: [S2] redirect-action to different namespace

2007-04-06 Thread Manu Mahajan
Manu Mahajan wrote: 1. How can I redirect a result from an action to an action in another namespace? I have separate configuration files for each namespace. 2. What is the significance of packages? Should the package name always be the same as the namespace

[S2] redirect-action to different namespace

2007-04-06 Thread Manu Mahajan
1. How can I redirect a result from an action to an action in another namespace? I have separate configuration files for each namespace. 2. What is the significance of packages? Should the package name always be the same as the namespace? -

Re: unable to capture events with

2007-04-03 Thread Manu Mahajan
I have posted a comment and the suggested patch on Jira. I think this has probably broken due to a change in Dojo upstream. Dave Newton wrote: --- Manu Mahajan <[EMAIL PROTECTED]> wrote: If your code is working then can you please check what version of struts you are using becaus

Re: unable to capture events with

2007-04-02 Thread Manu Mahajan
deSelected"); Please click on any of the tree nodes. I have added the alert in the function. It never seems to get called. Dave Newton wrote: --- Manu Mahajan <[EMAIL PROTECTED]> wrote: function treeNodeSelected(){ alert('Temporary like Achilles'

Re: unable to capture events with

2007-04-02 Thread Manu Mahajan
t from the jars in the blank app? Dave Newton wrote: --- Manu Mahajan <[EMAIL PROTECTED]> wrote: I'm using Tomcat 5.5 The code I posted is working for me; can you post your current code? (Personally I won't have access to my code u

Re: unable to capture events with

2007-04-02 Thread Manu Mahajan
Manu Mahajan wrote: I'm using Tomcat 5.5 Tapio Holopainen wrote: Hi, Which web container you are using? I have found problems when using dojo with Websphere. Regards, - Tapio On Mon, 02 Apr 2007 13:34:25 +0300, Manu Mahajan <[EMAIL PROTECTED]> wrote: Thanks for the reply Dave,

Re: unable to capture events with

2007-04-02 Thread Manu Mahajan
I'm using Tomcat 5.5 Tapio Holopainen wrote: Hi, Which web container you are using? I have found problems when using dojo with Websphere. Regards, - Tapio On Mon, 02 Apr 2007 13:34:25 +0300, Manu Mahajan <[EMAIL PROTECTED]> wrote: Thanks for the reply Dave, but this is

Re: unable to capture events with

2007-04-02 Thread Manu Mahajan
re included in struts2-blank.war Dave Newton wrote: --- Manu Mahajan <[EMAIL PROTECTED]> wrote: Do I have to use some dojo specific code here? I've been using the Dojo binding stuff; my sample is from a pretty long time ago now but here it is in case it helps. It might j

unable to capture events with

2007-04-02 Thread Manu Mahajan
I am unable to capture any events with a dynamically created tree. My jsp code is pasted below. The tree renders correctly. I have tried using tags like onclick, onchange etc but it doesnt seem to be working. Do I have to use some dojo specific code here? <%@ taglib prefix="s" uri="/struts-t

Re: struts.xml - change default location

2007-03-28 Thread Manu Mahajan
I second this. And thanks for the replies. doktora wrote: I think the fact that you cannot change the location of struts.xml should be put in here: http://struts.apache.org/2.x/docs/struts-1-solutions.html This will help out a lot of people who do not expect s2 to have this different behaviou

Re: Changing location of struts.xml

2007-03-28 Thread Manu Mahajan
Yes, that seems to work fine but I would have liked to keep it in a separate conf/struts folder inside the jar. Adam Ruggles wrote: I put mine in the root of my jar file and it works fine. I don't even have a classes folder. Manu Mahajan wrote: Hello I want to know if it is possib

Changing location of struts.xml

2007-03-28 Thread Manu Mahajan
Hello I want to know if it is possible to change the location of the struts.xml file. I don't want to keep it in the WEB-INF\classes directory. Ideally I would like to create a jar file with all my configuration files(including configurations of hibernate/spring/sitemesh etc) and place it in