wood burning stoves 2.0*
The moose likes Struts and the fly likes Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help" Watch "Help" New topic
Author

Help

JackKumar Kumari
Greenhorn

Joined: Mar 23, 2009
Posts: 14
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Mar 23, 2009
Posts: 14
Hi david,

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




Thanks for your help

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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.
 
 
subject: Help
 
Similar Threads
character entities
Page displaying in IE6 and older versions but not in Higher versions, chrome and firefox also.
Error:The XML page cannot be displayed Cannot view XML input using style sheet
Date and time picker Js file
PWC6180: Unable to initialize TldLocationsCache in NetBeans