Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: struts2 ajax jsps

nmall

2007-07-19

Replies:


Hi,

I am trying to get started with struts ajax tags. I simply copied
example2.jsp ( under ajax in showcase app) into an appropriate dir in my
src/main/webapp. But all I see is

I'm a Tab!!!
I'm the other Tab!!!

I don't see the tabbed panel test1 test2 etc.
I have a menu-config.xml with a menu defined there. Is that the reason it is
not showing the TabbedPanel?

Here is the example2.jsp.
<%@(protected)" %>
<%@(protected)" %>

<html>
<head>
  <title>Ajax examples - tabbled panel</title>

  <jsp:include page="/ajax/commonInclude.jsp"/>
  <link rel="stylesheet" type="text/css" href="<s:url
value="/struts/tabs.css"/>">
 
 
</head>

<body>

       <s:tabbedPanel id="test2" theme="simple" cssStyle="width: 500px; height:
300px;" doLayout="true">
              <s:div id="left" label="test1" theme="ajax" >
                I'm a Tab!!!
              </s:div >
              <s:div id="middle" label="test2" theme="ajax" >
                I'm the other Tab!!!
              </s:div >
             
           </s:tabbedPanel>
       
       

<s:include value="../footer.jsp"/>

</body>
</html>




Thanks a lot for your help/suggestions !!!


newton.dave wrote:
>
> --- nmall <hacker.anonym@(protected):
>> getting the following error while executing my jsp.
>>
>> ...FileNotFoundException: /ajax/commonInclude.jsp
>
> The only commonInclude I could find was in showcase;
> you shouldn't need it for your own application.
>
> d.
>
>
>
>    
> ____________________________________________________________________________________
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
> Play Sims Stories at Yahoo! Games.
> http://sims.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.