Step by Step Doc to Develop the JSP by using Jdev
I am a newbie, i am looking for a setp by step doc. to tell how to start and compile the JSP by using JDev.
chan.
Hi Chan,
You can check the 'Deploying Servlets and JSP' viewlet present at
http://otn.oracle.com/products/jdev/viewlets/viewlet.html
This viewlet explains how to start writing JSP and how to compile it using JDEV.
You can even have a look at 'Working with JSP Tag Libraries' viewlet which helps to know how to use JDEV for JSPs. All the viewlets present in the page are very informative.
Regards,
Anupama
Similar Messages
-
Display pop ups in the jsp by using Java script
Hi
can any body say ,how to display pop ups in the jsp by using Java script ?that's correct. You can use the below code for AJAX request.
<script type="text/javascript">
var httpObject = getHTTPObject();
//create XMLHttpRequest object
function getHTTPObject() {
var xmlhttp;
if (window.XMLHttpRequest) // if Mozilla, Safari etc
xmlhttp = new XMLHttpRequest();
else if (window.ActiveXObject){ // if IE
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
catch ( e ){
try{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
catch ( e ){}
return xmlhttp;
//define the function to send the request
function sendRequest(){
var currDesc = document.getElementById("description").value;
var URL = "manageMaintAction.do"; //action mapping in your struts-config
var queryString = "currDesc="+escape(currDesc); //get the currDesc value in your action class like request.getParameter("currDesc")
httpObject.open( "Post", URL, true );
httpObject.onreadystatechange = cbFn;
httpObject.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded");
httpObject.send(queryString);
//callback fn
function cbFn() {
if (httpObject.readyState == 4)
if (httpObject.status == 200)
var result = httpObject.responseText;
alert(result);
</script> -
Step by step approach to develope the java card application
Do anybody know how to develope a smart card application using java card.i have downloaded java card kit,but the documentation provided by the sun is bit complex to use.
so please anybody know how to proceed?
It would be appreciated if i am given a step by step approach to develope a smart card application using java card.Do anybody know how to develope a smart card
application using java card.i have downloaded java
card kit,but the documentation provided by the sun is
bit complex to use.
so please anybody know how to proceed?I would suggest to read these articles
http://developers.sun.com/techtopics/mobility/javacard/articles/
Jan -
How to run/build the JSP file using Eclipse
Hello,
I want to build a new project for running the jsp file in eclipse.
Can you help me in doing that?
with some structure format?
where to create web.xml file
how to configure that fiel with our eclipse java poject?
like that...
Thanks,
SooryaOn New Project creation, choose 'Dynamic Web Project'. Then the structure will be created for you.
-
Deploying 9i Reports JSP file using Jdev
Hello,
I have created two JSP reports using 9i Reports Developer. One of them is a Paramater form which calls the other.
I am able to run them from the OC4J demo instance directory structure.
How can I create an ear file using JDeveloper so that I can deploy that as a new OC4J instance using OEM?
Appreciate you help.
Thanks.To create war and ear files thro Jdeveloper please refer to Oracle jDeveloper online Help .you can also create ear and war files using open source tool ant ,please refer to following URL for downloading this tool and documentation - http://jakarta.apache.org/ant/
Thanks
Rohit -
Accessing ApplicationModule in Struts/JSP application using JDev 11g TP3
Hello All,
I am using Oracle JDeveloper 11g Technical Preview 3
I got one "AppModule" created under my (Struts/jsp) project "MODEL" structure.
Now, how can I access that ApplicationModule in my Action Class
BC4JContext bc4jContext = BC4JContext.getContext(request) is not working, returns null everytime,
Can anyone please let me know, how can I achieve this?
Thanks
user625610Hi don't know your name,
if you get null from BC4JContext.getContext(request) you should check you configuration. Check your web.xml file where you should see something like... <servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>mapping</param-name>
<param-value>oracle.jbo.html.struts11.BC4JActionMapping</param-value>
</init-param>
<init-param>
<param-name>BC4JDefinition</param-name>
<param-value>your_model_project_name</param-value>
</init-param>
...The init parameter BC4JDefinition is used to set up the context in the BC4JRequestProcessor class. My guess is that you don't have this parameter in your web.xml (or are pointing to a wrong name). the value should be the name of the cpx file without the .cpx you have in your viewcontroller project.
If you have migrated your project from JDev 10.1.2 you should check the 10.1.2 web.xml against the 11TP3 web.xml after the migration. The servlet part should be identical.
Timo -
Need help on how to create the simple mapping using ORACLE DATA INTEGRATOR
Hi guys,
am new to learn odi.. please share me or steps how to develop the simple mapping using ODI...Hi,
I am a newbie to Oracle Data Integrator as well. You should have a look here first; http://www.business-intelligence-quotient.com/?p=379
Try to play around with ODI and then come back if you have specific questions. You should better move to this ODI-forum; Data Integrator
Good Luck,
Daan Bakboord
http://obibb.wordpress.com -
How to solve the error while Deploy a BC4J JSP Application using tomcat,
hello,
how to avoid the following error?
i am using jdevloper for devloping jsp applications.
after that i am calling the jsp page using tomcat4.0 ,i followed the steps according docs by jdev team,
i am getting the following error how to solve this,
can one help?
=============================
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.compiler.CompileException: /AccountView_Browse.jsp(4,0) Unable to load class oracle.jbo.html.jsp.datatags.ApplicationModuleTag
at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:139)
at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:829)
at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:153)
at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:1039)
at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:221)
at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:216)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:852)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
====================
thanks
pullareddyI had very similar problems with adding the correct JDeveloper .jar files to Tomcat's lib folder, but did eventually resolve my issues.
The problem I am having now, however, is the following error message:
Error Message: oracle.jbo.html.RequestParameters.addParameter(Ljava/lang/String;Ljava/lang/String;)V
Yes, I have deployed the bc4jhtml.jar file from JDeveloper to Tomcat\common\lib!
My web-app is a very simple BC4J JSP application. I have one BC4J component in its own project and JAR file, and one JSP referencing that BC4J component - I deploy the BC4J JAR along with the WAR file from the JSP project. Needless to say, the JSP works fine within JDeveloper..!
I'm using JDev 9.0.3 and Tomcat 4.1.12. Does anyone have any suggestions?
Thanks,
S. -
How to test the JSP pages and sevlets using JUnit. ?
How to test the JSP pages using JUnit. How to configure what are all the steps to execute the JUnit test cases.
Hi xiepei,
since you are using modbus, a simple error checking is implicit in the protocol and is the comparison between returned checksum and the calculated one on the received message: checksum errors, if any, are an effect of communications errors (you should have at least 2 bits changed and on particular patterns to have the checksum be calculated correctly!). You won't be able to calculate BER on them, but you can calculate PER (Packet Error Rate).
Another flag for communication errors, on the other direction, is to intercept error messages from the device: if it fully implements modbus protocol, it should return some warning in case of error (I seem to remember that in some cases it returns the reveived message with some error bits added: please check in modbus documentation).
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
hi how to develop the html and jsp 's using eclipse IDE what are the steps to follow inorder to develop and run the jsp's using Eclipse IDE
Eclipse cannot do that. You need an application server for that. Best what you can do is to integrate that application server in Eclipse using a plugin and run the application server from within Eclipse. There are lot of tutorials available about that. You can find them at www.eclipse.org and wiki.eclipse.org.
-
How to to display the JSP report in Application Server ? URL for displaying
Hi Experts,
Last week, we tried to change the memory of Response Cache and buffer Cache to increase the speed of the Excel report. But it didn’t work out.
And from the below link, I understood we can convert the oracle 9i report to excel by converting the Oracle 9i report to JSP report.
http://www.oracle.com/technology/products/reports/htdocs/getstart/demonstrations/index.html
I’ve converted the Oracle 9i report to JSP report and finding the way to display the JSP report using Application Server. I am trying to find out the REPORT URL of simple JSP report and using Reports Servlet . Right now I am trying to display the JSP report in Application Server.
Please suggest the URL for displaying the JSP report
Thanks & RegardsHi,
You can directly call you .jsp file, http://<host>:<domain>:<port>/<jsp report path>?userid=<if your report requires userid>/<pwd>
Refer to metalink documents:
Frequently Asked Questions About JSP Reports [ID 301714.1]
Here --> Question 4. How do I execute a JSP report?
Also refer, How to deploy JSP reports [ID 220943.1]
Hope this helps.
Regards,
Mithun -
How to terminate the jsp execution
Hi, I've an problem to terminate the jsp execution.
I've tried to use the following code: out.close();
but the jsp (I use the servlet engine version 2.0) page continue the execution.
How I can terminate this execution?
ThanksHello,
i haven't this tried out yet, and i even do not have Time to test it,
but if you use a Custom Jsp Tag, then you can set the return Type of
the doEndTag() Method to SKIP_PAGE.
This should stop the Evaluation of the Rest of Page.
Good Luck !
Best regards
jherunter -
App developed using Jdev 3.2 and oracle 9.2: oracle internal error
Good morning,
I have developed a JSP application using Jdeveloper 3.2.3.
Everything works fine under Oracle 8.x.
One of our customers, a few days ago, decided to migrate to oracle 9.2, but he can't use our application anymore, because every time a javabean accesses the database, Oracle returns:
ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
What I should do, in order to let my customer use my JSP application under any ctual version of Oracle?
1) Have I to install a newer version of Jdeveloper and simply recompile my application?
2) Have I to download a special package to deliver to the customer using Oracle 9.2?
3) Anything else?
Thank you for your advices.Giambattista,
Check your JDBC driver version.
You will get this ORA-600:[ttcgcshnd-1] error if you have the JDBC driver 8.1.7.1 or earlier, and you try to connect to an Oracle 9.0.1 or later database.
So, your app will work when connected to an Oracle8i database, but fail when trying to Oracle9i.
The solution is to upgrade to the patched 8.1.7.2 JDBC driver, or better yet, use the latest JDBC driver that comes with JDeveloper 9.0.3 (which is JDBC 9.0.1 version). -
How to determine the purchasing group using BADI BBP_PGRP_FIND
Hello Friends
We use SRM Server 5.5 (Classic scenario).
As you know that, purchasing group has the responsible product categories in PPOMA_BBP, when user creates the shopping cart to determine the purchasing group.
In our case, we should determine the purchasing group using other criteria.
MM side is OK to determine the purchasing group using specific criteria.
Because Material Master has the purch. Group information.
In case of SRM, we should develop the logic using BBP_PGRP_FIND BADI.
But Im not sure how to use this badi.
We want to determine the purchasing group based on the following logic.
If described shopping cart without product ID
Do Standard purchasing group determination logic.
Else
Assign the purch group from MARC- EKGRP (Purchasing Group)
Is it possible to determine above the logic?
If yes, Could you give me some information?
Thank you,
Best regards,
SH
Message was edited by:
So Hee LeeThank you for your answer.
I found the way to develop the our logic using BADI: bbp_pgrp_find.
But Im not sure the following logic is correct.
To differentiate described req. or product id req, We check the E_ITEM PRODUCT using BBP_PD_SC_GETDETAIL.
IF E_ITEM PRODUCT is blank, Read the category ID to find the purchasing group.
To find the purch. Group, we can use FM: BBP_OM_DETERMINE_RESP_PGRP.
Import parameter: IS_RESP_ITEM_DATA Category _ID
Export parameter: ES_PURCH_DATA
ELSE
CALL the customer function to read the R/3 purchasing group from MARC- EKGRP
Search the HRT5500-TABNR using purchasing group from R/3.
Search the HRP5500 OBJID using HRT5500-TABNR
Call the FM: BBP_OM_DETERMINE_RESP_PGRP
Import parameter: IS_RESP_ITEM_DATA PROC_GROUP OBJID
Export parameter: ES_PURCH_DATA
Thank you
Best Regards
SH -
Session-scope variable for JSP page used in a frame
Hi,
I don't know if there's a way to do this at the same time:
(1)- assign session scope to a variable (in order to be able to retrieve recurrently the previous value each time the JSP is called);
(2)- set its visibility in a way that it could be accessed only by the page that defines it. The JSP is used in a frameset along with an other JSP that can potentially define identical session-scoped variable (You understand why I want to keep them separate)
session.setAttribute():
seems not to be the thing I need
pageContext.setAttribute():
with SESSION_SCOPE, it behaves the same way as session.setAttribute(). with PAGE_SCOPE, condition (1) can't be satisfied.
Does anybody have an idea ?
Thanx in advance.I can see that you will not want to maintain two different files for every possible page on the site!
It may be possible to do something like <frameset rows="*" cols="50%,*">
<frame name="content1" src="file.jsp?frame=one" >
<frame name="content2" src="file.jsp?frame=two" >
</frameset>and then in the jsp<%
String frame=request.getParameter("frame");
session.setAttribute(frame+"AttributeName",attributeValue);
%>This will set up two session attributes - "oneAttributeName" and "twoAttributeName". Depending on how many variables you have, this may prove just as difficult to maintain.
You may end up having to simply pass url parameters between pages to maintain state within the individual frames, which is far from elegant also.
I am interested in how you end up solving this one.
Maybe you are looking for
-
Calendar on Ipad won't sync to MacBook Pro
The Calendar on my MacBook Pro will sync to my Ipad, but additions to the calendar on my Ipad will not sync to my MacBook Pro. I have followed all the directions on the Apple Support page: IOS: How to transfer or sync content to your computer. All
-
Convert string question... "\"
I try the below code on jsp, but result is : a , a\b but I want the result is : a\\b, a\\\\b Thanks ! <% String str = "a\b, a\\b"; String outStr = ""; for (int i=0;i<str.length();i++){ char c = str.charAt(i); if (c
-
Wacom Bamboo tablets with kernel26 = 2.6.36
1. Bamboo tablets do not work with mainline kernel code (yet). 2. There is a module provided by linuxwacom project. 3. It worked for me with 2.6.35. (in AUR: http://aur.archlinux.org/packages.php?ID=31540). 4. But it doesn't compile with 2.6.36, whic
-
Selecting the rows of the Table !
Dear DBA's Suppose there is a table in oracle which has 5 records. How will you display 10 records in that table? Is there any crazy way like that, will that be possible ?
-
How to transfer passwords from Oracle DB into OID?
We need to find a way to move our users passwords into OID. We will use OID with Oracle SSO and we wish to consolidate our passwords so that the users only have one (they currently login to forms against their DB username/password). Also, going forwa