john von

Ranch Hand
+ Follow
since Apr 13, 2004
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 john von

I've resolved. I stupidly hide jsp lines using html comment tag.

Thanks for the help!
19 years ago
Yes, there is. What surprises me is, when i copied the lines(code) that has struts part to another file, save it, the file runs perfectly.

Any idea?
19 years ago
What could be the possible reason of the errors below? I made a very simple jsp application that uses struts own html tag library and it prompts me these errors. While, i copied the part of the code that uses struts to another file, it works ok.

thanks for the help.


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /my/index.jsp(164,0) Unterminated <html:form> tag
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:170)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:835)

...more error lines
19 years ago
Thanks for the link but i still couldn't find an answer. Ive checked the 2 probable cause you mentioned but they're set as right.

Anybody?
19 years ago
You think so?
In the book, it uses Struts1.1 but what i have is Struts2.2. I couldn't find in jakarta site of the older version. I couldn't move on in my study because of these errors.

Anymore help who had this book?

Thanks!
19 years ago
Im trying to run a code from the book of James Holmes Struts: The complete reference. It gave me the error as i click on the link on its index.jsp.

Thanks in advance.

root cause

javax.servlet.ServletException: Exception creating bean of class com.jamesholmes.minihr.SearchForm: {1}
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.search_jsp._jspService(search_jsp.java:212)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:536)



--------------------------------------------------------------------------------

Apache Tomcat/4.1.30
19 years ago
For some reason, this whole line does not show up altogether.
Either ill leave the first or the second statement.
Im just playing around with the try/catch exceptions. Any fact?


[ August 30, 2004: Message edited by: john von ]
19 years ago
Hi. Im trying to print several pages and initially stored it in Book. Unfortunately, it prints the first page only. It involves two classes and ill post the snippet for both.

Thanks in advance!

First CLASS that append the object in a Book


Second CLASS that do the actual printing.


Thank you so much for the help.
19 years ago
Im trying to print a graphics. Almost done until i noticed a discrepancy whenever it loops. More loops, the discrepancy widens. Please see my code below. Thanks in advance!

19 years ago
Have it pop-up until you verified the value of the session variable.
19 years ago
Really need your help guys, im working on this for days now. I created sort of mock up of what im really actually doing. Im really working on a Table and a Spit Pane. Just to present to you as brief as possible i wrote a two table instead. The real issue is I can't seems to resolve on repainting a panel. The buttons are located in another class, while the panel to repaint is in separate class. When i click a the button one, it should present the table one and button two on table two. .

I really appreciate any help. Here are the codes of 3 classes. You may ignore the table model method below




[ July 23, 2004: Message edited by: john von ]
19 years ago
There actually 2 panels and a frame involved(3 classes). There is CenterPanel that should be repainted. But the button that will trigger repaint is in SouthPanel. You almost had it.

So how? Thanks again!
19 years ago
Im new to GUI and having problem on repainting a panel.

I have 4 classes. Namely, MainFrame(JFrame subclass), NorthPanel(JPanel), CenterPanel(JPanel) and SouthPanel(JPanel).

MainFrame holds the 3 panels(classes) in a BorderLayout.
Now, SouthPanel has a button and an action listener that suppose to repaint the CenterPanel. So how would i call it or repaint repaint the CenterPanel inside the MainFrame? And where should i call the repaint?

I know this is really simple to you guys. Thanks in advance!

Thanks!
[ July 20, 2004: Message edited by: john von ]
19 years ago