• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi david,

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




Thanks for your help

 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic