File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Customer Requirements for Developers this week in the Jobs Discussion 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: 16913
    
  26

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: No Conditional Scriptlet Break-points in JSP File?
 
It's not a secret anymore!