wood burning stoves 2.0*
The moose likes JSP and the fly likes how to create summary and detail table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to create summary and detail table" Watch "how to create summary and detail table" New topic
Author

how to create summary and detail table

roy ramos
Greenhorn

Joined: Nov 17, 2009
Posts: 26
Hi,

can anybody help me into this

i have table a summary table shown below
how can i add link using ID as a parameter to pass to details table from another jsp



need help
thanks,
-roy


-roy
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

roy ramos wrote:
how can i add link using ID as a parameter to pass to details table from another jsp









getting sql connection in jsp is discouraged , reconstruct your architecture.

by the way: use EL instead of scriptlet(expression) . scriptlet in jsp consider as poor practice
roy ramos
Greenhorn

Joined: Nov 17, 2009
Posts: 26
Hi Seetharaman,

thank you very much on your reply, i'm very new in programming especially in jsp and this is my 1st building blocks to familiar myself in programming

anyways i follow your code and it show some error and this is the logs generated

Mar 17, 2010 1:30:47 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.AbstractMethodError
at net.sourceforge.jtds.jdbc.JtdsResultSet.getNString(JtdsResultSet.java:1405)
at org.apache.jsp.page.empmasterpg_jsp._jspService(empmasterpg_jsp.java:280)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

rebuild your application/servlet . and it would be better to post your servlet code
roy ramos
Greenhorn

Joined: Nov 17, 2009
Posts: 26
Hi Seetharaman,

Here is my created servlet, is this ok?

Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
Ummm, that's not a servlet.
roy ramos
Greenhorn

Joined: Nov 17, 2009
Posts: 26
opsss sorry it's a bean

Mark E Hansen wrote:Ummm, that's not a servlet.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to create summary and detail table
 
Similar Threads
Is it possible to develop a html style page in Swing?
Problem in getting table cell value in HTML using java script
Display table row value in another form
Problem with database connectivity
Get results from user defined query