I am using Struts2-jQuery plug in to toggle between two pages with hyperlink in it...
These are the variables in .jsp page and its value from struts action...
BookList=../static/media/booklist.html
SongsList=../static/media/songlist.html
Below is the code I have written...
<s:if test="%{#BooksList!=null}">
<div class="scrollbar scroll-indicator" style="height:324px"></div>
<div id="bookslist">
<sj: targets="songslist" href="%{#BooksList}" >
Show Songs List
</sj:>
</div>
<div id="songslist">
<sj: targets="bookslist" href="%{#SongsList}" >
Show Books List
</sj:>
</div>
</s:if>
<s:else>
<div class="scrollbar scroll-indicator" style="height:324px"></div>
<sj:div id="songlist" href="%{#SongsList}" >
</sj:div>
</s:else>
The else part works perfectly fine. I am able to see the content of the ../static/media/songlist.html
file. If condition fails it is because of the page and hyperlink I am trying to add in it...
How can I get that .html content displayed and have a hyper link below that to toggle between pages. Will provide more information if any needed. Someone please help me out. I am frozen here and not able to proceed further because of this.