JSP page error: JSPtranslate: attribute | has no value.
Hi again,
I've written the JAVA class, the TLD and the JSP but when I try to provide the parameters to the TLD file in the JSP I get this error: JSPTranslate: attribute | has no value. /**** My TLD file is in a WEB_INF/tags/ directory. ***/
I've included my JAVA class, JSP and TLD files below.
package com.ibm.samples.TEMP;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class TEMP extends TagSupport
private int mandatory = 0;
//Set method base upon info from .tld file
public void setMandatory(int mandatory)
this.mandatory = mandatory;
//Init tag called from .JSP page that used the custom tag.
public int doStartTag() {
try
JspWriter out = pageContext.getOut();
out.println("<table border=1>");
if (mandatory == 1)
out.println("<tr><td> <input type=\"text\"" +
"style=\"background-color:yellow\" size=\"25\" name=\"user\">");
else
out.println("<tr><td> <input type=\"text\"" +
"style=\"background-color:white\" size=\"25\" name=\"user\">");
catch (Exception ex)
throw new Error("Failure");
// Must return SKIP_BODY because there isn't a body for this tag.
return SKIP_BODY;
//End tag ends table and exits, along with error / exception catching
public int doEndTag(){
try {
JspWriter out = pageContext.getOut()
out.println("</table>");
catch (Exception ex)
throw new Error("Failure.");
return EVAL_PAGE;
--------------END OF CLASS--------------
----------------------JSP----------------------
<%@ taglib [tagdir="/WEB-INF/tags/" | uri="/WEB-INF/tags/inputTAGS.tld"] prefix="I" %>
<HTML>
<HEAD>
<TITLE>Custom Tags</TITLE>
</HEAD>
<BODY BGCOLOR = "WHITE">
<H3>Custom Tags!</H3>
<FORM METHOD="GET" ACTION="customTags.jsp">
<P>
Enter First Name:<br>:
<P>
<I:inputTags mandatory="1"/>
<P>
Enter Last Name:<br>:
<P>
<I:inputTags mandatory="1"/>
<P>
Enter Phone Number:<br>:
<P>
<I:inputTags mandatory="0"/>
<P>
<INPUT TYPE="SUBMIT" VALUE="Submit">
<INPUT TYPE="RESET" VALUE="Reset">
</FORM>
</BODY>
</HTML>
--------------END OF JSP--------------
--------------------TLD--------------------
<?xml version = "1.0" encoding = "ISO-8859-1"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/Web-jsptaglibrary_1_2.dtd">
<taglib xmlns = "http://java.sun.com/JSP/TagLibraryDescriptor">
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>Input tags library</short-name>
<description>Custom tags test</description>
<tag>
<name>inputTags</name>
<tag-class>com.ibm.samples.temp.TEMP</tag-class>
<description>
Formatted text box:
</description>
<attribute>
<name>mandatory</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
- LS6V
I made a new web project and the TLD link is fine. But I have a new error:JspTranslate: unable to load class null I'm recieving the error in my JSP page editor.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri = "/WEB-INF/lib/tag.tld" prefix="I" %>
<HTML>
<HEAD>
<TITLE>Custom Tags</TITLE>
</HEAD>
<BODY BGCOLOR = "WHITE">
<H3>Custom Tags!</H3>
<FORM METHOD="GET" ACTION="JSPTAG.jsp">
<P>
Enter First Name:<br>:
<P>
ERROR FOUND HERE ----------->>> <I:inputTag mandatory="1"/>
<P>
Enter Last Name:<br>:
<P>
<I:inputTag mandatory="1"/>
<P>
Enter Phone Number:<br>:
<P>
<I:inputTag mandatory="0"/>
<P>
<INPUT TYPE="SUBMIT" VALUE="Submit">
</FORM>
</BODY>
</HTML>---------------------------JAVA CLASS-------------------------
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class TAG extends TagSupport
private String mandatory="";
private int iMandatory = 0;
//Set method base upon info from .tld file
public void setMandatory(String hold)
mandatory = hold;
iMandatory = Integer.parseInt(mandatory);
public String getMandatory()
return(mandatory);
//Init tag called from .JSP page that used the custom tag.
public int doStartTag() {
try
JspWriter out = pageContext.getOut();
out.println("<table border=1>");
if ( iMandatory == 1)
out.println("<tr><td> <input type=\"text\"" +
"style=\"background-color:yellow\" size=\"25\" name=\"user\">");
else
out.println("<tr><td> <input type=\"text\"" +
"style=\"background-color:white\" size=\"25\" name=\"user\">");
catch (Exception ex)
throw new Error("Failed in doStartTag");
// Must return SKIP_BODY because there isn't a body for this tag.
return SKIP_BODY;
//End tag ends table and exits, along with error / exception catching
public int doEndTag(){
try {
JspWriter out = pageContext.getOut();
out.println("</table>");
} catch (Exception ex){
throw new Error("Failed in doEndTag");
return EVAL_PAGE;
}---------------------------TLD------------------------
<?xml version ="1.0" encoding = "UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<taglib xmlns ="http://java.sun.com/JSP/TagLibraryDescriptor">
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>Input tags library</short-name>
<description>Custom tags test</description>
<tag>
<name>inputTag</name>
<tag-class>source.TAG</tag-class>
<description>
Formatted text box:
</description>
<attribute>
<name>mandatory</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>String</type>
</attribute>
</tag>
</taglib>
Similar Messages
-
Hitting error LDAP: error code 20 - mail attribute has duplicate value.
Hi ,
Anyone faced this issue before LDAP: error code 20 - mail attribute has duplicate value. We are getting this error intermittently in oid logs and
and due to that provisioning stuck . I know that the issue due to the object class mismatch in attributes. But map profile looks fine . Anything else need to check ?
SSO verion 10.4.1.3 and DB version 10g .
javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - mail attribute has duplicate value.]; remaining name 'uid=abc,cn=users,dc=xyz ,dc=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2972)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2740)
at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1440)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(ComponentDirContext.java:255)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(PartialCompositeDirContext.java:172)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(PartialCompositeDirContext.java:161)
at javax.naming.directory.InitialDirContext.modifyAttributes(InitialDirContext.java:146)
at oracle.ldap.odip.gsi.LDAPWriter.modify(LDAPWriter.java:479)
at oracle.ldap.odip.gsi.LDAPWriter.writeChanges(LDAPWriter.java:318)
at oracle.ldap.odip.engine.AgentThread.mapExecute(AgentThread.java:656)
at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:377)
at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:238)
DIP_LDAPWRITER_ERROR_MODIFY
Error in executing mapping DIP_LDAPWRITER_ERROR_MODIFY
DIP_LDAPWRITER_ERROR_MODIFY
at oracle.ldap.odip.engine.AgentThread.mapExecute(AgentThread.java:830)
at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:377)
at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:238)
DIP_LDAPWRITER_ERROR_MODIFY
Setting Change Success Count : 27682
Setting Change Failure Count : 11004
CDSImportProfile:Error in Mapping EngineDIP_LDAPWRITER_ERROR_MODIFY
DIP_LDAPWRITER_ERROR_MODIFY
at oracle.ldap.odip.engine.AgentThread.mapExecute(AgentThread.java:851)
at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:377)
at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:238)
CDSImportProfile:about to Update exec statusdid you search the LDAP server to see whether the email value you try to use already exist ? typically LDAP server do not care whether email is duplicated or not, but by default OIM server do not allow duplicated email
-
LDAP: error code 20 - pwdfailuretime attribute has duplicate value
Hi!
I am working on Oracle Infra 9.0.2
I am trying to update attribute of particular user, but it gives me error as follows
05:39:46 PM: Failed to update entry cn=szuhaila, cn=test, ou=test, o=com, c=my
Root error: LDAP: error code 20 - pwdfailuretime attribute has duplicate value. VALUE: 20080609004531z
I am trying to update with Orcale Directory Manager, I have tried with an LDAp browser thru too. It gives me same error.
Can some one guide me how to over some this issue?
Thanks in advance.
Edited by: user8705646 on Aug 20, 2009 12:13 AMdid you search the LDAP server to see whether the email value you try to use already exist ? typically LDAP server do not care whether email is duplicated or not, but by default OIM server do not allow duplicated email
-
Office 365 API, error: The token has invalid value 'roles' for the claim type ''
Hi guys,
I am trying to develop a Daemon / Server application using the new Office 365 APIs. I have added a new application to Azure Active Directory. I am using cURL + the app ID and secret to get a JWT token, this is the exact request:
curl -X POST https://login.windows.net/TENANT_KEY/oauth2/token \
-F redirect_uri=http://spreadyDaemon \
-F grant_type=client_credentials \
-F resource=https://outlook.office365.com/ \
-F client_id=XXXX \
-F client_secret=XXXX=
I get back a JWT however it has no scopes for access set here is the decoded JWT claims:
"ver": "1.0",
"aud": "https://outlook.office365.com/",
"iss": "https://sts.windows.net/TENANT_KEY/",
"oid": "17fa33ae-a0e9-4292-96ea-24ce8f11df21",
"idp": "https://sts.windows.net/TENANT_KEY/",
"appidacr": "1",
"exp": 1415986833,
"appid": "XXXX",
"tid": "e625eb3f-ef77-4c02-8010-c591d78b6c5f",
"iat": 1415982933,
"nbf": 1415982933,
"sub": "17fa33ae-a0e9-4292-96ea-24ce8f11df21"
Therefore when I do a request to the exchange API endpoint I get the following response:
HTTP/1.1 401 Unauthorized
Cache-Control: private
Server: Microsoft-IIS/8.0
request-id: d08d01a8-7213-4a13-a598-08362b4dfa70
Set-Cookie: ClientId=WDALDNO0CAIOOZDZWTA; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
X-CalculatedBETarget: am3pr01mb0662.eurprd01.prod.exchangelabs.com
x-ms-diagnostics: 2000001;reason="The token has invalid value 'roles' for the claim type ''.";error_category="invalid_token"
X-DiagInfo: AM3PR01MB0662
X-BEServer: AM3PR01MB0662
X-AspNet-Version: 4.0.30319
Set-Cookie: exchangecookie=6bf68da033684824af21af3b0cdea6e3; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxoGaio2PjZvPztGPjZCb0ZqHnJeekZiak56djNGckJI=; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxg==; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
X-Powered-By: ASP.NET
X-FEServer: DB4PR02CA0026
WWW-Authenticate: Bearer client_id="00000002-0000-0ff1-ce00-000000000000", trusted_issuers="00000001-0000-0000-c000-000000000000@*", authorization_uri="https://login.windows.net/common/oauth2/authorize", error="invalid_token",Basic Realm="",Basic Realm=""
Date: Fri, 14 Nov 2014 16:40:59 GMT
Content-Length: 0
I have asked a stack overflow question here: http://stackoverflow.com/questions/26950838/office-365-api-error-the-token-has-invalid-value-roles-for-the-claim-type
Any help on the matter will be hugely appreciated, thanks!Hi Manu,
To wrap this thread up; I have had an answer on stack overflow.
It appears that currently the grant type client_credentials is not supported, according to a comment on this blog post by Matthias' http://blogs.msdn.com/b/exchangedev/archive/2014/03/25/using-oauth2-to-access-calendar-contact-and-mail-api-in-exchange-online-in-office-365.aspx
"There is no way in the code flow to avoid username/password. We're working on a client credential flow for later this fall that will give you the functionality required to run background services. For this you will not need a username/password,
but the application will directly assert its identity and authenticate as itself."
Unfortunately I require client_credentials for a daemon process, Q4 is the scheduled release for support for this grant time.
Thanks for the help,
Nick -
Cannot view Crystal Report in JSP page ( error loading ? )
Hi,
Can someone please help or pass on any suggestions,
I am trying to view my crystal report (test.rpt) in my JSP page but get the following error and im having trouble sorting it out. I am using Crystal 10 with weblogic. My report is just a simple report ( no data connection needed) with just some hard coded text. I simply want to view it through a JSP page. Can anyone shed any light on the error. The error message is shown below. In my browser i get the message
An error has occurred:
Error loading C:/Bea/user_projects/applications/crystaltest/crystaltestWeb/WEB-INF/test.rpt
the important part of the full error message below i guess is :
Root cause of ServletException.
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Error loading C:/Bea/user_projects/applications/crystaltest/crystaltestWeb/WEB-INF/test.rpt ---- Error code:-2147215356 Error code name:fileNotOpened
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source) etc
Full error message is here ->
####<11/08/2004 11:56:10 AM EST> <Debug> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'> <<WLS Kernel>> <> <BEA-101147> <HttpServer(32071428,null default ctx,cgServer) Found no context for "/". This request does not match the context path for any installed Web applications, and there is no default Web application configured.>
####<11/08/2004 11:56:12 AM EST> <Notice> <WebLogicServer> <TAS0707> <cgServer> <main> <<WLS Kernel>> <> <BEA-000331> <Started WebLogic Admin Server "cgServer" for domain "workshop" running in Development Mode>
####<11/08/2004 11:56:12 AM EST> <Notice> <WebLogicServer> <TAS0707> <cgServer> <main> <<WLS Kernel>> <> <BEA-000360> <Server started in RUNNING mode>
####<11/08/2004 11:56:12 AM EST> <Debug> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'> <<WLS Kernel>> <> <BEA-101147> <HttpServer(32071428,null default ctx,cgServer) Found no context for "/wlwdir". This request does not match the context path for any installed Web applications, and there is no default Web application configured.>
####<11/08/2004 11:56:12 AM EST> <Info> <Management> <TAS0707> <cgServer> <ExecuteThread: '0' for queue: 'weblogic.admin.RMI'> <<WLS Kernel>> <> <BEA-140009> <Configuration changes for the domain have been saved to the repository.>
####<11/08/2004 11:56:12 AM EST> <Info> <Configuration Management> <TAS0707> <cgServer> <ExecuteThread: '0' for queue: 'weblogic.admin.RMI'> <<WLS Kernel>> <> <BEA-150007> <The booted configuration .\config.xml has been backed up at C:\Bea\WEBLOG~1\samples\domains\workshop\.\config.xml.booted.>
####<11/08/2004 11:58:29 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] /ensureAppDeployment: init>
####<11/08/2004 11:58:53 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] /wlwdir: init>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: init>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: param verbose initialized to: true>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: param packagePrefix initialized to: jsp_servlet>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: param compilerclass initialized to: com.sun.tools.javac.Main>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: param compileCommand initialized to: javac>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: param compilerval initialized to: com.sun.tools.javac.Main>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: param pageCheckSeconds initialized to: 1>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: param encoding initialized to: null>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: param superclass initialized to weblogic.servlet.jsp.JspBase>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: param srcCompiler initialized to weblogic.jspc>
####<11/08/2004 11:59:02 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: param workingDir initialized to: C:\Bea\weblogic81\samples\domains\workshop\cgServer\.wlnotdelete\extract\cgServer_crystaltest_crystaltestWeb>
####<11/08/2004 11:59:04 AM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] *.jsp: initialization complete>
####<11/08/2004 12:04:14 PM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] /*: init>
####<11/08/2004 12:04:15 PM EST> <Info> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] /*: Using standard I/O>
####<11/08/2004 12:18:03 PM EST> <Error> <HTTP> <TAS0707> <cgServer> <ExecuteThread: '12' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101017> <[ServletContext(id=1439407,name=crystaltestWeb,context-path=/crystaltestWeb)] Root cause of ServletException.
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Error loading C:/Bea/user_projects/applications/crystaltest/crystaltestWeb/WEB-INF/test.rpt ---- Error code:-2147215356 Error code name:fileNotOpened
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown Source)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source)
at jsp_servlet.__index._jspService(index.jsp:27)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:208)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:316)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(PageFlowRequestProcessor.java:1301)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedirector.forward(PageFlowRequestProcessor.java:1317)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1199)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1093)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:650)
at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:318)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(PageFlowRequestProcessor.java:1301)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedirector.forward(PageFlowRequestProcessor.java:1317)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1199)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:637)
at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6456)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)I am getting the same error... Is there any one who can help us... Or is the problem solved, if so please let me know How did you do that...
Thanks
Hara -
Error Data record has grouping value "" instead of 99
Hi,
We are implementing ESS and MSS for EP7.0 with ECC 5.0 and we get the following error: Data record 0000005900090 9999123120010910000 has grouping value "" instead of "99" when we try to edit and save the bank information.
Please advise! Thank you!same error ,
the report did not fix it .
its coming up when ever i am trying to do a global assignment actions ...( this is occuring only for people with benefits infotypes)
any idea..
Please let me know
Thanks -
ODM Client Error: Error Message: Attribute has already been added
I'm getting the following error message in the ODM client (I've substituted an elipsis for the attribute name below.)
Error Message: Attribute ... has already been added to LogicalDataSpecification.
Exception type: oracle.dmt.odm.InvalidArgumentException: Attribute ... has already been added to LogicalDataSpecification.
Stack trace:
oracle.dmt.odm.InvalidArgumentException: Attribute ... has already been added to LogicalDataSpecification.
at oracle.dmt.odm.data.LogicalDataSpecification.addAttribute(LogicalDataSpecification.java:251)
at oracle.dmt.dm4j.wizard.director.minings.ModelBuildBuilder.buildLogicalDataSpecification(Unknown Source)
at oracle.dmt.dm4j.wizard.director.minings.RegressionModelBuildBuilder.createFunctionSettings(Unknown Source)
at oracle.dmt.dm4j.wizard.director.minings.ModelBuildBuilder.getMiningTask(Unknown Source)
at oracle.dmt.dm4j.wizard.director.minings.MiningBuilder.run(Unknown Source)
at oracle.dmt.dm4j.browser.ProgressBar.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
Anyone have any ideas what is causing this?
-- JosephOK, I figured out what happened. I was using the multi-case format. I had two attributes with similar names, on in all caps, and one in mixed case... attribute names are not case sensitive, so the algorithms became confused.
If anyone from Oracle is monitoring this forum, I would suggest adding a note to the documentation noting that the algorithms are not case sensitive, so you should make sure that your attribute names are all unique per observation. -
Getting error Data record has grouping value "" in
Trying to change Address data in HR using BAPI_ADDRESSEMPUS_CHANGE
Getting error message : Data record has grouping value "" instead of ""
Please advise.
Thanks,
BhaskarHi,
I assume the following system situation exists:
The new Infotypeframework NITF is inactive for PA30. Flag CCURE PC UI is activated in T77SO. You are using ESS based on Web Dynpro which uses the new Infotypeframework.
Here we have to differentiate between infotypes which are participating in the data sharing functionality and all other infotypes. Such as:
Infotypes without Data Sharing:
- Infotype checks => module pool
- Infotype update => SAPFP50P/SAPUP50R
Infotypes with Data Sharing:
- Infotype checks => module pool
- Infotype update => NITF
ATTENTION:
BAdI HRPAD00INFTY is not processed in this case (importing parameter NEW_IMAGE is always space). Instead the BAdI HRPAD00INFTYDB of the NITF is been processed.
The following notes (1 and 2) will solve the problem. Note 3) solves an involving problem caused during the deletion process of a personnel number.
1) 783499 - Incorrect framework synchronization
2) 845592 - Incorrect framework synchronization - Retroactive accounting
3) 844998 - PU00: Termination when deleting a personnel number
Hope this will help!
Regards,
Sibylle -
Html select change to make JSP page forward keeping the exsting field value
Hello, All,
I am trying to make the change of a selection box in HTML form to reload the page and populate the second selection box based on the value in the first selection box. The content of the second selection box is from database....
i used a javascript funtion and called it by the onChange(), the onChange redirect the page to the same page. However all my previous input is lost and the second selection box is not populated based on the first selection box.
The question is how do I keep the current input and reload the page based on the change of a selection box?
Please help..
Thanks..
Here is the code
<script language=javascript type="text/javascript">
function forward(){
location.href="trdCapDetail.jsp";
</script>
<select name=vehicle onChange="forward()">
<%for(int i = 0; i < Vehicle.getAll().size(); i++){
Vehicle vehicle = (Vehicle)(Vehicle.getAll().elementAt(i));
out.write("<option value=" + vehicle.getKey()+" >" + vehicle.getCode() + "</option>");
%>Ok two things.
1 - you need to submit the value which was selected.
2 - you need to repopulate the select box with it.
1 - you need to submit the value which was selected.
You do this by either appending the parameter to the url, or calling form.submit().
<script language=javascript type="text/javascript">
// either set parameter on url manually
function forward(control){
var param = control.value;
location.href="trdCapDetail.jsp?vehicle=" + param;
// or submit the form:
function forward(control){
control.form.submit();
<% pageContext.setAttribute("vehicles", Vehicle.getAll() ) ; %>
<form name="myForm" action="trdCapDetail.jsp">
<select name="vehicle" onchange="forward(this)">
<c:forEach var="vehicle" items="${vehicles}">
<option value="<c:out value="${vehicle.key}"/>"> <c:out value="${vehicle.code}"/> </option>
</c:forEach>
</select>
</form>2: populating the control
One way is to use javascript again:
<c:if test="${not empty param.vehicle}">
<script language="javascript">
document.myForm.vehicle.value = "<c:out value="${param.vehicle}"/>";
</script>
</c:if>
// or scriptlet code if you must
<%
String selectedVehicle = request.getParameter("vehicle");
if (selectedVehicle != null){ %>
<script language="javascript">
document.myForm.vehicle.value = "<%= selectedVehicle%>";
</script>
<%
%>The other way to keep the current input is to generate the string "selected" inside the option tag for the selected item. In your loop, check if the current id equals the submitted id, and print "selected" if it is.
Hope this helps,
evnafets -
1.i create a database
2.then i create a jsp page for welcome
3.then another jsp page for view result
4.then i write code for java
here is my 1st jsp page
<html>
<head>
<title>login</title>
</head>
<body bgcolor=pink>
<form action="project.jsp" method=post>
Project id
 
; <input type="text" name="proj_id"><br><br>
Project Name <input
type="text" name="proj_name"><br><br>
Client Name
<input
type="text" name="client_name"><br><br>
Project Start Date <input type="text" name="strt_date"><br><br>
Est Project End Date <input type="text" name="est_date"><br><br>
Project Manager <input type="text"
name="proj_mgr"><br><br>
Est Effort
 
; <input type="text" name="est_effort"><br><br>
<input type="submit" name="add" value="Add" onClick=add() >
<input type="button" name="modify" value="Modify">
<input type="button" name="delete" value="Delete">
<input type="button" name="assign" value="Assign">
</form>
</body>
</html>
here my java page
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.*;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.io.*;
class base
PreparedStatement pstmt=null;
Connection con = null;
Statement stmt = null;
ResultSet rset = null;
int est_effort;
String proj_id,proj_name,client_name,strt_date,est_date,proj_mgr;
/* int est_effort;
String Project_id,Project_name,client_name,start_date,estimated_date,Project_mgr; */
void add( )
try
String driverName = "com.mysql.jdbc.Driver";
Class.forName(driverName);
String serverName = "192.168.10.5";
String mydatabase = "Trainees";
String url = "jdbc:mysql://" + serverName + "/" + mydatabase; // a JDBC url
String username = "josep";
String password = "josep";
con = DriverManager.getConnection(url, username, password);
System.out.println("Connected");
catch(Exception e)
System.err.println("Exception: " + e.getMessage());
try{
System.out.println("Before Update1");
pstmt=con.prepareStatement("insert into project(proj_id,proj_name,client_name,strt_date,est_date,proj_mgr,est_effort) values ('
"+Project_id+" ',' "+Project_name+"',' "+client_name+" ',' "+start_date+" ',' "+estimated_date+" ',' "+Project_mgr+" ',' "+est_effort+"')");
pstmt=con.prepareStatement("insert into project(proj_id,proj_name,client_name,strt_date,est_date,proj_mgr,est_effort) values
System.out.println("Before Update2");
pstmt.setString(1,proj_id);
pstmt.setString (2,proj_name);
pstmt.setString (3,client_name);
pstmt.setString (4,strt_date);
pstmt.setString (5,est_date);
pstmt.setString(6,proj_mgr);
pstmt.setInt(7,est_effort);
pstmt.executeUpdate();
System.out.println("" +pstmt );
catch(Exception e)
System.err.println("Exception: " + e.getMessage());
finally
try
if(con != null)
con.close();
catch(SQLException e)
void modify()
void delete()
void assign()
public class xx extends base
public static void main(String args[]) throws IOException
base a= new base();
a.add();
here my second jsp page
<%@ page language="java"%>
<%@ page import="java.io.*" %>
<%@ page import="java.sql.*"%>
<%@page import="ss.xx"%>
//<%@ page import="ss.xx.*"%>
<html>
<head><title>Welcome</title></head>
<body bgcolor = "LightGrey">
Welcome...
<br>
<%
xx obj=new xx();
obj.add( );
%>
<%
String Project_id = request.getParameter("proj_id");
String Project_name=request.getParameter("proj_name");
String client_name=request.getParameter("client_name");
String start_date=request.getParameter("strt_date");
String estimated_date=request.getParameter("est_date");
String Project_mgr=request.getParameter("proj_mgr");
int est_effort=Integer.parseInt(request.getParameter("est_effort"));
%>
<p><font size="6">Project id : <%= Project_id%></font></p>
<p><font size="6">Project Name : <%= Project_name%></font></p>
<p><font size="6">Client Name : <%= client_name%></font></p>
<p><font size="6">Project Start Date : <%= start_date%></font></p>
<p><font size="6">Est Project End Date : <%= estimated_date%></font></p>
<p><font size="6">Project Manager : <%= Project_mgr%></font></p>
<p><font size="6">Est Effort : <%= est_effort%></font></p>
</body>
</html>
here that second jsp page error
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 12 in the jsp file: /project.jsp
Generated servlet error:
The type base cannot be resolved. It is indirectly referenced from required .class files
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)Uh, those aren't runtime errors, but just compilation errors. Googling on the error message can give a lot of results.
Learn how to write Java properly. It would also help a lot if you put all the Java logic in Java classes instead of JSPs. -
How can i get the value of an jcombobox in a japplet into my html/jsp page
hii
i hav a japplet which contains an editable jcombobox
which i have embedded into my jsp page .Now i want to get the value of jcombobox in my japplet into a taxt box in my .jsp page which will change as the value of jcombobox changes .Now in doing this i guess i will have to writer some public event in my japplet which will return the value into my web page .
Now in doing so my first problem is to refer the japplet from my jsp page .In case of ordinary applets which does nt use swing i hav used id attribute in my applet tag and the document recognize it as its object just like any other html controls.
but here although my japplet is running after installing plug -in the document is not regognizing the japplet .I hav tried with both <object > and <applet> tag .
The name attribute in object tag is only changing the name of the class into that name given in the name attribute in the browser .
I need to solve this out .Any help will be greatly appreciatedPlease help me .Its very urgent
-
Bean Value display in JSP Page
Hi,
I am trying to display a value stored in my bean on the jsp page. The value is to be displayed on the initial jsp page.
public void doInitialization()
request = (IPortalComponentRequest) this.getRequest();
response = (IPortalComponentResponse) this.getResponse();
myContext = request.getComponentContext();
myProfile = myContext.getProfile();
Statement += "doInitialization";
BeanContainer = new MockUpBean();
BeanContainer.setValues( Statement);
myProfile.putValue( "myBean", BeanContainer);
// reset String
BeanContainer = ( MockUpBean) myProfile.getValue( "myBean");
}// public void doInitialization()
On the JSP Page side:
<jsp:useBean id="myBean" scope="application" class="MockUpBeanPackage.MockUpBean" />
<%= myBean.getValues()%>
The jsp page does no pick up the value I try to store in the doInitialise method.
Any thoughts on what I may have done wrong in my code.
I try response.write("Test"), this too does not show up in my JSP page.
Any advice would be appreciated.
Thank you
NACMarty,
The portalapp.xml file is as follows:
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
</application-config>
<components>
<component name="MockUpPage">
<component-config>
<property name="ClassName" value="MockUpPackage.MockUpPage"/>
<property name="SecurityZone" value="MockUpPackage/low_safety"/>
<property name="ComponentType" value="jspnative"/>
<property name="JSP" value="pagelet/InitialPage.jsp"/>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
</component-profile>
</component>
</components>
<services/>
</application>
Again any help would be apreciated. I have used this piece of code to write values to beans in various projects, never had any issues. This is the first time I am having an issue with this piece of code.
NAC -
Getting &#039 in JSP page insead of Apostrophe ( ' )
hi,
m getting ' page instead of Apostrophe ( ' ).
can u please help me about that.
code is -->
document.getElementById("corpName").value = '<c:out value="${benOwn.name}"/>';
suppose in text box in insert "Beneficiary's" after saving it display Beneficiary's.
thanx in advance.
Edited by: raj_pardeshi1986 on Feb 9, 2009 1:23 AMabout Edmondo Porcu
" I think you should add escapeXml=false to your c:out "
thanx for reply, but
i changed that to this ->
document.getElementById("corpName").value = '<c:out value="${benOwn.name}" escapeXml=false />';
and it crash's my JSP page.
error
org.apache.jasper.JasperException: /fview/core/addEditBODetails.jsp(401,90) quote symbol expected
please reply.
Edited by: raj_pardeshi1986 on Feb 9, 2009 3:00 AM
Edited by: raj_pardeshi1986 on Feb 9, 2009 3:02 AM -
Populating combobox in jsp page from javabean using jsp:getProperty tag
hi,
i am new to jsp, so i don;t know how to populate a combobox in jsp page with productid attribute from a javabean called Bid . i want to have a code to automatically populating combobox using the attribute value from javabean.
please reply me.
<jsp:useBean id="bidpageid" class="RFPSOFTWARE.Bid" scope="session" />
<jsp:setProperty name="bidpageid" property="*"/>
<table width="50%" align="center" border="0">
<tr>
<td width="30%" align="left"><h4><b><label>Date (dd/mm/yyyy) </label></b></h4> </td>
<td><input type="text" name="date" size="11" maxlength="10" readonly="readonly" value="<jsp:getProperty name="bidpageid" property="date"/>" > </td>
</tr>
<tr> <td > </td> </tr>
<tr>
<td width="30%" align="left"><h4><b><label>ProductId </label></b></h4> </td>
<td><select name="productid" tabindex="1" size="1" >
<option value="<jsp:getProperty name=bidpageid" />Sachin</option>
<option value="Hello">Vishal</option>
</select></td>
</tr> and the javabean for Bid is as follow :
import java.util.Date;
import RFPSOFTWARE.Product;
public class Bid{
private Product product;
private Integer bid_id;
private String description;
private Date date= new Date();
public Integer getBid_id() {
return bid_id;
public Date getDate() {
return date;
public String getDescription() {
return description;
public Product getProduct() {
return product;
public void setBid_id(Integer bid_id) {
this.bid_id = bid_id;
public void setDate(Date date) {
this.date = date;
public void setDescription(String description) {
this.description = description;
public void setProduct(Product product) {
this.product = product;
}No Sir,
I think I did not explained clearly.what I try to say is I dont want to use JSTL.I am using only Scriptlets only.I can able to receive the values from the database to the resultset.But I could not populate it in Combobox.
My code is :
<tr>
<td width="22%"><font color="#000000"><strong>Assign To Engineer</strong></font></td>
<td width="78%">
<select NAME="Name" size="1">
<option><%=Username%></option>
</select> </td>
</tr>
in HTML
and in Scriptlets:
ps1 = con.prepareStatement
("SELECT Username FROM Users");
rs2=ps1.executeQuery();
System.out.println("SECOND Succesfully Executed");
while(rs2.next())
System.out.println("Coming inside rs2.next loop to process");
Username=rs2.getString("Username");
System.out.println("Success");
System.out.println("The value retrieved from UsersTable Username is:"+Username);
In the server(Jboss console) I can able to display the username but I could not populate it in the Combobox .
Can you now suggest some changes in my code,Please..
Thanks a lot
With kind Regds
Satheesh -
10.1.3.4 - how to secure access on a jsp page ?
I have a simple jsp page that takes in some user values and then kicks off a workflow. I want to restrict the access on the jsp page so that only users of a certain group can use it. right now it is completely open and anyone can just go the page and start of a transaction.
found an article on this
http://www.oracle.com/technology/products/jdev/howtos/1013/adfsecurity/adfsecurity_10132.html
Maybe you are looking for
-
How can I delete a plugin I can't find
It seems that I have a plugin from Directv that may be causing me to lose wifi in my house. (not sure of that though). I have search for it using finder and have searched in libraries. Any idea where I can find it? I get the name of it because it
-
Hi all, The below statement is taking a very long time, can any one please suggest what can be done to reduce the time. *read PO history from EKBE join EKKO SELECT ekbeebeln ekbeebelp ekbe~vgabe ekbegjahr ekbebelnr ekbebuzei ekbebewtp ekbe
-
Clearing Multiple Messages in 11.1.1.7
In 11.1.1.5 this code worked to clear multiple messages when a single field was updated. In 11.1.1.7 the clearAllMessages method is protected so I can no longer use this code, how do I do something similar in 11.1.1.7? Thanks, John <af:resource type=
-
Started using iPhoto, now Macbook Pro crashes randomly
Hi, I started using iPhoto today to resize some photos. As soon as I tried to edit a photo or export a number of photos at one time the program crashes. A blue screen appears for a second and then I am brought back to the user login screen. I read on
-
Windows firewall keeps switching itself on!?
I have a funny problem that the Windows firewall seemingly refuses to accept that there is another firewall on my computer, and instead keeps switching itself on. I keep turning it off all the time, but it just won't take no for an answer. Every time