File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes strange error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "strange error" Watch "strange error" New topic

strange error

Rajani Deshpande
Ranch Hand

Joined: May 08, 2000
Posts: 45
I have a not so big jsp file using struts. If I add a few more lines , it just doesnt show the newly added lines on the browser.
When I saw the html code, the newly added lines were not there!
So I deleted some code at the top of the jsp file and some java script code, and now the page shows fine. There is no error. just if i delete some lines, it works. But I need to add the javascript code back .... but if if I add it doesnt show the last few lines
My jsp page has a 300 lines with lot of include files The corresponding html file always gets cut off at 435th line.
Whats happening here?

Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 567
I've seen this before. In my case it was just some simple error such as mixing up bean names. I did this once, trying to access a bean from an iterate tag, but there were actually two beans with the same name in the session and it was using the wrong one. It took me ages to realize.
I think to find the error you must rebuild your page tag for tag, retesting it at each point.

I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
I agree. Here's the link:
subject: strange error
It's not a secret anymore!