JMS sample code not working
Hi,
I am new to JMS and am trying to learn the technology. When I tried to run the JMS sample codes available at http://www.oracle.com/technology/sample_code/tech/java/jms/index.html, I got the following error:
[java] javax.naming.NoInitialContextException: Cannot instantiate class: co
m.evermind.server.rmi.RMIInitialContextFactory [Root exception is java.lang.Clas
sNotFoundException: com.evermind.server.rmi.RMIInitialContextFactory]
Please help me solve the problem. I find that, the downloaded code does not contain the class mentioned in the error message. Also, I do not see how the code is interacting with the OC4J server. It would be great if anyone could clarify.
hi adith,
the problem you are facing can be removed by adding oc4jclient.jar as libraray.
But after that i am facing following error.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/JMSEndpointStats
at com.evermind.server.jms.EvermindSession.createProducer(EvermindSession.java:311)
at warid.com.jms.JMSProducerConsumer.performMessagingOperations(JMSProducerConsumer.java:80)
at warid.com.jms.JMSProducerConsumer.main(JMSProducerConsumer.java:42)
Regards
Similar Messages
-
this code came from the adobe help manuals:
on (press) {
var myURL:String = "
http://www.mysite/subscribe.cfm";
getURL("javascript:openNewWindow('" + String(myURL) +
I have inserted this code in the actions panel of a button
and it is not working, at runtime when i click the button nothing
happen, any idea why the new browser window is not opened?
Darioalready tested online but I get an 'error on page' in the
browser window. it compiles without error but it just does not
work, the page being called is on the servert too. I can't figure
out what's wrong. -
[svn] 4377: Bug: BLZ-292 - Data Push sample does not work in BlazeDS Turnkey
Revision: 4377<br />Author: [email protected]<br />Date: 2008-12-22 16:16:25 -0800 (Mon, 22 Dec 2008)<br /><br />Log Message:<br />-----------<br />Bug: BLZ-292 - Data Push sample does not work in BlazeDS Turnkey<br />QA: Yes<br />Doc: No<br />Checkintests Pass: Yes<br /><br />Details:<br />* Regression due to some refactoring of user-agent handling that was failing to set up defaults if no explicit <properties> were defined for the <channel-definition>. This meant that for IE, no kick-start bytes were being pushed down the streaming connection at setup time...<br /><br />Ticket Links:<br />------------<br /> http://bugs.adobe.com/jira/browse/BLZ-292<br /><br />Modified Paths:<br />--------------<br /> blazeds/trunk/modules/core/src/flex/messaging/endpoints/BasePollingHTTPEndpoint.java<br /> blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java<br /> blazeds/trunk/modules/core/src/flex/messaging/util/UserAgentManager.java
Hi,
Thanks for your feedback!
This feature has been going through a lot of changes with the BlazeDS and Flash Builder builds.
We request you to pick up the BETA2 build of Flash Builder and BlazeDS 4.0.0.10654, hopefully you should see things working fine.
Kindly let us know if you still encounter problems.
Thanks,
Balaji
http://balajisridhar.wordpress.com -
I just installed LCDS to perform an evaluation. I installed using the embedded Tomcat which they have configured to run on port 8400. I launch Tomcat and point my browser to http://localhost:8400/lcds-samples/testdrive.htm, all is fine so far.<br /><br />I then click the link to run the first sample app (using HTTPService), when I click the Get Data button I get the following error:<br /><br />[RPC Fault faultString="HTTP/1.1 500 Internal Server Error" faultCode="Server.Proxy.Request.Failed" faultDetail="HTTP/1.1 500 Internal Server Error"]<br /> at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()<br /> at mx.rpc::Responder/fault()<br /> at mx.rpc::AsyncRequest/fault()<br /> at HTTPMessageResponder/resultHandler()<br /> at HTTPMessageResponder/completeHandler()<br /> at ChannelRequestLoader/callEventCallback()<br /> at ChannelRequestLoader/completeHandler()<br /> at flash.events::EventDispatcher/dispatchEventFunction()<br /> at flash.events::EventDispatcher/dispatchEvent()<br /> at flash.net::URLLoader/onComplete()<br /><br />And the log file contains:<br /><br />Feb 17, 2009 8:04:19 AM org.apache.catalina.core.StandardWrapperValve invoke<br />SEVERE: Servlet.service() for servlet jsp threw exception<br />java.sql.SQLException: socket creation error<br /> at org.hsqldb.jdbc.Util.sqlException(Unknown Source)<br /> at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)<br /> at org.hsqldb.jdbcDriver.getConnection(Unknown Source)<br /> at org.hsqldb.jdbcDriver.connect(Unknown Source)<br /> at java.sql.DriverManager.getConnection(Unknown Source)<br /> at java.sql.DriverManager.getConnection(Unknown Source)<br /> at flex.samples.ConnectionHelper.getConnection(ConnectionHelper.java:27)<br /> at flex.samples.product.ProductService.getProducts(ProductService.java:18)<br /> at org.apache.jsp.testdrive_002dhttpservice.catalog_jsp._jspService(catalog_jsp.java:62)<br /> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br /> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)<br /> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)<br /> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)<br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) <br /> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br /> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<br /> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br /> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br /> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br /> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)<br /> at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)<br /> at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:584)<br /> at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)<br /> at java.lang.Thread.run(Unknown Source)<br /><br />I can't even begin to evaluate as the samples do not work. Any ideas?
I figured out what is wrong. The instructions leave out an important
step...got to start the sampledb, i.e. \lcds\sampledb\startdb.bat
-Dave -
PS4 Game Voucher Code not working
my PS4 Game Voucher Code not working and says: "The code you entered may not be correct or may no longer be valid" "Please check your entry (e-820000134)
Voucher codes are region-specific. For instance a US voucher won't work with a UK account. First thing to check is whether the voucher's region matches your account's region.
-
Sample application not working in iAS6.5
I am using iAS6.5 and iWS6.0. The provided sample application HelloWorld do not work for my case.
After deploying the application and using the URL http://myhost/NASApp/helloworld/index.html
The Result is
********Browser Output*********
GX Error (GX2GX)
socket result code missing!!!
*********iAS output**********************************************
[07/Aug/2002 22:29:17:9] info: NSAPICLI-009: plugin reqexit: 0s+.132s. (-908962816)
[07/Aug/2002 22:31:11:8] info: NSAPICLI-012: plugin reqstart, tickct: -501276465
[07/Aug/2002 22:31:12:3] info: PROT-006: new connection established
[07/Aug/2002 22:31:14:3] info: NSAPICLI-009: plugin reqexit: 2s+.47043s. (-492433444)
[07/Aug/2002 22:31:33:6] info: NSAPICLI-012: plugin reqstart, tickct: -423260265
[07/Aug/2002 22:31:33:6] warning: UTIL-013: GXGUID: NameTrans lookup failed (Applogic Servlet System_StaticServlet)
[07/Aug/2002 22:31:33:6] warning: NSAPICLI-011: socket result code missing!!!
[07/Aug/2002 22:31:33:6] info: NSAPICLI-009: plugin reqexit: 0s+.135s. (-423255431)
if I move the index.html to the webserver physically and run this URL
http://myhost/ias-samples/helloworld/docs/index.html
The sample application works fine.
Any explanation why the provided sample application don't work ?
I do not have this problem when using iAS6.0 and iWS4.1.
Thank youHelp, anyone. I have tried deploying the application using both the command line method and the tool provided. The result are the same. I emphasis, I have used iAS6.5 and iWS6.0 to try the sample helloworld application. And I have not problem trying the application with iAS6.0 and iWS4.1.
I am using iAS6.5 and iWS6.0. The provided sample
application HelloWorld do not work for my case.
After deploying the application and using the URL
http://myhost/NASApp/helloworld/index.html
The Result is
********Browser Output*********
GX Error (GX2GX)
socket result code missing!!!
*********iAS
output**********************************************
[07/Aug/2002 22:29:17:9] info: NSAPICLI-009: plugin
reqexit: 0s+.132s. (-908962816)
[07/Aug/2002 22:31:11:8] info: NSAPICLI-012: plugin
reqstart, tickct: -501276465
[07/Aug/2002 22:31:12:3] info: PROT-006: new
connection established
[07/Aug/2002 22:31:14:3] info: NSAPICLI-009: plugin
reqexit: 2s+.47043s. (-492433444)
[07/Aug/2002 22:31:33:6] info: NSAPICLI-012: plugin
reqstart, tickct: -423260265
[07/Aug/2002 22:31:33:6] warning: UTIL-013: GXGUID:
NameTrans lookup failed (Applogic Servlet
System_StaticServlet)
[07/Aug/2002 22:31:33:6] warning: NSAPICLI-011:
socket result code missing!!!
[07/Aug/2002 22:31:33:6] info: NSAPICLI-009: plugin
reqexit: 0s+.135s. (-423255431)
if I move the index.html to the webserver physically
and run this URL
http://myhost/ias-samples/helloworld/docs/index.html
The sample application works fine.
Any explanation why the provided sample application
don't work ?
I do not have this problem when using iAS6.0 and
iWS4.1.
Thank you -
Abap code not working - deleting based on master data table information
Hi,
I wrote a piece of code earlier which is working and during test we found out that it will be hard for the support guys to maintain because it was hard coded and there is possibility that users will include more code nums in the future
sample code
DELETE it_source WHERE /M/SOURCE EQ 'USA' AND
/M/CODENUM NE '0999' AND
/MCODENUM NE '0888' AND.
Now I created a new InfoObject master data so that the support people can maintain the source and code number manually.
master data table - the codenum is the key.
XCODENUM XSOURCE
0999 IND01
0888 IND01
now I wrote this routine all the data gets deleted.
tables /M/PGICTABLE.
Data tab like /M/PGICTABLE occurs 0 with header line.
Select * from /M/PGICTABLE into table tab where objvers = 'A'.
if sy-subrc = 0.
LOOP at tab.
DELETE it_source WHERE /M/SOURCE EQ tab-XSOURCE AND /M/CODENUM NE tab-XCODENUM.
ENDLOOP.
Endif.
But when I chage the sign to EQ, I get opposite values , Not what I require.
DELETE it_source WHERE /M/SOURCE EQ tab-XSOURCE AND /M/CODENUM EQ tab-XCODENUM.
Cube table that I want to extract from
/M/SOURCE /M/CODENUM
IND01 0999
IND01 0888
IND01 0555
IND01 0444
FRF01 0111
I want to only the rows where the /M/CODENUM = 0999 and 0888 and i would also need FRF101
and the rows in bold should be deleted.
thanks
Edited by: Bhat Vaidya on Jun 17, 2010 12:38 PMIt's obvious why it deletes all the records. Debug & get your answer i wont spoon feed
Anyways on to achieve your requirement try this code:
DATA:
r_srce TYPE RANGE OF char5, "Range Table for Source
s_srce LIKE LINE OF r_srce,
r_code TYPE RANGE OF numc04,"Range table for Code
s_code LIKE LINE OF r_code.
s_srce-sign = s_code-sign = 'I'.
s_srce-option = s_code-option = 'EQ'.
* Populate the range tables using /M/PGICTABLE
LOOP AT itab INTO wa.
s_code-low = wa1-code.
s_srce-low = wa1-srce.
APPEND: s_code TO r_code,
s_srce TO r_srce.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM:
r_code COMPARING ALL FIELDS,
r_srce COMPARING ALL FIELDS.
* Delete from Cube
DELETE it_source WHERE srce IN r_srce AND code IN r_code. -
Salut,
i am envisaged with a nasty problem calling a message-send operation from
a method (transaction-type="required") inside a session bean (transaction-type="container").
This problem occured in OC4J 10.1.3.1 and may fail also in 10.1.3.0. The same
code run under OC4J 10.1.2.x without any problems.
The adressed JMS type is a OEMS JMS and fails to work regardless if the JMS ressource
is using a file-persistence or is running in-memory. Anyway the factory is a
jms/XAQueueConnectionFactory, so the created queue must support XA transactions.
Another test with an advanced-queue JMS provider succeeded.
As a consequence of this, i believe that the OEMS provider shall cause the problem.
The original code is quite unspectaculary:
* The non-surprising thing is, that the QueueConnectionFactory
* is a XAQueueConnectionFactory.
QueueConnectionFactory qcf = (QueueConnectionFactory) (jndiContext.lookup(MY_QFAC));
Queue q = (Queue) (new InitialContext().lookup(MY_QUE));
c = qcf.createQueueConnection() ;
QueueSession s = c.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
[... create a message ]
QueueSender qs = s.createSender(q)
qs.send(m);
qs.close()
s.close();
c.close()
The funny thing is, that the queue-session behaves as it is working outside
of a transaction context. Inside the JMX-Console you will notice the
arrival of a message and ... a cancellation of it. This would not surprise
me, if this code sequence would have been called outside of
a Session bean, cause the absence of a queue-session.commit does not
fix the send message in the jms ressource.
As a matter of fact the code is executed inside a Session bean and
the connection.createQueueSession will notice this and forget both
given parameters, and let the covering transaction take over of the
JMS ressource. But this does not happen (completly).
The acknowledge-mode has been modified (SESSION_TRANSACTED)
but the code still does not work!
After i recognized that the enlist-ment did not work, i
decided to enfore the use of XA transaction by using the
XA classes and methods of JMS.
I startet to cast the jndi-references and:
XAQueueConnectionFactory qcf = (XAQueueConnectionFactory) (jndiContext.lookup(MY_QFAC));
Queue q = (Queue) (new InitialContext().lookup(MY_QUE));
XAQueueConnection c = qcf.createXAQueueConnection() ;
XAQueueSession s = c.createXAQueueSession();
[... create a message ]
QueueSender qs = s.createSender(q)
qs.send(m);
qs.close()
s.close();
c.close()
The funny thing is ... the code worked without any problem until
the send operation, where i received an JMSException, containing
the text:
Oc4jJMS.Session.hpcl057.4e9c06e4:1112674930d:-7fff.41,true,SESSION_TRANSACTED]: An attempt was made to perform work in a XA-backed session without being enlisted. Either the session must be enlisted (using the JMS Connector or JMS Adapter) to participate in the global transaction, or a non-XA connection and a non-XA session should be used to not participate in the global transaction.
How bizarre, i thought the enlistment has been taken place by invoking
the c.createXAQueueSession or c.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
How bizarre how bizarre
any clues ????OC4J JMS was changed to not auto-enlist in XA transactions.
In releases prior to 10.1.3 XA usage was not actually supported. (It did not meet all of the XA requirements when used with OC4J.)
Auto-enlisting by the JMS provider was also a spec violation, which was causing trouble for people who needed to do out-of-transaction work and had no way to do it.
In 10.1.3 XA usage is fully supported, but only when you use the JMS Connector. You can find the JMS Connector ("Oracle's Generic JMS Resource Adapter") demos here:
http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/index.html#JMS
The JMS Connector is documented in the OC4J Services Guide, OEMS/JMS chapter.
-Jeff -
Customized Button code not working on selection screen.
Hello Experts,
I have a button on the selection screen next to Execute button on the Application Tool Bar.
I have written some validations on the button.It was defined on the PF-Status and its funtion text i have given as 'Show'.
But the problem is that the code is not working.When I execute the button,the screen just remains their.
The sy-comm always returns the value of 'UCOM' for whatever even takes place on the screen.The execution of the program does not stops their in debugger.
Can anyone help me with some sample code and also provide the value of sy-ucomm which i should use for the customized button.
Good points will be rewarded.Here is the short program which will show how to do it. You are simply checking for the USER-COMMAND value CHK and changing it to ONLI which is the F8 button, then the START-OF-SELECTION will be fired and you can output the list.
REPORT zyou_0001.
TABLES: sscrfields.
SELECTION-SCREEN PUSHBUTTON 2(10) pbut1 USER-COMMAND chk.
AT SELECTION-SCREEN OUTPUT.
pbut1 = 'Test This'.
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'CHK'.
sscrfields-ucomm = 'ONLI'.
ENDIF.
START-OF-SELECTION.
DO 10 TIMES.
WRITE:/ sy-index.
ENDDO.
Regards,.
Mohammed -
Flash.sampler.getSamples() not working in flex app
flash.sampler.getSamples() is returning undefined when called in flex application.
I tried it by deploying this application to a local tomcat and called the flash.sampler.getSamples() which returned undefined.
The same code works fine when run in a standalone mode. Can someone please help me why it is not working when deployed in a server.This is the sample code which I have written in my application's button click handler
flash.sampler.startSampling();
for(var i:int=0;i<1000;i++)
new Object()
trace(getSampleCount() > 0);
Alert.show(" "+getSampleCount());
When I run this locally, the alert always shows some number greater than 1000. When I run this from my tomcat server, the alert always shows zero. -
End Routine Code not Working after Support Pack Upgrade
Hi BI Community,
We have recently upgraded to SPS17 (BW SP19) for our production system and the code deriving the values of several attributes in the end routine of the transformation for one InfoObject (as info provider) does not work anymore. We have been trying to identify the root cause but the fact is that we did not change anything to the InfoObject and its transformation and this used to work fine. The strange thing is that when we debugged the code we could see the value of the aforementioned attributes was derived correctly but the value is just not updated to the InfoObject where we still see the old values for these attributes.
We have a similar InfoObject with the same end routine code in the transformation and it is working fine. We are out of idea what could have caused this during the SP upgrade.
Thanks in advance for your feedback.
Regards,
PeterCannot say what might have caused it but one check you can perform.
Open your transformation in change mode and you can see a button next to create end routine button, titled ' Update Behavior of End Routine Change', click on that and say all fields.
Hope it helps...
Regards,
Ashish -
.oam file of html5 video trigger code not working in Muse
I simply want to have a video play on page load. I have done the code for a trigger on one <div> to automatically play a video in Edge. The video plays perfectly in browser preview, even with transparency intact! Just the way I want it. The problem is when I insert .oam file in Muse it doesn't work. Other animations of simple objects and key frames work fine in Muse. But, I can make much more beautiful animations for certain elements in After Effects, with transparency and integrate them with elements in Muse. The video, its transparency and other objects work great from Edge to browser preview but not when .oam file is exported and placed into Muse. I know, I wouldn't build an entire site like this, I just want one or two animations to play automatically, with out controls (which I've been able to do), when the page is loaded.
I publish with business catalyst to a my own domain, with Creative Cloud.
Attached is a video where I'm at.
What is the code or method to get to work?HI,
Ok. I know that mov is not supported in Firefox nor Chrome, now.
When I put the trigger in Edge to play the .mov file, it works when I preview from Edge to Safari, and not in any of the other browsers. This leads me to think that Safari supports .mov files, with and without transparency.
However, when I try to put the .oam file generated by Edge into Muse and run the page in Safari the video doesn't work. Is this a .mov support with Muse? Does the video need to be uploaded to the Adobe Business Catalyst server? Where I publish my site?
.mov and transparency aside, I can't get any video to play in any browser from the .oam file placed in Muse. Nothing plays in preview nor when I publish in Muse. I get the previews to work from Edge for the corresponding video for each browser. And yes, when controls in put in it says wether the video is supported or not. But I would want no controls and the video to play automatically on page load. Ideally I would like transparency. But I realize that's a browser support thing. I don't see why all browsers don't support all video types and WITH transparency. C'mon now it's almost 2014! Am I right or am I right? Ok, sorry.
I followed everything in this Tom Green video. Pretty sure all my code is correct.
http://layersmagazine.com/embedding-video-in-adobe-edge-animate.html
Picture shows code for working .ogv in Edge preview but not from .oam file in Muse in preview nor publish.
Not sure why it won't even show in preview from Muse. But thinking when I publish, the video must have to be local on the publish server right?
Am I missing something? Do I need to insert HTML into Muse, not the .oam? -
Open my closed hotmail account , code not worked
Hi
I closed my account hotmal by mistake , and I tray to open it
saliraouf@hotmail.com will be closed on 8/17/2014
You're trying to sign in to an account that's going to be closed. If you continue, we'll reopen the account. If you cancel, your account stays marked for closure.
What do you want to do?
I tray to use all the code sending by Windows but it appeerl le code does not work , tray another time , I have a week trying to open it but it still closed
i posed the problem to technical support but i have not get any answors
can you help meHi,
Seems this question is that you closed your Microsoft Account by mistake but now you can't cancel the action.
Please note we provide support for Excel in the current forum, this question is beyond the scope. I think you can get this issue resolved with the help from this link below:
http://windows.microsoft.com/en-us/windows-live/id-support
I hope this will help.
Regards,
Melon Chen
TechNet Community Support -
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> -
JQuery Code Not Working (Positioning Nav at a fixed point)?
Hello So lets just cut to the cace,
This code does work outside of Edge but doesn't work in edge. . . .
$(window).bind('scroll', function () {
sym.$("arroworb").addClass('fixed');
The Object i want to keep in its place at all times even if the scroll bar is moved has the div ID of arroworb. . .
I have no Idea what i am doing wrong but yeah the code does work it just doesn't when put into Edge
My guess would be the window or blind has something to do with it not working but I have no idea how to fix this,
Any idea's?
Thanks In Advance!Here is a small example, using animate, as Joe mentions.
In Stage > compostionReady
$(window).scroll(function(){
var element = sym.$("arroworb");
element.stop()
.animate({"marginTop": ($(window).scrollTop() + 30) + "px"}, "slow" );
View here http://www.heathrowe.com/edge/scroll_with_page/
Download here http://www.heathrowe.com/edge/scroll_with_page/scrollwithpage.zip
hth
Darrell
Maybe you are looking for
-
Long time for loading Planning books/data views
Hi Could someone throw some pointers/solutions for extremely horrible time taken for a planning view (data view) to load and populate for certains selection profiles that already have large number of trasactional records. In my case it is specificall
-
Hi Experts, I have some Questions about Service procurements, 1. What type of services like simple or complex are handled by SRM5.0 ?? a) In classic scenario b) in ECS and if only simple services is possible what will be the
-
Internal Order, Available budget move to New Internal Order ???
Hello, I am curious to know if at all we can move available budget from one order or another ? Thanks,
-
I am trying to recreate the control file from the text trace file I created. When I run the script in the trace file I get errors, so I'm breaking it down into little steps. After running this: STARTUP NOMOUNT; CREATE CONTROLFILE REUSE DATABASE "D3P"
-
Apply list or UL will not work
I'm not quite sure what the problem is. In the CSS of the website I work on, it shows a list and what appeears to be the "circle" that will appear as the bullet. See the image below: So when I go to the web page and want to apply the class to a mak