Calling EXE from JSP
hi there,
how do i can calling a EXE file from a JSP page?
thanks alot!
neo
This has been already discussed here and I gave the solution for this :
You find that discussion at:
http://forum.java.sun.com/thread.jsp?forum=45&thread=211721
Regards
Similar Messages
-
i m trying to call it from jsp using
<a href="../purchaseP?orderno=<%=pno%>"><%=pno%></a>
but its giving error..
type Status report
message HTTP method GET is not supported by this URL
description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).i m trying to call it from jsp using
<a href="../purchaseP?orderno=<%=pno%>"><%=pno%></a>
but its giving error..
type Status report
message HTTP method GET is not supported by this URL
description The specified HTTP method is not allowed
for the requested resource (HTTP method GET is not
supported by this URL).Are you implementing the doGet or doPost method in your servlet? If you are calling from a hyperlink then it needs to be implementing the GET method. To access the POST method use a html form. -
Wot all ways are there to call servlet from jsp
hi all
i want to know wot all methods are available
so that i can call servlet from jsp
the one which i know is using RequestDispatcher
wot are others ?
thanxhi all
i want to know wot all methods are available
so that i can call servlet from jsp
the one which i know is using RequestDispatcher
wot are others ?
thanxhi here are few ways... to call servlet from jsp...
these are just generic syntax.
Form:
<form action="ServletPath">
Link:
Directives & Action tags :
<%@ page import="ServletPath" %>
<%@ taglib uri="ServletPth" %>
<jsp:include page="ServletPath">
<jsp:forward page="ServletPath">
<jsp:useBean class="ServletPath"> (Not sure about this useBean)
hope you got your answer.
regards,
immu -
Hi,
Can any one tell me how to call JApplet from JSP? I am using <jsp:plugin>
tag but it is not working.use the jsp:plugin tag like this in your jsp page..
<jsp:plugin type="applet"
code="appletclsname.class"
codebase="ourapplets"
jreversion="1.5"
width="400px"
height="200px">
</jsp:plugin> -
How to call Servlet from jsp page and how to run this app using tomcat..?
Hi ,
I wanted to call servlet from jsp action i.e. on submit button of JSP call LoginServlet.Java file.
Please tell me how to do this into jsp page..?
Also i wanted to execute this application using tomcat.
Please tell me how to do this...? what setting are required for this...? what will be url ..??
Thanks.well....my problem is as follows:
whenever i type...... http://localhost:8080/appName/
i am getting 404 error.....it is not calling to login.jsp (default jsp)
but when i type......http://localhost:8080/appName/login.do........it executes servlet properly.
Basically this 'login.do' is form action (form action='/login.do').....and i wanted to execute this from login jsp only.(from submit button)
In short can anyone please tell me how to diaplay jsp page using tomcat 5.5
plz help me. -
Can't create DeliveryBean when call bpel from jsp
Can't create DeliveryBean when call bpel from jsp
/*** code ********************************/
Properties props = new java.util.Properties();
java.net.URL url = ClassLoader.getSystemResource("context.properties");
props.load(url.openStream());
Locator locator = new Locator(domain, "bpel", props);
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
NormalizedMessage nm = new NormalizedMessage();
String convId = GUIDGenerator.generateGUID();
nm.setProperty(NormalizedMessage.CONVERSATION_ID, convId);
nm.addPart("payload", xml);
NormalizedMessage res = deliveryService.request(processID,operationName, nm);
/*** code ********************************/
This code works well in java , but when I use it in jsp on tomcat server,
the following exception ocured:
Can not create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: Name ejb is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:768) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279) at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250) at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83) at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53) at workflow.bpel.BpelProcessHelper.invokeSyncBpel(BpelProcessHelper.java:54) at
Will anyone to tell me where "ejb/collaxa/system/DeliveryBean" bean is?
Which jar file is this class in ?
Thanksdid you try including bpel/lib/orabpel.jar & bpel/system/server/j2ee/ob_ejb_engine.jar in your tomcat classpath.
-
Calling EJB from JSP in SSL Mode
Hi,
I need to call an EJB from JSP in SSL Mode.
How can i do that.
Regards,
S.V.Satish KumarIn that case you can refer to the following documents:
Using JPA: http://help.sap.com/saphelp_nwce711/helpdata/en/44/eba6292f446c30e10000000a114a6b/frameset.htm
Accessing persistence functionality in EJB 3.0: http://help.sap.com/saphelp_nwce711/helpdata/en/46/307a2a50094f09e10000000a114a6b/frameset.htm
Tell me, if these documents help you. Otherwise, I will search for more information on the topic.
Best regards,
Ekaterina -
Cant call localejbbean from jsp
hi all,
i try to call my LocalEjbBean from Jsp file , but i got this exception
this is my jsp file
<%
com.dcons.iss.HelloLocalHome home =null;
com.dcons.iss.HelloLocal hello=null;
Context ctx = new InitialContext();
Object obj=ctx.lookup("HelloLocalBean");
home = (com.dcons.iss.HelloLocalHome)obj;
hello = home.create();
hello.display();
%>
this is my ejb-jar xml
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>Hello</ejb-name>
<local-home>com.dcons.iss.HelloLocalHome</local-home>
<local>com.dcons.iss.HelloLocal</local>
<ejb-class>com.dcons.iss.HelloLocalBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref>
<ejb-ref-name>HelloLocalBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>HelloLocal</local-home>
<local>HelloLocalHome</local>
<ejb-link>HelloLocalBean</ejb-link>
</ejb-local-ref>
</session>
</enterprise-beans>
</ejb-jar>
this is my weblogic -ejb-jar.xml
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Hello</ejb-name>
<stateless-session-descriptor>
</stateless-session-descriptor>
<reference-descriptor>
<ejb-local-reference-description>
<ejb-ref-name>HelloLocalBean</ejb-ref-name>
<jndi-name>HelloLocalBean</jndi-name>
</ejb-local-reference-description>
</reference-descriptor>
<local-jndi-name>HelloLocalBean</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Exception is
<May 17, 2004 12:53:00 PM GMT+05:30> <Error> <HTTP> <BEA-101017> <[ServletContex
t(id=14238425,name=TestServerPro,context-path=/TestServerPro)] Root cause of Ser
vletException.
javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundExcept
ion: While trying to look up /app/ejb/LocalEJBProject.jar#Hello/local-home in /a
pp/webapp/TestServerPro/26623105.; remaining name '/app/ejb/LocalEJBProject/jar#
Hello/local-home'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basic
NamingNode.java:858)
at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNaming
Node.java:150)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.j
ava:237)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:336)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyCo
ntextWrapper.java:45)
at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.j
ava:130)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingMana
ger.java:96)
at weblogic.jndi.internal.ServerNamingNode.resolveObject(ServerNamingNod
e.java:265)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.
java:732)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:19
1)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.j
ava:237)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:336)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at jsp_servlet.__index._jspService(index.jsp:20)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
er.java:208)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:305)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(Page
FlowRequestProcessor.java:1304)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedire
ctor.forward(PageFlowRequestProcessor.java:1320)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlo
wRequestProcessor.java:1200)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardCon
fig(PageFlowRequestProcessor.java:1094)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
equestProcessor.java:651)
at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
sterActionServlet.java:527)
at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
onServlet.java:152)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
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:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:305)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:307)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(Page
FlowRequestProcessor.java:1304)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedire
ctor.forward(PageFlowRequestProcessor.java:1320)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlo
wRequestProcessor.java:1200)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
equestProcessor.java:638)
at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
sterActionServlet.java:527)
at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
onServlet.java:152)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
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:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6354)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException: While trying to look up /app/ejb/LocalEJBProject.jar#Hello/local-home in /app/webapp/TestServerPro/26623105.; remaining name '/app/ejb/LocalEJBProject/jar#Hello/local-home'
plz help me to solve this problemHi,
The portable way to lookup any resources within a J2EE component is to the private component namespace located under java:comp/env. Even though some products allow you to do a "global" lookup, that's not the preferred approach since it's not portable. Your deployment descriptors need to be changed since you need to define the ejb-local-ref within the descriptor of the client component, which in this case is the jsp. So, you would need to define the ejb-local-ref within the web.xml associated with the jsp. The ejb-ref-name within the ejb-local-ref should be appended to the java:comp/env lookup in your code. So, for your example, the jsp would ctx.lookup("java:comp/env/HelloLocalBean")
--ken -
hi,
I tried to my best to call java beans from JSP page but it generate error that "unable to load class....", please help me that in which directory jsp file and bean *.class file reside, currently my setting are as follows.
Note: I am using tomcat server and my jsp and servlet files are running seccessfuly, there is any special change in classpath for java beans? if any please tell
My jsp file is in tomcat-->webapps-->jsp--><my file>
My bean (*.class) file-->webapps-->Root-->web-inf-->classes--><my file>
Pleae help me for the above problem.
Mubashar ([email protected])According to J2EE standards:
The web appl directory structure should be:
WebAppRootDirectory
|
|---html, jsp, images etc
|
|---WEB-INF---
|---classes--
|---lib
|
|
1) Make sure WEB-INF is in capital letters
2) Place all ur beans in classes dir or sub-directory in
classes
3) In Tomcat place WebAppRootDirectory in webapps
directory
[email protected] -
hello
How we can call an exe from an another exe.
If the exe installed in a PC, it had not LabView and whatever files or drivers needed.
I create a dll file. call functions node used to call the dll. But it is not calling the dll
please give a solution for this
Thank you
"Thanks with regards "
by
..........Gireesh..........
Solved!
Go to Solution.smercurio_fc , Attaching the ver 8.0 files.
Gireesh, If you want that to run then you must have 8.2 runtime engine.
As smercurio_fc said we use System Exec VI to run exe or any other kind of programs & we don't need any DLL. Shared variable is the person who can communicate between two different exe.
You can have look at the sample code if you have LV 8.0.
Attachments:
Untitled Project 1 Folder.zip 33 KB -
Calling RFC from JSP : development component
Hi everyone,
I created JSP that call RFC from SAP/R3.
I have problem with the DestinationService.
Without DCs, it worked very good.
But since I created a DC for my JSP project, I have exception at run time regarding
the java.lang.NoClassDefFoundError: com/sap/security/core/server/destinations/api/DestinationService.
Eventhough I add the specific jar, I get an excpetion.
Thanks for the help.
DavidGo to the application-j2ee-engine.xml file and add following reference:
<reference
reference-type="weak">
<reference-target
provider-name="sap.com"
target-type="interface">tcsecdestinations~interface</reference-target>
</reference> -
Hi
is it possible to call any method with in the class except handle method from jsp file?You can call , but it would not be a good design approach.A droplet can do the same task for you.
otherwise :
eg :
<%@ page import="com.mypackage.MyClass"%>
for Static access :
<%
String test= MyClass.myMethod();
%>
for normal classes :
<%
MyClass object = new MyClass();
String test= object .myMethod();
%>
http://stackoverflow.com/questions/10918526/call-java-method-in-jsp-file
http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag.html?page=2
```
Praveer
Edited by: Praveer Rai on Mar 26, 2013 5:08 PM -
Hello,
I would like to know whether it is possible to call Oracle Reports (Version 2.5/3.0) from JSP?.
Early reply is highly appreciated.
Thanks
SekharHi Kalyan,
I am assuming that your report itself is saved as a JSP. If you want to run the web layout inside your report (the JSP code in your report), you will have to deploy it to run it. If you want to run the paper layout of your report, you don't need to deploy it, but can call it by a URL in which you specify the report location.
http://machine:port/reports/rwservlet?report=...
Navneet. -
How to call Exe from labview?
Hello NI,
I want to call the exe from the labview. presently i am using command.vi to open the exe. but it works only with source code. after creating the exe it doesnt work.
I checked the path of exe.
do you have any solution for this?
Regards,
Balaji DPWorking directory should be c:\windows\system32
copy your winword.exe into that system32 folder and just try this
Message Edited by mathan on 01-06-2009 03:24 AM
Attachments:
untitled.PNG 3 KB -
I need to call 1 exe from a servlet. I tried giving <FORM ACTION="Path for that Exe">
But its not working. Can't I call exe or any other file other than .class file ?
Help me out.I need to call 1 exe from a servlet. I tried giving
<FORM ACTION="Path for that Exe">
But its not working. Can't I call exe or any other
file other than .class file ?
Help me out.Here goes my Code
import java.io.*;
import java.util.Hashtable;
import java.util.Date.*;
import javax.servlet.*;
import javax.servlet.http.*;
* Date Servlet
* This is a simple servlet to demonstrate server-side include
* It returns a string representation of the current time. And also client IP and Name
* @author
* 16 Oct. 2003
public class PrintDate extends HttpServlet{
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException{
response.setContentType("text/plain");
PrintWriter out = response.getWriter();
//ServletOutputStream out = response.getOutputStream();
String host = request.getRemoteAddr();
//out.println("I am printing the host:" + host);
out.println("<HTML>");
out.println("<HEAD></HEAD>");
out.println("<BODY>");
out.println("<FORM METHOD=get ACTION=/servlet/Kudremukh_pan>");
out.println("<INPUT TYPE=text SIZE=15>");
out.println("<INPUT TYPE=submit VALUE=submit>");
out.println("</FORM></BODY></HTML>");
Maybe you are looking for
-
OBIEE 11.1.1.7 - error when trying to refresh GUIDs
Know its new etc but we have been waiting for 11.1.1.7 for a while and just trying to look at it at the moment. We have hit a problem when trying to import a catalogue from our 11.1.1.5 production environment in that the steps to refresh GUIDs that w
-
Latest crash - Lion 10.7.2 - guest user
I hope this will help. I was browsing on Safari (nothing too risky, google groups, actually) when the screen broke up. So I thought, lets switch to guest user to see what happens. So I switched and it seemed OK - no sign of the pixilated screen (I'll
-
I have implemented the below KM report in my local 2004s SP9 portal. I am able to get the report to run but it does not show the number of times each document has been accessed nor does it show who access the document. Is there a service that I need
-
How to map a deep xml structure to flat structure
Hi, I'm trying to map a deep xml structure to a flat file structure. See this: <SalesPoint> <header> <idTx></idTx> <opCode></opCode> </header> <body> <DataSet> <codOperac
-
HR data transfer toolkit_ SAP Best practice
Hi All, I got to know the New toolkit for HR Data Transfer in which SAP has provided the Built in Excel sheets for the certain Infotypes..I got the document through online. But am not able to use the transactions ..can any one help me out ..from w