• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp file not compling

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am facing a strange problem.In My jsp pages there is no error .Still i am getting blank out put.

D:\Tomcat 5.5\work\Catalina\localhost\cyberq\org\apache\jsp

in this folder my jsp class is not showing
Can any body tell me why this happening.

Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you so sure there is no error in your JSP?

How are you executing Tomcat?

How are you addressing the JSP page - the actual URL please.

Have you inspected the log files for error reports?

Bill
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a JSP gives a blank page, it usually means that you wrote raw Java code in a JSP file instead of a Java class and that that Java code is throwing an exception which can't be handled anymore because you wrote raw Java code in a JSP file instead of a Java class.

As said, read the logs.
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

this is my jsp page code
and this page is showoing blank.
Please tell me what the error in this page.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah OK, you're using taglibs. That's fine.

How about the logs and the answers on the other questions?
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks all.

I solve my problem.There were some error in my jsp page.

Thanks
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What was the cause and how was that fixed?
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this error cause is this line

<td class="frmLable"><s:textfield name="calulatedSalary" value="%{salary}" cssClass="formText" size="10"/> </td>

i remove the size attribute from here.

Now its working fine

Thanks.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pankaj semwal wrote:I solve my problem.There were some error in my jsp page.

Well, of course. That happens to all of us. Which is why "I am facing a strange problem.In My jsp pages there is no error" isn't a good starting point for solving a problem. It's always better to assume there is an error, and that it's your fault. At least that always works for me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic