Terrmap.jsp is not working (mapviewer 10.1.3)
Hi I cannot seem to get the terrmap demo to work. All I get is this error:
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
Which tells me absolutely nothing.
I created a datasource like this:
<data-source class="com.evermind.sql.DriverManagerDataSource" name="MVDemoDS"
location="jdbc/OracleCoreDS"
xa-location="jdbc/xa/OracleXADS"
ejb-location="jdbc/MVDemoDS"
connection-driver="oracle.jdbc.driver.OracleDriver" username="mvdemo" password="mvdemo"
url="jdbc:oracle:thin:@localhost:1521:orcl"
inactivity-timeout="30"
/>
and restarted the oc4j
What am I doing wrong?
Hi Wendy,
It seems you are creating data source in Oracle Application Server configuration file. But, data source for Oracle MapViewer should be declared in Oracle MapViewer configuration file.
Oracle MapViewer configuration file, mapViewerConfig.xml is located in the $ORACLE_HOME/lbs/mapviewer/web/WEB-INF/conf. You should modify permanent map data source, defined in the <map_data_source>. Sample map data source declaration:
<map_data_source name="mvdemo"
jdbc_host="elocation.us.oracle.com"
jdbc_sid="orcl"
dbc_port="1521"
dbc_user="scott"
jdbc_password="!tiger"
jdbc_mode="thin"
number_of_mappers="3"
/>Also, map data sources can be managed through web based Oracle MapViewer manager.
Regards,
Andrejus
Similar Messages
-
OC4J JSP Debugging not working for all the jsps
Hi,
Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes:
1) global-web-application.xml is modified
Changed the attribute development="true" in orion-web-app
Added the below init param for the JspServlet
<init-param>
<param-name>debug</param-name>
<param-value>class</param-value>
</init-param>
If the jsps are present in a sub directory under the webcontent none of the breakpoints are working. I am still be able to view the jsp pages on the browser.
Tools: Oracle 10g Application Server Standalone version(10.1.3.5.0), JDK5, Windows XP, Eclipse Indigo
Project Structure:
Test (Eclipse Dynamic Web Project)
-WebContent
Sample.jsp ( Breakpoints are working)
-subF (Folder)
SubSample.jsp (Breakpoints are not working)
-WEB-INF
web.xml
Debugging worked for http://localhost:8888/Test/Sample.jsp
Debugging not working for http://localhost:8888/Test/subF/SubSample.jsp
Any help is highly appreciated.
Regards
DannyThis tells there is not enough main memory (not disk space) for the program to run.
- You can look the dump in ST22, it will have suggestions on increasing the ROLLAREA??, you can forward that to Basis.
- Most likely you will not have any more memory to assign so the above may not be feasible. Try to rework your query so it works with less data. -
Response.sendRedirect("abc.jsp") is not working
Hello,
I deployed my web application(jsp with business components) on AS 902.
Web cache is running on port 80.
Apache is running on 7778.
To pass request i use,
mod_proxy.c in http.conf. and
<virtual host> for my application, to get required url.
It is running fine, But response.sendRedirect("abc.jsp") is not working properly. It redirects the request to apache directly and skips web-cache. Also it changes url for the page given in method.
While the same application was running ok on v 10222a. That version handle this method properly.
how to remove this error ???
Plz hurry up. Our product is ready for launching on 9iAS. It is final testing.
Thnx.Tahir,
What is the exact error message you are hitting.
Are you able to use web-cache with other examples.
Can you try testing it the the webcache demos that are part of ojspdemos.ear under /j2ee/home/demo.
-Prasad -
Jsp:useBean not work when I install aplication!!
Hi
I developing an application with UIX JSP on Jdeveloper 9.0.2 and i using something like this:
<jsp:useBean id="cbean" class="oracle.jsp.dbutil.ConnBean" scope="session" />
<jsp:setProperty name="cbean" property="dataSource" value="jdbc/BiblosConnectionCoreDS" />
</jsp:useBean>
<%
try{
cbean.connect();
This code work fine in standalone mode, but when i install this application on 9IAS, with an archive War, the code <jsp:useBean, not work.
What is missing for? o What is the reason for this situation
Thanks for some help?many thanks for your reply, and I have download new updates driver from your website (http://consumersupport.lenovo.com/en/DriversDownloads/drivers_show_890.html) and Installer it on my Y410 but it still does not work!!!
the firstly: when I star up with win7, I can see a speaker icon right down near the clock, when I click mouse on it, I can see: Volume Mixer - Speaker with Device(Speaker Hight definition Audio Device, Digital Audio(S/PDIF) ( Hight definition Audio Device) ).
Look in devicemanger I can see "Sound , video and game controll " has already installer with 'Hight definition Audio Device ' & 'Unimodem Hafl-Duplex Audio Device' below... but I cannot hear the sound when I play music, video, games...etc...
the second: when laptop wakeup after 'sleep' mode, I can hear sound on speaker! but headphone jack does not work when I plug my headphone jack into it (I cannot hear sound with headphone), however I still hear sound from speaker, in this case!
Can you help me or tell me how I can do ?!
Thanks and Best Regards,
jupitervn -
JSP-Editor not working properly
Hi everybody,
I am working with ISA5.0 and NWDI. I have checked out the Web-Module Project crm/isa/web/b2b.
Now I would like to modify JSP-Files. Unfortonately the JSP-Editor is not working properly.
The JSP-Editor cannot resolve references to Tag-Libraries like
<%@ taglib uri="/isa" prefix="isa" %>
Furthermore I get Errors with JSP-Includes
<%@ include file="checksession.inc" %>
The JSP-Editor does not show any other compile errors until the above mentioned errors are resolved.
So the JSP-Editor does not help with compile errors.
I have tried to use Lomboz instead, but due to the modularization in ISA5.0 and NWDI (ie the Taglibraries are defined in a separate module) I did not get it to work either.
Does anybody have experience on how to get the JSP editor to work properly?
Thanks for your help,
AndreasHighlite the clip in the timeline, control click on it and choose "send to soundtrack as an audio file project" in the pop up menu. Don't do an "open with editor". This should work.
If it doesn't and it's just the one clip, you could launch Soundtrack and then open that clip as an audio project . . . don't do a open with editor, just open it directly. Make your adjustment and save over writing the file with the new audio. You may want to copy the clip first as a backup. When you open your FCP project, you'll have to re-link the clip. Once you do it will show up with the new sound. -
Bean in JSP is NOT WORKING. Please help
Hi,
Anyone who got java-beans working with WL JSP? I could not get even the
hello bean to work. I am getting a error message saying somthing like
"foo.bar.HelloBean.class is not a bean" .
Is there any perticular reason for the abuse of not including java bean
example in JSP examples?
I will greatly appreciate any help in this direction.
Thank you in advance
-Harit
If I had to guess based on the error message I would say you have incorrectly
defined the class file.
Remove the .class from the definition within the JSP.
For instance,
<jsp:useBean
id="myHelloBean"
scope="session"
class="foo.bar.HelloBean">
</jsp:useBean>
Not class="foo.bar.HelloBean.class"
Hope this helps.
Harit Nanavati wrote:
> Hi,
> Anyone who got java-beans working with WL JSP? I could not get even the
> hello bean to work. I am getting a error message saying somthing like
> "foo.bar.HelloBean.class is not a bean" .
> Is there any perticular reason for the abuse of not including java bean
> example in JSP examples?
> I will greatly appreciate any help in this direction.
> Thank you in advance
> -Harit
-
JSP/Servlets not working after upload
I have a JSP file and some servlets that work fine on my PC running Tomcat.
I just uploaded them to my web server (which supports servlets/jsp and has apache web server running), but they do not work. The jsp file does not run, it just displays the source code.
Strangely, the support people at my server say the jsp files run ok when they view them. But when I view them from my browser it just shows source code.
Do I need to configure something in my program? Or is it a server problem?Very hard to help without seeing the page - the answer is in the code :-)
Can you please point a link to your page?
Are you sure you uploaded all the image files, and that the paths to the images are all correct?
Nadia
Adobe® Community Expert : Dreamweaver
http://www.perrelink.com.au
Unique CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
http://csstemplates.com.au/
http://twitter.com/nadiap -
Sites with .jsp extention not working completely
websites having extension .jsp are not showing propperly
Normally, when a webserver uses JSP, they instruct Firefox that the content type of the page is text/html, so Firefox doesn't treat those .jsp pages differently from other server technologies.
Could you provide a link to a page that is not showing properly and describe how it differs from what you expect?
More generally:
When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
(1) Bypass Firefox's Cache
Use Ctrl+Shift+r to reload the page fresh from the server.
Alternately, you also can clear Firefox's cache completely using:
"3-bar" menu button (or Tools menu) > Options > Advanced
On the Network mini-tab > Cached Web Content : "Clear Now"
If you have a large hard drive, this might take a few minutes.
(2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
* right-click and choose View Page Info > Security > "View Cookies"
* (menu bar) Tools > Page Info > Security > "View Cookies"
* click the padlock or globe icon in the address bar > More Information > "View Cookies"
In the dialog that opens, you can remove the site's cookies individually.
Then try reloading the page. Does that help? -
ASK:Mapviewer JSP demo not work in HTML DB
Hi all, First I apologize if my thread is an old topic, but I need to know it...
When I'm trying create a URL region...and I give an url like this...http://localhost:8888/mapviewer/demo/mapnavi.jsp?¢erx=106.88¢ery=-6.94 and soon... I get the result like I need for the first time, but when I'm trying to submit some change (i.e. turn off one layer from base_map or zoom in the map) I get the error message from HTTP server like internal error or something (sory I forget to capture the error message)...
How can I embed jsp page into HTML DB region without problem?
Thanks for help!Hi Adhi,
explaining the MapViewer API here would be a little bit too much... But there is a good documentation available under
http://www.oracle.com/technology/products/mapviewer/mapviewer_doc_index.html
I also think, questions regarding MapViewer itself are better placed in
Spatial
Reagard
Stephan -
Jsp sriplets not working in properly in ojsp
Hi every one i have this ADF application develped in jdevelper 11.1.1.0.2 and deployed in to weblogic server version 10.3.0 and it worked fine.plese note i have used
ADF for the presentaion layer.We had to migrate in to weblogic server version 10.3.2.for this i used jdevelper version 11.1.1.2.0 and open the project from this and i click yes for the migration.
then i have deployed the new war file in to the new server.but the thing is it doesnt work the expected way.for my knowldge the issue is something to do with ojsp.when it tries to read jsp scriplets in the jsp page it throws an error.it is as followes
**JspServlet error: Servlet unable to dispatch to the following requested page: The following exception occurred:oracle.jsp.parse.JavaCodeException: Line # 13, oracle.jsp.parse.JspParseTagScriptlet@3f673160***
**Error: Java code in jsp source files is not allowed in ojsp.next mode.>**
any solution to this.????can i disable the ojsp compiler and go to normal jsp compliser?if so how to do it?
thanks in advance every one :)
UmeshExtracted from Note 1067696.1:
You need to either adapt your code to remove the scriptlets in your JSP page,
or you can use the following Java option to disable OJSP:
-Dadfvdt.disableOjspDeployment=true
You can add this option -Dadfvdt.disableOjspDeployment=true in your file "ide.conf" in the directory "<Middleware_Home>\jdeveloper\ide\bin"
For your Production environment, you can have your Managed WLS ignoring the OJSP mode by adding the Java Option -Dadfvdt.disableOjspDeployment=true
* in the "startManagedWebLogic" (if you want to limit it to a specific Managed Server)
* or "setDomainEnv" (for all managed servers in a domain). -
hello
we have some class files that are in a zip file that the nw admin has included in the CLASSPATH.
The code works on Windows w/Tomcat but not the remote Sun Web Server, we cannot get the connection to database due to the code not reading the class files.
Has anyone come up against anything of this nature. Any thoughts are appreciated.yeah we're not getting the str replace error any more - heres index.jsp
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="admin/include/db.jsp" %>
<html>
<head>
<title>Toshiba Industrial Systems</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="common/css/master.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="Javascript" src="common/js/master.js"></script>
<script>
var strBCLink1 = "placeholder.html";
var strBCLink2 = "index_oc.jsp";
var strBCLink3 = "prod_100.jsp";
var strBCText1 = "Industrial Systems";
var strBCText2 = "Uninterruptible Power Systems";
var strBCText3 = "1000 Series";
</script>
<script language="JavaScript" type="text/JavaScript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
//-->
</script>
<style type="text/css">
</style>
</head>
<body>
<table height="100%" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="87">
<%@ include file="_header.jsp" %>
</td>
</tr>
<tr>
<td align="left" class="backGlobalNav" valign="top" height="21" >
<%@ include file="_nav_global.jsp" %>
</td>
</tr>
<tr>
<td align="left" valign="top" height="23">
<%@ include file="_breadcrumb.jsp" %>
</td>
</tr>
<tr>
<td align="left" valign="top">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="160">
<%@ include file="_nav_side_ups.jsp" %>
</td>
<td width="8" align="center" valign="middle"><img src="common/images/spacer.gif" alt="" width="1" height="1"></td>
<td width="605" align="left" valign="top">
<TABLE cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<tr><td height="5"></td></tr>
<%
if(((request.getParameter("id3")==null))){
%>
<TR>
<TD width=605 align="left" valign="top">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="605" height="250">
<param name="movie" value="admin/index_images/index.swf">
<param name="quality" value="high">
<embed src="admin/index_images/index.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="605" height="250"></embed></object>
</TD>
</TR>
<%}
else{
str1="";
Statement smt4l = conn.createStatement();
str1 ="select * from tbl_item where int_parent_id=" + request.getParameter("id3");
ResultSet rs_4l=smt4l.executeQuery(str1);
%>
<TR>
<TD width=605 align="left" height="250" valign="middle" bgcolor="#F0F0F0">
<table border="0" width="100%">
<%while (rs_4l.next()){ %>
<tr>
<td>
<a href="./<%=rs_4l.getString(str_link")%">?id1=<%=request.getParameter("id1")%>&id2=<%=request.getParameter("id2")%>&id3=<%=request.getParameter("id3")%>&id4=<%=rs_4l.getInt("int_item_id")%>" class="nav2ndOff">
<%=rs_4l.getString("str_title")%>
</a>
</td>
</tr>
<%}%>
</table>
</TD>
</TR>
<%
}%>
<TR>
<TD vAlign=top align=left></TD>
</TR>
<TR>
<TD vAlign=top align=left height=5><IMG height=1
alt=""
src="Hard Drives & Optical Drives_files/spacer.gif"
width=1></TD>
</TR>
<TR>
<TD vAlign=top align=left> <TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top align=left> <TABLE cellSpacing=0 cellPadding=0 width=605
border=0>
<TBODY>
<TR>
<TD class=backGrayMed height=17 align="left" valign="middle"><SPAN
class=contentBoxOC> Featured Products</SPAN> </TD>
<TD class=backWhite width=1><IMG height=1 alt=""
src="Hard Drives & Optical Drives_files/spacer.gif"
width=1></TD>
<TD class=backGrayMed align="left" valign="middle"><SPAN
class=contentBoxOC> News</SPAN></TD>
</TR>
<TR>
<TD vAlign=top align=left width=399><IMG
height=1 alt=""
src="Hard Drives & Optical Drives_files/spacer.gif"
width=1></TD>
<TD class=backGrayLight vAlign=top align=left
width=1 rowSpan=2><IMG height=1 alt=""
src="Hard Drives & Optical Drives_files/spacer.gif"
width=1></TD>
<TD vAlign=top align=left width=200 height=10>
<!-- LiveEdit marker DO NOT REMOVE -->
<IMG
height=1 alt=""
src="Hard Drives & Optical Drives_files/spacer.gif"
width=1></TD>
</TR>
<TR>
<TD vAlign=top align=left><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="237" align="left" valign="top">
<table width="405" border="0" cellspacing="0" cellpadding="0">
<!---->
<!---->
<%
Statement smt_featured = conn.createStatement() ;
ResultSet rs_featured=smt_featured.executeQuery("select * from tbl_item where int_parent_id= 0 and bit_featured=1");
%>
<tr>
<%
int i=0;
while(rs_featured.next()){
i++;
Statement smt_featured1 = conn.createStatement() ;
ResultSet rs_featured1=smt_featured1.executeQuery("select * from tbl_item where int_item_id= "+rs_featured.getInt("int_item_id"));
rs_featured1.next();
%>
<td width="1"></td>
<td width="190" height="190" align="left" valign="top" style="cursor:hand">
<table width="100%" height="190" border="0" background="common/images/featured/back_box.gif" cellpadding="0" cellspacing="0">
<a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>">
<tr>
<td height="18" colspan="2" align="left" valign="bottom" class="headerMainProdFeature">
<a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>" class="headerMainProdFeature" >
<%
if((rs_featured.getString("str_title").length() )>20){
out.print(rs_featured.getString("str_title").substring(0,20));
else{
out.print(rs_featured.getString("str_title"));
%>
</td>
</tr></a>
</a>
<a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>">
<tr>
<td height="10" colspan="2" align="left" valign="bottom" ><a href="#" class="navfeat"><%=rs_featured.getString("str_subtitle")%></td></tr></a>
</a>
<a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>">
<tr>
<td height="94" colspan="2" align="center" valign="middle"><a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>"><img src="admin/product_images/<%=rs_featured.getString("str_image")%>" border="0"></td></tr></a>
</a>
<a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>">
<tr>
<td width="100%" height="16" align="right" valign="middle"><img src="common/images/featured/arrow.gif" width="17" height="18"> </td>
</tr></a>
</table>
</td>
<td width="9"></td>
<%if((i%2)==0){%>
</tr>
<tr>
<td height="9"></td>
</tr>
<tr>
<%}
}%>
<td></td>
</tr>
<tr>
<td height="8"></td>
</tr>
<tr>
<td height="8"></td>
</tr>
</table> </td>
</tr>
</table> </TD>
<TD vAlign=top align=middle> <TABLE cellSpacing=0 cellPadding=0 width="95%"
border=0>
<TBODY>
<%
Statement smt_news = conn.createStatement() ;
ResultSet rs_news=smt_news.executeQuery("select * from tbl_news where bit_active=1 and bit_featured=1");
while(rs_news.next()){
%>
<TR>
<TD vAlign=top align=center><IMG
src="common/images/featured/82.gif" alt="" width="3" height="5"
border=0></TD>
<TD vAlign=top align=left> <A class="pr" href="./admin/news/<%=rs_news.getString("str_link")%>" target="_blank">
<%=rs_news.getString("str_title")%>
</A> </TD>
</TR>
<TR>
<TD vAlign=top align=left><IMG height=1 alt=""
src="Hard Drives & Optical Drives_files/spacer.gif"
width=1></TD>
<TD vAlign=top align=left height=6>
<!-- LiveEdit marker DO NOT REMOVE -->
<IMG
height=1 alt=""
src="Hard Drives & Optical Drives_files/spacer.gif"
width=1></TD>
</TR>
<%}%>
<TR>
<TD vAlign=top
align=left></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE></td>
<td align="left" valign="top"> </td>
</tr><tr>
<td height="5" colspan="4"><img src="common/images/spacer.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="30" align="left" valign="top" colspan="4">
<%@ include file="_footer.jsp" %>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
and here is db.jsp
<%@ page import="com.oreilly.servlet.MultipartRequest,java.io.*;"%>
<%!
String nl2br(String str){
str=blanknull(str);
return str.replaceAll("\n", "<br>");
String addslashes(String str){
str = str.replaceAll("'", "''");
return str;
String getExtention(String str){
int pos = str.indexOf(".");
return str.substring(pos,str.length());
String getExtention1(String str){
int pos = str.indexOf(".");
return str.substring(pos+1,str.length());
String convertFileSize(long size) {
int divisor = 1;
String unit = "b";
if (size >= 1024 * 1024) {
divisor = 1024 * 1024;
unit = "M";
else if (size >= 1024) {
divisor = 1024;
unit = "K";
if (divisor == 1) return size / divisor + " " + unit;
String aftercomma = "" + 100 * (size % divisor) / divisor;
if (aftercomma.length() == 1) aftercomma = "0" + aftercomma;
return size / divisor + " " + unit;
String highlight_key(String str, String key,String color){
//str = str.replaceAll("(?i)"+key, "<font color='"+color+"'><b>"+key+"</b></font>");
return str;
String first_sentence(String str, String key){
int pos = str.indexOf(".");
if(pos==-1){
pos=str.length();
return str;
String str1=str.substring(0,pos);
int pos1 = str1.indexOf(key);
if(pos1==-1 && pos!=str.length()){
str=str.substring(pos+1,str.length());
return first_sentence(str,key);
else{
return str1;
String blanknull(String s) {
return (s == null) ? "" : s;
String removeslashes(String str){
str = str.replaceAll("''", "'");
return str;
void sendmail(String to,String from, String subject, String message){
//String from="[email protected]";
//String to="[email protected]";
try{
SmtpClient client = new SmtpClient("mail.xxxxx.xxx");
client.from(from);
client.to(to);
PrintStream message = client.startMessage();
message.println("To: " + to);
message.println("Subject: "+subject+"!");
message.println(message);
message.println();
message.println();
client.closeServer();
catch (IOException e){
System.out.println("ERROR SENDING EMAIL:"+e);
%>
<%
Connection conn = null;
//String dbUrl = new String("jdbc:mysql://localhost/toshiba?user=root&password=");
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
conn = DriverManager.getConnection("jdbc:oracle:thin:@10.0.112.92:1524:cweb","mhunter","chester");
Statement smt = conn.createStatement() ;
String path=getServletConfig().getServletContext().getRealPath("admin");
String imagepath=path+"/product_images";
String tagpath=path+"/tag_files";
String newspath=path+"/news";
String envpath=path+"/env_images";
String resumepath=path+"/resume_files";
String pagepath=path+"/pages_files";
String downloadpath=path+"/download_files";
%></a> -
I've recently installed 9iAS release 2 on a windows 2000 machine. It all seems to be working, except for the JSP examples. When I try the standard sun JSPs, I get the following type of message:
java.io.FileNotFoundException: d:\midtier\apache\apache\htdocs\j2ee\examples\jsp\colors\colrs.jsp (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:64)
at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java:153)
at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java:169)
at oracle.jsp.app.JspAppLoader.fromReader(JspAppLoader.java:2013)
at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1246)
at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1141)
at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:797)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:368)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:265)
at oracle.jsp.JspServlet.internalService(JspServlet.java:184)
at oracle.jsp.JspServlet.service(JspServlet.java:154)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:500)
at org.apache.jserv.JServConnection.run(JServConnection.java:321)
at java.lang.Thread.run(Thread.java:484)
Anyone have any idea why this is occurring? Does it have anything to do with installing the November PDK for Portal and uncommenting the line in httpd.conf about jserv.conf?
CareyYes, you are right. By default, Apache JServ is disabled in ORacle 9iAS Release 2 installation. but since you uncommented the two lines, now jserv is active and will try to serve all JSP request intead of the defualt OC4J. Comment the two line again. (please use the EM to do this and do not comment the lines using a text editor.)
You may require to restart.
Shyam Ellur -
I have the page below where I am trying to follow the jspx way(this file has a jsp extension but I hear that is okay too). the page works in firefox, but nothing shows up in IE. Upon further investigation, I select show source in IE and it shows me the xml declaration, the jsp:root element and everything(which I think it is not supposed to do especially since omit-xml-declaration is true!!!) What in the world is going on?
I am using the url http://localhost:8080/Test.jsf and the file name is Test.jsp because I have my *.jsf filter set up. I have no idea what is going on? Anyone have a simple jspx page working that I can also try?
thanks,
dean
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<html xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<head>
<title></title>
</head>
<body>
<f:view>
<h:form id="inputForm">
<h:outputText value="some more text"/>
Some kind of test <h:inputText id="prop" value="#{backingTest.prop}"/>
hello there
<h:commandButton id="submit" action="sayhello" value="Say Hello" />
</h:form>
</f:view>
</body>
</html>
</jsp:root>I got it working now. One of the problems was the Sun RI. I don't know if it was an old version or not, but I switched to MyFaces and it now works, yeah! It was probably an old version of Sun's RI anyways and that is probably why.
-
JSP compenent not working in mozilla and firefox
Hi Experts,
We have made a portal component with JSPs. And assigned it to anonymous page on our portal.
Same is working fine with IE. However, with Mozilla and Firefox it gets distorted.
Anyone knows whether mozilla supports JSP pages or not?
Is there problem with Support pack?
I am using EP 7.1 and SP 10 for the Mozilla Browser version (3.6.25 and 8.0.1).
Your helps will be appriciated.
Regards,
ChitraDear Chitra
Please check Product Availability Matrix in service market place to verify the compatibility for accessing JSP in mozilla,
I think it should work in 3.6.25 but not sure about 8.0.1, please check and verify in SMP
Best Regards
Arun Jaiswal -
HELP: jsp:useBean not "working"
I have written a JSP that utilizes some JavaBeans. With one, I do something similar to the following:
<jsp:useBean id="BeanA" class="mypackage.myFirstBean" />
That statement executes just fine, as the debug HTML statement that follows is printed using <c:out>.
Then I follow that with something nearly identical:
<jsp:useBean id="BeanB" class="mypackage.mySecondBean" />
The debug statement after this second <jsp:useBean> call is not executed.
The two beans have no-argument constructors and are in the same package, and both are found in the right hierarchy under WEB-INF/classes inside my WAR file. Also, both are named properly in the JSP. The only difference is that one "executes," and the other does not. I don't even get to call <c:set> on them to actually make them do some work!
Any insight is appreciated. Let me know if there is anything else I can provide.
Thanks for your help, and Happy New Year!The symptom you described is certainly curious.
Can you put the second "useBean" line before the first one? Then please tell us if it "executes".
Maybe you are looking for
-
How do i transfer my info from my old iphone to a new one
how do i transfer all my info inc contacts from my 3gs to my 4s?
-
Problem installing Adhoc version to iPhone and iPad - Development Environment Is - Adobe Flash CS6
Hi, I have successfully submitted 2 versions of the application. There are 2 different versions for iPad and iPhone separately. These were developed using Adobe Flash CS6 and AIR SDK - 4.0.0.1628. The category is Lifestyle and app is free. Now I want
-
Recently downloaded new itunes when laptop upgraded from Vista to Windows 7. Tried disconnecting and resyncing but that does not work. The bar across the bottom of my itunes is not full for either device & I don't have an unusually high amount of 'ot
-
Error when double click on menus
Hi All, We have an application in which we have menus, which makes a taskflow call upon clicking.Sometimes when a menu item is double clicked or another menu item is clicked before the first clicked menu launches I get the following error and require
-
Hi All, We have connected CRM 7 and CRM 4 using XIF We are facing an issue where 2 IDOCs (with same Basic type CRMXIF_PARTNER_SAVE_M01) are generated at same time while using XIF adapter dring busines partner creation. First IDOC is succesful and oth