Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help

 
JackKumar Kumari
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am new to Java. I have another question:

I am using struts 2 tabbed panel.

If I use <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
My tabs are not functional….
If I don’t use that
My code works but formatting goes away.

Thanks in advance.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read UseAMeaningfulSubjectLine from the HowToAskQuestionsOnJavaRanch FAQ.

Which version of S2 are you using? Can you show the "top" of the JSP (doctype, <head> section) as well as the tabbed panel tag (please post code snippets in "code" tags)?
 
JackKumar Kumari
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi david,

Thanks for your help. Here is the code I have:




Thanks for your help

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first thing I'd do is examine your JSP *closely* and identify any invalid nesting, of which there *appear* to be several instances of--it's hard to tell because of the crazy indentation.

When I make everything look better I get this:For example, the <s:form> tag has a
tag in it, which wouldn't be legal HTML because it would have a
tag between table rows. There's an issue with the tabbed panel nesting with an <s:div>. There may be an extra closing </div> tag. Again, it's hard to tell, and I my not have indented your JSP completely correctly.

The appearance of code can go a *LONG* way to helping understand and debug it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic