This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "strange error" Watch "strange error" New topic
Author

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?


Rajani
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
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.
 
 
subject: strange error