Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Some problem with handleCommit

Status
Not open for further replies.

filippo1980

Programmer
Jan 7, 2003
4
IT
Hi All,
I have a simply JSP's form when I insert something that must copied in a Oracle DB. Now my problem is that I can't commit....
I know that perhaps I must use this method: handleCommit in oracle.jbo.html.databeans.EditCurrentRecord
Now my problem is:
WHERE???????

This is my page PLZ Help me.
[JSP CODE]
<%@ page contentType=&quot;text/html;charset=WINDOWS-1252&quot;%>
<%@ page language = &quot;java&quot; errorPage=&quot;errorpage.jsp&quot; import = &quot;java.util.*, oracle.jbo.*, javax.naming.*, javax.sevlet.*, oracle.jbo.common.appmgr.*, oracle.jbo.html.databeans.*&quot; %>

<html>
<head>
<META NAME=&quot;GENERATOR&quot; CONTENT=&quot;Oracle JDeveloper&quot;>
<LINK REL=STYLESHEET TYPE=&quot;text/css&quot; HREF=&quot;/webapp/css/oracle.css&quot;>
</head>

<body>

<center><h2>Nuova bolla.</h2></center>

<a href=&quot;javascript:history.go(-1)&quot; >Cancel Insert Form</a>
<br>
<TR><td><A HREF=&quot;main.jsp&quot; target=contentsFrame>Main</a></td></TR>
<br>

<jsp:useBean id=&quot;RowEditor&quot; class=&quot;oracle.jbo.html.databeans.EditCurrentRecord&quot; scope=&quot;request&quot;>
<%
RowEditor.initialize(application, session , request, response, out, &quot;package1_Package1Module.RmBollaView&quot;);

RowEditor.setUseRoundedCorners(true);

RowEditor.setTargetUrl(&quot;SubmitFormInserimento_Bolla2.jsp&quot;);

RowEditor.setDisplayAttributes(&quot;IdbollaS,DatoraT&quot;);

RowEditor.createNewRow();

RowEditor.getFieldRenderer(&quot;IdbollaS&quot;).setDisplayWidth(30);
RowEditor.getFieldRenderer(&quot;IdbollaS&quot;).setPromptText(&quot;Progressivo&quot;);

RowEditor.getFieldRenderer(&quot;DatoraT&quot;).setDisplayWidth(30);
RowEditor.getFieldRenderer(&quot;DatoraT&quot;).setPromptText(&quot;Data e ora bolla&quot;);

RowEditor.setReleaseApplicationResources(true);
RowEditor.render();

%>
</jsp:useBean>

</body>
</html>
[/JSP CODE]
 
Hi all,
I resolved this problem but know I have a new problem

[BEAN]
<jsp:useBean id=&quot;RowEditor&quot; class=&quot;oracle.jbo.html.databeans.EditCurrentRecord&quot; scope=&quot;request&quot;>
<%
RowEditor.initialize(application, session , request, response, out, &quot;package1_Package1Module.RmBollaView&quot;);

RowEditor.setUseRoundedCorners(true);

RowEditor.setTargetUrl(&quot;SubmitFormInserimento_Bolla2.jsp&quot;);

RowEditor.setDisplayAttributes(&quot;IdbollaS,DatoraT&quot;);

RowEditor.createNewRow();

RowEditor.getFieldRenderer(&quot;IdbollaS&quot;).setDisplayWidth(30);
RowEditor.getFieldRenderer(&quot;IdbollaS&quot;).setPromptText(&quot;Progressivo&quot;);

RowEditor.getFieldRenderer(&quot;DatoraT&quot;).setDisplayWidth(30);
RowEditor.getFieldRenderer(&quot;DatoraT&quot;).setPromptText(&quot;Data e ora bolla&quot;);

RowEditor.setReleaseApplicationResources(true);
RowEditor.render();

%>
</jsp:useBean>
[/BEAN]

I use this bean for modified the label near the box when I write my data.... now I would know how I can do the same thing on RowViewer Bean:

[BEAN]
<jsp:useBean id=&quot;RowViewer&quot; class=&quot;presentation_html.LabelText&quot; scope=&quot;request&quot;>
<%
RowViewer.initialize(pageContext, &quot;presentation_Ares_business_Ares_businessModule.RmBollaView&quot;);

RowViewer.setReleaseApplicationResources(true);
RowViewer.render();
%>
</jsp:useBean>
[/BEAN]

Thanks a lot for your help!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top