Can I use any Class in a Use Bean Tag of a JSP
I have tried to modify the existing EditForm.java file and created a new Class File which changes the presentation(render method)in the Edit Form.
can I use the new class as a Bean in the use bean tag of a JSP.
You can use any class as part of the useBean tag. If you want to add your class to the list of available webbeans, you can add it to <jdev dir>\teamplates\webbeans.xml.
Similar Messages
-
Can i use any wireless printer when using air express
can i use any wireless printer when using air express
If you are looking for a new printer, any wireless model will work with the AirPort Express.
But, since you indicate that you have an iPad, you would want to make sure that the printer you choose is AirPrint compatible. This way, you will be able to print from your iPad....if you need that function.
See this Apple support document for info on AirPrint and compatible models.
http://support.apple.com/kb/HT4356 -
Can't download any apps in CC, using Firefox, Win7
try with Chrome don't work
As I said before, I've try with Chrome, IExplorer, different location
(web connection) and still doesn't work. I'm able to download several
files, movies, software from other site, but it's seem like Adobe dont
work. I'm not using any of my 30 day's free Creative Cloud membership
and until I could use it I dont want to loose time on the 30 days.
Is there any other options ?
Le 2014-01-02 08:42, Jeff A Wright a écrit :
RE: CAN'T DOWNLOAD ANY APPS IN CC, USING FIREFOX, WIN7
created by Jeff A Wright in _Downloading, Installing, Setting
Up_ - View the full discussion -
Have i tunes 11.1.5 on windows 8 but i can't sync any devise when i use usb cable
have i tunes 11.1.5 on windows 8 but i can't sync any devise when i use usb cable
I have Windows 8.1 64. Upgraded my iphone 5 to 7.1 version. My laptop did not recognize the iphone. After a couple of hours of tring to figure out why the laptop and iphone weren't syncing, these are the steps I followed. Most are pieced together from suggestion on various websites. Don't know if all steps are necessary, but it's what I did and it worked.
1) I did this first: Uninstall and reinstall itunes.
2) Reboot computer and iphone (turn off the on again)
3) Go to control panel and "repair" all apple apps.
4) Go to "Device Manager" on computer (go to left bottom corner and right click, locate Device Manger from list or you can use the Search..
4a) Go to Universial Serial Bus Controllers and look for "Apple Mobile Sevice USB Driver (Before "repairing" the apple apps, this did not appear on my laptop).
4b) Right-click the Apple iPhone in Device Manager and select Update Drive.
4c) Click "Browse my computer for driver software."
4d) Click "Let me pick from a list of device drivers on my computer."
4e) Click the "Have Disk button"
4f) At the "Install from Disk" click Browse button.
4g) Go to the following folder: C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers and Click OK.
4h) Click Next and finish the driver-installation steps.
5) You should then see the "Apple Mobile Service USB Driver in the Device Manager now.
6) Open itunes and hopefully the iphone and Windows 8.1 laptop will sync (a dialogue box will appear on the iphone 5 asking you to "trust" the computer. Select Trust.)
7) If this doesn't work, try rebooting your computer and turning off your iphone and then turn it back on.
Good Luck. It shouldn't be this time-consuming. -
Using custom classes that are not beans
Hi folks,
Is it possible to use java classes that are not beans. I mean, on a page, could you say Customer cust = new Customer("Jones", 25);
if you had a Customer class with a constructor that took a name and age (String and int).
If so, how do you go about this- do you need to import the class, or put it in a standard location? I'm using Tomcat, and would guess that this would go in WEB-INF/classes?
I hope it's not a stupid question, all the literature seems to be focused on JavaBeans
Any advice on this would be great!Beans are used as putting Java code into a JSP is generally considered bad practice. The advantage of the bean pattern is that you use things like:
<jsp:setProperty name="laBean" property="someSetter" value="someValue" />so that you aren't embedding Java directly into the JSP. I'm not very religious about this particular topic personally and will throw a line or two in here and there.
Having said that though, you can easily use any Java class in a JSP. You'll have to import it first:
<%@ page import="java.util.*" %>And then you can easily use it like in a real Java program. -
Using java class and variables declared in java file in jsp
hi everyone
i m trying to seperate business logic form web layer. i don't know i am doing in a right way or not.
i wanted to access my own java class and its variables in jsp.
for this i created java file like this
package ris;
import java.sql.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class NewClass{
public static void main(String args[]){
Connection con = null;
ResultSet rs=null;
Statement smt=null;
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
con=DriverManager.getConnection("jdbc:mysql:///net","root", "anthony111");
smt=con.createStatement();
rs= smt.executeQuery("SELECT * FROM emp");
while(rs.next()){
String str = rs.getString("Name");
}catch( Exception e){
String msg="Exception:"+e.getMessage();
}finally {
try {
if(con != null)
con.close();
} catch(SQLException e) {}
}next i created a jsp where i want to access String str defined in java class above.
<%--
Document : fisrt
Created on : Jul 25, 2009, 3:00:38 PM
Author : REiSHI
--%>
<%@page import="ris.NewClass"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1><%=str%></h1>
</body>
</html>I wanted to print the name field extracted from database by ResultSet.
but it gives error cannot find symbol str.
please help me to find right way to do this.
i am using netbeans ide.Very bad approach
1) Think if your table contains more than one NAMEs then you will get only the last one with your code.
2) Your String is declared as local variable in the method.
3) You have not created any object of NewClass nor called the method in JSP page. Then who will call the method to run sql?
4) Your NewClass contains main method which will not work in web application, it's not standalone desktop application so remove main.
Better create an ArrayList and then call the method of NewClass and then store the data into ArrayList and return the ArrayList.
It should look like
{code:java}
package ris;
import java.sql.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class NewClass{
public static ArrayList getNames(){
Connection con = null;
ResultSet rs=null;
Statement smt=null;
ArrayList nameList = new ArrayList();
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
con=DriverManager.getConnection("jdbc:mysql:///net","root", "anthony111");
smt=con.createStatement();
rs= smt.executeQuery("SELECT * FROM emp");
while(rs.next()){
nameList.add(rs.getString("Name"));
return nameList;
}catch( Exception e){
String msg="Exception:"+e.getMessage();
</code><code class="jive-code jive-java"><font>return nameList;</code><code class="jive-code jive-java">
}finally {
try {
if(con != null)
con.close();
} catch(SQLException e) {}
</code><code>return nameList;</code>
<code class="jive-code jive-java"> } -
When I look at the thumbnails in finder, I press enter to look at the picture. And I scroll down to look at the other pictures. I want to move or delete the images when I look at them this way... Any suggestions? I would think that there was a program for this...?
Thanx in advance!GraphicConverter can do that.
When you drop a folder full of image files onto GraphicConverter, it automatically opens them all in a catalog-style window. You can then select each in turn and use keyboard shorcuts to move the selected one to a target folder of your choice. I believe you can have up to 30 different target folders preset for this purpose.
GC also provides a host of other file manipulation features.
http://www.lemkesoft.com/content/188/graphicconverter.html -
Can't send any messages in iChat, used to work perfect though
I've been having issues with iChat for a while now, I'm using it with AIM, if that helps.
It shows my buddy list and everything, and shows that I'm connected. I can talk to people over the camera and microphone, but every time I type in something and try to send it, the box with the messages gets deselected, and the messages isn't sent. I've tried restarting my laptop, re-installed iChat, deleted some files out of my library so I can set my AIM account up again, but none of it worked. I hope someone on here can help me...
Thanks, PeterHi,
So iChat in Logging in and you are seeing your Buddies in the list ?
However in any Text Chat text is not being sent ?
First in iChat > Preferences > Messages check the name of the Font you are using.
Open Font Book and check it is active.
I think it will be deeper than this so go to your Home Folder/Library/Preferences and delete com.apple.ichatAgent.plist and restart the computer (iChatAgent is a background app that does not quit when you quit iChat).
10:49 PM Friday; April 2, 2010
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat" -
I can't get any audio when i use airplay and I'm on youtube
whenever i try to watch youtube on my tv using my laptop i get no audio from my speaker system it will play on my laptop speakers and only show the image on the tv. but my itunes is the oposite it will play on my speaker system but wont show my itunes on my tv
If help is desired, more information is required.
Mac or Windows?
OS Version?
iTunes Version?
What Gen ATV? 1, 2, or 3? -
Can't load any classes from infobus.jar (WL 6.0 SP1)
Hi,
I am deploying an .ear file, which has one .war file in it. The war file, has
infobus.jar, inside it under \WEB-INF\lib. Whenever in my servlet code I try to
load a class from infobus.jar, I get the following exception :
About to load class javax.infobus.InfoBusDataConsumer<<<<<<<<<<java.lang.ClassNotFoundException: InfoBusDataConsumer
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:178)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:45)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at XDILoginForm.init(XDILoginForm.java:99)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:638)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:581)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:526)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1078)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:1022)
at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:499)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.deploy(Application.java:175)
at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:173)
at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:217)
at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:187)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1136)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:773)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:750)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:256)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:318)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:259)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:291)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:173)
at $Proxy7.setDeployed(Unknown Source)
at weblogic.management.console.pages._panels._mbean._application._jspService(_application.java:303)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1622)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
But if I put the infobus.jar on system classpath , everything works out fine.
Can somebody tell me, what is going onGseel is right: you try to instantiate an EJB with the BDK.
Enterprise Java Beans are totally different from graphical/GUI beans. EJBs are thought for dealing with business logic like accessing a database, ldap directory and so on. They run on a application server (simply speaking - a java enabled webserver) and do some processing to handle user requests. Enterprise Java Beans usually don't interact directly with the user, they only do the work in the background and forward their results, which are then rendered for the user. Typically they are employed for handling web requests (a user with a browser), but they can also be used for awt/swing applications. Though - let me repeat - they don't appear visually on the screen.
The only similarities between those two bean types are the following: they have getter/setter methods for their properties, they implement Serializeable (or a sub-interface like Externalizable, Remote) and they have a default no-argument constructor.
If you want to run your been you need an application server (your bean is pre-packaged for the Bea Weblogic app-server). If you want to do something graphical, you'll need to search for GUI beans.
dani3l -
MY BROWSER CAN NOT FIND ANY CLASSES !!!!!
...Using Java Plug-in and JRE 1.3
I have put my JAR file in the same place of the class (root of the Web Server). Why can?t it find the classes????????
I do the JAR file with the deploy option of Visual Cafe and it generates a folder called symantec with all classes, I don?t understand why.make sure that the .jar file is specified in the classpath.
-
I can load an Applet .class file with an OBJECT tag...
How can I load a .jar file? I foolishly believed I could replace "myclass.class" with "myjar.jar" in the <PARAM> tag associated with an <OBJECT> tag, and if I had created my manifest file correctly, the Main-Class in my .jar would have its init() method called upon IE load of the web-page. But alas, it is not that simple.
Is there an incantation of the <OBJECT> tag that is appropriate for .jar files?
Thanks in advance for any help you can provide in this area.Please ignore the duplication. My browser burped, and I can't seem to figure out how to delete a thread.
See answer posted in other thread. -
Cannot use jdk 6 function when using a blackberry project...
I use Eclipse 3.4.2 to build my Blackberry project. I create a blackberry project...So inside, I have the "net rim" blackberry library, and inside this library I have a bunch of jdk function...like java.lang, or java.io...
Before installing Eclipse, I have installed JDK 6 to work with and I'm actually trying to use those library.
When I include JDK libraries in my blackberry project, I can import everything from the JDK, BUT I cannot use any class imported with the "import" tag...
NOTE: net_rim_api.jar contains "java.lang.String" and JDK 6 also. I want to use the split() and substring() function inside the String class contained inside JDK 6, but it seems that eclipse only see the String class contained inside net_rim_api.jar...
My question is:
Why can I import my jdk objects, and can't I use the class corresponding to them?
If I create a projet a standard Java Project, and I include my blackberry library it pop me an error...
java.lang.ClassFormatError: Method <init> in class net/rim/device/api/ui/UiApplication has illegal modifiers: 0x104
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Exception in thread "main"
Here's my code:
import java.io.IOException;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.Screen;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.component.RichTextField;
import net.rim.device.api.ui.component.BasicEditField;
import net.rim.device.api.ui.component.SeparatorField;
import net.rim.device.api.ui.component.ObjectListField;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.container.HorizontalFieldManager;
import net.rim.device.api.ui.container.VerticalFieldManager;
import java.lang.String;
public class InfoModem extends UiApplication {
// Déclaration des propriétés
public static boolean dev = true;
public static String strHost = null;
public static String[] n_client = {"80000001","80000002","80000003"};
public static void main(String[] args) {
// Definition du host
if (dev){
strHost = "http://devshed.labaie.vdl";
} else {
strHost = "https://intranet.derytelecom.ca";
InfoModem modem = new InfoModem();
modem.enterEventDispatcher();
public InfoModem()
UiApplication uiApp = UiApplication.getUiApplication();
uiApp.pushScreen(UserInterface());
public Screen UserInterface()
//Instance de l'écran principale de l'interface
final MainScreen screen = new MainScreen();
//Déclaration des FieldManager
VerticalFieldManager fieldManagerTop = new VerticalFieldManager();
HorizontalFieldManager fieldManagerButton = new HorizontalFieldManager();;
//Instanciation des objets de l'interface
RichTextField Title = new RichTextField("Interrogation de modem");
RichTextField lblNumeroModem = new RichTextField("Inscrire le numéro du modem");
final BasicEditField txtModem = new BasicEditField();
final RichTextField lblResultat = new RichTextField();
ButtonField btnRechercher = new ButtonField("Rechercher");
// Listener du bouton Rechercher
FieldChangeListener listener = new FieldChangeListener() {
public void fieldChanged(Field field, int context)
Http.strUrl = strHost + "/php-bin/blackberry/test.php?action=search&n_client=80000001";
try {
Http.GetRequest(Http.strUrl);
} catch (IOException e) {
e.printStackTrace();
if (Http.strHttpData != null)
final String data = Http.strHttpData;
System.out.println(data);
final ObjectListField liste = new ObjectListField()
protected boolean navigationClick(int status, int time)
lblResultat.setText(n_client[this.getSelectedIndex()]);
return true;
liste.set(n_client);
screen.add(liste);
//Assignation du listener au bouton Rechercher
btnRechercher.setChangeListener(listener);
//Ajout du titre de la page
screen.setTitle(Title);
//Ajout des Fields dans le FieldManager
fieldManagerTop.add(lblNumeroModem);
fieldManagerTop.add(new SeparatorField());
fieldManagerTop.add(txtModem);
fieldManagerTop.add(new SeparatorField());
fieldManagerTop.add(lblResultat);
fieldManagerButton.add(btnRechercher);
//Chargement des FieldManager sur l'écran
screen.add(fieldManagerTop);
screen.add(fieldManagerButton);
return screen;
All I want is to use java.lang.String with its split() and substring() function which are not inside the blackberry java.lang.String library...
any idea?The function module has only one input parameter, which should be a string with length less than 256. (I tried many predefined data element like RPLM_STRING, but when I tried to add the function module as a method of BAPI, the SAP always gave me the error: data type xxxxx cannot be used for methods)
It only has one output parameter: RETURN (associated type: BAPIRETURN)
I am really not familiar with ABAP program, let alone BAPIs. Any suggestions would be very helpful to me. I sincerely appreciate your help.
Bing -
Creating PDF in OAF page using DocumentHelper class
I an trying to display a PDF from within an OAF page.
I am generating the XML using a database function and getting the XML in the controller class as a clob object which I then converted into an ascii stream. I tested the stream, and I am getting the XML output as expected. Sample below>
<ORG_NAME>
<EMPLOYEE_ID>
<FIRST_NAME>Ogre</FIRST_NAME>
<LAST_NAME>Swamp</LAST_NAME>
<EMAIL_ID>[email protected]</EMAIL_ID>
<SALARY>10</SALARY>
<MANAGER_ID>0</MANAGER_ID>
<MANAGER_NAME>I work for no one</MANAGER_NAME>
<EMP_ADDRESS>My Swamp</EMP_ADDRESS>
<EMP_CITY_STATE>Kingdom from far away</EMP_CITY_STATE>
</EMPLOYEE_ID>
</ORG_NAME>
I am using the following code in the controller class to generate the PDF as suggested in the XML Pub Guide Chapter 12.
String redirectURL = DocumentHelper.getOutputURL(pageContext,"PER", "NEW_EMP", bi, "PDF", null, "en", "00");
OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean(pageContext, HTML_WEB_BEAN, null, "IFRAME");
outRegion.setHTMLAttributeValue("src",redirectURL);
outRegion.setHTMLAttributeValue("width", "100%");
outRegion.setHTMLAttributeValue("height", "500");
outRegion.setHTMLAttributeValue("title ","NEW_EMP");
outRegion.setHTMLAttributeValue("name ","NEW_EMP");
pageContext.getPageLayoutBean().addIndexedChild(outRegion);
But, I am getting the following error on the PAF page.
404 Not Found
OracleJSP: java.io.FileNotFoundException: C:\JDeveloper\jdevhome\jdev\myhtml\OA_HTML\xdo_doc_display.jsp (The system cannot find the file specified)
When I checked the redirectURL that is generated by the DocumentHelper class, this is what I found.
redirectURL: /OA_HTML/xdo_doc_display.jsp?dbcName=localhost_vis&fileName=NEW_EMP-1348275838_out.pdf&mFileLength=1873&p_output=C:\JDeveloper\jdevhome\jdev\myhtml\OA_HTML\fwk/t/NEW_EMP-1348275838_out.pdf&outputType=PDF
I noticed that the first part of the url string is in windows path format, while the second part in unix format. I had copied the DocumentHelper.class from a unix file system (where the oracle ebs is installed in my org) and placed it in my windows based machine. Caould this be the cause of the problem.
Note: I am pointing my JDeveloper to the Oracle EBS installed locally on my windows machine (but did not find the DocumentHelper.class in the local $JAVA_TOP, so I copied it from my org's Unix based Oracle EBS installation).
If you think this has to do with me copying the DocumentHelper.class from a unix env and using it in a windows env, can someone point me to where I can find the DocumentHelper.class file for use in Windows env. since I donot find it under my windows based oracle ens installation (Oracle EBS 11.5.10)
Thank you for your time. Appreciate your help.
Edited by: user8005428 on Feb 16, 2010 1:26 PMI an trying to display a PDF from within an OAF page.
I am generating the XML using a database function and getting the XML in the controller class as a clob object which I then converted into an ascii stream. I tested the stream, and I am getting the XML output as expected. Sample below>
<ORG_NAME>
<EMPLOYEE_ID>
<FIRST_NAME>Ogre</FIRST_NAME>
<LAST_NAME>Swamp</LAST_NAME>
<EMAIL_ID>[email protected]</EMAIL_ID>
<SALARY>10</SALARY>
<MANAGER_ID>0</MANAGER_ID>
<MANAGER_NAME>I work for no one</MANAGER_NAME>
<EMP_ADDRESS>My Swamp</EMP_ADDRESS>
<EMP_CITY_STATE>Kingdom from far away</EMP_CITY_STATE>
</EMPLOYEE_ID>
</ORG_NAME>
I am using the following code in the controller class to generate the PDF as suggested in the XML Pub Guide Chapter 12.
String redirectURL = DocumentHelper.getOutputURL(pageContext,"PER", "NEW_EMP", bi, "PDF", null, "en", "00");
OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean(pageContext, HTML_WEB_BEAN, null, "IFRAME");
outRegion.setHTMLAttributeValue("src",redirectURL);
outRegion.setHTMLAttributeValue("width", "100%");
outRegion.setHTMLAttributeValue("height", "500");
outRegion.setHTMLAttributeValue("title ","NEW_EMP");
outRegion.setHTMLAttributeValue("name ","NEW_EMP");
pageContext.getPageLayoutBean().addIndexedChild(outRegion);
But, I am getting the following error on the PAF page.
404 Not Found
OracleJSP: java.io.FileNotFoundException: C:\JDeveloper\jdevhome\jdev\myhtml\OA_HTML\xdo_doc_display.jsp (The system cannot find the file specified)
When I checked the redirectURL that is generated by the DocumentHelper class, this is what I found.
redirectURL: /OA_HTML/xdo_doc_display.jsp?dbcName=localhost_vis&fileName=NEW_EMP-1348275838_out.pdf&mFileLength=1873&p_output=C:\JDeveloper\jdevhome\jdev\myhtml\OA_HTML\fwk/t/NEW_EMP-1348275838_out.pdf&outputType=PDF
I noticed that the first part of the url string is in windows path format, while the second part in unix format. I had copied the DocumentHelper.class from a unix file system (where the oracle ebs is installed in my org) and placed it in my windows based machine. Caould this be the cause of the problem.
Note: I am pointing my JDeveloper to the Oracle EBS installed locally on my windows machine (but did not find the DocumentHelper.class in the local $JAVA_TOP, so I copied it from my org's Unix based Oracle EBS installation).
If you think this has to do with me copying the DocumentHelper.class from a unix env and using it in a windows env, can someone point me to where I can find the DocumentHelper.class file for use in Windows env. since I donot find it under my windows based oracle ens installation (Oracle EBS 11.5.10)
Thank you for your time. Appreciate your help.
Edited by: user8005428 on Feb 16, 2010 1:26 PM -
I am using NI OPC Server and I can read Siemens S7-300 PLC tags such as thermocouple values from the PLC. Additonally I can write manually a constant value to that tag by selecting it in the NI Distributed System Manager. And I can read the written value from NI Distributed System Manager or from NI OPC Server. But I can not write any value to the S7300 PLC tags such as by using a knob object at the NI Vision Builder AI Inpection (.vbai) page.
Any help is welcomed. Thanks in advance.
Attachments:
manual_writing_to_plc.png 298 KBThe tutorial at the following location explains how to use Vision Builder AI as a OPC server.
https://decibel.ni.com/content/docs/DOC-18647
http://www.ni.com/white-paper/13574/en
To allow VBAI to connect to an OPC Server (i.e. act as an OPC client), you need to purchase and install the DSC Run-time System.
Once installed, you can create an OPC I/O client using the Distributed System Manager, create variables bound to OPC tags, then create VBAI network variables that are bound to these variables.
Another possible technical solution to connect to OPC Servers supporting Data Access 2.0 is to use the datasocket API in a Run LabVIEW step.
http://forums.ni.com/t5/Machine-Vision/Read-and-Write-with-OPC-through-NI-Vision/m-p/2048278/highlig...
Hope this helps.
-Christophe
Maybe you are looking for
-
Is the ipad mini good for kids?
Is the ipad mini good for an 8 year old?
-
Session Variable in Physical Layer
Hi All, I am trying to use session variable in Physical layer i mean in select statement like select region,revenue,year from ABC where siteid ='VALUEOF(NQ_SESSION."siteid")' but it throws a warning saying that WARNINGS: GLOBAL: The repository variab
-
Not able to add tasks in previous Transport Request
Hello all, After upgrade of EHP1 SP6 to our ECC 6.0 system our developers can create a Transport request but not able to add the request for new tasks in its previous request created.He can create a new request but not able to add t
-
I was updating my ipad2 to iOS.5 version, and somehow the iPad turned of and the update was not finished. When i turned on the iPad the computer nor iTunes could recognize the iPad. I have windows xp. How can I solve this issue?
-
Importing JPEG Images from from a Nikon D 200 show in finder thumbnails black bars on two sides, whereas Imports from Canon G5 don´t ? The bars seem to appear in "Finder" thumbnails an "digital images" only but not in Aperture after import. Any idea