You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rajeevP <ra...@gmail.com> on 2009/06/02 15:07:22 UTC

Re: AJAX issues in struts 2.1.6

Thanks for all your support, after adding the sx:head i could able to work.
But the problem is , while loading the jsp page itslef the url action is
calling. Actually our intention to call the url , when the onchange of the
text field happens. why it is happening like this? I am attaching my jsp
with this.
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%String relPath=request.getContextPath(); %>
<html:html locale="true">
<sx:head parseContent="true" />
<head>
<title>Add Demand</title>
<link href="<%=relPath%>/css/mystyle.css" rel="stylesheet"
	type="text/css" />
<link href="<%=relPath%>/css/style.css" rel="stylesheet" type="text/css" />


<style type="text/css">
html,body {
	height: 100%;
}
</style>
<script type="text/javascript" src="<%=relPath%>/js/addDemand.js"></script>
</head>
<script>
	function show_details() {
		alert('in show details11........');
		dojo.event.topic.publish("show_detail");
	}
</script>
<body>
<s:form action="AddDemand" onsubmit="return validate(this);"
	id="frmDemand">
	<s:url id="d_url" action="chkDemandCompany" />
	<s:hidden name="sessionVal"></s:hidden>
	<jsp:include page="date.jsp" />
	<div>
	<p class="breadcrump" align="left">Demand Company -> Add Demand</p>
	</div>
	<br>
	<div class="container1">
	<div class="header" align="left">Demand Company Details</div>

	<table width="100%" align="left">
		<tr></tr>
		<tr></tr>
		<tr>
			<s:textfield name="demandCompanyName" label="Company Name 12"
				required="true" size="35" onchange="show_details()" ></s:textfield>
			<sx:div showLoadingText="false" id="details" href="%{#d_url}"
				listenTopics="show_detail" formId="frmDemand"></sx:div>

		</tr>

		<tr></tr>
		<s:select label="Company Type" list="{'GDS','IDS'}"
			name="demandCompanyType" required="true" />
		<tr></tr>

		<tr>
			<td><s:textfield name="demandCompanyUrl"
				label="URL for the company" required="true"
size="35"></s:textfield></td>
		</tr>
		<tr></tr>
		<tr>
			<s:select label="Message Type" list="{'OTA','XML 4'}"
				name="demandMessageType" required="true" />
		</tr>
		<tr>
			<td><br>
			<br>
			</td>
		</tr>
		<tr>

			<td><input type="submit" value="Save" name="Save"> <input
				type="reset" value="Cancel" name="Cancel" onclick="cancel()"></td>
		</tr>
	</table>
	</div>
	<jsp:include page="footer.jsp" />
</s:form>

</body>
</html:html>


Thanks in advance,
Rajeev
-- 
View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p23832201.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: AJAX issues in struts 2.1.6

Posted by hisameer <co...@yahoo.com>.
Martin, 

Thanks for your reply it was really helpful. I defined an action in my
struts.xml file as follows:

<action name="tabbedexample"
class="org.apache.struts2.showcase.ajax.AjaxTestAction">
			<result>/ajax/tabbedpanel/example1.jsp</result>
</action>

Here is the image of the result page. I really dont understand what I am
missing:
http://www.nabble.com/file/p24882024/tabbedexample.gif 

My problem is I am not even able to see the tabs. All I want is just to see
two tabs one static and another dynamic. I have spent so many days on it.
Only you are the one who is helping me. If you could just send me the war
file which only has example1.jsp showing only that page, that would be
great. Right now I even dont know what the jar files and the configuration I
should use. Please be kind and send it on cool_sameer_for_u@yahoo.com I know
I might sound stupid but this is the only option I am left with.

mgainty wrote:
> 
> 
> Set the "actionPackages" filter init param to a comma-separated list of
> packages containing Action classes in web.xml. The <comma separated list
> of >packages and their
> subpackages will be scanned. All classes in the designated packages
> that implement Action or end in "Action" are examined. 
> The latter is to
> allow for POJO Actions that don't implement the Action interface.
> 
> so in struts2-showcase-2.1.6/WEB-INF/web.xml
> //my actionPackages init-param  defined as
> org.apache.struts2.showcase.person
>    <filter>
>         <filter-name>struts-prepare</filter-name>
>        
> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter</filter-class>
>         <init-param>
>             <param-name>actionPackages</param-name>
>             <param-value>org.apache.struts2.showcase.person</param-value>
>         </init-param>
>     </filter>
> 
> in the case of the struts-showcase all Action classes will be scanned into
> org\apache\struts2\showcase\person folder
> struts2-showcase-2.1.6\WEB-INF\classes\org\apache\struts2\showcase\person
> 
> 01/05/2009  09:52 PM             2,018 EditPersonAction.class
> 01/05/2009  09:52 PM             1,234 ListPeopleAction.class
> 01/05/2009  09:52 PM               304 NewPersonAction-validation.xml
> 01/05/2009  09:52 PM             1,293 NewPersonAction.class
> 01/05/2009  09:52 PM               511 Person-validation.xml
> 
> does this help?
> Martin 
> ______________________________________________ 
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>  
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie de ceci est interdite. Ce message sert à l'information seulement et
> n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
> les email peuvent facilement être sujets à la manipulation, nous ne
> pouvons accepter aucune responsabilité pour le contenu fourni.
> 
> 
> 
> 
>> Date: Fri, 7 Aug 2009 20:46:32 -0700
>> From: cool_sameer_for_u@yahoo.com
>> To: user@struts.apache.org
>> Subject: RE: AJAX issues in struts 2.1.6
>> 
>> 
>> Hi Martin,
>> 
>> The example runs fine when I run it with the given War file but when I
>> try
>> to copy those files and some related jar I get the the following error:
>> 
>> 22:46:45,584 INFO  [STDOUT] 2009-08-07 22:46:45,584  INFO
>> (org.apache.struts2.config.BeanSelectionProvider:31) - Loading global
>> messages from com.site.language.global-messages
>> 22:46:45,770 INFO  [STDOUT] 2009-08-07 22:46:45,769  INFO
>> (org.apache.struts2.spring.StrutsSpringObjectFactory:31) - Initializing
>> Struts-Spring integration...
>> 22:46:45,772 INFO  [STDOUT] 2009-08-07 22:46:45,771  INFO
>> (com.opensymphony.xwork2.spring.SpringObjectFactory:31) - Setting
>> autowire
>> strategy to name
>> 22:46:45,773 INFO  [STDOUT] 2009-08-07 22:46:45,772  INFO
>> (org.apache.struts2.spring.StrutsSpringObjectFactory:31) - ...
>> initialized
>> Struts-Spring integration successfully
>> 22:46:48,883 ERROR [[/]] Exception starting filter siteAction
>> java.lang.RuntimeException: java.lang.RuntimeException:
>> com.opensymphony.xwork2.inject.DependencyException:
>> com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException:
>> No
>> mapping found for dependency [type=java.lang.String,
>> name='actionPackages']
>> in public void
>> org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String).
>> 	at
>> com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)
>> 	at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
>> 	at
>> com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:507)
>> 	at
>> com.opensymphony.xwork2.inject.ContainerImpl$8.call(ContainerImpl.java:540)
>> 	at
>> com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)
>> 	at
>> com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:538)
>> 	at
>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:198)
>> 	at
>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
>> 	at
>> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
>> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
>> 	at
>> org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
>> 	at
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48)
>> 	at
>> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)
>> 	at
>> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)
>> 	at
>> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)
>> 	at
>> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3783)
>> 	at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4413)
>> 	at
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
>> 	at
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
>> 	at
>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
>> 	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>> 	at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> 
>> mgainty wrote:
>> > 
>> > 
>> > sure thing..let us know how it goes..
>> > 
>> > Martin Gainty 
>> > ______________________________________________ 
>> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de
>> confidentialité
>> >  
>> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
>> unbefugte
>> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
>> Nachricht
>> > dient lediglich dem Austausch von Informationen und entfaltet keine
>> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
>> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
>> le
>> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
>> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
>> > copie de ceci est interdite. Ce message sert à l'information seulement
>> et
>> > n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
>> > les email peuvent facilement être sujets à la manipulation, nous ne
>> > pouvons accepter aucune responsabilité pour le contenu fourni.
>> > 
>> > 
>> > 
>> > 
>> >> Date: Fri, 7 Aug 2009 15:35:28 -0700
>> >> From: cool_sameer_for_u@yahoo.com
>> >> To: user@struts.apache.org
>> >> Subject: RE: AJAX issues in struts 2.1.6
>> >> 
>> >> 
>> >> Thankyou so much Martin. You are the man! I will try the example you
>> >> mentioned and ahhh... hopefully I will be able to add the same in my
>> >> application:jumping:
>> >> 
>> >> 
>> >> 
>> >> mgainty wrote:
>> >> > 
>> >> > 
>> >> >
>> >>
>> http://localhost:8082/struts2-showcase-2.1.6/ajax/tabbedpanel/example1.jsp
>> >> > renders all tabs properly
>> >> > 
>> >> > please provide all console messages and all statements from 
>> >> > /logs/localhost.YYYY-MM-DD.log
>> >> > 
>> >> > thanks,
>> >> > Martin Gainty 
>> >> > ______________________________________________ 
>> >> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de
>> >> confidentialité
>> >> >  
>> >> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>> >> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
>> >> unbefugte
>> >> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
>> >> Nachricht
>> >> > dient lediglich dem Austausch von Informationen und entfaltet keine
>> >> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit
>> von
>> >> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>> >> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes
>> pas
>> >> le
>> >> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
>> >> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou
>> la
>> >> > copie de ceci est interdite. Ce message sert à l'information
>> seulement
>> >> et
>> >> > n'aura pas n'importe quel effet légalement obligatoire. Étant donné
>> que
>> >> > les email peuvent facilement être sujets à la manipulation, nous ne
>> >> > pouvons accepter aucune responsabilité pour le contenu fourni.
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> >> Date: Fri, 7 Aug 2009 13:01:25 -0700
>> >> >> From: cool_sameer_for_u@yahoo.com
>> >> >> To: user@struts.apache.org
>> >> >> Subject: Re: AJAX issues in struts 2.1.6
>> >> >> 
>> >> >> 
>> >> >> Thanks for your reply Peter. I was able to solve the issue by
>> removing
>> >> >> some
>> >> >> of the unwanted stuff from my jsp. Now the funny thing is I am not
>> >> even
>> >> >> able
>> >> >> to see the tabs in my JSP. I thought if we are using sx:tabbedpanel
>> it
>> >> >> should show the tabs. Is there any additional thing I have to
>> do?Its
>> >> >> becoming more funny now because I have spent almost one week in
>> >> figuring
>> >> >> it
>> >> >> out but now I just dont wanna give up...
>> >> >> I am just looking for any sample application using dojo which would
>> >> >> atleast
>> >> >> show me the tabs:-((
>> >> >> 
>> >> >> Peter Phillips wrote:
>> >> >> > 
>> >> >> > I tried the dojo plugin in struts 2.1.7 and gave up - deciding
>> that
>> >> it
>> >> >> > was effectively broken.  It is deprecated anyway in struts 2.1.
>> >> >> > 
>> >> >> > The template problems you are having can be fixed by copying the
>> >> >> > template files into your local project (keeping the template/ajax
>> >> >> > directory structure) and changing the ftl so that they check for
>> the
>> >> >> > existence of the parameter first i.e. change to: <#if
>> >> >> > parameters.pushId?exists && parameters.pushId>.
>> >> >> > 
>> >> >> > Once I got over those problems I then found that it didn't work
>> at
>> >> all
>> >> >> > in IE6.  At that point I switched to the excellent jQuery plugin
>> -
>> >> >> > http://code.google.com/p/struts2-jquery/, which hopefully should
>> >> find
>> >> >> > its way into struts soon.
>> >> >> > 
>> >> >> >
>> >> ---------------------------------------------------------------------
>> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> > For additional commands, e-mail: user-help@struts.apache.org
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> 
>> >> >> -- 
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24870511.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >> 
>> >> >> 
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> 
>> >> > 
>> >> > _________________________________________________________________
>> >> > Get back to school stuff for them and cashback for you.
>> >> >
>> >>
>> http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
>> >> > 
>> >> 
>> >> -- 
>> >> View this message in context:
>> >>
>> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24872956.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> 
>> >> 
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> 
>> > 
>> > _________________________________________________________________
>> > Windows Live™: Keep your life in sync.
>> >
>> http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24874693.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
> 
> _________________________________________________________________
> Get your vacation photos on your phone!
> http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM
> 

-- 
View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24882024.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: AJAX issues in struts 2.1.6

Posted by Martin Gainty <mg...@hotmail.com>.
Set the "actionPackages" filter init param to a comma-separated list of
packages containing Action classes in web.xml. The <comma separated list of >packages and their
subpackages will be scanned. All classes in the designated packages
that implement Action or end in "Action" are examined. 
The latter is to
allow for POJO Actions that don't implement the Action interface.

so in struts2-showcase-2.1.6/WEB-INF/web.xml
//my actionPackages init-param  defined as org.apache.struts2.showcase.person
   <filter>
        <filter-name>struts-prepare</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter</filter-class>
        <init-param>
            <param-name>actionPackages</param-name>
            <param-value>org.apache.struts2.showcase.person</param-value>
        </init-param>
    </filter>

in the case of the struts-showcase all Action classes will be scanned into org\apache\struts2\showcase\person folder
struts2-showcase-2.1.6\WEB-INF\classes\org\apache\struts2\showcase\person

01/05/2009  09:52 PM             2,018 EditPersonAction.class
01/05/2009  09:52 PM             1,234 ListPeopleAction.class
01/05/2009  09:52 PM               304 NewPersonAction-validation.xml
01/05/2009  09:52 PM             1,293 NewPersonAction.class
01/05/2009  09:52 PM               511 Person-validation.xml

does this help?
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Fri, 7 Aug 2009 20:46:32 -0700
> From: cool_sameer_for_u@yahoo.com
> To: user@struts.apache.org
> Subject: RE: AJAX issues in struts 2.1.6
> 
> 
> Hi Martin,
> 
> The example runs fine when I run it with the given War file but when I try
> to copy those files and some related jar I get the the following error:
> 
> 22:46:45,584 INFO  [STDOUT] 2009-08-07 22:46:45,584  INFO
> (org.apache.struts2.config.BeanSelectionProvider:31) - Loading global
> messages from com.site.language.global-messages
> 22:46:45,770 INFO  [STDOUT] 2009-08-07 22:46:45,769  INFO
> (org.apache.struts2.spring.StrutsSpringObjectFactory:31) - Initializing
> Struts-Spring integration...
> 22:46:45,772 INFO  [STDOUT] 2009-08-07 22:46:45,771  INFO
> (com.opensymphony.xwork2.spring.SpringObjectFactory:31) - Setting autowire
> strategy to name
> 22:46:45,773 INFO  [STDOUT] 2009-08-07 22:46:45,772  INFO
> (org.apache.struts2.spring.StrutsSpringObjectFactory:31) - ... initialized
> Struts-Spring integration successfully
> 22:46:48,883 ERROR [[/]] Exception starting filter siteAction
> java.lang.RuntimeException: java.lang.RuntimeException:
> com.opensymphony.xwork2.inject.DependencyException:
> com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No
> mapping found for dependency [type=java.lang.String, name='actionPackages']
> in public void
> org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String).
> 	at
> com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)
> 	at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
> 	at
> com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:507)
> 	at
> com.opensymphony.xwork2.inject.ContainerImpl$8.call(ContainerImpl.java:540)
> 	at
> com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)
> 	at
> com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:538)
> 	at
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:198)
> 	at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
> 	at
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
> 	at
> org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
> 	at
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48)
> 	at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)
> 	at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)
> 	at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)
> 	at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3783)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4413)
> 	at
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
> 	at
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
> 	at
> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
> 	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
> 	at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
> mgainty wrote:
> > 
> > 
> > sure thing..let us know how it goes..
> > 
> > Martin Gainty 
> > ______________________________________________ 
> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> >  
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> > dient lediglich dem Austausch von Informationen und entfaltet keine
> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> > copie de ceci est interdite. Ce message sert à l'information seulement et
> > n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
> > les email peuvent facilement être sujets à la manipulation, nous ne
> > pouvons accepter aucune responsabilité pour le contenu fourni.
> > 
> > 
> > 
> > 
> >> Date: Fri, 7 Aug 2009 15:35:28 -0700
> >> From: cool_sameer_for_u@yahoo.com
> >> To: user@struts.apache.org
> >> Subject: RE: AJAX issues in struts 2.1.6
> >> 
> >> 
> >> Thankyou so much Martin. You are the man! I will try the example you
> >> mentioned and ahhh... hopefully I will be able to add the same in my
> >> application:jumping:
> >> 
> >> 
> >> 
> >> mgainty wrote:
> >> > 
> >> > 
> >> >
> >> http://localhost:8082/struts2-showcase-2.1.6/ajax/tabbedpanel/example1.jsp
> >> > renders all tabs properly
> >> > 
> >> > please provide all console messages and all statements from 
> >> > /logs/localhost.YYYY-MM-DD.log
> >> > 
> >> > thanks,
> >> > Martin Gainty 
> >> > ______________________________________________ 
> >> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de
> >> confidentialité
> >> >  
> >> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> >> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> >> unbefugte
> >> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
> >> Nachricht
> >> > dient lediglich dem Austausch von Informationen und entfaltet keine
> >> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> >> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> >> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
> >> le
> >> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> >> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> >> > copie de ceci est interdite. Ce message sert à l'information seulement
> >> et
> >> > n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
> >> > les email peuvent facilement être sujets à la manipulation, nous ne
> >> > pouvons accepter aucune responsabilité pour le contenu fourni.
> >> > 
> >> > 
> >> > 
> >> > 
> >> >> Date: Fri, 7 Aug 2009 13:01:25 -0700
> >> >> From: cool_sameer_for_u@yahoo.com
> >> >> To: user@struts.apache.org
> >> >> Subject: Re: AJAX issues in struts 2.1.6
> >> >> 
> >> >> 
> >> >> Thanks for your reply Peter. I was able to solve the issue by removing
> >> >> some
> >> >> of the unwanted stuff from my jsp. Now the funny thing is I am not
> >> even
> >> >> able
> >> >> to see the tabs in my JSP. I thought if we are using sx:tabbedpanel it
> >> >> should show the tabs. Is there any additional thing I have to do?Its
> >> >> becoming more funny now because I have spent almost one week in
> >> figuring
> >> >> it
> >> >> out but now I just dont wanna give up...
> >> >> I am just looking for any sample application using dojo which would
> >> >> atleast
> >> >> show me the tabs:-((
> >> >> 
> >> >> Peter Phillips wrote:
> >> >> > 
> >> >> > I tried the dojo plugin in struts 2.1.7 and gave up - deciding that
> >> it
> >> >> > was effectively broken.  It is deprecated anyway in struts 2.1.
> >> >> > 
> >> >> > The template problems you are having can be fixed by copying the
> >> >> > template files into your local project (keeping the template/ajax
> >> >> > directory structure) and changing the ftl so that they check for the
> >> >> > existence of the parameter first i.e. change to: <#if
> >> >> > parameters.pushId?exists && parameters.pushId>.
> >> >> > 
> >> >> > Once I got over those problems I then found that it didn't work at
> >> all
> >> >> > in IE6.  At that point I switched to the excellent jQuery plugin -
> >> >> > http://code.google.com/p/struts2-jquery/, which hopefully should
> >> find
> >> >> > its way into struts soon.
> >> >> > 
> >> >> >
> >> ---------------------------------------------------------------------
> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> > For additional commands, e-mail: user-help@struts.apache.org
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> 
> >> >> -- 
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24870511.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> 
> >> >> 
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> 
> >> > 
> >> > _________________________________________________________________
> >> > Get back to school stuff for them and cashback for you.
> >> >
> >> http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
> >> > 
> >> 
> >> -- 
> >> View this message in context:
> >> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24872956.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >> 
> > 
> > _________________________________________________________________
> > Windows Live™: Keep your life in sync.
> > http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24874693.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM

RE: AJAX issues in struts 2.1.6

Posted by hisameer <co...@yahoo.com>.
Hi Martin,

The example runs fine when I run it with the given War file but when I try
to copy those files and some related jar I get the the following error:

22:46:45,584 INFO  [STDOUT] 2009-08-07 22:46:45,584  INFO
(org.apache.struts2.config.BeanSelectionProvider:31) - Loading global
messages from com.site.language.global-messages
22:46:45,770 INFO  [STDOUT] 2009-08-07 22:46:45,769  INFO
(org.apache.struts2.spring.StrutsSpringObjectFactory:31) - Initializing
Struts-Spring integration...
22:46:45,772 INFO  [STDOUT] 2009-08-07 22:46:45,771  INFO
(com.opensymphony.xwork2.spring.SpringObjectFactory:31) - Setting autowire
strategy to name
22:46:45,773 INFO  [STDOUT] 2009-08-07 22:46:45,772  INFO
(org.apache.struts2.spring.StrutsSpringObjectFactory:31) - ... initialized
Struts-Spring integration successfully
22:46:48,883 ERROR [[/]] Exception starting filter siteAction
java.lang.RuntimeException: java.lang.RuntimeException:
com.opensymphony.xwork2.inject.DependencyException:
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No
mapping found for dependency [type=java.lang.String, name='actionPackages']
in public void
org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String).
	at
com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)
	at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
	at
com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:507)
	at
com.opensymphony.xwork2.inject.ContainerImpl$8.call(ContainerImpl.java:540)
	at
com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)
	at
com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:538)
	at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:198)
	at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
	at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
	at
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
	at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48)
	at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)
	at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)
	at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)
	at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3783)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4413)
	at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
	at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
	at
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
	at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

mgainty wrote:
> 
> 
> sure thing..let us know how it goes..
> 
> Martin Gainty 
> ______________________________________________ 
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>  
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie de ceci est interdite. Ce message sert à l'information seulement et
> n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
> les email peuvent facilement être sujets à la manipulation, nous ne
> pouvons accepter aucune responsabilité pour le contenu fourni.
> 
> 
> 
> 
>> Date: Fri, 7 Aug 2009 15:35:28 -0700
>> From: cool_sameer_for_u@yahoo.com
>> To: user@struts.apache.org
>> Subject: RE: AJAX issues in struts 2.1.6
>> 
>> 
>> Thankyou so much Martin. You are the man! I will try the example you
>> mentioned and ahhh... hopefully I will be able to add the same in my
>> application:jumping:
>> 
>> 
>> 
>> mgainty wrote:
>> > 
>> > 
>> >
>> http://localhost:8082/struts2-showcase-2.1.6/ajax/tabbedpanel/example1.jsp
>> > renders all tabs properly
>> > 
>> > please provide all console messages and all statements from 
>> > /logs/localhost.YYYY-MM-DD.log
>> > 
>> > thanks,
>> > Martin Gainty 
>> > ______________________________________________ 
>> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de
>> confidentialité
>> >  
>> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
>> unbefugte
>> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
>> Nachricht
>> > dient lediglich dem Austausch von Informationen und entfaltet keine
>> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
>> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
>> le
>> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
>> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
>> > copie de ceci est interdite. Ce message sert à l'information seulement
>> et
>> > n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
>> > les email peuvent facilement être sujets à la manipulation, nous ne
>> > pouvons accepter aucune responsabilité pour le contenu fourni.
>> > 
>> > 
>> > 
>> > 
>> >> Date: Fri, 7 Aug 2009 13:01:25 -0700
>> >> From: cool_sameer_for_u@yahoo.com
>> >> To: user@struts.apache.org
>> >> Subject: Re: AJAX issues in struts 2.1.6
>> >> 
>> >> 
>> >> Thanks for your reply Peter. I was able to solve the issue by removing
>> >> some
>> >> of the unwanted stuff from my jsp. Now the funny thing is I am not
>> even
>> >> able
>> >> to see the tabs in my JSP. I thought if we are using sx:tabbedpanel it
>> >> should show the tabs. Is there any additional thing I have to do?Its
>> >> becoming more funny now because I have spent almost one week in
>> figuring
>> >> it
>> >> out but now I just dont wanna give up...
>> >> I am just looking for any sample application using dojo which would
>> >> atleast
>> >> show me the tabs:-((
>> >> 
>> >> Peter Phillips wrote:
>> >> > 
>> >> > I tried the dojo plugin in struts 2.1.7 and gave up - deciding that
>> it
>> >> > was effectively broken.  It is deprecated anyway in struts 2.1.
>> >> > 
>> >> > The template problems you are having can be fixed by copying the
>> >> > template files into your local project (keeping the template/ajax
>> >> > directory structure) and changing the ftl so that they check for the
>> >> > existence of the parameter first i.e. change to: <#if
>> >> > parameters.pushId?exists && parameters.pushId>.
>> >> > 
>> >> > Once I got over those problems I then found that it didn't work at
>> all
>> >> > in IE6.  At that point I switched to the excellent jQuery plugin -
>> >> > http://code.google.com/p/struts2-jquery/, which hopefully should
>> find
>> >> > its way into struts soon.
>> >> > 
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> > For additional commands, e-mail: user-help@struts.apache.org
>> >> > 
>> >> > 
>> >> > 
>> >> 
>> >> -- 
>> >> View this message in context:
>> >>
>> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24870511.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> 
>> >> 
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> 
>> > 
>> > _________________________________________________________________
>> > Get back to school stuff for them and cashback for you.
>> >
>> http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24872956.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
> 
> _________________________________________________________________
> Windows Live™: Keep your life in sync.
> http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009
> 

-- 
View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24874693.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: AJAX issues in struts 2.1.6

Posted by Martin Gainty <mg...@hotmail.com>.
sure thing..let us know how it goes..

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Fri, 7 Aug 2009 15:35:28 -0700
> From: cool_sameer_for_u@yahoo.com
> To: user@struts.apache.org
> Subject: RE: AJAX issues in struts 2.1.6
> 
> 
> Thankyou so much Martin. You are the man! I will try the example you
> mentioned and ahhh... hopefully I will be able to add the same in my
> application:jumping:
> 
> 
> 
> mgainty wrote:
> > 
> > 
> > http://localhost:8082/struts2-showcase-2.1.6/ajax/tabbedpanel/example1.jsp
> > renders all tabs properly
> > 
> > please provide all console messages and all statements from 
> > /logs/localhost.YYYY-MM-DD.log
> > 
> > thanks,
> > Martin Gainty 
> > ______________________________________________ 
> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> >  
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> > dient lediglich dem Austausch von Informationen und entfaltet keine
> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> > copie de ceci est interdite. Ce message sert à l'information seulement et
> > n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
> > les email peuvent facilement être sujets à la manipulation, nous ne
> > pouvons accepter aucune responsabilité pour le contenu fourni.
> > 
> > 
> > 
> > 
> >> Date: Fri, 7 Aug 2009 13:01:25 -0700
> >> From: cool_sameer_for_u@yahoo.com
> >> To: user@struts.apache.org
> >> Subject: Re: AJAX issues in struts 2.1.6
> >> 
> >> 
> >> Thanks for your reply Peter. I was able to solve the issue by removing
> >> some
> >> of the unwanted stuff from my jsp. Now the funny thing is I am not even
> >> able
> >> to see the tabs in my JSP. I thought if we are using sx:tabbedpanel it
> >> should show the tabs. Is there any additional thing I have to do?Its
> >> becoming more funny now because I have spent almost one week in figuring
> >> it
> >> out but now I just dont wanna give up...
> >> I am just looking for any sample application using dojo which would
> >> atleast
> >> show me the tabs:-((
> >> 
> >> Peter Phillips wrote:
> >> > 
> >> > I tried the dojo plugin in struts 2.1.7 and gave up - deciding that it
> >> > was effectively broken.  It is deprecated anyway in struts 2.1.
> >> > 
> >> > The template problems you are having can be fixed by copying the
> >> > template files into your local project (keeping the template/ajax
> >> > directory structure) and changing the ftl so that they check for the
> >> > existence of the parameter first i.e. change to: <#if
> >> > parameters.pushId?exists && parameters.pushId>.
> >> > 
> >> > Once I got over those problems I then found that it didn't work at all
> >> > in IE6.  At that point I switched to the excellent jQuery plugin -
> >> > http://code.google.com/p/struts2-jquery/, which hopefully should find
> >> > its way into struts soon.
> >> > 
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> > For additional commands, e-mail: user-help@struts.apache.org
> >> > 
> >> > 
> >> > 
> >> 
> >> -- 
> >> View this message in context:
> >> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24870511.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >> 
> > 
> > _________________________________________________________________
> > Get back to school stuff for them and cashback for you.
> > http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24872956.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009

RE: AJAX issues in struts 2.1.6

Posted by hisameer <co...@yahoo.com>.
Thankyou so much Martin. You are the man! I will try the example you
mentioned and ahhh... hopefully I will be able to add the same in my
application:jumping:



mgainty wrote:
> 
> 
> http://localhost:8082/struts2-showcase-2.1.6/ajax/tabbedpanel/example1.jsp
> renders all tabs properly
> 
> please provide all console messages and all statements from 
> /logs/localhost.YYYY-MM-DD.log
> 
> thanks,
> Martin Gainty 
> ______________________________________________ 
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>  
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie de ceci est interdite. Ce message sert à l'information seulement et
> n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
> les email peuvent facilement être sujets à la manipulation, nous ne
> pouvons accepter aucune responsabilité pour le contenu fourni.
> 
> 
> 
> 
>> Date: Fri, 7 Aug 2009 13:01:25 -0700
>> From: cool_sameer_for_u@yahoo.com
>> To: user@struts.apache.org
>> Subject: Re: AJAX issues in struts 2.1.6
>> 
>> 
>> Thanks for your reply Peter. I was able to solve the issue by removing
>> some
>> of the unwanted stuff from my jsp. Now the funny thing is I am not even
>> able
>> to see the tabs in my JSP. I thought if we are using sx:tabbedpanel it
>> should show the tabs. Is there any additional thing I have to do?Its
>> becoming more funny now because I have spent almost one week in figuring
>> it
>> out but now I just dont wanna give up...
>> I am just looking for any sample application using dojo which would
>> atleast
>> show me the tabs:-((
>> 
>> Peter Phillips wrote:
>> > 
>> > I tried the dojo plugin in struts 2.1.7 and gave up - deciding that it
>> > was effectively broken.  It is deprecated anyway in struts 2.1.
>> > 
>> > The template problems you are having can be fixed by copying the
>> > template files into your local project (keeping the template/ajax
>> > directory structure) and changing the ftl so that they check for the
>> > existence of the parameter first i.e. change to: <#if
>> > parameters.pushId?exists && parameters.pushId>.
>> > 
>> > Once I got over those problems I then found that it didn't work at all
>> > in IE6.  At that point I switched to the excellent jQuery plugin -
>> > http://code.google.com/p/struts2-jquery/, which hopefully should find
>> > its way into struts soon.
>> > 
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: user-help@struts.apache.org
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24870511.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
> 
> _________________________________________________________________
> Get back to school stuff for them and cashback for you.
> http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
> 

-- 
View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24872956.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: AJAX issues in struts 2.1.6

Posted by Martin Gainty <mg...@hotmail.com>.
http://localhost:8082/struts2-showcase-2.1.6/ajax/tabbedpanel/example1.jsp
renders all tabs properly

please provide all console messages and all statements from 
/logs/localhost.YYYY-MM-DD.log

thanks,
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Fri, 7 Aug 2009 13:01:25 -0700
> From: cool_sameer_for_u@yahoo.com
> To: user@struts.apache.org
> Subject: Re: AJAX issues in struts 2.1.6
> 
> 
> Thanks for your reply Peter. I was able to solve the issue by removing some
> of the unwanted stuff from my jsp. Now the funny thing is I am not even able
> to see the tabs in my JSP. I thought if we are using sx:tabbedpanel it
> should show the tabs. Is there any additional thing I have to do?Its
> becoming more funny now because I have spent almost one week in figuring it
> out but now I just dont wanna give up...
> I am just looking for any sample application using dojo which would atleast
> show me the tabs:-((
> 
> Peter Phillips wrote:
> > 
> > I tried the dojo plugin in struts 2.1.7 and gave up - deciding that it
> > was effectively broken.  It is deprecated anyway in struts 2.1.
> > 
> > The template problems you are having can be fixed by copying the
> > template files into your local project (keeping the template/ajax
> > directory structure) and changing the ftl so that they check for the
> > existence of the parameter first i.e. change to: <#if
> > parameters.pushId?exists && parameters.pushId>.
> > 
> > Once I got over those problems I then found that it didn't work at all
> > in IE6.  At that point I switched to the excellent jQuery plugin -
> > http://code.google.com/p/struts2-jquery/, which hopefully should find
> > its way into struts soon.
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24870511.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

Re: AJAX issues in struts 2.1.6

Posted by hisameer <co...@yahoo.com>.
Thanks for your reply Peter. I was able to solve the issue by removing some
of the unwanted stuff from my jsp. Now the funny thing is I am not even able
to see the tabs in my JSP. I thought if we are using sx:tabbedpanel it
should show the tabs. Is there any additional thing I have to do?Its
becoming more funny now because I have spent almost one week in figuring it
out but now I just dont wanna give up...
I am just looking for any sample application using dojo which would atleast
show me the tabs:-((

Peter Phillips wrote:
> 
> I tried the dojo plugin in struts 2.1.7 and gave up - deciding that it
> was effectively broken.  It is deprecated anyway in struts 2.1.
> 
> The template problems you are having can be fixed by copying the
> template files into your local project (keeping the template/ajax
> directory structure) and changing the ftl so that they check for the
> existence of the parameter first i.e. change to: <#if
> parameters.pushId?exists && parameters.pushId>.
> 
> Once I got over those problems I then found that it didn't work at all
> in IE6.  At that point I switched to the excellent jQuery plugin -
> http://code.google.com/p/struts2-jquery/, which hopefully should find
> its way into struts soon.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24870511.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: AJAX issues in struts 2.1.6

Posted by Peter Phillips <pe...@googlemail.com>.
I tried the dojo plugin in struts 2.1.7 and gave up - deciding that it
was effectively broken.  It is deprecated anyway in struts 2.1.

The template problems you are having can be fixed by copying the
template files into your local project (keeping the template/ajax
directory structure) and changing the ftl so that they check for the
existence of the parameter first i.e. change to: <#if
parameters.pushId?exists && parameters.pushId>.

Once I got over those problems I then found that it didn't work at all
in IE6.  At that point I switched to the excellent jQuery plugin -
http://code.google.com/p/struts2-jquery/, which hopefully should find
its way into struts soon.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: AJAX issues in struts 2.1.6

Posted by hisameer <co...@yahoo.com>.
Hello everyone!

I am having the same problem with Struts2.1.6. 

The jars being used are:
struts2-core-2.1.6.jar
struts2-dojo-plugin-2.1.6.jar

Here is my jsp page: 

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<html>
<head>
<sx:head />
<link href="<s:url value="/jctaylor/css/tab.css"/>" rel="stylesheet"
	type="text/css" />
</head>
<body>
<sx:tabbedpanel id="tabContainer">
	<sx:div label="localtab"> tab1</sx:div>
	<sx:div label="Remote Tab 1">
       Remote Tab 1
   </sx:div>
	<sx:div label="Remote Tab 2">
       Remote Tab 2
   </sx:div>
</sx:tabbedpanel>
</body>
</html>

The errors:
15:05:52,799 ERROR [runtime] 
Expression parameters.pushId is undefined on line 24, column 6 in
template/ajax/div-close.ftl.
The problematic instruction:
----------
==> if parameters.pushId [on line 24, column 1 in
template/ajax/div-close.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression parameters.pushId is
undefined on line 24, column 6 in template/ajax/div-close.ftl.
	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
	at freemarker.core.Expression.isTrue(Expression.java:145)
	at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77)
	at freemarker.core.Environment.visit(Environment.java:208)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:208)
	at freemarker.core.Environment.process(Environment.java:188)

What is wrong here?Please post your suggestions!




rajeevP wrote:
> 
> Thanks Dave, i have added one property preload=false  in sx:div  , that
> stops the automatic calling of the url. 
> 
> Thanks very ...........
> 
> Rajeev
> 

-- 
View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24835310.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: AJAX issues in struts 2.1.6

Posted by rajeevP <ra...@gmail.com>.
Thanks Dave, i have added one property preload=false  in sx:div  , that stops
the automatic calling of the url. 

Thanks very ...........

Rajeev
-- 
View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p23836546.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: AJAX issues in struts 2.1.6

Posted by rajeevP <ra...@gmail.com>.


newton.dave wrote:
> 
> Because that's what sx:div does by default; loads a URL via Ajax.
> 
> Maybe the "preload" attribute has what you need.
> 
> http://struts.apache.org/2.x/docs/dojo-div.html
> 
> rajeevP wrote:
>> Thanks for all your support, after adding the sx:head i could able to
>> work.
>> But the problem is , while loading the jsp page itslef the url action is
>> calling. Actually our intention to call the url , when the onchange of
>> the
>> text field happens. why it is happening like this? I am attaching my jsp
>> with this.
>> <%@ page contentType="text/html; charset=UTF-8"%>
>> <%@ taglib prefix="s" uri="/struts-tags"%>
>> <%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
>> <%String relPath=request.getContextPath(); %>
>> <html:html locale="true">
>> <sx:head parseContent="true" />
>> <head>
>> <title>Add Demand</title>
>> <link href="<%=relPath%>/css/mystyle.css" rel="stylesheet"
>> 	type="text/css" />
>> <link href="<%=relPath%>/css/style.css" rel="stylesheet" type="text/css"
>> />
>> 
>> 
>> <style type="text/css">
>> html,body {
>> 	height: 100%;
>> }
>> </style>
>> <script type="text/javascript"
>> src="<%=relPath%>/js/addDemand.js"></script>
>> </head>
>> <script>
>> 	function show_details() {
>> 		alert('in show details11........');
>> 		dojo.event.topic.publish("show_detail");
>> 	}
>> </script>
>> <body>
>> <s:form action="AddDemand" onsubmit="return validate(this);"
>> 	id="frmDemand">
>> 	<s:url id="d_url" action="chkDemandCompany" />
>> 	<s:hidden name="sessionVal"></s:hidden>
>> 	<jsp:include page="date.jsp" />
>> 	<div>
>> 	<p class="breadcrump" align="left">Demand Company -> Add Demand</p>
>> 	</div>
>> 	<br>
>> 	<div class="container1">
>> 	<div class="header" align="left">Demand Company Details</div>
>> 
>> 	<table width="100%" align="left">
>> 		<tr></tr>
>> 		<tr></tr>
>> 		<tr>
>> 			<s:textfield name="demandCompanyName" label="Company Name 12"
>> 				required="true" size="35" onchange="show_details()" ></s:textfield>
>> 			<sx:div showLoadingText="false" id="details" href="%{#d_url}"
>> 				listenTopics="show_detail" formId="frmDemand"></sx:div>
>> 
>> 		</tr>
>> 
>> 		<tr></tr>
>> 		<s:select label="Company Type" list="{'GDS','IDS'}"
>> 			name="demandCompanyType" required="true" />
>> 		<tr></tr>
>> 
>> 		<tr>
>> 			<td><s:textfield name="demandCompanyUrl"
>> 				label="URL for the company" required="true"
>> size="35"></s:textfield></td>
>> 		</tr>
>> 		<tr></tr>
>> 		<tr>
>> 			<s:select label="Message Type" list="{'OTA','XML 4'}"
>> 				name="demandMessageType" required="true" />
>> 		</tr>
>> 		<tr>
>> 			<td><br>
>> 			<br>
>> 			</td>
>> 		</tr>
>> 		<tr>
>> 
>> 			<td><input type="submit" value="Save" name="Save"> <input
>> 				type="reset" value="Cancel" name="Cancel" onclick="cancel()"></td>
>> 		</tr>
>> 	</table>
>> 	</div>
>> 	<jsp:include page="footer.jsp" />
>> </s:form>
>> 
>> </body>
>> </html:html>
>> 
>> 
>> Thanks in advance,
>> Rajeev
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p23836493.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: AJAX issues in struts 2.1.6

Posted by Dave Newton <ne...@yahoo.com>.
Because that's what sx:div does by default; loads a URL via Ajax.

Maybe the "preload" attribute has what you need.

http://struts.apache.org/2.x/docs/dojo-div.html

rajeevP wrote:
> Thanks for all your support, after adding the sx:head i could able to work.
> But the problem is , while loading the jsp page itslef the url action is
> calling. Actually our intention to call the url , when the onchange of the
> text field happens. why it is happening like this? I am attaching my jsp
> with this.
> <%@ page contentType="text/html; charset=UTF-8"%>
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
> <%String relPath=request.getContextPath(); %>
> <html:html locale="true">
> <sx:head parseContent="true" />
> <head>
> <title>Add Demand</title>
> <link href="<%=relPath%>/css/mystyle.css" rel="stylesheet"
> 	type="text/css" />
> <link href="<%=relPath%>/css/style.css" rel="stylesheet" type="text/css" />
> 
> 
> <style type="text/css">
> html,body {
> 	height: 100%;
> }
> </style>
> <script type="text/javascript" src="<%=relPath%>/js/addDemand.js"></script>
> </head>
> <script>
> 	function show_details() {
> 		alert('in show details11........');
> 		dojo.event.topic.publish("show_detail");
> 	}
> </script>
> <body>
> <s:form action="AddDemand" onsubmit="return validate(this);"
> 	id="frmDemand">
> 	<s:url id="d_url" action="chkDemandCompany" />
> 	<s:hidden name="sessionVal"></s:hidden>
> 	<jsp:include page="date.jsp" />
> 	<div>
> 	<p class="breadcrump" align="left">Demand Company -> Add Demand</p>
> 	</div>
> 	<br>
> 	<div class="container1">
> 	<div class="header" align="left">Demand Company Details</div>
> 
> 	<table width="100%" align="left">
> 		<tr></tr>
> 		<tr></tr>
> 		<tr>
> 			<s:textfield name="demandCompanyName" label="Company Name 12"
> 				required="true" size="35" onchange="show_details()" ></s:textfield>
> 			<sx:div showLoadingText="false" id="details" href="%{#d_url}"
> 				listenTopics="show_detail" formId="frmDemand"></sx:div>
> 
> 		</tr>
> 
> 		<tr></tr>
> 		<s:select label="Company Type" list="{'GDS','IDS'}"
> 			name="demandCompanyType" required="true" />
> 		<tr></tr>
> 
> 		<tr>
> 			<td><s:textfield name="demandCompanyUrl"
> 				label="URL for the company" required="true"
> size="35"></s:textfield></td>
> 		</tr>
> 		<tr></tr>
> 		<tr>
> 			<s:select label="Message Type" list="{'OTA','XML 4'}"
> 				name="demandMessageType" required="true" />
> 		</tr>
> 		<tr>
> 			<td><br>
> 			<br>
> 			</td>
> 		</tr>
> 		<tr>
> 
> 			<td><input type="submit" value="Save" name="Save"> <input
> 				type="reset" value="Cancel" name="Cancel" onclick="cancel()"></td>
> 		</tr>
> 	</table>
> 	</div>
> 	<jsp:include page="footer.jsp" />
> </s:form>
> 
> </body>
> </html:html>
> 
> 
> Thanks in advance,
> Rajeev

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org