Robert Stone

Greenhorn
+ Follow
since Jan 06, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Robert Stone

I am using a jtable to display data in columns like a spreadsheet, but when the user is typing text in a table cell I want the enter key to create a carriage return. Does anyone know how to do this? I have tried creating my own custom TableCellRenderer but that didn't work. The enter key still just moves to the next row in the table. I would love to know who thought this would be a desired functionality.

Thanks in advance,

Robert
8 years ago
I have never had this issue before and I was wondering if anyone else has had the same issue. I have a small java application that uses the JExcel API http://jexcelapi.sourceforge.net/ to automate some Excel Sheet Reports. The application works fine when run from the Eclipse IDE using the "Run as Java Application" selection from the "File" menu, but when I export it to a Runnable Jar file the application is not working. The application will run, but when I select the file to convert it doesn't create the new file.

Has anyone had this same issue with an application running in Eclipse but not when exported to a jar, and if so how did you overcome it?

Thanks in advance,

Robert
11 years ago
Thanks Yogesh, it was as you thought I was using to high a JDK when compiling the war file. Once I compiled it with JDK 6.29 it deployed fine! I didn't realize that my host wasn't supporting JDK 7 yet. What a silly mistake.

Cheers

Robert
11 years ago
I turned my private messaging on. Not sure when I turned it off.
11 years ago
First I would like to say that I really appreciate your help. Second, my issue doesn't seem to be the issue in your link. I read through everything checked it and everything seems to be okay in my war file as far as I can tell. I have created a limited ftp Login on my Webserver where you can go to download my complete war file and have a look and see if I am just missing something if you will. That way you can completely understand the issue I am having. The strange part is...this war file will deploy locally on my personal Tomcat server but when uploaded to the webhost server there is the module not found issue. If you would private message me I will provide you the login information.

Thank you sooooooooo much!

Robert

11 years ago
Thanks, I'll give it a look and let you know the results. ;)
11 years ago
Hello experts,

I am trying to deploy a war file to a tomcat server that my client purchased hosting on, and I am running into an issue with the Struts HTML Tags module. I am not sure what the issue is, because I have the exact same Tomcat server on my development machine and the War file deploys fine on said server. However, when I go to deploy the same exact war file on the web hosts Tomcat server I get the following error.


Sep 2, 2012 5:39:31 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [] threw exception [java.lang.NullPointerException: Module 'null' not found.] with root cause
java.lang.NullPointerException: Module 'null' not found.
at org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
at org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:735)
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:818)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:488)
at org.apache.jsp.index_jsp._jspx_meth_html_005fform_005f0(index_jsp.java:107)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:79)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1770)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Sep 2, 2012 5:54:39 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [] threw exception [java.lang.NullPointerException: Module 'null' not found.] with root cause
java.lang.NullPointerException: Module 'null' not found.
at org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
at org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:735)
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:818)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:488)
at org.apache.jsp.index_jsp._jspx_meth_html_005fform_005f0(index_jsp.java:107)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:79)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1770)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Can someone please help me figure out what the issue is.

The tomcat version is 7.0.27
I am using Eclipse JUNO as my IDE and to generate the WAR file as well using it's automatic WAR generation functionality
My java version is jdk1.7.0_06
I am using struts version: struts-1.3.10 (because I am most familiar with this version)

I can provide the war file if necessary, but I will have to do that through ftp or something as the forum doesn't allow rar, war or even text attachments for some reason.

Any help will be greatly appreciated.

Thanks,

Robert

11 years ago
Thanks a lot! That actually answered my question. I Googled html video tag events and found a tutorial that showed me what I needed here:

video events

Now I know what to do

Sorry, I am a bit frustrated now and didn't mean to leave the details out. I am using the html 5 video element just like this


I am learning html 5 after developing for a long time with html 4 so it is tough getting used to the new standard. What events are you speaking of please share the details.

Thanks,

Robert

[Edit: added code tags]
I have a windows media video embedded in a jsp page, I am retrieving the video from the server, dynamically loading it, playing it, and then when it stops I want to load the next video in the array of videos. Is there any way to tell when an embedded video stops? I can't seem to find any useful information about doing this online. I mean really, is there no one that has wanted to dynamically load embedded videos before me? I can't believe this is the case.
I am new to struts and I am building this example application found at the following url:

struts pagnation example

I followed the instrutctions exactly and when I try to run the application it gives me the following error stack.



It appears to say that the org.apache.struts.action.ActionServlet class is missing but I have all of the struts jar files in my project lib as listed below

struts-core-1.3.10.jar
struts-el-1.3.10.jar
struts-extras-1.3.10.jar
struts-faces-1.3.10.jar
struts-mailreader-dao-1.3.10.jar
struts-scripting-1.3.10.jar
struts-taglib-1.3.10.jar
struts-tiles-1.3.10.jar
bsf-2.3.0.jar
commons-beanutils-1.8.0.jar
commons-chain-1.2.jar
commons-digester-1.8.jar
commons-fileupload-1.1.1.jar
commons-io-1.1.jar
commons-logging-1.0.4.jar
commons-validator-1.3.1.jar
jstl-1.0.2.jar
oro-2.0.8.jar
standard-1.0.6.jar

Please will someone help me determine what I am missing?

Thanks in advance,

Robert
13 years ago

Are you sure that the variable isn't null to being with?

Yes I am sure it isn't null I ran it under eclipse and in the debugger I can see the object is populated before I put it into the attribute.

P.S. And why the session? Placing the scoped variable on the request is sufficient for a forward operation.

because it is a object that contains data that I want to access on a couple of pages.
13 years ago
Hi I am having trouble setting a session attribute in a servlet and retreiving it in the jsp the servlet forwards to.

Below is the code from the servlet and the jsp. For some reason even thought I set the session attribute in the servlet when it forwards to the jsp the attribute is null.

//Servlet code here


//JSP code here


Any help will be greatly appreciated.

Thanks
13 years ago
Everyone,

I am using the following code to forward from a Servlet to a JSP



and it works fine however when I get to the JSP the url is still in the context of the servlet

http://www.mywebsite.org/servlet/MyServlet

So, as a result the page is all a mess because it can't find the style sheet in the location "css/main.css" or any of the images in the "images/*.png" location because it needs to look in the location "/images/*.png" but the problem is that the first time the user hits this page it is not in the context of the servlet so everything needs to be in the former locations. If/When we return to the page because the user forgot some form data that is when there is a problem.

How can I fix this issue? Any help again will be greatly appreciated!

Thanks, in advance!

Robert



13 years ago
Thanks for all the help everyone! Consider this issue resolved. I should have thought to use a Jave Bean in the first place. Now there is no logic in the jsp at all it is all on the back end where it belongs! Thanks again!

Robert
13 years ago
JSP