• Post Reply Bookmark Topic Watch Topic
  • New Topic

What does this line of code do?  RSS feed

 
Patrick Mallahan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alright, so I am a new hire at this company and they have a realy cool jsp admin setup, problem is, they want me to change a bunch of stuff to it. Now Java is not where I am having the troubles, its that the guy before me didn't know what documentation was. So here is the line of code, I basically need to know what it does and where it is pointing to, thanks in advance:

String reportTable = com.aga.timeentry.presentation.ReportHandler.getReportTable(type,startDate,endDate);

I know its creating a string named reportTable, but i dont know where it is going.
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm not sure, but i guess there's a class named:
ReportHandler
inside a package:
com.aga.timeentry.presentation
with a static method:
getReportTable(type, startDate, endDate)
that returns ... a String
 
Patrick Mallahan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so would the package be in the same dir as the jsp?
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would guess, no.

Because you would want to keep your view content seperate from your non-view content.
 
Patrick Mallahan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am running it with tomcat, so its in webapps/timeentry/. any ideas were the ackage may be?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd speak to your new colleagues. Sounds like you may be using a class they wrote. I certainly can't think of any open source library which contains a package with a name like that.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about the .class file or the .java file?

If it's the class file, it will be somewhere on Tomcat's classpath. It could be the web app's WEB-INF/classes folder hiearchy, in a jar file in the web app's WEB-INF/lib folder, or it could be in a jar in one of the Tomcat common folders for jar files: $CATALINA_HOME/common/lib or $CATALINA_HOME/shared/lib.

If you are talking about the .java file, that could be anywhere, probably not even on the deployment server. That all depends upon how your company has set up the build for the web app.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!