You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Srikanth Muthyala <sr...@iitc.com.au> on 2007/11/26 22:48:44 UTC

Tabbedpanel issue

Hello, 

I am currently using Struts 2 with Ajax for Tabbed panel. I can create and load tabbedpanel showing a jsp page with a form for one of tabs. The form action = "/some.action" is executed ok butthe issue is reload is shown in its own new page rather than the as part of tab content. 
How do I fix this? Please help. 
Attached parts of codes.... 

Srikanth. 

File: Home.jsp 


< s:tabbedPanel id = "rtb1" % > "> 



< s:div id = "1" label = "Administration" theme = "ajax" labelposition = "top" > < s:tabbedPanel id = "rtb1" % > "> 



< s:div id = "1" label = "Administration" theme = "ajax" labelposition = "top" > < s:div id = "1" label = "Administration" theme = "ajax" labelposition = "top" > 

</ s:div > </ s:div > 



< s:div id = "admin" label = "User" theme = "ajax" href = "setProfile.action" refreshOnShow = "true" > < s:div id = "admin" label = "User" theme = "ajax" href = "setProfile.action" refreshOnShow = "true" > 

< jsp:include page = "/pages/setProfile.jsp" ></ jsp:include > < jsp:include page = "/pages/setProfile.jsp" ></ jsp:include > 

</ s:div > </ s:div > 



< s:div id = "prov" label = "Provisioning" theme = "ajax" > < s:div id = "prov" label = "Provisioning" theme = "ajax" > 

< jsp:include page = "/pages/provisioningHome.jsp" ></ jsp:include > < jsp:include page = "/pages/provisioningHome.jsp" ></ jsp:include > 

</ s:div > </ s:div > 

</ s:tabbedPanel > </ s:tabbedPanel > 

File: setProfile.jsp 



< s:form action = "/setProfile.do" method = "POST" validate = "true" > s:form action = "/setProfile.do" method = "POST" validate = "true" > 

< tr > < tr > 

< td colspan = "2" > Set Profile </ td > < td colspan = "2" > Set Profile </ td > 

</ tr > </ tr > 



< tr > < tr > 

< td colspan = "2" >< s:actionerror />< s:actionmessage /></ td > < td colspan = "2" >< s:actionerror />< s:actionmessage /></ td > 

</ tr > </ tr > 



< s:textfield name = "userId" label = "User Id" /> < s:textfield name = "userId" label = "User Id" /> 

< s:textfield name = "name" label = "User Name" /> < s:textfield name = "name" label = "User Name" /> 

< s:textfield name = "profile" label = "Profile" /> < s:textfield name = "profile" label = "Profile" /> 

< s:submit value = "Add Profile" align = "center" /> 

</ s:form > < s:submit value = "Add Profile" align = "center" /> 

</ s:form > s:form >

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