Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes IDEs, Version Control and other tools and the fly likes No Conditional Scriptlet Break-points in JSP File? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "No Conditional Scriptlet Break-points in JSP File?" Watch "No Conditional Scriptlet Break-points in JSP File?" New topic
Author

No Conditional Scriptlet Break-points in JSP File?

Shawn Severin
Greenhorn

Joined: Sep 20, 2012
Posts: 1
Can you set a condition on a break-point in a JSP file?

When I set a break-point in a Java class, I can go into that break-point's properties and the conditional section (along with the count section) will be present. But when I set a break-point within a scriptlet in a JSP file and then go into that break-point's properties, there is only a section for count and no section for conditional. No matter where in the file I put a break-point, it's the same situation, the conditional section is gone.

Is there a legitimate reason why I cannot set a condition for a break-point in a scriptlet found in a JSP file, or would this appear to be a bug in Eclipse?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

Shawn Severin wrote:
Is there a legitimate reason why I cannot set a condition for a break-point in a scriptlet found in a JSP file, or would this appear to be a bug in Eclipse?


Yes. Because Bear will come over and growl at you not to write scriptlets - they're basically obsolete technology.

Seriously, though, scriptlets are not good practice anymore. And a large reason for that is because they are so hard to debug.

But a larger reason is because they're even harder to maintain. They muddle Model, View, and Controller into a single large messy file that's effectively coded in 2 very different languages (Java and HTML). It drives text editors insane, and the last project I help out with that did this almost drove me insane as well.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No Conditional Scriptlet Break-points in JSP File?
 
Similar Threads
debug - breakpoint -- only stop when a variable is a certain value?
loopy for loops
HttpUnit problems
Eclipse 3.3.2- Debugger to stop at a Specific Condition
URGENT..Puhuleese help