This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Java bug tool

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

im using findbug tool to find the bugs in my java project.

I need some clarification

1. Can I find bugs in JSP file

2. Can I export the bugs

I need this very soon..... please reply me

--
with thanks,
M. Bharathi
 
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best place to ask your question is the people who wrote the software. Note that this forum is for general questions about Java, not for every tool written in Java.

After a quick search, it seems FindBugs has it's own mailing list: http://findbugs.sourceforge.net/mailingLists.html

Good luck.
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FindBugs doesn't support JSPs. That's not surprising, though, since it's designed to find bugs in Java code, and it is considered bad design to keep any Java code in JSPs.

What do you mean by "export"? FindBugs can create its report in various formats, including plain text, XML and HTML. Check the documentation of the output parameter of its Ant task.
 
muthu bharathi
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

Thanks a lot for your reply.. i've got the report in html format..

But i have seen one site they gave a jpg

That jpg contains the FindBugs screen for check errors in jsp pages..

Here with i have attached the link: please go through the link and clarify my doubts "FindBug support jsp or not".

Awaiting for your reply..

link: http://lvk.cs.msu.su/~ddk/lj/findbugs_jsp.jpg

--
Thanks
Bharathi
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you are referring to this: https://mailman.cs.umd.edu/pipermail/findbugs-discuss/2008-September/002502.html

I don't think that has been integrated into FB yet. At least I see nothing in the change list that would indicate that it has been. Also note Andrei's reply in that post: FB works with class files, not source files. So anything like this would have to be part of an IDE plugin, not of FB itself.
 
muthu bharathi
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ulf,
Thanks for your clarification. ulf, now i was downloaded PMD tool.

In this also i cant find bugs in jsp pages.....

Please suggest is any tools supports to find errors for jsp pages...

Thanks in Advance... and also my New Wishes...

--
with thanks,
M. Bharathi
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess would be that none of these tools support that. Keeping Java code in JSP pages is considered seriously bad design; and since the point of these tools is help come up with better code, I doubt that any of them address JSPs.

If you care about code quality, follow their lead, and keep your JSPs free of Java code.
 
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!