JFileChooser support in JSP
Hi, just a quick question about using JFileChooser in JSP. Basically I'm totally new to JSP being a Swing developer, however I've been asked to scope and estimate a block of work where the frontend is going to be in JSP. Part of the functionality requires the usage of the file chooser, so what I was wondering is if the functionality and usage of JFileChooser would be the same in JSP as it would in Swing or different or not it at all?
Any comments welcomed :-)
Thanks
Damo
No, support for the JFileChooser from JSP... *
reasons:
1) JSP runs on the server, and is done before the user ever sees the page, so the JFileChooser could not be opened via a user action
2) The JVM being used is on the server, not the client machine. That means that the File being looked for would be on the Server, not the client machine.
3) The JVM being used is on the server, not the client machine. That means that the graphics environment that is being used is the server's graphics environment. the JFileChooser (or any swing component) would be drawn on the server's screen, not the client's. The server may not even have a screen, or a GUI.
*technically, you can create a JFileChooser, but the user would never see it, unless the user happened to be on the server machine.
Alternatives might be to use the Apache Commons FileUpload component with the HTML component <input type="file".../>. Or to make an Applet that does the job.
Similar Messages
-
Multilanguage support in jsp reports (web layout) and in jsp general
Hi!
We have to develop multilingual applications, so we decide to use Oracle TranslationHub for translate our reports. This is restricted to paper layout at the moment.
1.
Are there plans to support jsp reports layouts through TranslationHub?
2.
I have played around whith some reports jsp tags (rw:), but it seems that it cannot reference boilerplates. If I could read the value from a paper layout boilerplate this would be a temporary solution, as all of our actual jsp reports contains paper layout as well and this I can translate with Oracle TranslationHub.
3.
Do you know any standard implementation for multilanguage support for jsp like resource files? Any hint to ducumentation would be helpful.
With kind regards
TorstenCheck out this "pager" taglib:
http://jsptags.com/tags/navigation/pager/index.jsp
Also this one:
http://www.servletsuite.com/servlets/pagertag.htm -
Support for JSP's located in WEB-INF directory
Several application servers support the use of placing JSP pages underneath the WEB-INF directory, to insure that only server side workflow forwards requests to those pages and not direct URL access. IN addition the JSTL specification supports the use of
<c:import url="/WEBINF/published/campaign_Arts.jsp" />
Does OC4J 9.0.3 support this syntax? I cannot get it to work. Is there an application configuration file I need to update to support this?
Thanksthank you for your reply...
but...
My problem is that i want to serve jsp pages that include various other jsp pages.
But i don't want those other pages to be served directly. The approach of putting
the jsp files in the WEB-INF, or in a sub directory of it, worked fine on Tomcat.
The way i look at it is that the server has direct access to them when putting
togetter the main jsp, but they can't be accessed from the outside. But this seems
not to be the case.
Any ideas?
"ilya Devers" <[email protected]> wrote:
>The WEB-INF is not perceived as a directory to the engine. Resources
>in it
>are not exposed and should not. It can hold sensitive resources such
>as
>application deployment descriptors that can contain database log in
>information to name something. The engine should never serve resources
>located here.
>
>This directory should only contain the normal directories: lib and classes,
>and the web.xml files (and weblogic.xml).
>
>Hope this helps.
>
>ilya
>
-
Dear all friends,
now I am using Sun Java Web server for serving my JSP's but I have heared that Oracle 8i support JSP .Could you please inform me that whether Oracle 8.1.5. has webserver itself and if it does ,does it support JSP.
any suggestion would be appreciated
AmiraliOracle 8.1.7 (due this summer)will indeed have a web server in the database for running servlets and JSPs. Oracle 8.1.5 and 8.1.6 do not have this.
- Servlet Team -
Support for jsp:include page tag
Is there a support for the jsp:include page tag ?
I get an exception when trying to include jsp's
ThanksHi
I use a page with a one column template
I print a JSP that include another JSP using <jsp:include page="my_shopping_cart.jsp"
flush="true"/>
i get this exception :
java.lang.IllegalStateException: Can not set buffer size after writing data. at
com.bea.portlet.container.HttpServletResponseImpl.setBufferSize(HttpServletResponseImpl.java:179)
at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:66) at
weblogic.servlet.jsp.PageContextImpl.(PageContextImpl.java:105) at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:37)
at jsp_servlet._portlets._oci.__my_shopping_cart._jspService(my_shopping_cart.jsp)
at com.bea.portlet.jsp.PortletJspBase.service(PortletJspBase.java:110) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:101)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:597)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:409)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:155) at jsp_servlet._portlets._oci.__oci._jspService(oci.jsp:209)
at com.bea.portlet.jsp.PortletJspBase.service(PortletJspBase.java:110) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:101)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:597)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:409)
at com.bea.portlet.container.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:98)
at com.cgi.poc.jsr168.MyAccountsPortlet.doView(MyAccountsPortlet.java:107) at
javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:208) at javax.portlet.GenericPortlet.render(GenericPortlet.java:137)
at com.bea.portlet.container.PortletStub.render(PortletStub.java:370) at com.bea.portlet.container.AppContainer.renderStub(AppContainer.java:501)
at com.bea.portlet.container.AppContainer.invokeRender(AppContainer.java:436)
at com.bea.portlet.server.PortletHttpServer.invoke(PortletHttpServer.java:218)
at com.bea.portlet.server.PortletHttpServer.process(PortletHttpServer.java:162)
at com.bea.portlet.server.PortletHttpServer.doGet(PortletHttpServer.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:101)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:597)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:409)
at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireRender(JavaPortletContent.java:246)
at com.bea.netuix.servlets.controls.content.JavaPortletContent.renderInternal(JavaPortletContent.java:146)
at com.bea.netuix.servlets.controls.content.JavaPortletContent.beginRender(JavaPortletContent.java:108)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:424) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:427)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:172) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:380) at com.bea.netuix.nf.UIControl.render(UIControl.java:580)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:341)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
at jsp_servlet._framework._skeletons._bellca.__gridlayout._jspService(gridlayout.jsp:29)
at com.bea.portlet.jsp.PortletJspBase.service(PortletJspBase.java:110) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:101)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:597)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:409)
at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:187)
at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:90)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:420) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:427)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:172) at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:220)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:158) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:363)
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:207) at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:584)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Subbu Allamaraju <[email protected]> wrote:
Could you please post more details of the exceptions?
Thanks
Subbu
Carl Samson said the following on 12/09/2003 01:15 PM:
Is there a support for the jsp:include page tag ?
I get an exception when trying to include jsp's
Thanks -
WebLogic 8.1 support for JSP includes using XML formatting
Hi,
I have a web application I'm trying to deploy to WebLogic 8.1 which uses JSP includes.
My JSP page starts with :
< ?xml version="1.0"?>
At runtime, I get this exception:
java.io.IOException: javax.servlet.jsp.JspException: The taglib validator rejected the page:
"org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed., "
Are XML formatted JSP includes supported ?
Thank you
JohnI got a similar exception which was:
java.io.IOException: javax.servlet.jsp.JspException: The taglib validator rejected the page: "org.xml.sax.SAXParseException: Attribute "xmlns:html" was already specified for element "jsp:root"., "
This is how I fixed it:
The taglib for the html was declared twice. Once in the main.jsp and once in taglibs.jsp. The taglibs.jsp was included in main.jsp (The jsp which was throwing exception)
Hope this works for your case.
Thanks
-AKJ -
Hello,
I am working on an MVC model where the user submits a form where the text is in greek, passes it to a bean and that is being read by a jsp page. Even though in the eclipse console the greek characters are apperaing in the jsp page where I am using this syntax
<jsp:getProperty name="upBean" property = "articleTitle" />
the text appears in question marks. Even though I have set the character encoding to greek
<%@ page contentType="text/html; charset=iso-8859-7" language="java" import="java.sql.*" errorPage="" %>
and even though I have set both request and response to
req.setCharacterEncoding("UTF-8");
res.setCharacterEncoding("UTF-8");
Any idea why is this happening and how to fix it would be more than appreciated
Thank youpublic void doPost (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
req.setCharacterEncoding("charset=iso-8859-7");
this is how I did it but it gives me a
java.io.UnsupportedEncodingException: charset=iso-8859-7
and if I use utf-8 the whole page gets messed up including tha static content
any ideas?
Thanks for your interest -
how do i implement MIME types in jsp page downloads? i could do it in php using stream and content type.. any help?
Hi
Right know we are also facing this problem i guess.
How do you make 8.1 Standard Edition aware of mime for jnlp so that webstart can be used ??
Jan -
Does apex support any server side JSP or PHP?
I have the folowing script that is used to save flash files as images. I am hoping there is some way to make these serverside calls from within apex.
<%@ page import="java.io.OutputStream"%>
<%@ page import="java.awt.Color"%>
<%@ page import="java.awt.Graphics"%>
<%@ page import="java.awt.image.BufferedImage"%>
<%@ page import="javax.imageio.ImageIO"%>
<%
//Decoded data from charts.
String data="";
//Rows of color values.
String[] rows;
//Width and height of chart.
int width=0;
int height=0;
//Default background color of the chart
String bgcolor="";
Color bgColor;
//Get the width and height from form
try{
width = Integer.parseInt(request.getParameter("width"));
height = Integer.parseInt(request.getParameter("height"));
catch(Exception e){
//If the width and height have not been given, we cannot create the image.
out.print("Image width/height not provided.");
out.close();
if(width==0 || height==0){
//If the width and height are less than 1, we cannot create the image.
out.print("Image width/height not provided.");
out.close();
//Get background color from request and set default
bgcolor =request.getParameter("bgcolor");
if (bgcolor==null || bgcolor=="" || bgcolor==null){
bgcolor = "FFFFFF";
//Convert background color to color object
bgColor = new Color(Integer.parseInt(bgcolor,16));
//Get image data from request
data = request.getParameter("data");
if(data==null){
//If image data not provided.
out.print("Image Data not supplied.");
out.close();
try{
//Parse data
rows = new String[height+1];
rows = data.split(";");
//Bitmap to store the chart.
//Reference to graphics object - gr
BufferedImage chart = new BufferedImage(width,height,BufferedImage.TYPE_3BYTE_BGR);
Graphics gr = chart.createGraphics();
gr.setColor(bgColor);
gr.fillRect(0,0,width,height);
String c;
int r;
int ri = 0;
for (int i=0; i<rows.length; i++){
//Split individual pixels.
String[] pixels = rows.split(",");
//Set horizontal row index to 0
ri = 0;
for (int j=0; j<pixels.length; j++){
//Now, if it's not empty, we process it
//Split the color and repeat factor
String[] clrs = pixels[j].split("_");
//Reference to color
c = clrs[0];
r = Integer.parseInt(clrs[1]);
//If color is not empty (i.e. not background pixel)
if (c!=null && c.length()>0 && c!=""){
if (c.length()<6){
//If the hexadecimal code is less than 6 characters, pad with 0
StringBuffer str = new StringBuffer(c);
int strLength = str.length();
for ( int p = c.length()+1; p <= 6 ; p ++ ) {
str.insert( 0, "0" );
//Assing the new padded string
c = str.toString();
for (int k=1; k<=r; k++){
//Draw each pixel
gr.setColor(new Color(Integer.parseInt(c,16)));
gr.fillRect(ri, i,1,1);
//Increment horizontal row count
ri++;
}else{
//Just increment horizontal index
ri = ri + r;
//Returns the image
response.setContentType("image/jpeg");
response.addHeader("Content-Disposition", "attachment; filename=\"FusionCharts.jpg\"");
OutputStream os = response.getOutputStream();
ImageIO.write(chart, "jpeg", os);
os.close();
}catch(Exception e){
//IF the image data is mal-formatted.
out.print("Image data is not in proper format.");
out.close();
%>NO, APEX does NOT support running jsp or PHP scripts..
Thank you,
Tony Miller
Webster, TX -
JSP 2.0 support in JDeveloper?
Hi,
Does JDeveloper 10g support the JSP 2.0 spec.? If no, why are there JSP 2.0 tutorials here,
http://otn.oracle.com/sample_code/tech/java/codesnippet/jsps/simpletag/how-to-simpletaghandler.html#run
that are deployed to the OC4J server? Is the embedded OC4J server of JDeveloper substantially different to the production OC4J? Can anybody help please?JDeveloper 10g (9.0.5) supports J2EE 1.3 - so no JSP 2.0 support yet.
OC4J has a preview version with J2EE 1.4 support. It's still not production though.
Check it out at:
http://otn.oracle.com/tech/java/oc4j/index.html -
Does the Personal Web Server 4.0 support code jsp?
if the answer is no, then what browser does support it?
Please tell me, as soon as possiblePWS 4.0 is a web server, not a browser. All browsers support jsp since the web server will run the jsp page and generate html for the browser to view. You can look at a product called JRun to see if it provides an ISAPI extension for running servlets & JSP pages. If it supports this, you can JSP pages on PWS.
-
Java API's supported in the Jdeveloper, IAS, and RDBMS product components
If there are any technical errors or "mistatement of the facts" in this posting, please let me know about them ..
This article is being delivered in Draft form and may contain
errors. Please use the MetaLink "Feedback" button to advise
Oracle of any issues related to this article.
PURPOSE
This article describes the "Enterprise Java Beans" (EJB), "Java Server Pages"
(JSP) and servlets Application Programming Interfaces (API) supported by the
Oracle products, Jdeveloper, Internet Application Server (IAS) and the Oracle
RDBMS release 2 and release 3, also known as Version 8.1.6 and 8.1.7,
respectively.
SCOPE & APPLICATION
All parties interested in the Java API's supported by these products.
Java API's supported in the Jdeveloper, IAS, and RDBMS product components
JDEVELOPER
JDEVELOPER is Oracle's Java development tool designed for coding / development,
testing / debugging, and deployment of Java Applications to the IAS and
RDBMS platforms.
With the java software api's being in a constant state of evolution, each new
release of Jdeveloper adds support for the "then current" version of the java
software api's, if it does not already have it implemented.
JDEVELOPER SERVLET API JSP API EJB API
VERSION VERSION VERSION VERSION
3.2.X.X 2.2 1.1 1.1
3.1.X.X 2.1 1.0 1.0
NOTE :
Sun Microsystems and their advisory teams (Oracle is on it) is working on
"draft" specifications for the next version of all of these API's
EJB -------> http://java.sun.com/products/ejb/index.html
JSP -------> http://java.sun.com/products/jsp/index.html
Servlets --> http://java.sun.com/products/servlet/?frontpage-javaplatform
It is anticipated that future releases of Jdeveloper will continue to be
upgraded to include support for the next version of each api.
To obtain the latest information on Oracle's Internet Development Suite (IDS)
of tools, please review the "Internet Developer Suite" information located
on Oracle's technet web site at :
http://technet.oracle.com/products/index.htm
IAS
IAS is Oracle's next evolution of the web server and application server
product technology superceeding the Web Application Server (WAS) and Oracle
Application Server (OAS) product lines.
IAS SERVLET API JSP API EJB API EJE VERSION
VERSION VERSION VERSION VERSION SUPPORTED
9I(1.0.2) 2.2 1.1 1.1 817
8i(1.0.1-NT) 2.0 1.0 1.0 816
8i(1.0.0-UNIX) 2.0 1.0 1.0 816
The IAS product contains two Java Virtual Machines (JVM) within it's
architecture.
They are called :
1) APACHE JSERV servlet engine
2) ORACLE ENTERPRISE JAVA ENGINE (EJE)
APACHE JSERV servlet engine
The APACHE JSERV servlet engine is an EXISTING product licensed from the
apache group which supports the servlet api 2.0.ONLY.
The APACHE JSERV product does not support ANY JSP's unless the customer
installs a third party jsp engine.
The IAS 8i/9i which has the APACHE JSERV product embedded in it, comes with
Oracle's JSP engine (OJSP) already integrated into it. OJSP supports JSP's up
to the specific JSP engine version documented in the Oracle Universal
Installer (OUI) for the 8.1.7 RDBMS or the IAS products. It is also documented
in the product's release notes.
Oracle ENTERPRISE JAVA ENGINE (EJE)
The EJE formerly known as :
1) Oracle 8i Java Virtual Machine (JVM)
2) JSERVER component,
3) Aurora JVM
was originally releas ed in the RDBMS 8.1.5 database with jdk 1.1.6 based java
support.
The currently supported versions of the Oracle 8i RDBMS, versions 2 and 3,
also known as Version 8.1.6 and 8.1.7, respectively, provides a jdk 1.2.1
based java virtual machine support.
"EJE" Version 816
This EJE, found in rdbms 8.1.6 and IAS 8i, contains support for the ejb
api 1.0, corba, and java stored procedures.
"EJE" Version 817
This EJE, found in rdbms 8.1.7 and IAS 9i, contains support for the ejb,
corba, and java stored procedures as well as the Oracle Servlet Engine (OSE)
which provides support for the servlets 2.2 api and JSP 1.1 api.
Note :
EJB support in the "EJE" Version 817 has been upgraded to comply with the EJB
1.1 api specification which includes "entity beans" support.
What is the bottom line ??
1) Servlets deployed to the APACHE JSERV must comply with servlet api 2.0.
2) Servlets 2.1 or higher are only supported in EJE's OSE component found in
the rdbms 817 or ias 9i products. Servlets api 2.0 can also run in the OSE.
References
1) "Oracle9i Application Server Technical White Paper" located at :
http://technet.oracle.com/products/ias/pdf/9ias_102.pdf
2) "Whats New? Oracle8i JVM Accelerator, Oracle Servlet Engine, OracleJSP ..."
located at :
http://technet.oracle.com/products/oracle8i/pdf/504.pdf
3) "Oracle8i Release 3 New Features Summary" located at :
http://technet.oracle.com/products/oracle8i/pdf/8iR3_nfs.pdf
nullwhich jvm is used by jserv ?? EJE or a separate jdk ?
The Jserv servlet engine is running in a separate jdk JVM external to the EJE jvm which is embedded within the "database" component of ias and the RDBMS.
See the reference below for more details ...
if jserv only support old apis, why it is in oracle's products ?
i would assume that the oracle servlet engine was under development when ias 8i was released and became available in time for the ias 9i and rdbms 817 products.
looking back in history leads me to believe ias 8i was a migration path to get to ias 9i or rdbms 817.
Based upon the long history of new releases of every oracle product being upgraded with new features, it's reasonable to assume that these products will continue to evolve.
when I deploy a jsp how to deploy in the right servlet container ("EJE") ?
as documented in the reference below, you can deploy JSP's to either the apache jserv jvm or the EJE since the ORACLE JSP engine functionality is in both jvm's.
there are many posts where you can see that people have deploy in jserv and they have problems because they don't use the right container (servlet 2.0 instead of
servlet 2.2) http://technet.oracle.com:89/ubb/Forum2/HTML/006349.html
when ias 8i came out this was clearly an issue since servlet support was at api 2.0, and the current servlet api was probably at 2.1.
oracle clearly made every effort to get ias 9i released quickly to supply a servlet 2.1 and 2.2 capable engine to resolve this issue.
since ias 9i and rdbms 8.1.7 are available this is no longer an issue.
The reference below explains the architecture and understanding it would eliminate a lot of "deploy to the wrong ias 9i component" issues.
so why jserv is bundled with oracle 8i/9ias since EJE support the right api version ?
if in ias 9i release , oracle had removed the jserv component without any advance warning, many customers would have been very upset since oracle makes every attempt to give advance notice before removal of functionality.
References
1) "Oracle9i Application Server Technical White Paper" located at :
http://technet.oracle.com/products/ias/pdf/9ias_102.pdf -
How to print break line in jsp.
in jsp where a bean.getProperty() value has a broken line. but it displays as a single line in the web page. when printing the line by System.out.println() statement, it displays as a verious new line where '\0' is applied but in jspbean.getProperty it does not.
For example :
It displays by SOP()statement as
Successful
No error
No restarts
No marked completed
but in web page it displays as
Successful No error No restarts No marked completed.
please provide the code that support in jsp file so that the output statement should like as SOP()statement output type.
Thanks in advance.
UttamI guess you want to display CRLF (\r\n) in JSP?
Line breaks in HTML are generally represented as < br >.
You have 3 options:
1) replace CRLF by < br >.
2) style the line using CSS with 'white-space' set to 'pre'.
3) surround the line with the HTML < pre > tag. -
How can I run a report in a jsp page?
I've made reports using Reports 9i and i want execute these reports from a jsp page.
When i run a report in a jsp page the following error :
Any Advice?
========================
Internal Servlet Error:
javax.servlet.ServletException: oracle/reports/RWException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoClassDefFoundError: oracle/reports/RWException
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getDeclaredMethods(Class.java:1039)
at java.beans.Introspector$1.run(Introspector.java:852)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
at java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
at java.beans.Introspector.getBeanInfo(Introspector.java:294)
at java.beans.Introspector.(Introspector.java:271)
at java.beans.Introspector.getBeanInfo(Introspector.java:81)
at org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:104)
at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:136)
at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:759)
at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:138)
at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:909)
at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:194)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:825)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)Hi Raul
A better option would be to switch to Reports 9i because it natively supports Reports JSP tags. Your JSP then becomes seamless. And much more...
With 6i, you can look at using Reports Servlet.
Regards
Sripathy -
Apple says my epson perfection 1240u scanner is no longer supported with 10.7.
Is there an alternative way to get it to work?Download updates from the manufacturers pages:
http://www.epson.com/cgi-bin/Store/support/supDetail.jsp?oid=14549&BV_UseBVCooki e=yes&infoType=Downloads&platform=OSF_M_…
Maybe you are looking for
-
Automatic serial number&equipment creation in goods receipt
Dear gurus, We use to automatic serial number&equipment creation in goods receipt. While serial number master datas and equipment master datas were creating in goods receipt, how can we fill some fields for serial number and equipment master datas? (
-
Hi All! I'm an absolute beginner in making programs to SBO. I wrote any little trial program in VB6 (and Delphi5), but I have a problem the events handling (of course...). By the samples I use the code as below: Private Sub SBO_Application_ItemEvent(
-
Creating BP in multiple sales areas
Hi Friends, In SD we can extend a customer master to multiple sales areas. But in CRM once I create a BP with sold to party role, I am able enter only one sales area. And if I change it, the previous sales area is gone. How to do this. regards
-
CSM ip address is blocked by the FWSM
Hello, I have csm 3.3.1 sp3 and fwsm 4.0(4), to monitor the fwsm i am using the device manager from the csm. The problem is that when asdm opens from csm it works for few seconds and csm losses connection to the fwsm. I checked the logs on the fwsm a
-
Something went wrong om monday april 18th. After an update of i-tunes the foto's I took on my Iphone were gone as well as the video's and sms messages. Also Safari is gone. What to do? I tried to restore a backup; did not help......