Oracle8i JDBC Guide Example Not Working-applet security
I was having problems with a JDK1.1.7 applet that I want to get
working with Netscape 4.07 and my Oracle 8.0.5 installation. I
am using Netscape's Signtool, the Capabilities classes, and I
have packaged the Oracle classes111.zip contents into my Signed
JAR file. I got a copy of the Oracle 8i JDBC Developer's Guide
and Reference which has an example of what I'm trying to do.
However, I get the same error running the example. Can anyone
tell me what I'm doing wrong?
Please help...
stephen
The Java console output is as follows:
# Applet debug level set to 9
netscape.security.AppletSecurityException: security.Couldn't
connect to '47.129.164.42' with origin from ''.
at
netscape.security.AppletSecurity.checkConnect(AppletSecurity.java
:914)
at
netscape.security.AppletSecurity.checkConnect(AppletSecurity.java
:926)
at
netscape.security.AppletSecurity.checkConnect(AppletSecurity.java
:795)
at
java.lang.SecurityManager.checkConnect(SecurityManager.java:718)
at java.net.Socket.<init>(Socket.java:245)
at java.net.Socket.<init>(Socket.java:123)
at oracle.sqlnet.SQLnet.Connect(SQLnet.java:176)
at oracle.sqlnet.SQLnet.Connect(SQLnet.java:146)
at oracle.sqlnet.SQLnet.Connect(SQLnet.java:120)
at oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:983)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:158)
at
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:
93)
at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:146)
at java.sql.DriverManager.getConnection(DriverManager.java:90)
* at java.sql.DriverManager.getConnection(DriverManager.java:132)
at MainApplet.button2_actionPerformed(MainApplet.java:196)
at
MainApplet$MainApplet_button2_actionAdapter.actionPerformed(MainA
pplet.java:255)
at java.awt.Button.processActionEvent(Button.java:267)
at java.awt.Button.processEvent(Button.java:240)
at java.awt.Component.dispatchEventImpl(Component.java:1789)
at java.awt.Component.dispatchEvent(Component.java:1715)
at
java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispat
chThread.java:83)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
at
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(
DerivedAppletFrame.java:911)
null
No, it is not, but this is the reason for using Netscape's
Capabilities API. It contains a PrivilegeManager that works with
Java's Applet Security Manager to grant permissions for the
applet.
Stephen Brewell (guest) wrote:
: Is the database server on the same machine as your web server?
: I don't think applets can connect to a machine other than that
: from which it was served.
null
Similar Messages
-
My smart guides do not work. From the time I loaded CS5 they have not worked. If you go to View > Grids & Guides > the Smart Guides are grayed out.
Then if you go to the Control Panel > View Options, the smart Guides are not grayed out they are checked.
I have looked around and read trying to find out whats up with these guides but have not found anything the works. I have also uninstalled InDesign and reinstalled. This stall did not work.
If anyone has any idea of why or how to get the guides to work that would be great.
Thanks for your help...
HHudYou must have Snap to Document Grid enabled.
Why is [Some Feature] Grayed Out in InDesign? -
But now , the hole process of sign uping is changed , please remove the wrong guide its not working , and why apple not let to access the free app .!!!
Try going to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change. Then edit the name of the account to change it back to your old email address. You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was. Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.
-
Not working applets in win7 x64
Hello,
Maybe my problems comes from another programs in my computer, but most errors came/come from java (JRE), so I try to write a message here.... and hope to find a solution so that my applets will work. In the past periods I got a lot of script errors and watch at home only to a screen (white background with some text interchangeably) online it's really terrible for my eyes (as watching in the sun). And most program, flash-players not working online....pfff.
I installed "jre-6u21-windows-i586-iftw-rv.exe" and restarted my PC, but again my computer did't show any applet, it makes me crazy. Again I got a 32-bit version on a 64-bits motherboard.....
Java Plug-in 1.6.0_21
Using JRE version 1.6.0_21-b07 Java HotSpot(TM) Client VM
User home directory = C:\Users\Administrator
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
security: property package.access value
sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.
security: property package.access new value
sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
security: property package.access value
sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
security: property package.access new value
sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.de
ploy
security: property package.access value
sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.de
ploy
security: property package.access new value
sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.de
ploy,com.sun.jnlp
security: property package.definition value null
security: property package.definition new value com.sun.javaws
security: property package.definition value com.sun.javaws
security: property package.definition new value com.sun.javaws,com.sun.deploy
security: property package.definition value com.sun.javaws,com.sun.deploy
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value
sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.de
ploy,com.sun.jnlp
security: property package.access new value
sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.de
ploy,com.sun.jnlp,org.mozilla.jss
security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value
com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1aaa14a
network: Cache entry not found [url: http://www.java.com/jsp_utils/, version: null]
network: Cache entry found [url: http://www.java.com/jsp_utils/jreCheck.class, version: null]
prevalidated=false/0
network: Connecting http://www.java.com/jsp_utils/jreCheck.class with proxy=DIRECT
network: Connecting http://www.java.com:80/ with proxy=DIRECT
network: Connecting http://www.java.com/jsp_utils/jreCheck.class with cookie
"jreDcookie=85B46E7A60490AF35A248A871FD2C2DA; JSESSIONID=FB76292F658D40D283D2B8A0F67DD207;
JROUTE=W2VMz2yu926eYGvP"
network: ResponseCode for http://www.java.com/jsp_utils/jreCheck.class : 304
network: Encoding for http://www.java.com/jsp_utils/jreCheck.class : null
network: Disconnect connection to http://www.java.com/jsp_utils/jreCheck.class
network: Cache entry not found [url: http://www.java.com/jsp_utils/, version: null]
basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 337989 us, pluginInit dt
615616 us, TotalTime: 953605 us
basic: Applet initialized
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1aaa14a
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Applet started
basic: Told clients applet is started
basic: Starting applet teardown
basic: Finished applet teardown
During the opening of several sub-directories in the directorymap Java (1.6.0_20 + 21), I found it strange that some sub-maps were empty. In the sub-folders Java/jr6/lib/applet were no files and also not in the 'lib' subdirectory ../audio.
I have search several times and downloaded several versions of Java and reinstalled them (because not working of it). I have read almost 100 pages for the correct solution, but without any result. I was searching in the folder to find information of the Java-applet or why their gone because. The Java controle on the website shows everytime "You have the last and right Java-version", but without working applets I cannot work well at my computer (offline and online).... it's a crime....pfff
So please Help me!
Under each message, e-mail or typed letter, I shall close with this signature and I can proudly say that since the year 2005 has become my lifestyle:
~ I'm open, honest and sincere to myself and others ...! ~.Re: Rear channels not working properly in Win7\ First go to control panel, and sound, and then speakers and then to configure, and then choose 5. for your speaker setup and be sure to not choose full range speakers. Then go back to speakers and choose properties, and then Levels, and try raising your rear speakers a bit louder than your front and center speakers. For me, this works best as rear speakers do not receive as much as front and center anyway. I have my front and center set at 55 so I set the rear to 65 or 70. Then they sound equal. I turn on CMSS-3d in console Launcher and I choose surround, and then stereo surround. I do not like stereo expand.
If you have a sound source that is already 5., such as playing a 5. movie in VLC media player, the sound is already 5. so it is not "double-upmixed" per se. -
Delete Operation in JDBC Sender Adapter not works
Hi,
I have one student table which contains the fields ID,Name,BirthMonth,BirthYear,ReadFlag fields. ReadFlag is a character field or lenght 1 which contains only values either 'Y' or ' '.
I want to execute delete operation in this table ie to delete the records which contains the readflag = 'Y'. So, I set the below values for the following parameters.
DELETE FROM student WHERE READFLAG = ' Y '
Query SQL Statement : SELECT * FROM student WHERE readflag = 'Y'
Update SQL Statement : DELETE FROM student WHERE READFLAG = 'Y'
Poll Interval : 60 Seconds.
There are more records in this table which contains readflag = 'Y'. But, the Adapter does not delete those records from the table i.e delete operation is not executed. At the same time, in Comm. Channel monitoring it does not show any error, but the delete operation is not carried out in the table.
I tried after 'COMMIT' the table also. But it does not work. What could be the reason ? or How to use Delete Operation effectively on the table ?
Kindly help me friends to solve this problem.
Thanking you.
Kind Regards,
Jeg.http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm >>>
<i>Adapter Work Method
You must add an indicator that specifies the processing status of each data record in the adapter (data record processed/data record not processed) to the database table.
The UPDATE statement must alter exactly those data records that have been selected by the SELECT statement. You can ensure this is the case by using an identical WHERE clause. (See Processing Parameters, SQL Statement for Query, and SQL Statement for Update below).
<b>Processing can only be performed correctly when the isolation level for transaction is set to repeatable_read or serializable.
Example
SQL statement for query: SELECT * FROM table WHERE processed = 0;
SQL statement for update: UPDATE table SET processed = 1 WHERE processed = 0;
processed is the indicator in the database.</b></i>
try with repeatable_read or serializable !!!
Also go thru this thread - DELETE Querey in JDBC SENDER -
Core/examples/sessions/Broker example not working
Guys
I am trying the example with Oracle database instead of the HSQL database. I replaced the driver & url strings and put the classes12.jar in the classpath
But I continue to get the following error. Can someone please tell me what I am missing.
D:\toplink\examples\core\examples\sessions\broker>D:\JDev9i\jdk\bin\java.exe -classpath ""D:\JDev9i\jdk\lib\tools.jar";"d:\to
plink\ant\lib\jaxp.jar";"d:\toplink\ant\lib\jakarta-ant-1.4.1-optional.jar";"d:\toplink\ant\lib\crimson.jar";"d:\toplink\ant\
lib\ant.jar";.;d:\toplink\core\lib\toplink.jar;D:\JDev9i\jdbc\lib\classes12.jar;d:\toplink\core\lib\toplink.
jar;D:\JDev9i\jdbc\lib\classes12.jar" -Dant.home=d:\toplink\ant -Dtl.home=d:\toplink -Dwls61.home= -Dwls70.home= -Dwas.home=
-Doracle.home=D:\JDev9i\OC4J903 -Dexamples.home=d:\toplink\examples -Dtoplink.dir=d:\toplink\core\lib -Dtoplink.library=topli
nk.jar,xerces.jar -Dtoplink.weblogic.path=d:\toplink\wls_cmp\lib\tl_wlsx.jar -Dtoplink.was.path=d:\toplink\was_cmp\lib\tl_wa
sx.jar -Dhsql.path=d:\toplink\HSQL\lib\hsqldb.jar -DDEBUG=on org.apache.tools.ant.Main runExample -DtestClass=examples.sessions.broker.Demo
Buildfile: build.xml
init:
verify.build.done:
runExample:
[java] 2003.05.19 03:54:35.625--DatabaseSession(11)--Thread[main,5,main]--Connection(12)--TopLink, version:TopLink - 9.0
.3 (Build 423)
[java] 2003.05.19 03:54:35.685--DatabaseSession(11)--Thread[main,5,main]--Connection(12)--connecting(DatabaseLogin(
[java] platform => OraclePlatform
[java] user name => "asdfbf"
[java] datasource URL => "jdbc:oracle:thin:@localhost:fims"
[java] ))
[java] 2003.05.19 03:54:35.705--DatabaseSession(11)--Thread[main,5,main]--EXCEPTION [TOPLINK-4003] (TopLink - 9.0.3 (Bui
ld 423)): oracle.toplink.exceptions.DatabaseException
[java] EXCEPTION DESCRIPTION: Configuration error. Class [oracle.jdbc.driver.OracleDriver] not found.LOCAL EXCEPTION ST
ACK:One more thing to add:
I am not able to get any of the examples to work with Oracle database. Again the only thing I suppose I need to change are the folloowing lines in the EmployeeProject.java
login.usePlatform(new oracle.toplink.internal.databaseaccess.OraclePlatform());
login.setDriverClassName("oracle.jdbc.driver.OracleDriver");
login.setConnectionString("jdbc:oracle:thin:@localhost:1522:fims");
login.setUserName("kumarv");
login.setEncryptedPassword("7AD96CD575D1A7FCAA504BA7E4FC");
Also one line change in the sessions.xml file to use the OraclePlatform instead of the HSQLPlatform.
Has any one got these to work with Oracle, Any help is really appreciated.
classes12.jar is in the classpath so I don;t understand why I get the execption that:
[java] EXCEPTION DESCRIPTION: Configuration error. Class [oracle.jdbc.driver.OracleDriver] not found.
[java] oracle.toplink.exceptions.DatabaseException oracle.toplink.exceptions.DatabaseException.configurationErrorCla
ssNotFound(java.lang.String)
Thanks -
SQL*LOADER example not working for REF
I was working on the Oracle bulk load scripts using SQL*LOADER utility .
I have encountered an error while using the REF column option to resolve the parent-child referential integrity .
The example given in the URL http://www.csee.umbc.edu/help/oracle8/server.815/a67792/ch05.htm Example 5-9 Loading Primary Key REF Columns
does not work . and generates errors : 'SQL*Loader-418: Bad datafile datatype for column DEPT_MGR'
example :
Control File
LOAD DATA
INFILE `sample.dat'
INTO TABLE departments_alt
FIELDS TERMINATED BY `,' OPTIONALLY ENCLOSED BY `"'
(dept_no CHAR(5),
dept_name CHAR(30),
dept_mgr REF(CONSTANT `EMPLOYEES', emp_id),
emp_id FILLER CHAR(32))
Data file (sample.dat)
22345, QuestWorld, 007,
23423, Geography, 000,
Could you please suggest any solutions for this ?Some of the quotes are wrong
Try the sample from the 10.2 documentation
LOAD DATA
INFILE 'sample.dat'
INTO TABLE departments_alt
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
(dept_no CHAR(5),
dept_name CHAR(30),
dept_mgr REF(CONSTANT 'EMPLOYEES', emp_id),
emp_id FILLER CHAR(32)) -
Report with JDBC connection does not work when they includes CommandTable
I am trying to render using the new version of Crystal report java component - CRJ a report contains Data base Fileds of type Command Table (Row Set) which seems to be not working.
when i use the previes version of crystal SDK it works fine.
after deugging the Sample CrystalHelper.java file which contains the method .changeDatasource()
i found that the DataBaseController.setLocation() method changes the CommandTable class to Table when using it on CommandTable instance and as result all the fields defined into that CommandTable were disappear.That appears to be a known issue: Eclipse JRC: To change the JDBC connection at run time
Sincerely,
Ted Ueda -
JDBC stored procedure not working in Weblogic 12.1.3
Hi,
We are migrating from WLS 12.1.2 to 12.1.3.
We have a JDBC stored procedure which used to work correctly under 12.1.2. I understand that 12.1.2 uses ojdbc5/ojdbc6 jars (11.2.0.x). After migrating to 12.1.3, the stored procedure is not working.
We have narrowed it down to the different between 12.1.2 using ojdbc5/6 and 12.1.3 using ojdbc7 jars, though we do not understand what the difference here is.
Connection connection = getConnection();
CallableStatement callableStatement = connection.prepareCall("{call RECEIPT_LOG (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}");
callableStatement.registerOutParameter("PIO_RECEIPT_LOG_ID", java.sql.Types.INTEGER);
callableStatement.setLong("PIO_RECEIPT_LOG_ID", 0);
callableStatement.setString("PIO_DRAWER_NAME", request.getDrawerName());
callableStatement.setString("PIO_DRAWER_FIRST_NAME", request.getDrawerFirstName());
callableStatement.setString("PIO_DRAWER_OTHER_NAMES", "");
callableStatement.setString("PIO_DRAWER_STREET_NO", "");
callableStatement.setString("PIO_DRAWER_STREET", "");
callableStatement.setString("PIO_DRAWER_LOCALITY", "");
callableStatement.setLong("PIO_DRAWER_POSTCODE", 0);
callableStatement.setString("PI_PAYMENT_TYPE", request.getPiPaymentType());
callableStatement.setLong("PI_APPLICATION_ID", request.getApplicationId());
callableStatement.setString("PI_PRIMARY_ID", request.getPiPrimaryId());
callableStatement.setString("PI_SECONDARY_ID", request.getPiSecondaryId());
callableStatement.setDouble("PI_AMOUNT", request.getPiAmount());
callableStatement.setInt("PI_TAX_AMOUNT", 0);
callableStatement.setNull("PI_VPC_TXNRESPONSECODE", java.sql.Types.VARCHAR);
callableStatement.setInt("PI_VPC_TRANSACTIONNO", 0);
callableStatement.setString("PI_VPC_MESSAGE", "");
callableStatement.setString("PI_VPC_ACQRESPONSECODE", "");
callableStatement.setString("PI_VPC_RECEIPTNO", "");
callableStatement.setString("PI_VPC_BATCHNO", "");
callableStatement.setString("PI_VPC_CARD", "");
callableStatement.setString("PI_VPC_MERCHTXNREF", "");
callableStatement.setString("PI_VPC_MERCHANT", "");
callableStatement.setString("PI_VPC_ORDERINFO", "");
callableStatement.setInt("PI_VPC_AMOUNT", 0);
callableStatement.setString("PI_VPC_AUTHORIZEID", "");
callableStatement.registerOutParameter("PO_RECEIPT_NO", java.sql.Types.VARCHAR);
callableStatement.registerOutParameter("PO_SOURCE_ID", java.sql.Types.INTEGER);
callableStatement.registerOutParameter("PO_PAYMENT_METHOD_TEXT", java.sql.Types.VARCHAR);
callableStatement.registerOutParameter("PO_CREATE_COMMENT", java.sql.Types.VARCHAR);
callableStatement.registerOutParameter("PO_ERROR_MESSAGE", java.sql.Types.VARCHAR);
boolean isSuccessful = callableStatement.execute();
Long receiptLogId = callableStatement.getLong("PIO_RECEIPT_LOG_ID");
Here, when the callableStatement.execute() is fired, the isSuccessful is false and the output parameter receiptLogId is 0
Any help appreciated.
Regards,
RahulHi All,
We still haven't figured out what the problem is with JDBC when using ojdbc7.jar but, as an alternate solution we ported the code to Spring JDBC and got it working.
Regards,
Rahul -
HelloWorld Example Not Working
Hi,
I am using JCDK 2.2.2.
Converter and scriptgen run without errors from C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2\samples (which is the existing samples directory):
converter -classdir "C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2\samples\classes" -exportpath "C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2\api_export_files\;C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2\samples\classes\com\sun\javacard\samples\HelloWorld\javacard" -applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1 com.sun.javacard.samples.HelloWorld.HelloWorld com.sun.javacard.samples.HelloWorld 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0
scriptgen -o HelloWorld.scr ./classes/com/sun/javacard/samples/HelloWorld/javacard/HelloWorld.capI run cref from C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2\bin:
cref.exe -o HelloWorld.eepromAnd then in another command prompt from C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2\bin:
apdutool C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2\samples\HelloWorld.scrThe app installs fine. So now I want to test the code. I added a line to the script at the end to selecct the application:
// Select HelloWorld
0x00 0xA4 0x04 0x00 0x09 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x1 0x7F;Which is not working (6d00 error)
Any suggestions why this could be happening? Nothing throws errors except the line to select the app. It can't be a problem with the code, because I am running the sample files that came with the JCDK.
P.S. I tried 'creating Helloworld' using the line
0x80 0xB8 0x00 0x00 0x0b 0x09 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x1 0x00 0x7F;But this gave a 6443 error.
Edited by: Candice on Jul 11, 2011 2:14 AMP.S. I tried 'creating Helloworld' using the line
0x80 0xB8 0x00 0x00 0x0b 0x09 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x1 0x00 0x7F;But this gave a 6443 error.Applet not found for installation.
• Cause: An attempt was made to create an applet instance, but the applet code was not installed on the card.
• Solution: Verify that the applet package has been downloaded to the card.
Remeber that after the first time you launch cref, you need to tell it where to load the EEPROM file from the last run with -i <file>. You can use the same file for -i and -o to be able to reuse the mask and store new state.
Cheers,
Shane -
JSF Getting Started Example not Working
I've installed and configured JSF according to CoreJSF 1st Chapter example "A simple JSF Application" (available at http://horstmann.com/corejsf/). The only different thing i've done is to put the jsp pages in a separate folder within the root web application folder. The JSF seems to be properly configured, since i'm able to see the UI components in the login page. However, once I click login button, the application takes me once more to the login page (same page that put the request). I figure it is a problem with the navigation file, I've changed the faces-config.xml including "jsf/welcome.jsp" as target since "jsf" is the separate directory I created for JSP files. I does not work (not getting exceptions though). Any prompt help will be highly appreciated.
These are the files:
webapproot/jsf/index.jsp
<html>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
<head>
<title>A Simple Java Server Faces Application</title>
</head>
<body>
<h:form>
<h3>Please enter your name and password.</h3>
<table>
<tr>
<td>Name:</td>
<td>
<h:inputText value="#{user.name}"/>
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<h:inputSecret value="#{user.password}"/>
</td>
</tr>
</table>
<p>
<h:commandButton value="Login" action="login"/>
</p>
</h:form>
</body>
</f:view>
</html>
webapproot/jsf/welcome.jsp
<html>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
<head>
<title>A Simple Java Server Faces Application</title>
</head>
<body>
<h:form>
<h3>
Welcome to Java Server Faces,
<h:outputText value="#{user.name}"/>!
</h3>
</h:form>
</body>
</f:view>
</html>
webapproot/WEB-INF/faces-config.xml
<faces-config>
<navigation-rule>
<from-view-id>jsf/index.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>jsf/welcome.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>user</managed-bean-name>
<managed-bean-class>co.edu.unal.dnic.licapa.capa.UserBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
webapproot/WEB-INF/web.xml
<web-app>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>/index.html</welcome-file>
</welcome-file-list>
<display-name>DNIC - Capacitaci�n 1.0.1</display-name>
<description>
DNIC - Capacitaci�n 1.0.1
</description>
</web-app>
Since I'm not getting any java exceptions I figure the UserBean class is working properly.
Thank you......
Juliantry to put / at the beginning of the from-view-id and to-view-id
-
Hans Javaserver 3 book example not working
Hello,
This is from Hans Javaserver Pages Third edition
<%-- Verify that the user is logged in --%>
<c:if test="${validUser == null}">
<jsp:forward page="login.jsp">
<jsp:param name="origURL" value="${pageContext.request.requestURL}" />
<jsp:param name="errorMsg" value="log in first." />
</jsp:forward>
</c:if>
The above example does not seem to work.
The code below seems to work
<%-- Verify that the user is logged in --%>
<c:if test="${validUser.name == null}">
<jsp:forward page="login.jsp">
<jsp:param name="origURL" value="${pageContext.request.requestURL}" />
<jsp:param name="errorMsg" value="log in first." />
</jsp:forward>
</c:if>
Any ideas why his example is not working on Tomcat 5.0?
Thanks
FrankHi I was trying the same thing and was wondering why it doesn't accept the origURL, well it never takes the value of it at all and just skips the page that was requested and goes to mail.jsp no matter what.
<c:choose>
<c:when test="${! empty param.origURL}" >
<c:redirect url="${param.origURL}" />
</c:when>
<c:otherwise>
<c:redirect url="main.jsp" />
</c:otherwise>
</c:choose>
The value of origURL is never passed to this authentication page! I would also like to know the reason why?
Also I have a question to your last piece of code that works: where is the name parameter taken from? Is it the same as userName that is passed as a parameter from the login page? or is it something else? I'd really appreciate your help...
<c:if test="${validUser.name == null}"> -
IOS 8.02 guided access not working for Ipad 2
Will the next update for iOS 8 fix the issue for guides access for Ipad 2? Issue; function not working at all. And when will this update come?
We have now tried everything we can think of. Reset settings, totale factory reset etc. This doen both on the Ipad and thorugh iTunes.
For us the Ipad got useless with iOS 8 as we us it as a visitor kiosk using the app SIGN IN. We really regret updating.... please fix asapI can confirm that this works on 3rd Generation iPads. But not 2nd Generation iPads. I have found that if Guided access was enabled prior to the upgrade it might reset in this process.
Turn off Guided Access in Accessibility / Settings.
Hard reboot. (Hold Home and Lock buttons for 7 seconds)
Turn on Guided Access in Accessibility / Settings. Reset Passcode.
Anyone have luck with a newer model? -
IDoc string field to JDBC date field - Not working
Hello everyone,
Once again I must ask you something that is keeping me..
I had a interface type RFC ASync to JDBC SQL Server, it was working fine. Then, I was asked to change to a type iDoc ASync to JDBC SQL Server.
At first, it was not a problem, just manual work. But them, I am getting an error.
In the RFC, I had a date field, that was directly related to the date field on the JDBC destination, so the mapping was pretty much straight forward. The SQL INSERT command was working fine on this cenario.
Now, in iDoc, this field was automatically converted to a string, and somehow, PI is not understanding that string has to be mapped to a date field in the JDBC.
Is there any 'workaround' for me to do this?
Thanks!
Ricardo Sancio Lóra
BrazilThe issue here is that somehow, the same SQL insert command that was working, does not work anymore.
This is the SQL command took from RWB log monitor:
INSERT INTO aniversariantes_sap (matricula, nome, nascimento, unidade) VALUES (00000070, 'Ricardo Lora', '19851216', 00000000)
If I run this query on my DB it works.
But, in PI, it's not, here is the error:
Could not execute statement for table/stored proc. "aniversariantes_sap" (structure "ANIVERSARIANTES_SAP") due to com.microsoft.sqlserver.jdbc.SQLServerException: Syntax error converting datetime from character string.
I´ve tried cast() and convert() using mapping 'habilities', but also, does not work. Work if I run in the DB, but not if PI runs it.
Wierd..
Ricardo -
Jdbc to rfc to jdbc scenario is not working
Hi...
We have done the JDBC to RFC to JDBC scenario using BPM, it was working fine in the last month. now we started testing the same scenario, that is not working. In SXMB_MONI it is showing only sender data is successful, it is not showing any RFC Receiver data & Jdbc Receiver data. in the CCM also Jdbc Sender CC is showing successfull and it is showing the successful messages also, but in RFC Receiver CC
& JDBC Receiver CC it is not showing any thing.
please help on this...
Regards,
Pasi.Hi
Check u r RFC response (put external break point)
and check wether it has data
rgds
srini
Maybe you are looking for
-
Hello. I am using a PC (windows 7) and trying to update my ipad 4th generation via Itunes. i was trying to update to the latest operating system. The error message cited above pops up every time. I just updated the newest version of Itunes, updated
-
How to print some text in BOLD in a classical report
Hi, I need to print some selected text in BOLD in classical report. Went through SDN forum...came across some suggestions like using class cl_dd_document and its functions.. The problem is that one of its function "add_text" allows to highlight text.
-
Firewire cable not fitting into the Mac Pro Port
Hi I've got a Sony video camera that's about 7 years, it uses Mini DV. I recently filmed my sister's College graduation that I wanted to view and transfer to my computer. I just purchased a fire wire cable to hook up the camcorder to my mac Pro. The
-
SAP Interactive Forms by Adobe in ABAP testdrive?
Hi Can I try SAP Interactive Forms by Adobe in ABAP environment? According to the download page the java testdrive 04s SP9 contains SAP Interactive Forms by Adobe , but I would like to use it in an ABAP environment and - again according to the down
-
Hello World : #include<iostream> using namespace std; int main () cout << "what am I doing wrong?"; return 0; All the strace sh!t execve("/usr/bin/gcc", ["gcc", "hello.cpp"], [/* 43 vars */]) = 0 uname({sys="Linux", node="stryder", ...}) = 0 brk(0) =