Cannot compile java beans in my jsp page
Hi all
I have created jsp pages which contains java beans. Now its working fine on my machine(XP OS) but when i put it on windows 2000 server it gives the following error:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
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:2415)
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:172)
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:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Unknown Source)
please help
Ok, jsp pages to not contain java beans, java beans are separate classes which you access from a jsp.
Is this what you have done, i.e. created classes under classes/yourPackage ?
If so, you do not need to recompile the class when you move it, you can move the pre-compiled class file.
In terms of your error, I have no idea, but it looks interesting!!
The most likely cause is a difference in the JDK versions you are running on the different machines. If the JDK on windows 2000 is older, you may need to upgrade it.
Similar Messages
-
Sharing a bean information through jsp pages
Morning,
I want to use a java bean in two jsp pages, so is it possible to share it (to set its properties in the 1st page and retrieve them in the 2nd)?
If not, what should I do? Could I use forward and set param?
Here is my 1st jsp
==================
<%@page language="java" %>
<jsp:useBean id="doctorConn" scope="session" class="beans.DoctorBean" >
<jsp:setProperty name="doctorConn" property="*" />
</jsp:useBean>
<%
if(doctorConn.getUserId().equals("") ||doctorConn.getPassword().equals(""))
response.sendRedirect("notAuthorised.jsp");
System.out.println("user id : " + doctorConn.getUserId()+ " password : " +doctorConn.getPassword());
if(doctorConn.isAuthorised(doctorConn.getUserId(), doctorConn.getPassword())) {
%>
<jsp:forward page="doctorApp.jsp" />
<%
else response.sendRedirect("notAuthorised.jsp");
%>
==================
my second
=================
<%@page language="java" %>
<%@page import ="java.sql.*" %>
<%@page import ="java.lang.Exception"%>
<jsp:useBean id="doctorConn" scope="session" class="beans.DoctorBean" />
<jsp:useBean id="appointment" scope="session" class="beans.Appointment" >
<jsp:setProperty name="appointment" property="*" />
</jsp:useBean>
...etc
===========================
I am using Tomcat 4 and in the 2nd page I am getting an error about doctorConn
Thank you,Yes ofcorse. You can do it in many ways.
Firstly, declare properties of your bean as static that you want to share between pages and create new instance of bean on each page.
Secondly you can store the same instance of the bean in you session. On th other page, you can retrive same instance of the bean whenever needed.
Otherwise, you can create a gateway class that maitain static reference of you bean class. -
How to Generate a Java file for a JSP Page
Hi ,
I am using weblogic11 .
I am working on a JSP page which nearly consists of 4000 lines of code.
I need to debug the file , but weblogic server is not generating the java file for the JSP pages .
Please let me know how can i genertae Java file for the jsp pages ??JSPs are compiled into servlets automatically and those classes are stored in WEB-INF/classes folder. Servlet engine handles servlets.
-
Recompilation of java class invalidates taglib jsp page?
Hi everyone,
I have a JSP page which calls a custom tag library. On freshly compiling
everything and
calling the JSP page from a browser for the first time the output is as
expected.
However when ever I recompile one of the classes that get called anywhere in
the tag
library call the tag no longer works (internal error from the server).
To get it to work I have to change the jsp page so that it recompiles.
Weblogic server 5.1 (no service patches yet) running on NT server SP6a.
Any ideas?
MTIA
Craig
p.s
The following errors are in the log file.
Is this another class casting problem?
Does any one have any explanations?
Ta
Craig
<ServletContext-General> Servlet failed with Exception
javax.servlet.ServletException: runtime failure in custom tag 'MyTag'
at jsp_servlet._taglib._jspService(_taglib.java:89)
at weblogic.servlet.jsp.JspBase.service(JspBase.java, Compiled Code)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
, Compiled Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java, Compiled Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java, Compiled Code)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java,
Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java,
Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
<ServletContext-General> root cause of ServletException
java.lang.ClassCastException: com.bt.db.MyTag
at jsp_servlet._taglib._jspService(_taglib.java:77)
at weblogic.servlet.jsp.JspBase.service(JspBase.java, Compiled Code)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
, Compiled Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java, Compiled Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java, Compiled Code)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java,
Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java,
Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
"crg" <[email protected]> wrote in message
news:[email protected]...
> Hi everyone,
>
> I have a JSP page which calls a custom tag library. On freshly compiling
> everything and
> calling the JSP page from a browser for the first time the output is as
> expected.
> However when ever I recompile one of the classes that get called anywhere
in
> the tag
> library call the tag no longer works (internal error from the server).
> To get it to work I have to change the jsp page so that it recompiles.
>
> Weblogic server 5.1 (no service patches yet) running on NT server SP6a.
>
> Any ideas?
> MTIA
>
> Craig
>
>
>
>
-
Two managed beans in same jsp page
Hello
First this could be a stupid question, but i just can't find a solutions on this problem.
I wondering that could it be a two managed beans in same jsp page, here is a example:
index.jsp
<t:commandLink disabled="#{listBean.currentPage == 1}" id="previous2" type="button" immediate="true" style="font-size:small" action="#{listBean.previousPage}">
<h:outputText value="Edellinen" id="prev"/>
</t:commandLink>
<t:commandLink disabled="#{listBean.currentPage == listBean.totalPages}" id="next2" type="button" immediate="true" style="font-size:small;" action="#{listBean.nextPage}">
<h:outputText value="Seuraava" id="next"/>
</t:commandLink>
then i have a dataTable like this:
<t:dataTable value="#{customerListBean.customerBeans}"
binding="#{customerListBean.dataTable}" preserveDataModel="true" style="text-align:left">
My problem is that when i push a commandLink it doesn't refresh a dataTable. Does anyone know a solution here or is this just a impossible way to do it?
Thanks for help.when i push nextPage (commandLink) it's call action
and count a new range of dataset and after that it's
calls a method which is declared on subClass and that
method get a new data of database on given params.
and put it on DataTable.
So listBean is upper class and customerListBean
extends on ListBeanNo, it doesn't work that way as you expected. You have created two independent instances. They doesn't communicate automatically with each other or so. Just use one CustomerListBean instance and call the inherited methods of ListBean on the #{customerListBean} managed bean instance. -
How i can make my own connection in java source of a jsp page
How i can make my own connection in java source of a jsp page (How to get connection from JNDI datasource address) ?
imagine that i have a rowset in a web page , now i want to do some operation using
plain JDBC , so i will need a connection object.
I tried to get one of my rowsets connection but it return null ?
what is best way to retrive a connection from JNDI datasource that we define for our project?
for example if i have
myRowSet.setDataSourceName("java:comp/env/jdbc/be");
in web page constructor
now i want a pure connection from the same datasource ? JNDI
Thank youIt is not hard to get your own connection from datasource.
in your case you need to do like the the following code.
i provide sample to show you how to catch the exception and create an statement .
Connection con =null;
try{
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/be");
con = ds.getConnection();
java.sql.Statement st =con.createStatement();
}catch(SQLException sqlex){
sqlex.printStackTrace();
sqlex.getNextException().printStackTrace();
catch(NamingException nex){
nex.printStackTrace();
hth
Masoud kalali -
Cannot compile Java files or create Java Project
Hi,
I cannot compile java files and also didn't see any option
for creating java project using flex 2 builder.
Actually am trying to create a FDS project with an option to
compile on the server. I am using Weblogic 8.1 SP5 as my server.
thank you
sunhi
this is may jvm.config file. Can anyone tell me if it is
right because all the fields are blank.
# VM configuration
# Where to find JVM, if {java.home}/jre exists then that JVM
is used
# if not then it must be the path to the JRE itself
# If no java.home is specified a VM is located by looking in
these places in this
# order:
# 1) JAVA_HOME environment variables (same rules as java.home
above)
# 2) bin directory for java.dll (windows) or
lib/<ARCH>/libjava.so (unix)
# 3) ../jre
# 4) registry (windows only)
java.home=C:\Adobe\Flex Builder 2.0 Beta 3\Flex SDK 2.0\jre
# Arguments to VM
java.args=-ea -Xmx384m
# Environment variables we care about, whitespace-separated
env=
# java.class.path - use this for adding individual jars or
# directories. When directories are included they will be
searched
# for jars and zips and they will be added to the classpath
(in
# addition to the directory itself), the jar to be used in
launching
# will be appended to this classpath
java.class.path=C:\Adobe\Flex Builder 2.0 Beta 3\Flex SDK
2.0\jre
# where to find shared libraries, again use commas to
separate entries
java.library.path=
thanks
sun -
Java Bean Error in JSP: Cannot Resolve Symbol FirstBean
I have created a java bean with following package statement
package mybeans;
and my bean name is
FirstBean
it compile secessfully and now my directory structure is following
WebAppRootDir \ WEB-INF \ classes \ mybeans \ FirstBean.class
I am using Tomcat 4.1 and in JSP i am declaring the bean with following line
<jsp:useBean id="b" class="mybeans.FirstBean" />
and tomcat 4.1 is failed to find this bean and giving me following error
cannot resolve symbol
symbol : class StudentBean
location: package mybeans
mybeans.FirstBean b = null;
all my class and directory structure is ok i am puzzle why this error is coming, plz help me quickly i need solution quickly ...Error is for StudentBean, not for FirstBean. So check for it.
-
Java Bean Error in JSP: Cannot Resolve Symbol Error
I have created a java bean with following package statement
package mybeans;
and my bean name is
FirstBean
it compile secessfully and now my directory structure is following
WebAppRootDir \ WEB-INF \ classes \ mybeans \ FirstBean.class
I am using Tomcat 4.1 and in JSP i am declaring the bean with following line
<jsp:useBean id="b" class="mybeans.FirstBean" />
and tomcat 4.1 is failed to find this bean and giving me following error
cannot resolve symbol
symbol : class FirstBean
location: package mybeans
mybeans.FirstBean b = null;
all my class and directory structure is ok i am puzzle why this error is coming, plz help me quickly i need solution quickly ...It seem to be ok... why dont your try with a newer versi�n of Tomcat?
-
Cant find bean class from jsp page using Tomcat 4
Hi
I have searched numerpus forums and seen many posts from people who seem to have the same problem however none of the solutions seem to work for me.
I have a jsp page which is trying to call a bean method however I get an error
saying that the class for the bean cannot be found. I have :
1. put the class in a package called kolaBean under
C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\begjsp-ch01\WEB-INF\classes\kolaPackage
2. included the package statement in the java file for the bean
3. included an empty constructor in the java file for the bean
4. I have declared the above constructor as public (is this necessary?)
5. used the full package name:
kolaPackage.kolaBean bakedBean = new kolaPackage.kolaBean();
6. imported import java.beans.*; (is this necessary ?)
7. still got the same error...
Any pointers really really appreciated
Thanks
Kolain reply to David Rons email:
Is this a fresh install of tomcat? If so, it could be a configuration
problem.Yes it is
Is the class public in the package (I forget that all the time)?Yes it is. I have also declared the constructor to be public is this
necessary?
What's the error message?here is the error message:
An error occurred between lines: 11 and 14 in the jsp file:
/begjsp-ch01/kolaBean.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\localhost\_\begjsp-ch01\kolaBean$jsp.java:59: Class
kolaPackage.kolaBean not found.
kolaPackage.kolaBean bakedBean = new
kolaPackage.kolaBean();
^
2 errors
Thanks in advance
Kola -
Tomcat 6 Calling a Java Servlet from a JSP Page
Below is a very simple JSP Page that calls a Java Servlet. The question is given Tomcat security constraints, is it possible to call a servlet from a JSP and get the correct output without getting an error message? If so, how would you code the web.xml file?
c:\apache-tomcat-6.0.18
Under conf
catalina
localhost
HelloWorldExample.xml is directly under localhost
The application would have this directory structure:
webapps
HelloWorldExample
hello.jsp is directly under HelloWorldExample
Under HelloWorldExample
src
WEB-INF
classes
Under classes
jservlets
HelloWorld.java is in src folder
HelloWorld.class is in jservlets folder
HelloWorldExample.xml
<Context path="/HelloWorldExample" docBase="HelloWorldExample" debug="0"
reloadable="true" crossContext="true">
</Context>**************************
hello.jsp
<HTML>
<HEAD>
<TITLE>Hello</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4">
<P>
Please enter your name:
<FORM
METHOD="Post"
ACTION="servlet/jservlets.HelloWorld">
<TABLE BORDER="3" CELLPADDING="1" WIDTH="100%" ALIGN="CENTER">
<TR>
<TD><B>Name:</B></TD>
<TD><INPUT TYPE="text" NAME="Name" VALUE="" SIZE="65"> </TD>
</TR>
</TABLE>
<P>
<INPUT TYPE="SUBMIT" VALUE="Submit">
</FORM>
</FONT>
</BODY>
</HTML>******************
HelloWorld.java
package jservlets;
import java.io.*;
import java.util.Date;
import java.util.*;
import java.text.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet
PrintWriter out;
PrintWriter err;
String strName;
public void displayMessage(HttpServletRequest request, HttpServletResponse response)
throws Exception
try
if (!strName.equals("") && strName != null)
out.println("Hello " + strName + "" + "<P>");
out.println("Hello World" + "<P>");
else
out.println("Hello World" + "<P>");
catch (Exception e)
out.println("Exception: Could not display message." + "<P>");
err.println (e.getMessage () ) ;
out.println("<P>");
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
try
response.setContentType("text/html");
out = response.getWriter();
err = response.getWriter();
strName = request.getParameter("Name").trim();
out.println("<html><head><title>");
out.println("</title></head><body>");
out.println("<FORM");
out.println("METHOD=POST");
out.println("ACTION=http://localhost:8080/HelloWorldExample/hello.jsp>");
out.println("<TABLE ALIGN='RIGHT'>");
out.println("<TR>");
out.println("<TD>");
out.println("<INPUT TYPE=\"SUBMIT\" VALUE=\"Hello World Page\";>");
out.println("</INPUT>");
out.println("</TD>");
out.println("</TR>");
out.println("</TABLE>");
out.println("</FORM>");
out.println("<BR CLEAR='all'>");
out.println("<P>");
displayMessage(request, response);
out.close();
out.println("</body></html>");
catch(Throwable e)
e.printStackTrace();
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
doPost(request, response);
web.xml
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>jservlets.HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/servlet/HelloWorld</url-pattern>
</servlet-mapping> ******************************
HelloWorld.java can be compiled by using javac.
Once compiled, HelloWorld.class would be moved to the jservlets folder.
FYI, coding the above url-pattern results in:
HTTP Status 404
The requested resource (/HelloWorldExample/servlet/jservlets.HelloWorld) is not available
The following url-pattern in the web.xml file permits the servlet to be executed but results in a null pointer exception:
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/ </url-pattern>
</servlet-mapping> **************************************************
RobinThis problem was resolved.
In hello.jsp
ACTION="servlet/jservlets.HelloWorld">
was replaced with
ACTION="servlet/HelloWorld">
Robin -
Java.lang.ClassCastException in JSP page
My JSP page:
<%@page contentType="text/html"%>
<HTML>
<HEAD>
<TITLE> JDBC Servlet/JSP Example </TITLE>
</HEAD>
<BODY>
<%@ page import="myBeans.memoryBean" %>
<%@ page import="java.util.Vector" %>
<H1> JDBC Servlet/JSP Example </H1>
<H2> <%= session.getValue("message") %>
</H2>
<UL>
<%
Vector vData = (Vector) session.getValue("res");
myBeans.memoryBean mb;
Object o;
for (Enumeration e = vData.elements() ; e.hasMoreElements() ;) {
o = e.nextElement();
mb = (myBeans.memoryBean) o;
%>
<LI> <%= o.getClass().getName() %>
<% } // end for
%>
</UL>
</BODY>
</HTML>Notice that I don't even use the object I cast but I still get the error message:
Exception:
java.lang.ClassCastException
at _memory._search._jspService(_search.java:66)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
at oracle.jsp.JspServlet.internalService(JspServlet.java)
at oracle.jsp.JspServlet.service(JspServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:534)When I comment out the line that castes my object my browser displays:
JDBC Servlet/JSP Example
Records Found:
* myBeans.memoryBean
* myBeans.memoryBean
* myBeans.memoryBean Notice that the three objects that are returned are exactly the type that I caste to.
Also, I did a getClass().getClassLoader() when I create the objects in my servlet code and again on the JSP pages for each object I pull out of the vector and the class loader matched.
I even changed the package on my bean class and recompiled everything to make sure it wasn't a old .class file floating around.
Could this have something to do with my classpath or where my classes are being placed? I found a similar problem here: http://forum.java.sun.com/thread.jsp?forum=33&thread=380437&start=0&range=15&hilite=false&q=
but the explanation of what was done wasn't clear
Anyone have any idea what's going on here?
I am using:
Oracle 9i
Oracle HTTP Server Powered by Apache/1.3.12 (Unix)
ApacheJServ/1.1
Thanks in advance.
- LinusIs ti at all possible that you have another jar / zip file with the same class file in it, seemingly away from the Server classpath ? In which case this could happen even though logically it shouldn't !!!
-
BEAN : Bean included in JSP Page
Hi ,
I had developed a web-application in that I had included a bean in a JSP code by using the following
<jsp:useBean id="testbean" scope="session" class="path.test" />
now the problem is some times when we click on that particular JSP page where this bean is included the screen instead of generating the jsp page it gives a complete path of the bean location as specified in the JSP ( i.e ) "path.test" .
When I click the refresh button then the page get's loaded properly.
This issue taken place rarely but it's very important to solve this and it happens in all the JSP pages wherever I had included a bean but only sometimes .
Why so??? and help me to solve this problem
Server: Apache � Tomcat 5.0
thanks in advanceYou are absolutely correct. All your java classes should be in packages.
I actually think its a java limitation introduced in Java 1.4 - they no longer allow access to the unnamed package.
For full details check out: http://developer.java.sun.com/developer/bugParade/bugs/4361575.html
My suggestion: include all your beans in packages. Its not that hard is it?
Cheers,
evnafets -
Display more than one BI bean graph on JSP page
Hi,
I want to show BI Beans graphs on a JSP page (just the Jdev 10.1.2 included components, not the OLAP backed ones) but I want to show a different graph for each row iterated in the JSP so I'll end up with up to 20 graphs on the screen.
Currently I can have it showing the 20 graphs quite happily, but they're all the same (that is, they all look the same but they have different IDs). I note from the way I understand this works that they're all being made off the currentRow of the viewobject. I want to somehow increment the current row for the data as the view iterator advances. I could break the model 2 separation and do it with java scriptlet in the JSP but this is my least favoured way. Is there some other way I can have all the graphs prepared from a struts action which does advance through the data and then goes on to show the jsp?
I'm guessing this is somewhat related to a master detail graph - except when I tried to run with one I got some nasty exceptions within the graph tag library. I'm not sure that's what I want anyway as I need to format the page as a report so I need each graph to be a separate image.
Any help appreciated
- NathanielWhat I'm after is a way to create the BI Beans graphs supplied with Jdev 10.1.2 ni a java class rather than a JSP. Is there a way to do this?
-
Using Java Objects in my JSP page... objects are in a different directory
Hi,
I would like to call and use an object from a JSP page. The java object is in one directory, the jsp is in another. When I call my object, I get a JSP error that says it can't find the object and lists the directory name as part of the file.
For example, here are my two files:
/java/MyObject.class
/web/page.jsp
When I make the call to new MyObject(), I get an error message saying _web.MyObject cannot be found. Any ideas on this?
Thanks!Okay, I figured it out. In case anyone else needs it, here is what I needed to do.
1) I created my object in a package. The JSP page was looking for the object in _dir directory because a package wasn't specified. I created a subdirectory in one of the directories in my classpath and named it the same thing that the package was named.
2) Import the package
3) Make sure all methods in the classes are public, since only public methods can be accessed from outside the package.
Thanks for the help, it got me going in the right direction.
Maybe you are looking for
-
Single Excise Invoice -multiple GR
Hi, We need to caputre the single excise invoice number in multiple gr.. how to map it?? My req. is my vendor will give the excise invocie after 2 weeks of receipt of goods. so in that case how to solve?? i have went the forum and the blw thread, i c
-
Help with Sleepwatcher display wake - 10.8.3?
Hello all, I have installed Sleepwatcher using Macports on my 10.8.3 computer, following this guide pulled from this post (https://discussions.apple.com/message/17966344#17966344): MacPorts is one of the most effective and simplest ways to install Te
-
CONFIGURE RETENTION POLICY TO REDUNDANCY 0
Our database is 11g R2, below is our RMAN script Presently our retention policy is 1, so 1 backup is retained along with the current backup. I Just want to have 1 backup, i.e RMAN should take the backup and delete the old bacup. Will it work if i cha
-
i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent, i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent
-
Hello, I'm using Aperture to organize my photos and have been shooting in RAW. I'd say that out of 100 pics, I might take advantage of the RAW format to edit 5 of them. I'm new to photography and during the learning process have taken a lot of pics o