Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What Could Prevent FIELDSET From Displaying in the Browser?  RSS feed

 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on the layout of other people's code.

I have successfully added <FIELDSET></FIELDSET> in a number of JSP till I came to work on this person's JSP.

No matter where I put <FIELDSET></FIELDSET> in his JSP code, the fieldset simply does not disply in the browser.

I have tried to make things very simple. I simply inserted this pair of open and end HTML tags with nothing in between. But the rectangle does not show.

I have checked if all other HTML tags in his JSP to see if all of them have an end tag (I mean whether all tags get closed properly). What else can I do to display a fieldset in his JSP?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MOVING TO JSP FORUM...

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not know why Eric moved this to the JSP forum. The fact that this page is produced by JSP seems moot. Are you sure that the fieldset tag is making its way to the browser? Does a View Source on the page produce the expected HTML?
[ April 27, 2006: Message edited by: Bear Bibeault ]
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I experiment with the FIELDSET a bit more.

The FIELDSET still does not work properly. Below are my findings:

1. I put the FIELDSET open and close tags inside the pair of a table TD tags, i.e.,

<TABLE>
<TR>
<TD>
<FIELDSET>
something
</FIELDSET>
</TD>
</TR>
</TABLE>

The rectangle box now is displayed in the browser. But, 'something' is outside the rectangle box. I see the rectangle box first and 'somethint' is displayed below the rectangle box.

2. I selected the View Source to take a look at the displaying code. The <FIELDSET> open and close tags surround 'something'.
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hopefully, I am on the right track.

I think the problem is that the person who originally wrote that JSP does not have right number "pairs" of <TD> <TR> <TABLE> tags (could also be some tags are not closed). Therefore, when I tried to add <FIELDSET> to the JSP, the <FIELDSET> first did not show. I made some effort to make the <FIELDSET> show in the brower but the <FIELDSET> does not show propertly.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!