Formulate a specific question regarding the specific difficulty you are having with your solution. Post the relevant bits of your code to support your question.
I will warn you now, this site does not help people with coursework. However, I think that if you can demonstrate that you at least...
I have done a lot of work using Swing layouts. I have typically in the past used a GridLayouts to do labels/input fields.
If you have a BorderLayout on your top level planel, then add a subpanel with a GridLayout into its WEST area and another seubpanel with another GridLayout into its CENTER...
I have stopped trying to build these kind of layouts using the native layout managers. I use this instead (http://www.miglayout.com/). I still use BorderLayout and FlowLayout for top-level placement, but label/fields and complex layouts are much easier using MigLayout.
Tim
The style and images will reside in separate resource files and these are fetched by the browser in separate requests on the web server.
I'm somewhat rusty will all this, but you seem to be sending the redirected content to the client browser from your web context, and the resources referred to...
Oh crikey. Beginners do not normally want to be messing around with J2EE and application servers like JBoss.
You are going to need to take this in stages, in my opinion. You will be aware of the many learning curves involved in just tackling straight Java (J2SE). Adding in J2EE and application...
Do not put your libs into server/lib. This is for jar libraries used by the tomcat container itself. Any jar which is to be made available to all web applications running in Tomcat should be placed in common/lib. Any jar which is to be used exclusively by a particular web application should live...
Using the 'add external jar' in the Eclipse project's build path will allow Eclipse to see the jar for code compilation and running from within Eclipse.
However, if this is a web application, then it figures that is will be run inside some servlet container such as Tomcat. By definition, any...
Does the war get deployed okay? You can use the 'manager' application (available from a link on the main http://localhost:9080/ page) to monitor what applications are successfully running within tomcat. Or you can check out the log files in D:\Tomcat2.0\apache-tomcat-5.5.20\logs.
Have you...
Well, you could either try updating your version 1.5 to the latest build (which is 19, I believe), or download and try out Java 1.6. It's entirely possible that either of these might fix your issue.
Tim
It's entirely possible, like TonHu says, that there is some other Java program which executes the main method directly, and so could catch these exceptions where they to be thrown.
It's not what I would call 'good practice', but the main method is just like any other static method when called...
Hang on a mo. Sharon3874, in your servlet you're setting the http header in the response. But in the jsp you are querying the http header for the request. So the jsp will show null since it hasn't been set in the request, it's been set in the response. If the servlet delegates to the jsp to...
zhangling, the -Xms64m -Xmx512m options are there to tell the JVM at startup that it can start with a memory heap of 64 megabytes, but that the heap must not grow beyond 512 megabytes. For such a simple, small, application these are not required.
Tim
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.