aspose file tools*
The moose likes Tomcat and the fly likes Jsp file not compling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Jsp file not compling" Watch "Jsp file not compling" New topic
Author

Jsp file not compling

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
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

Joined: Mar 22, 2000
Posts: 12803
    
    5
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

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Oct 07, 2008
Posts: 301
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

Joined: Oct 08, 2006
Posts: 2458
Ah OK, you're using taglibs. That's fine.

How about the logs and the answers on the other questions?
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
Hi,

Thanks all.

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

Thanks
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
What was the cause and how was that fixed?
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
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
Bartender

Joined: Oct 14, 2005
Posts: 18656
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp file not compling