how to highlight the current jsp page link in navigation
is there a better logic to highlight the current jsp page link in navigation page. ...
is there a better logic to highlight the current jsp page link in navigation page. ...
Following the theme of other threads. What are your most favorites tricks or techniques involving Hibernate? My favorite is binding non-Hibernate generated classes to existing classes with additional functionality (i.e. summarization). ...
I tried to do set date value to a PreparedStatement with default value but the value is sometimes returned as a JulianValue. For example (Assume spanBegin and spanEnd are null) Calendar cal = new GregorianCalendar(); if (spanBegin == null) { cal.set(0000, Calendar.JANUARY, 1); spanBegin = cal.getTime(); } if (spanEnd == null) {...
I need to integrate my java web application with Tally software. Is it possible? Please provide some idea. ...
I have created an executable JAR file for my Java application. If I double-click then it works fine. But I want to create installer for Mac OS, because I cannot give a JAR file to my users. Any suggestions? ...
Appfuse vs. Roo, what would you use and why? What are the sweet spots of each. ...
i went through the documentation(http://java.sun.com/javase/6/docs/api/java/util/Iterator.html) of Iterator.remove() there remove() was described as void remove() Removes from the underlying collection the last element returned by the iterator (optional operation). This method can be called only once per call to next. The b...
What method of capitalizing is better? mine: char[] charArray = string.toCharArray(); charArray[0] = Character.toUpperCase(charArray[0]); return new String(charArray); or commons lang - StringUtils.capitalize: return new StringBuffer(strLen) .append(Character.toTitleCase(str.charAt(0))) .append(str.substring(...
Hey, I have a real weird problem. I have 2 classes: (very important note: this is an example cause I can't paste the original code, I wrote it as text with no compiler) class B { private int num = 9; public int getNum(){ return num; } public void setNum(int num){ this.num = num; } } class A { pri...
Hi folks, When I deploy my WAR generated with Ant on my local system (copy/paste under /webapps), everything works fine. The thing is, when I deploy the WAR on a remote server for test purposes, I got this error message: There was an error thrown by Tomcat during deployment: "Error invoking method check". This however may not mean ...
I want to add a button to the toolbar in my page that derives from FormPage. I use the code: Action action = some action... action.setImageDescriptor(som descriptor...); toolBarManager.add(action); When i run the editor I don't see nothing in the place were the button should be. If I'm hovering it with the mouse it changes to a hand ...
When reading zipfiles (using Java ZipInputStream or any other library) from an unknown source is there any way of detecting which entries are "character data" (and if so the encoding) or "binary data". And, if binary, any way of determining any more information (MIME types, etc.) EDIT does the ByteOrderMark (BOM) occur in zipentries and...
When developing Maven web applications I usually resort the the jetty-maven-plugin to quickly launch my application for local testing and debugging. Using the launch with m2eclipse has the drawback of not properly including all sources for debugging, even though they are downloaded by Maven ( see Source lookup does not seem to work ). W...
May I know what is the best practice of using org.apache.commons.logging.LogFactory.getLog? For me, I use it the following way : public class A { private static final Log log = LogFactory.getLog(A.class); } public class B { private static final Log log = LogFactory.getLog(B.class); } So, if I have 100 of classes, 100 of stat...
I wud like know the way to set the text that is typed in a Jtextfield to the table.Cud anyone help me in it. ...
For ease of use I want to extend an Android Activity with a certain class to give it extra functionality and then extend my main activity with that class e.g. class SuperActivity extends Activity { //Very nice extra functions } //Class defined in the manifest.xml class ApplicationActivity extends SuperActivity { //Start the app...
I have a component that I wish to write and it's the kind of thing that feels like a common pattern. I was hoping to find the common name for the pattern if there is one, and examples of how to go about implementing it. I have a service that queues requests and processes them one at a time. I have a number of client threads which make t...
I am getting an error that is only reproducible in Firefox. In IE, it always works. I have an ASP.NET application that targets an applet. For most functionality, it works great, but when I run one function (a function that does a lot of different things), the methods on the java applet seems to be unavailable! When I call any functions ...
In spring mvc I have a controller that listens to all requests comming to /my/app/path/controller/*. Let's say a request comes to /my/app/path/controller/blah/blah/blah/1/2/3 How do I get the /blah/blah/blah/1/2/3 part, i.e. the part that matches the * in the handler mapping definition. In other words I am looking for something simila...
I want to login to a website (http://www.orkut.com) through com.gargoylesoftware.htmlunit.WebClient But when I click on the "Submit" button, it doesn't take me to the expected page that should come after login. Instead it returns the same login page again. In clear sense, there is some problem in login. When I try the same code with ...