History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-14188
Type: Bug Bug
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Serge Baranov
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Improper JSP formatting

Created: 10 Aug 07 02:10   Updated: 27 Aug 07 19:23
Component/s: Code Formatting and Code Style

Build: 6,180
Severity: Medium


 Description  « Hide
Support feedback:

If I include the following in a JSP page, some of the JSP page does not get formatted correctly. In particular, the contents of table
elements, such as tr, td, etc, are all left aligned. If I remove those taglib declarations, the formatting works perfectly.

<%@ taglib uri="http://jakarta.apache.org/taglibs/log-1.0" prefix="log" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>


 All   Comments   Work Log   Change History      Sort Order:
Serge Baranov - 10 Aug 07 21:44
User's comment:

There are other times where this formatting issue occurs as well, but I'm unable to determine why.

For instance, notice how the code below has the choose, otherwise, and "if" statements all on the same indentation level, but then inside of the "if" statement is indented. Very odd.

<c:if test="<%=student.isReRegistration(curCourse.getSubjectCode(), curCourse.getCourseNumber(), false)%>">
    <fieldset>
      <legend>Re-Registration</legend>
    
    </fieldset>
  </c:if>
  </c:otherwise>
  </c:choose>

Alexander Chernikov - 27 Aug 07 19:23
7243: cannot reproduce described issues. The case from the last comment cannot be formatted well, because closing tags have no matching opening tags, XML structure is invalid. After addition of opening tags all is Ok.

The sample of JSP file with problems would be nice to understand, what happens.