How to display the result of a java class in InputText?
Hi allHow can I get the result of the java classes to InputText or OutputText?
also everyone in the forum can road map me to deal with Java in oracle adf because I am a beginner in oracle adf
I saw a few samples in corner of oracle adf, but it is difficult for me.
I use JDeveloper Version 11.1.2.3, technology of the Adf.
My question is how to return the result of java Bean InputText or OutText
Thank you
see if you want to have show some .so beans instance variable value you can have a few bean .define managed a variable as
string abc = "abc";
create the getter set for her.
in the value property of inputText or OutPutText write an el as #{beanscope.managedbeanName.abc}
Tags: Java
Similar Questions
-
How to display the result sqlplus in java?
I want to call sqlplus to run some commands sql in java, but how can I print the result of sqlplus?
In java code, I call sqlplus as:
Process of p;
Run the command
p = Runtime.getRuntime () .exec (commandString);
print the result of the command
InputStream inputStream = p.getInputStream ();
How to display the result of the execution?
Published by: Yi on February 26, 2012 23:41You can use ProcessBuilder. Copy the following code starts sql * more and runs the script in the variable "filename". It displays the results in the console of NetBeans.
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.File; import java.util.Map; public class test1 { public static void main (String args []) { test_script(); } public static void test_script () { String fileName = "@test_table.sql"; String sqlPath = "E:\\"; String sqlCmd = "sqlplus"; String arg1 = "user/password@sid"; -- plug in your user, password and db name String arg2 = fileName; try { String line; ProcessBuilder pb = new ProcessBuilder(sqlCmd, arg1, arg2); Map
env = pb.environment(); env.put("VAR1", arg1); env.put("VAR2", arg2); pb.directory(new File(sqlPath)); pb.redirectErrorStream(true); Process p = pb.start(); BufferedReader bri = new BufferedReader (new InputStreamReader(p.getInputStream())); BufferedReader bre = new BufferedReader (new InputStreamReader(p.getErrorStream())); while ((line = bri.readLine()) != null) { System.out.println(line); } bri.close(); while ((line = bre.readLine()) != null) { System.out.println(line); } bre.close(); System.out.println("Done."); } catch (Exception err) { err.printStackTrace(); } } } Here is the content of the script at E:\\test_table.sql
Prompt drop TABLE ANOTHER_TEST; DROP TABLE ANOTHER_TEST CASCADE CONSTRAINTS / Prompt Table ANOTHER_TEST; CREATE TABLE ANOTHER_TEST ( BATCH_SEQ NUMBER, BATCH_GROUP_ID NUMBER, STATUS_FLAG VARCHAR2(30 BYTE), OBJ_BEING_PROCESSED VARCHAR2(80 BYTE), BATCH_RUN_START_DTTM DATE, BATCH_RUN_END_DTTM DATE, CREATE_DTTM DATE, CREATE_USER VARCHAR2(30 BYTE), UPDATE_DTTM DATE, UPDATE_USER VARCHAR2(30 BYTE) ) LOGGING NOCOMPRESS NOCACHE PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT ) MONITORING / COMMENT ON TABLE ANOTHER_TEST IS 'This is a test table.' / EXIT /
-
How to display the results in the order based on the value of research
Hi all
How to display the results in the slot order.
If the user makes a search with "MADONNA", I view the results as title begins with "MADONNA" first then the rest of the records.CREATE TABLE TEST( SONGID NUMBER, TITLE VARCHAR2(200)) INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)'); INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)'); INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK'); INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA'); INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)'); INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)'); INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA'); INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI'); INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE'); SELECT *FROM TEST WHERE INSTR (TITLE, 'MADONNA') > 0 output: SONGID TITLE 10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA) 11 CICCONE, MADONNA (CA) 12 DALLIN, MADONNA LOUISE/STOCK 13 MADONNA 14 MADONNA (A)/ AHMADZAI, MIRWAIS (C) 15 MADONNA (CA) 16 MIRWAIS AHMADZAI, MADONNA 17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI 18 MADONNA (CA),CICCONE Expected output : 13 MADONNA 14 MADONNA (A)/ AHMADZAI, MIRWAIS (C) 15 MADONNA (CA) 18 MADONNA (CA),CICCONE .. .. .. .. ...
Please let me know is possible to show the results in this order.
Kind regards
RajasekharThis can be a little more specific:
SQL> SELECT * 2 FROM TEST 3 WHERE INSTR (TITLE, 'MADONNA') > 0 4 ORDER BY INSTR (TITLE, 'MADONNA') 5 ,TITLE 6 ; SONGID TITLE -------------------- -------------------------------------- 13 MADONNA 14 MADONNA (A)/ AHMADZAI, MIRWAIS (C) 15 MADONNA (CA) 18 MADONNA (CA),CICCONE 12 DALLIN, MADONNA LOUISE/STOCK 11 CICCONE, MADONNA (CA) 17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI 16 MIRWAIS AHMADZAI, MADONNA 10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
-
How to display the results of a MySql query in multiple columns?
Hi, I know how to display PHP/MySq
l of the results in a single column, but I'm really stuck to show
Ying the results of several columns in DW CS4.
Can someone help me with a code example? I'm new to php/mysql. Thank you
Are you asking how to rotate the query results? Do a search for a horizontal loop. If this isn't what you're asking, please provide more details.
-
How to display the results of the database from several tables in descending order?
I have a key word to search for images on my website that allows visitors to search for specific things. My db msysql has 15 tables and for the search function I use a UNION ALL operation to join them any visitor can find all tables at the same time. The problem is that all the results are in ascending order. How can I get the results in descending order.
SELECT *.
FROM table1
Keyword WHERE AS id LIKE %s or %s
UNION ALL
SELECT *.
FROM table2
Keyword WHERE AS id LIKE %s or %s
UNION ALL
SELECT *.
TABLE 3
Keyword WHERE AS id LIKE %s or %s
PS
I tried this and it doesn't work:
SELECT * FROM table1 WHERE AS %s or id AS %s ORDER BY id DESC keyword
and I know that this is not conventional to use SELECT * with so many tables, but believe me, I have my reasons. I'm not trying to do is to wrap the whole UNION within an external SELECTION
Once more, the order by clause can only appear at the end of the last select statement in a UNION query. You have it on all select statements.
-
How to display the result conditioned by the sign!
Hello
This sum: sum (B.MONETARY_AMOUNT_03 [... / B.ACCOUNT_TYPE = 'R' and... / B.TREE_NODE = 'FUNC']).
sum (B.MONETARY_AMOUNT_03 [.. B.ACCOUNT_TYPE = ' and... / B.TREE_NODE = 'FUNC'])
is well calculated. (in my example, it is equal to: 5457573)
Now, I want to show this result only if it is positive, so I write this syntax...
<? If: (sum (B.MONETARY_AMOUNT_03 [... / B.ACCOUNT_TYPE = 'R' and... / B.TREE_NODE = 'FUNC'])-)
sum (B.MONETARY_AMOUNT_03 [.. B.ACCOUNT_TYPE = ' and... / B.TREE_NODE = 'FUNC'])) > 0? >
For me, that will show the result if it is positive, but when excuting, which show nothing... Normally, it should show the 5457573
..
Any help please!You should do this:
sum (B.MONETARY_AMOUNT_03 [.. B.ACCOUNT_TYPE = ' and... / B.TREE_NODE = 'FUNC'])) > 0? >
(sum(B.MONETARY_AMOUNT_03[.. .account_type='R' and="" ../b.tree_node='FONCT'?>
sum (B.MONETARY_AMOUNT_03 [.. B.ACCOUNT_TYPE = ' and... / B.TREE_NODE = 'FUNC']))? >Thank you!
-
How to display the results in 3 sec then line break?
I was on a website and saw that they had their results displaying in a row of 3 then it < br / > to the next line. I searched high and low for days about how they did it. I know that this can be done manually, but the question is whether this can be done dynamically?
For example:
= 37 search results
I want to display as follows
: # 1 # 2 result: result # 3 < br / >
: # 4 result # 5: result # 6 < br / >
Result # 7: Result # 8: # 9 result < br / >
and so on.
Hope that all of the senses.
I found an old string on the forums here with someone who has the same problem. What follows is exactly what I needed to finish it. I had no idea how to achieve this. Dan's response was right, but I didn't know exactly how finish it to take account of the last part of the file.
Thanks again for all the responses and assistance.
-
Hi all
I have two tables named as standard of the emp and priority of emp with the same data in both table. And not the column in tables emp and emp name.
I need to take priority emp emp data no 6,5,4 and emp of standard data should be 10,9,8,7,3,2,1
Put it should be like this
EMP name Emp
6A
6 a
3 d
20g
9 E
8 F
8: 00
3 H
3 P
2 I have
Thanks and greetings
Srikkanth.Mwith emp_standard as ( select 10 emp_no, 'D' emp_name from dual union all select 9 emp_no, 'E' emp_name from dual union all select 8 emp_no, 'F' emp_name from dual union all select 7 emp_no, 'G' emp_name from dual union all select 3 emp_no, 'H' emp_name from dual union all select 2 emp_no, 'I' emp_name from dual union all select 1 emp_no, 'J' emp_name from dual ), emp_priority as ( select 6 emp_no, 'A' emp_name from dual union all select 5 emp_no, 'B' emp_name from dual union all select 4 emp_no, 'C' emp_name from dual ) select emp_no, emp_name from emp_standard union all select emp_no, emp_name from emp_priority order by emp_name Output: "EMP_NO" "EMP_NAME" "6" "A" "5" "B" "4" "C" "10" "D" "9" "E" "8" "F" "7" "G" "3" "H" "2" "I" "1" "J"
-
Display the results in the String form: dosen't work based on the example
Hello
To understand How to display the results as a string, I tried to reproduce this:
[http://apex.oracle.com/pls/otn/f?p=31517:84 | http://apex.oracle.com/pls/otn/f?p=31517:84]
I have my emp table
I've created with the wizard, on my page, a new AREA of REPORTEMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7839 KING PRESIDENT - 81-11-17 5000 - 10 7698 BLAKE MANAGER 7839 81-05-01 2850 - 30 7782 CLARK MANAGER 7839 81-06-09 2450 - 10 7566 JONES MANAGER 7839 81-04-02 2975 - 20 7788 SCOTT ANALYST 7566 82-12-09 3000 - 20 7902 FORD ANALYST 7566 81-12-03 3000 - 20 7369 SMITH CLERK 7902 80-12-17 800 - 20 7499 ALLEN SALESMAN 7698 81-02-20 1600 300 30 7521 WARD SALESMAN 7698 81-02-22 1250 500 30 7654 MARTIN SALESMAN 7698 81-09-28 1250 1400 30 7844 TURNER SALESMAN 7698 81-09-08 1500 0 30 7876 ADAMS CLERK 7788 83-01-12 1100 - 20 7900 JAMES CLERK 7698 81-12-03 950 - 30 7934 MILLER CLERK 7782 82-01-23 1300 - 10
-Selected SQL - RESULTS
-Name: Test
-Area Source Type: SQL Query
-Model region: region report
IN function enter SQL Query or PL/SQL returns a SQL query, I COPY-PASTE the following code to [http://apex.oracle.com/pls/otn/f?p=31517:84 | http://apex.oracle.com/pls/otn/f?p=31517:84]
AND I have this error:DECLARE p_vc_arr2 htmldb_application_global.vc_arr2; p_string VARCHAR2 (2000); BEGIN SELECT ename BULK COLLECT INTO p_vc_arr2 FROM emp WHERE deptno = :p84_select_deptno; p_string := HTMLDB_UTIL.table_to_string (p_vc_arr2, ':'); HTP.p (p_string); END;
+ 1 error has occurred.
Invalid query, no found select statement
Is not a PL/SQP selected?
Do I did wrong?
Thank you
Roseline Paquin
Montreal, Canada1 error has occurred
Invalid query, no found select statementWhat happens if you try
DECLARE p_vc_arr2 htmldb_application_global.vc_arr2; p_string VARCHAR2 (2000); BEGIN SELECT ename BULK COLLECT INTO p_vc_arr2 FROM emp WHERE deptno = :p84_select_deptno; return 'select ''' || HTMLDB_UTIL.table_to_string (p_vc_arr2, ':') || ''' str from dual'; END;
??
-
How to display the java console on Windows 7 using Sun Java plug-in
Hi all
I have an Oracle 11 g installation Rel2 developer on my windows machine.
For the purposes of debugging, I would like to know / Access how to display the java console.
Thanks in advance...!You turn on the Java Console in the applet of the control panel Java (Start Menu-> Control Panel-> Java-> tab advanced-> Java Console).
Craig...
-
How to display the serial No. field not to mention that the search results displayed
How to display the serial No. field not to mention that the search results displayedHello
You missed to add the varstatus property in your table
Try with this code:
lines = ' #{bindings. " SahajDetailVO1.rangeSize}.
emptyText = "#{bindings." SahajDetailVO1.viewable? "{'No data to display.': 'Access Denied.'}".
fetchSize = "#{bindings." SahajDetailVO1.rangeSize}.
rowBandingInterval = "0" id = "t1" styleClass = "AFStretchWidth."
varStatus = 'vs' >
-
How to make a loop to display the results of each iteration?
I have a process inside a for loop and I want to display the results of 1, 2, 3 and 4 iterations all at once. Is it possible to do without creating 4 distinct for loops with a different constant for every N?
Thanks for the help.
-
How to display the speaker icon in the taskbar in windows 7?
How to display the "speaker" of the taskbar icon in windows 7?
Thank you
concerning
Jamal
Hi Jamal
1. right click on the taskbar, and then select Properties.
In the Notification area section, click the Customize button.
2. in the Configuration window, find the Volume icon.
The Drop Down Menu to select the icon lounge and Notifications.
3. If you don't see the Volume icon, click system icons activate or deactivate the link at the bottom of the window.
Find the Volume icon and select enabled in the menu dropdown.
Repeat step 2.
Let us know the results.
Concerning
-
Cannot display the results to the database during "Update": SQL statement
Hello
I get this error trying to update a VO via the UI or BCBrowser.
Cannot display the results to the database during "Update": SQL statement
This is a default single front & right THAT VO creates on the object of the entity (Database Table)
On the same table and with the same credentials of DB, I could update the record.
Any guess on what went wrong?
Thanks in advance for any help.
p.s Jdev 11.1.1.6
Journal:
oracle.jbo.DMLException: Houston-26041: could not publish data from database in "Update": SQL statement "START the CAR UPDATED CarEO SET SEL_ITEM =: 1 WHERE TXN_NO =: 2 AND LOGID =: AND SEQNO = 3: 4 POLL DELIVERY_MODE, CERTIFICATION_REQ, SOFT_COPY_IND, SELITEM IN: 5,: 6,: 7,: 8; END; ».
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:583)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)
at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)
at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)
to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6289)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
in java.awt.EventQueue$ 1.run(EventQueue.java:603)
in java.awt.EventQueue$ 1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
in java.awt.EventQueue$ 2.run(EventQueue.java:617)
in java.awt.EventQueue$ 2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.sql.SQLException: invalid column type
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:150)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:399)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:581)
at oracle.jdbc.driver.OracleCallableStatementWrapper.registerOutParameter(OracleCallableStatementWrapper.java:1765)
at oracle.jbo.server.OracleSQLBuilderImpl.bindUpdateStatement(OracleSQLBuilderImpl.java:2243)
at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10524)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:412)
... 52 more
The problem is solved now.
new columns added to the database table, after the creation of the entity object. Those changes were not picked up in the entity object.
I found this difference after object entity with the DB Table comparison.
And when I added these new columns to EO & VO, I don't get this error more.
Thanks to all who tried to help
-
Do not display the result in obiee.
Hi friends,
I have a requirement saying that - for any selection of filters. If my retail report has less than 5 cases it should show a message saying "less than 5 records" and does not display the results.
If the report contains more than 5 records then - user need to display the results.
For example: filters - Manager Id, service Id
Report 1 on dashboard - name of the employee, the employee, Department Id, Id of director compensation
Report on dashboard 2 - address of the employee, employee, manager name
For above selection of filters so the Total number. Records for Report1 < 5 ('Show - No results"), Total No. records for Report1 > 5 (Show - results)
Even, even to the Report2.
Please, let me know how should I have to work on that.
Thank you.You can try filtering MAX (RCOMPTE ("ID Manager")) > 5. I hope this helps.
Bharath
Maybe you are looking for
-
Cannot get Portege R100 to retrieve by using the original diskettes
I just brought my 2005 Portege R100 to retire to give one of the children - but it wouldn't start. I changed the boot CD-ROM order > LAN > HDD > PC Card and put the original recovery disks in the drive of DVD Toshiba genuine (and compatible). The sys
-
Looking myRIO Xilinx architecting-7010 SoC I am bit inntrested in the workflow for the GS. How does the bennifit myRIO use a system on chip instead of a regulare CPU and FPGA not in the same chip. 4 way could there be to manage a VI? With FPGA and RT
-
I'm waiting for delivery on my laptop dv6tQE. I just learned about wimax technology. I am interested in this because I spend a lot of time outside of a wireless signal and won't pay for cell phone coverage (e.g. 4 G). My notebook will contain the "
-
Unable to download the update of applications...
Hi, I have the palm pre Sprint and I noticed that some of the Apps I already own do not appear in App catalog as an update as they used, as a new download and if I click to select the application, I have only the "Tap to launch" option, not installat
-
Wave volume control keeps resetting to level lowest
Volume slider control wave reset automatically level the lowest volume. Sometimes the cursor moves down, resulting no sound, sometimes the cursor remains stationary with no sound. Still, I can click on the cursor and its takes a few moments and the