• 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

Getting extra space on the start of print preview

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI all,
I hv a problem with print preview of my JSP.
For some reason i m getting an extra space on the start of first page in print preview.and from next page onwards that data shifts upwards so that that space gets removed.
Now this JSP includes
M not able to understand y this weird thing is happening following is my code where my jsp starts.


<head>
<title>
<%=labelBundle.getString(TheatrePerformanceLabelConstant.THEATRE_PERFORMANCE)%>
</title>
</head>
<netui-template:template templatePage="/resources/jsp/template_print.jsp">
<netui-template:section name="reportName" visible="true" ><%=mainMenuBundle.getString(MainMenuLabels.THEATRE_PERFORMANCE)%></netui-template:section>
<netui-template:section name="bodySection">
<%
pageContext.setAttribute("defaultAll",commonLabelBundle.getString(TheatrePerformanceLabelConstant.DEFAULT_ALL));
%>
<netui:form action="searchTheatrePerformance" tagId="theatrePerformanceSearchFrm" >

<table width="100%">
<thead>
<tr>
<td>
<div class="header">
<ifds:label value="<%=labelBundle.getString(rptName)%>"/>
</div>
</td>
</tr>
</thead
<DIV id=theTabSet>
Here one more jsp is included in which thead is used for one row.
And above <table> ends in this jsp
</DIV>


Please help

Thanks
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by shreedevi Devi:

I hv a problem ...
M not able to understand y this...



Welcome to the Ranch.

You will find that you will get better response to your questions if you use real words. "hv", "M" and "y" are not real words. Please use real words when posting to the forums.

thanks
bear
JavaRanch Sheriff
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Extra space as in the margins of the page?

Eric
reply
    Bookmark Topic Watch Topic
  • New Topic