Cannot find bean in html:write
hi everybody
i am new to struts
in my application i am getting the following error
Cannot find bean error in any scope
in my code
in jsp i have given
logic:messagesPresent>
<UL>
<html:messages id="error" message="false">
<LI><bean:write name="error"/></LI>
</html:messages>
</UL>
</logic:messagesPresent>
and in my validate method in action form
i have given
ActionErrors errors = new ActionErrors();
errors.add(text parameter,ActionError parameter)
while creating ActionError Object i am passing one key that is refering the message in property file
any body can help me to resolve this problem
thanks in advance
Good Morning here!
Thank you all for the fabulous responses!
First of all, let me mention an important Fact. I am using The Struts Layout Library to build dependent Combo Boxes. so My enclosing html tag is <html:layout>
I am not sure If this has an influence on how Struts verifies the existence of Session Beans/Variables.
As I mentioned before: Action Class1 puts some variables in session and forwards to the JSP page in Question, those values load well the first time, and get printed in the JSP.
The JSP page has an Action Class2, triggered by a submit button, Action Class2 forwards to the same JSP page, But when this Action Class2 is called the values that were put in Session using Action Class1 get Lost.
tolmank, your reply is Very Interesting, because my server is internally changing my IP address to somename:8080. Are you sure this is what definitely could be causing the problem?
Thanks to all of you guys!
God Bless.
Post your comments... and let me know what you think.
Similar Messages
-
Cannot find bean in html:write gag
hi everybody
i am new to struts
in my application i am getting the following error
Cannot find bean error in any scope
in my code
in jsp i have given
logic:messagesPresent>
<UL>
<html:messages id="error" message="false">
<LI><bean:write name="error"/></LI>
</html:messages>
</UL>
</logic:messagesPresent>
and in my validate method in action form
i have given
ActionErrors errors = new ActionErrors();
errors.add(text parameter,ActionError parameter)
while creating ActionError Object i am passing one key that is refering the message in property file
any body can help me to resolve this problem
thanks in advanceGood Morning here!
Thank you all for the fabulous responses!
First of all, let me mention an important Fact. I am using The Struts Layout Library to build dependent Combo Boxes. so My enclosing html tag is <html:layout>
I am not sure If this has an influence on how Struts verifies the existence of Session Beans/Variables.
As I mentioned before: Action Class1 puts some variables in session and forwards to the JSP page in Question, those values load well the first time, and get printed in the JSP.
The JSP page has an Action Class2, triggered by a submit button, Action Class2 forwards to the same JSP page, But when this Action Class2 is called the values that were put in Session using Action Class1 get Lost.
tolmank, your reply is Very Interesting, because my server is internally changing my IP address to somename:8080. Are you sure this is what definitely could be causing the problem?
Thanks to all of you guys!
God Bless.
Post your comments... and let me know what you think. -
Hi,
I am getting the following error
Cannot find bean allJobsForm in any scope. I need some help in trying to identify the problem. I have attached the strust action mapping, the JSP, and the action and form classes. Please have a look and assist me in solving this problem as it I am becoming really frustrated.
Warm Regards
Denzil
Action Mapping
<action
path="/secure/moshomo/search/GetAllJobsAction"
type="za.co.mpilo.moshomo.web.action.GetAllJobsAction"
name="allJobsForm"
scope="session"
input="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
unknown="false"
validate="true"
>
<forward
name="success"
path="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
redirect="false"
/>
JSP
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/war-extranet" prefix="extranet" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %>
<nested:root name="allJobsForm">
<div align="center">
<table width="80%" class="mstable" >
<thead>
<td>Posted Jobs</td>
</thead>
<tr>
<td>
<table width="100%" >
<tr class="mssubhead">
<td width="60%" ><font color="#160866">
Job Title
</font></td>
<td width="22%" align="center" ><font color="#160866">
Posted Date
</font></td>
<td width="18%" align="center" ><font color="#160866">
Expiration Date
</font></td>
</tr>
<tr>
<td width="80%" ><font color="#160866">
Job Description
</font></td>
</tr>
<nested:iterate property="all" id="ref" type="za.co.mpilo.moshomo.vo.JobVO">
<tr>
<td width="60%"><font color="#160866">
<nested:write name="ref" property="jobTitle"/>
</font></td>
<td width="22%"><font color="#160866">
<nested:write name="ref" property="postedDate"/>
</font></td>
<td width="18%"><font color="#160866">
<nested:write name="ref" property="expirationDate"/>
</font></td>
</tr>
<tr>
<td width="80%" align="center"><font color="#160866">
<nested:write name="ref" property="jobDescription"/>
</td>
</tr>
</nested:iterate>
<nested:empty property="all">
<tr>
<td colspan="3"><font color="#160866"> No results found. </font></td>
</tr>
</nested:empty>
</table>
</td>
</tr>
</table>
</div>
</nested:root>
Action Class
package za.co.mpilo.moshomo.web.action;
import java.util.HashMap;
import java.util.logging.Level;
import javax.ejb.FinderException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
import za.co.mpilo.common.web.action.CommonAction;
import za.co.mpilo.moshomo.interfaces.CVRepositoryManager;
import za.co.mpilo.moshomo.util.CVRepositoryManagerUtil;
import za.co.mpilo.moshomo.vo.CVVO;
import za.co.mpilo.moshomo.vo.SearchVO;
import za.co.mpilo.moshomo.vo.JobVO;
import za.co.mpilo.moshomo.web.form.AllJobsForm;
import za.co.mpilo.moshomo.web.form.AllTertiaryEducationForm;
import za.co.mpilo.moshomo.web.form.JobSearchForm;
* @struts.action
* name="allJobsForm"
* path="/secure/moshomo/search/GetAllJobsAction"
* input="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
* scope="session"
* validate="true"
* redirect="false"
* @struts.action-forward
* name="success"
* path="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
* @version $Revision: 1.4 $
* @author $Author: denzilf $
* @date $Date: 2006/11/02 11:03:10 $
public class GetAllJobsAction extends CommonAction{
public ActionForward execute(ActionMapping mapping, ActionForm f, HttpServletRequest request, HttpServletResponse response) throws Exception {
if ( getLogger().isLoggable(Level.INFO) )
getLogger().info( "execute" );
ActionForward result = mapping.getInputForward();
ActionMessages errors = new ActionMessages ();
AllJobsForm form = (AllJobsForm) f;
try {
//vo.setAllORany( form.getAllORany());
//vo.setMatch( form.getMatch());
//vo.setSearchText(form.getSearchText());
String uid = request.getUserPrincipal().getName(); //logged in user
CVRepositoryManager manager = CVRepositoryManagerUtil.getHome( getIntialProperies() ).create();
HashMap jobs = manager.findAllJobsPerUserId(uid);
form.setAll( jobs.values() );
result = mapping.findForward( "success" );
catch (Exception xe) {
if ( getLogger().isLoggable(Level.WARNING) )
getLogger().log( Level.WARNING , xe.getMessage() , xe );
errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.general" ) );
if ( !errors.isEmpty() )
saveErrors( request , errors );
return result;
Form
package za.co.mpilo.moshomo.web.form;
import java.util.Collection;
import org.apache.struts.validator.ValidatorForm;
import za.co.mpilo.moshomo.vo.JobVO;
* @struts.form
* name="allJobsForm"
public class AllJobsForm extends ValidatorForm {
private int selection;
private Collection all;
public JobVO[] getAll() {
JobVO[] array = new JobVO[all.size()];
all.toArray( array );
return array;
public void setAll(Collection all) {
this.all = all;
public int getSelection() {
return selection;
public void setSelection(int selection) {
this.selection = selection;
}type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/Edituser.jsp at line 36
33: <html:form action="/Updateuser" method="post">
34:
35: <table border="0" align="center">
36: *<logic:iterate id="details" name="user">*
37: <tr>
38: <td><html:hidden property="userid" name="details"/></td>
39: <td><html:hidden property="contactid" name="details"/></td>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:397)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:988)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "user" in any scope
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.jsp.Edituser_jsp._jspService(Edituser_jsp.java:844)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:988)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.servlet.jsp.JspException: Cannot find bean: "user" in any scope
org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935)
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:232)
org.apache.jsp.jsp.Edituser_jsp._jspService(Edituser_jsp.java:184)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:988)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.
-------------------------------------------------------------------------------- -
Hi!
I have a jsp with Combo boxes, when i select a value of one combo box
OnChnage of it the 2nd combo box gets its value dynamically from the
database..
Here is my JSP..............................
<script language="JavaScript">
function ELMORG_MNEMONIC1Changed() {
var frm = document.RetrieveReportDynaForm;
frm.actionType.value = "1";
frm.submit();
function ELMORG_MNEMONIC2Changed(){
var frm = document.RetrieveReportDynaForm;
frm.actionType.value = "2";
frm.submit();
function ELMORG_MNEMONIC3Changed(){
var frm = document.RetrieveReportDynaForm;
frm.actionType.value = "3";
frm.submit();
</script>
</head>
<body>
<table>
<html:form action="/RetrieveReport.do" styleId="RetrieveReportDynaForm">
<input type="hidden" name="actionType" value="">
<table cellspacing=0 cellpadding=2 border=0 class="table_data" id="TABLE1" >
<tr>
<td height="20px" colspan="5" class="table_top_td">Telecom DashBoard</td>
</tr>
<tr >
<tr class="table_data">
<td width="90px"></td>
<td class="smalltext" width="75px" align="right"><b>Organizational Element1</b></td>
<td>
<html:select property="ELMORG_MNEMONIC1" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC1Changed()">
<html:option value="">Select</html:option>
<html:optionsCollection name="reportlist" label="ELMORG_MNEMONIC1" value="ELMORG_MNEMONIC1"/>
</html:select>
</td>
</tr>
<tr class="table_data">
<td width="90px"></td>
<td class="smalltext" width="75px" align="right"><b>Organizational Element2</b></td>
<td>
<html:select property="ELMORG_MNEMONIC2" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC2Changed()">
<html:optionsCollection name="mnemonic1" label="ELMORG_MNEMONIC2" value="ELMORG_MNEMONIC2"/>
</html:select>
</td>
</tr>
<tr class="table_data">
<td width="90px"></td>
<td class="smalltext" width="75px" align="right"><b>Organizational Element3</b></td>
<td>
<html:select property="ELMORG_MNEMONIC3" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC3Changed()">
<html:optionsCollection name="mnemonic2" label="ELMORG_MNEMONIC3" value="ELMORG_MNEMONIC3"/>
</html:select>
</td>
</tr>
<tr class="table_data">
<td width="90px"></td>
<td class="smalltext" width="75px" align="right"><b>Organizational Element4</b></td>
<td>
<html:select property="RC_MNEMONIC" styleClass="mediumtext" style="width:120px; height:30px" onchange="RC_MNEMONICChanged()">
<html:optionsCollection name="mnemonic3" label="RC_MNEMONIC" value="RC_MNEMONIC"/>
</html:select>
</td>
</tr>
<tr>
<td></td>
<td><html:submit/></td>
</tr>
</table>
</html:form>
</body>
</html:html>
I am getting a error....
javax.servlet.jsp.JspException: Cannot find bean: "mnemonic2" in any scope
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935)
at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:173)
at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_optionsCollection_2(reportParameter_jsp.java:469)
at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_select_2(reportParameter_jsp.java:438)
at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_form_0(reportParameter_jsp.java:210)
at org.apache.jsp.jsp.reportParameter_jsp._jspService(reportParameter_jsp.java:130)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
when i execute this page..
I am using struts action where i am setting the "mnemonic2" variable in a session....................................
if ("2".equals(actionType)){
String MNEMONIC1 = request.getParameter("ELMORG_MNEMONIC1");
String MNEMONIC2 = request.getParameter("ELMORG_MNEMONIC2");
if(MNEMONIC2==""){
request.getSession().removeAttribute("mnemonic2");
}else{
ArrayList reportParam1 = (ArrayList)this.reportService.getELMORG_MNEMONIC3(MNEMONIC1,MNEMONIC2);
System.out.println("The arraysize in the Action class2 is"+reportParam1.size());
request.getSession().setAttribute("mnemonic2", reportParam1);
Can any one pls tell me why m i getting this error???hi enoch!
yeah definitely...
<action path="/FourthAction" name="RetrieveReportDynaForm"
type="org.springframework.web.struts.DelegatingActionProxy" >
<forward name="success" path="/jsp/reportParameter.jsp"></forward>
<forward name="failure" path="/jsp/reportParameter.jsp"></forward>
</action>
<form-bean name="RetrieveReportDynaForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="GRP_MNEMONIC" type="java.lang.String"
initial="" />
<form-property name="POL_MNEMONIC" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC1" type="java.lang.String"
initial="" />
<form-property name="ELMORG_MNEMONIC1" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC2" type="java.lang.String"
initial="" />
<form-property name="ELMORG_MNEMONIC2" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC3" type="java.lang.String"
initial="" />
<form-property name="ELMORG_MNEMONIC3" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC4" type="java.lang.String"
initial="" />
<form-property name="ELMORG_MNEMONIC4" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC5" type="java.lang.String"
initial="" />
<form-property name="ELMORG_MNEMONIC5" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC6" type="java.lang.String"
initial="" />
<form-property name="RC_MNEMONIC" type="java.lang.String"
initial="" />
<form-property name="RC_LABEL" type="java.lang.String"
initial="" />
<form-property name="RC_MANAGER" type="java.lang.String"
initial="" />
<form-property name="RC_CODE" type="java.lang.String"
initial="" />
<form-property name="RC_MANAGER_EMAIL" type="java.lang.String"
initial="" />
<form-property name="actionType" type="java.lang.String"
initial="" />
</form-bean> -
Cannot find Bean under name..
Hello everyone,
I'm new to struts, please be patient with me!!
I have a series of JSP pages with forms, when I submit a form, I store the contents to the database & take the user to the next page, if its an update action, I need to populate the forms on load.
The storing part & populating parts are working fine (using ActionForm) BUT the page transitions are not working. I mean, after storing to the database I send a "success" message & my next page is not getting loaded. I'm geting this error "Cannot find bean under name projectOverviewForm" (2nd form name).
Here's the code snippet...
struts-config.xml:
<form-beans>
<form-bean name="projectIdentificationForm" type="roi.form.ProjectIdentificationForm"></form-bean>
<form-bean name="projectOverviewForm" type="roi.form.ProjectOverviewForm"></form-bean>
</form-beans>
<global-forwards>
<forward name="identification" path="toolBg.identification"></forward>
<forward name="overview" path="toolBg.overview"></forward>
</global-forwards>
<action-mappings>
<action path="/identification" type="roi.action.ProjectIdentificationAction" parameter="method" name="projectIdentificationForm" scope="request" validate="false">
<forward name="success" path="toolBg.identification"></forward>
<forward name="nextSuccess" path="toolBg.overview"></forward>
<forward name="deleteSuccess" path="roi.welcome"></forward>
</action>
<action path="/overview" type="roi.action.ProjectOverviewAction" parameter="method" name="projectOverviewForm" scope="request" validate="false">
<forward name="success" path="toolBg.overview"></forward>
<forward name="nextSuccess" path="toolBg.scd"></forward>
</action>
</action-mappings>On searching on the web, I heard this error mostly occurs due to html:select but I'm not using it in my JSP.
Please let me know if I need to upload any more code? Any help would be greatly appreciated!
Thanks & Regards,
Vidya ShankarException: Cannot find bean under name ...
Probable Cause: This is usually seen in association with a problematic Struts HTML SELECT custom tag. The Struts html:select tag behaves differently depending whether one or both of the name and property attributes is specified for its encompassed <html:options> tags. If the name attribute is specified, whether or not if the property attribute is specified, then a bean matching the specified name will be expected in some scope (such as page, request, session, or application). If the matching bean is not found in any available scope, the error above will be seen.
There are two ways to address this. The first approach is to put a bean in one of the scopes so that the html:options might be associated with it. The second approach is to not specify the name attribute and instead use only the property attribute.
Change your Frombean scope from "Request" to "Session", then it works.
Thanks,
Thagelapally -
Hi
i have a form from which i am gettin values and i am using struts to get those values and perform actions in my DAO,
i am able to retrieve values from DAO but the value is not gettin printed in front end.. its throwing
"javax.servlet.jsp.JspException: Cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope" error
got any suggestions
thankxGot the solution,. i had closed my <html:form> before closing one of my <html:form>
thankx -
I'm trying to call an entity bean froma session bean i get the error :-
7/02/27 14:35:25 javax.ejb.ObjectNotFoundException: Exception [EJB - 10008]: Cannot find bean of type [SalesBean] using finde
[findByCustID].
7/02/27 14:35:25 at oracle.toplink.internal.ejb.cmp.EJBExceptionFactory.objectNotFound(EJBExceptionFactory.java:325)
7/02/27 14:35:25 at oracle.toplink.internal.ejb.cmp.finders.Finder.checkNullResult(Finder.java:224)
My session bean looks like this :-
public class HelloBean implements SessionBean
public String helloWorld (String pzCustomerID) throws SQLException,RemoteException
String lzRevenue=null;
int liCustomerID=Integer.parseInt(pzCustomerID);
try
Context initial = new InitialContext();
Object objref = initial.lookup("SalesBean");
SalesHome salesHome =(SalesHome) PortableRemoteObject.narrow(objref,SalesHome.class);
Sales sales=salesHome.findByCustID(liCustomerID);
lzRevenue=(String) sales.findByCustID(liCustomerID);
My entity bean looks like this:-
public class SalesBean implements EntityBean
public String factPK;
public int timeID;
public int custID;
public int locID;
public int itemID;
public int entityID;
public String currency;
public float qty;
public float unitPrice;
public float amount;
public EntityContext context;
private Connection con;
private void makeConnection() {
try {
InitialContext ic = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) ic.lookup("jdbc/DSource");
con = ds.getConnection();
} catch (Exception ex) {
throw new EJBException("Unable to connect to database. " +
ex.getMessage());
public SalesBean()
public String ejbFindByCustID(int custID) throws SQLException,RemoteException,FinderException
makeConnection();
PreparedStatement pstmt = con.prepareStatement("select sum(amount) from sales where cust_id= ? ");
pstmt.setInt(1, custID);
ResultSet rset = pstmt.executeQuery();
if (!rset.next())
throw new RemoteException("no records present" );
return rset.getString(1);
}My entity bean's home interface looks like this:-
public interface SalesHome extends EJBHome
public Sales create() throws RemoteException, CreateException;
public Sales findByCustID(int custID) throws SQLException,RemoteException,FinderException;
My entity bean's remote interface looks like this:-
public interface Sales extends EJBObject
public String findByCustID(int custID) throws SQLException,RemoteException,FinderException;
my ejb-jar.xml looks like this:-
<enterprise-beans>
<session>
<description>Hello Bean</description>
<ejb-name>HelloBean</ejb-name>
<home>myEjb.HelloHome</home>
<remote>myEjb.HelloRemote</remote>
<ejb-class>myEjb.HelloBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
<entity>
<ejb-name>SalesBean</ejb-name>
<home>myEjb.SalesHome</home>
<remote>myEjb.Sales</remote>
<ejb-class>myEjb.SalesBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>factPK</field-name>
</cmp-field>
<cmp-field>
<field-name>timeID</field-name>
</cmp-field>
<cmp-field>
<field-name>custID</field-name>
</cmp-field>
<cmp-field>
<field-name>locID</field-name>
</cmp-field>
<cmp-field>
<field-name>itemID</field-name>
</cmp-field>
<cmp-field>
<field-name>entityID</field-name>
</cmp-field>
<cmp-field>
<field-name>currency</field-name>
</cmp-field>
<cmp-field>
<field-name>qty</field-name>
</cmp-field>
<cmp-field>
<field-name>unitPrice</field-name>
</cmp-field>
<cmp-field>
<field-name>amount</field-name>
</cmp-field>
<primkey-field>factPK</primkey-field>
<resource-ref>
<res-ref-name>jdbc/DSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
please help me out of this trouble.I'm trying to call an entity bean froma session bean i get the error :-
7/02/27 14:35:25 javax.ejb.ObjectNotFoundException: Exception [EJB - 10008]: Cannot find bean of type [SalesBean] using finde
[findByCustID].
7/02/27 14:35:25 at oracle.toplink.internal.ejb.cmp.EJBExceptionFactory.objectNotFound(EJBExceptionFactory.java:325)
7/02/27 14:35:25 at oracle.toplink.internal.ejb.cmp.finders.Finder.checkNullResult(Finder.java:224)
My session bean looks like this :-
public class HelloBean implements SessionBean
public String helloWorld (String pzCustomerID) throws SQLException,RemoteException
String lzRevenue=null;
int liCustomerID=Integer.parseInt(pzCustomerID);
try
Context initial = new InitialContext();
Object objref = initial.lookup("SalesBean");
SalesHome salesHome =(SalesHome) PortableRemoteObject.narrow(objref,SalesHome.class);
Sales sales=salesHome.findByCustID(liCustomerID);
lzRevenue=(String) sales.findByCustID(liCustomerID);
My entity bean looks like this:-
public class SalesBean implements EntityBean
public String factPK;
public int timeID;
public int custID;
public int locID;
public int itemID;
public int entityID;
public String currency;
public float qty;
public float unitPrice;
public float amount;
public EntityContext context;
private Connection con;
private void makeConnection() {
try {
InitialContext ic = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) ic.lookup("jdbc/DSource");
con = ds.getConnection();
} catch (Exception ex) {
throw new EJBException("Unable to connect to database. " +
ex.getMessage());
public SalesBean()
public String ejbFindByCustID(int custID) throws SQLException,RemoteException,FinderException
makeConnection();
PreparedStatement pstmt = con.prepareStatement("select sum(amount) from sales where cust_id= ? ");
pstmt.setInt(1, custID);
ResultSet rset = pstmt.executeQuery();
if (!rset.next())
throw new RemoteException("no records present" );
return rset.getString(1);
}My entity bean's home interface looks like this:-
public interface SalesHome extends EJBHome
public Sales create() throws RemoteException, CreateException;
public Sales findByCustID(int custID) throws SQLException,RemoteException,FinderException;
My entity bean's remote interface looks like this:-
public interface Sales extends EJBObject
public String findByCustID(int custID) throws SQLException,RemoteException,FinderException;
my ejb-jar.xml looks like this:-
<enterprise-beans>
<session>
<description>Hello Bean</description>
<ejb-name>HelloBean</ejb-name>
<home>myEjb.HelloHome</home>
<remote>myEjb.HelloRemote</remote>
<ejb-class>myEjb.HelloBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
<entity>
<ejb-name>SalesBean</ejb-name>
<home>myEjb.SalesHome</home>
<remote>myEjb.Sales</remote>
<ejb-class>myEjb.SalesBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>factPK</field-name>
</cmp-field>
<cmp-field>
<field-name>timeID</field-name>
</cmp-field>
<cmp-field>
<field-name>custID</field-name>
</cmp-field>
<cmp-field>
<field-name>locID</field-name>
</cmp-field>
<cmp-field>
<field-name>itemID</field-name>
</cmp-field>
<cmp-field>
<field-name>entityID</field-name>
</cmp-field>
<cmp-field>
<field-name>currency</field-name>
</cmp-field>
<cmp-field>
<field-name>qty</field-name>
</cmp-field>
<cmp-field>
<field-name>unitPrice</field-name>
</cmp-field>
<cmp-field>
<field-name>amount</field-name>
</cmp-field>
<primkey-field>factPK</primkey-field>
<resource-ref>
<res-ref-name>jdbc/DSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
please help me out of this trouble. -
Javax.servlet.ServletException: Cannot find bean CustForm in any scope
while i m running my struts application.. i m getting this error.. can any one pointout wat error is this...
javax.servlet.ServletException: Cannot find bean CustForm in any scope
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.Result_jsp._jspService(Result_jsp.java:100)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
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:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Thread.java:534)hi shanu
getting in jsp call..
ERROR [Engine] ApplicationDispatcher[customTag] Servlet.service() for servlet jsp threw exception.
n this is the action
<action-mappings >
<action path="/select" type="customTld.CustAction" name="custform" scope="request">
<forward name="ok" path="/Result.jsp"/>
</action>
</action-mappings > -
I am trying to access a java bean through a servlet..
the bean is defined in the package com.mycomp
when i use this bean using test.jsp it works fine it finds the package com.mycomp.. but when i am using the Servlet it cannot find the package...when i am trying to compile the servlet it says it cannot resolve the symbol class ConnectionBean
it cannot find the package com.mycomp
your help will be appreciatied....
here is the structure of files:
tomcat
webapps
myapp
jsp
-test.jsp
WEB-INF
classes
-PropertyServlet.java
-PropertyServlet.class
-ConnectionBean.java
com
mycomp
-ConnectionBean.class
I have tried importing in the servlet import com.mycomp.*; but i still get an error com.mycomp not found...
I have also tried importing the class itself by import com.mycomp.ConnectionBean;
I still get the package com.mycomp not found;
is there any xml file or anything that i need to edit so servlets can read the packages located in classes folder?me also same problem...
this class path is included in server itself..
or we can set during compiling time...
then this is my compile.bat file please check
set classpath=%CLASSPATH%; ./WEB-INF/classes;
@echo off
javac -d ./WEB-INF/classes/ ./dev/beans/*.java
javac -d ./WEB-INF/classes/ ./dev/ContentManagement/beans/*.java
javac -d ./WEB-INF/classes/ ./dev/servlets/*.java
and my servlet file like this below..
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.deploy.servlet.*;
public class ControlServlet extends HttpServlet
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("Testing");
/* if (request.getParameter("pageName")=="CEOSpeak")
CEOBean CB = new CEOBean();
if (request.getParameter("actionType")=="add")
else if (request.getParameter("actionType")=="edit")
else if (request.getParameter("actionType")=="delete")
if(CB.deleteCEO(request.getParameter("CEOId")))
response.sendRedirect("CEO_Speaks.jsp"); -
I want to submit this page so that i can retrieve values in the new employer name and license type depending on the license # my jsp code is as below
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="org.apache.struts.action.Action.*"%>
<%@ page contentType="text/html;charset=windows-1252" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<HEAD>
<TITLE><bean:message key="application.title"/></TITLE>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=ISO-8859-1">
<META NAME="GENERATOR" content="Oracle JDeveloper 10g">
<META HTTP-EQUIV="Content-Style-Type" content="text/css">
<META HTTP-EQUIV="PRAGMA" VALUE="NO-CACHE">
<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
<SCRIPT src="javascript/common_validation.js"></SCRIPT>
</HEAD>
<BODY MARGINHEIGHT="0" marginweight="0" topmargin="0" leftmargin="0" bgcolor="#FFFFFF">
<%@ include file="../../includes/icolaMenu.jsp" %>
<html:form action="/addTransfer.do" focus="newEmplic" onsubmit="return validateTransferlicenseeForm(this);">
<html:javascript formName="transferlicenseeForm" /><html:errors />
<tr><td>
<table align="left" border="1" width="736" bgcolor="ffffff" cellpadding="0" cellspacing="0" bordercolor="c0c0c0">
<tr><td>
<table width="736" border="0" cellpadding="1" cellspacing="0">
<tr>
<td width="730" align=center><b><font face="Verdana, Arial, Helvetica, sans-serif">Transfer License</font></b></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><%@ include file="../../includes/licenseDetails.jsp" %></td>
</tr>
<tr>
<td align="center">
<table class="tabledec" width="730" border="0" cellpadding=0 cellspacing=0>
<tr>
<td align="left"><font size="-2" face="Verdana, Arial, Helvetica, sans-serif"><b> :: Current Employing Licensee Information:</b></font></td>
<td align="right"><font size="-2" face="Verdana, Arial, Helvetica, sans-serif"><b>¤ ¤ ¤ </b></font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left"><table width="734" border="0">
<tr>
<td width="30"> </td>
<td width="106"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>License #:</b></font></td>
<td width="598"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><bean:write name="transferlicenseeForm" property="currentEmplic" /></font></td>
</tr>
<tr>
<td width="4%"> </td>
<td width="20%"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Name:</b></font></td>
<td width="30%"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><bean:write name="transferlicenseeForm" property="currentEmpname" /></font></td>
<td width= "20%" <font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>DBA Name:</b></font></td>
<td width="30%" <font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><bean:write name="transferlicenseeForm" property="currentEmpdbaname" /></font></td>
</tr>
<tr>
<td width="30"> </td>
<td width="106"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>License Type:</b></font></td>
<td width="598"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><bean:write name="transferlicenseeForm" property="currentEmplictype" /></font></td>
</tr>
</table></td>
</tr>
<tr>
<td nowrap><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
</tr>
<tr>
<td align="center">
<table class="tabledec" width="730" border="0" cellpadding=0 cellspacing=0>
<tr>
<td align="left"><font size="-2" face="Verdana, Arial, Helvetica, sans-serif"><b> :: New Employing Licensee Information:</b></font></td>
<td align="right"><font size="-2" face="Verdana, Arial, Helvetica, sans-serif"><b>¤ ¤ ¤ </b></font></td>
</tr>
</table>
</td>
</tr>
<logic:equal name="transferlicenseeForm" property="transferButton" value="button.submit">
<tr>
<td align="left"><table width="734" border="0">
<html:form action="ChangeEvent.do" name ="transferlicenseeForm" type="com.dleg.cola.helper.TransferLicensee" >
<html:hidden property="method" />
<tr>
<td width="4%"> </td>
<td width="20%"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>License #:</b></font></td>
<td width="76%"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><html:text styleClass="required" maxlength="10" name="transferlicenseeForm" property="newEmplic" onkeyup="if(true){this.form.elements[0].value='populateDetails';this.form.submit();}" /></font>
<font size="-2" color=blue face="Verdana, Arial, Helvetica, sans-serif"><b>License Lookup</b></font></td>
<!-- <td width="120"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Transfer Status:</b></font></td>
<td width="198"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><bean:write name="transferlicenseeForm" property="transferStatus" /></font></td>-->
</tr>
<!-- </html:form> -->
<tr>
<td> </td>
<td><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Name:</b></font></td>
<td colspan="3"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><bean:write name="transferlicenseeForm" property="newEmpname" /></font></td>
</tr>
<tr>
<td> </td>
<td><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>License Type:</b></font></td>
<td colspan="3"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><bean:write name="transferlicenseeForm" property="newEmplictype" /></font></td>
</tr>
<tr>
<td colspan=5><p align=justify><font size="-2" face="Verdana, Arial, Helvetica, sans-serif"><B>NOTE:</B><BR> * Transfer
fee will be added to your online invoice upon Submit. Transfers require approval from New employing Licensee. Please inform new employing
Licensee that you have completed this transfer request. Your new License will be printed upon new employing Licensee's approval.</font></p>
</td>
</tr>
</table></td>
</tr>
<html:hidden property="parentLicid" />
<tr>
<td> </td>
</tr>
<tr>
<td colspan=3>
<font size="-1" face="Verdana, Arial, Helvetica, sans-serif" color="Gray"><b>Have you been convicted of a felony or misdemeanor for which you could have gone to jail that has not previously been reported to the department?</b></font>
</td>
</tr>
<tr>
</tr>
<tr>
<td colspan=3>
<font size="-1" face="Verdana, Arial, Helvetica, sans-serif" color="Gray">
<html:radio property="GMCind" value="N" disabled="true"/>NO
<html:radio property="GMCind" value="Y" disabled="true"/>YES (Complete and return this questionaire)
(http://www.cis.state.mi.us/bcsc/forms/lce020.pdf)
</font>
</td>
</tr>
<!-- <tr>
<td colspan=3>
<font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Have you had disciplinary action taken against any license, registration or permit you now hold or have ever held that you have not reported to the department?</b></font>
</td>
</tr>
<tr>
<td colspan=3>
<font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
<html:radio property="dispInd" value="N" />NO
<html:radio property="dispInd" value="Y" />YES (Complete and return this questionaire)
(http://www.cis.state.mi.us/bcsc/forms/lce021.pdf)
</font>
</td>
</tr>-->
</td>
</tr>
</logic:equal>
<logic:equal name="transferlicenseeForm" property="transferButton" value="button.canceltransfer">
<tr>
<td align="left"><table width="734" border="0">
<tr>
<td width="30"> </td>
<td width="106"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif" ><b>License #:</b></font> </td>
<td width="280"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif" color="Gray"><html:text styleClass="required" maxlength="10" property="newEmplic" disabled="true" /></font> </td>
<!-- <font size="-2" color="Gray" face="Verdana, Arial, Helvetica, sans-serif"><b>License Lookup</b></font></td> -->
<!--<td width="120"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Transfer Status:</b></font></td>
<td width="198"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><bean:write name="transferlicenseeForm" property="transferStatus" /></font></td> -->
</tr>
<tr>
<td> </td>
<td><font size="-1" face="Verdana, Arial, Helvetica, sans-serif" ><b>Name:</b></font></td>
<td colspan="3"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif" ><bean:write name="transferlicenseeForm" property="newEmpname" /></font></td>
</tr>
<tr>
<td> </td>
<td><font size="-1" face="Verdana, Arial, Helvetica, sans-serif" ><b>License Type:</b></font></td>
<td colspan="3"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><bean:write name="transferlicenseeForm" property="newEmplictype" /></font></td>
</tr>
<tr>
<td colspan=5><p align=justify><font size="-2" face="Verdana, Arial, Helvetica, sans-serif"><B>NOTE:</B><BR> * Transfer
fee will be added to your online invoice upon Submit. Transfers require approval from New employing Licensee. Please inform new employing
Licensee that you have completed this transfer request. Your new License will be printed upon new employing Licensee's approval.</font></p>
</td>
</tr>
</table></td>
</tr>
<html:hidden property="parentLicid" />
<tr>
<td> </td>
</tr>
</logic:equal>
<tr>
<td align="center">
<table width="734" border="0">
<tr>
<td align="left" width="240" valign="middle"> <img src="images/icon_required.gif" align=top width="6" height="6" border="0"> Required Field</td>
<td align="center" width="20">
<html:submit property="confirmTrans">
<bean:message name="transferlicenseeForm" property="transferButton" />
</html:submit>
</td>
</html:form>
<html:form action="/Button">
<td align="left" width="330">
<html:cancel property="method">
<bean:message key="button.returnChild"/>
</html:cancel>
</td>
</html:form>
</tr>
</table></td>
</tr>
</table>
</td></tr>
</table>
</td></tr>
<%@ include file="../../includes/icolaFooter.html" %>
</BODY>
</html:html>
my struts-config as below
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<struts-config>
<form-beans>
<form-bean name="loginForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="userID" type="java.lang.String" />
<form-property name="pinNum" type="java.lang.String" />
</form-bean>
<form-bean name="renewalLoginForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="licNum" type="java.lang.String" />
</form-bean>
<form-bean name="reqPwdResetForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="chooseOption" type="java.lang.String" />
<form-property name="lName" type="java.lang.String" />
<form-property name="SSN" type="java.lang.String" />
<form-property name="DOB" type="java.lang.String" />
<form-property name="licNum" type="java.lang.String" />
</form-bean>
<form-bean name="reqNewAcctForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="chooseOption" type="java.lang.String" />
<form-property name="lName" type="java.lang.String" />
<form-property name="SSN" type="java.lang.String" />
<form-property name="DOB" type="java.lang.String" />
<form-property name="licNum" type="java.lang.String" />
</form-bean>
<form-bean name="changePinForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="userID" type="java.lang.String" />
<form-property name="pinNum" type="java.lang.String" />
<form-property name="dupPinNum" type="java.lang.String" />
</form-bean>
<form-bean name="newAppInitialForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="board" type="java.lang.String" />
<form-property name="licType" type="java.lang.String" />
<form-property name="obtBy" type="java.lang.String" />
<form-property name="allObtBy" type="java.lang.String" />
<form-property name="allLicTypes" type="java.lang.String" />
</form-bean>
<form-bean name="mainForm" type="org.apache.struts.validator.DynaValidatorForm" >
<form-property name="chooseOption" type="java.lang.String" />
</form-bean>
<form-bean name="buttonForm" type="org.apache.struts.validator.DynaValidatorForm" />
<form-bean name="transferlicenseeForm" type="com.dleg.cola.helper.TransferLicensee" />
<form-bean name="apprTransferForm" type="org.apache.struts.validator.DynaValidatorForm" >
<form-property name="trApprFlag" type="java.lang.String[]" />
</form-bean>
<form-bean name="empRenewForm" type="com.dleg.cola.forms.EmpRenewForm" >
<form-property name="empRenFlag" type="java.lang.String[]" />
</form-bean>
<form-bean name="renewalForm" type="com.dleg.cola.forms.RenewForm" />
<form-bean name="reprintlicenseForm" type="com.dleg.cola.forms.ReprintLicenseForm" />
<form-bean name="invoiceForm" type="com.dleg.cola.forms.InvoiceForm" />
<form-bean name="creditCardForm" type="com.dleg.cola.forms.CreditCardForm" />
<form-bean name="addressChangeForm" type="com.dleg.cola.forms.AddressChangeForm" />
<form-bean name="personForm" type="com.dleg.cola.forms.PersonForm" />
<form-bean name="companyForm" type="com.dleg.cola.forms.CompanyForm" />
<form-bean name="checkListForm" type="com.dleg.cola.forms.CheckListForm" />
</form-beans>
<global-exceptions>
<exception type="com.dleg.cola.exceptions.DatabaseException" key="error.database.missing" path="/error.jsp" scope="request" />
</global-exceptions>
<global-forwards>
<forward name="login" path="/login.jsp" redirect="false" />
</global-forwards>
<action-mappings type="org.apache.struts.config.SecureActionConfig">
<action path="/RequestPwdReset" input="/WEB-INF/jsps/reqPwdReset.jsp" type="com.dleg.cola.actions.RequestPwdResetAction" name="reqPwdResetForm">
<forward name="success" path="/changePin.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" contextRelative="false" />
</action>
<action path="/RequestNewAcct" input="/WEB-INF/jsps/reqNewAcct.jsp" type="com.dleg.cola.actions.RequestNewAcctAction" name="reqNewAcctForm">
<forward name="destination1" path="/changePin.jsp" />
<forward name="destination2" path="/changePin.jsp" />
<forward name="destination3" path="/register.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" contextRelative="false" />
</action>
<action path="/RenewalLogin" input="/WEB-INF/jsps/renewalLogin.jsp" type="com.dleg.cola.actions.RenewalLoginAction" name="renewalLoginForm">
<forward name="success" path="Licensee.do" />
<forward name="failure" path="/error.jsp" redirect="false" contextRelative="false" />
</action>
<action path="/Login" input="/WEB-INF/jsps/login.jsp" type="com.dleg.cola.actions.LoginAction" name="loginForm">
<forward name="success" path="Licensee.do" />
<!--<forward name="success1" path="/UserLogin.jsp" /> -->
<forward name="success1" path="/changePin.jsp" />
<forward name="success2" path="/newApp.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" contextRelative="false" />
</action>
<action path="/UpdateAddrInfo" type="com.dleg.cola.actions.UpdateAddrInfoAction" name="personForm">
<forward name="success" path="ShowCheckList.do" />
</action>
<action path="ShowCheckList" type="com.dleg.cola.actions.ShowCheckListAction" name="checkListForm">
<forward name="success" path="/checkList.jsp" />
</action>
<action path="/SubmitCheckList" type="com.dleg.cola.actions.SubmitCheckListAction" name="checkListForm">
<forward name="success" path="viewInvoice.do" />
</action>
<action path="Licensee" type="com.dleg.cola.actions.LicenseeAction" name="licenseeForm">
<forward name="success" path="/licHome.jsp" />
</action>
<action path="/Button" type="com.dleg.cola.actions.ButtonAction" name="buttonForm" parameter="method">
<set-property property="secure" value="true"/>
<forward name="exit" path="/login.jsp" />
<forward name="exit1" path="/renewalLogin.jsp" />
<forward name="changePin" path="/changePin.jsp" />
<forward name="approve" path="PendAppr.do" redirect="false" />
<forward name="submit" path="/ApprTransfer.do" redirect="false" />
<forward name="returnHome" path="/licHome.jsp" redirect="false" />
<forward name="returnChild" path="ChildLic.do" redirect="false" />
<forward name="renewSubLic" path="EmpRenew.do" redirect="false" />
<forward name="cancel" path="/login.jsp" redirect="false" />
<forward name="renew" path="RenewLic.do" redirect="false"/>
<forward name="addCart" path="/viewInvoice.jsp" redirect="false"/>
<forward name="viewInvoice" path="/viewInvoice.jsp" redirect="false"/>
<forward name="pay" path="/makePayment.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false"/>
<forward name="login" path="/login.jsp" redirect="false" />
<forward name="main" path="/main.jsp" redirect="false" />
<forward name="reqPwdReset" path="/requestPwdReset.jsp" redirect="false" />
<forward name="newLicApp" path="NewApp.do" redirect="false" />
<forward name="renewMore" path="/licHome.jsp" redirect ="false" />
</action>
<action path="Button" type="com.dleg.cola.actions.ButtonAction" name="buttonForm" parameter="method">
<set-property property="secure" value="true"/>
<forward name="exit" path="/login.jsp" />
<forward name="changePin" path="/changePin.jsp" />
<forward name="approve" path="PendAppr.do" redirect="false" />
<forward name="submit" path="/ApprTransfer.do" redirect="false" />
<forward name="returnHome" path="/licHome.jsp" redirect="false" />
<forward name="returnChild" path="ChildLic.do" redirect="false" />
<forward name="renewSubLic" path="EmpRenew.do" redirect="false" />
<forward name="cancel" path="/login.jsp" redirect="false" />
<forward name="renew" path="RenewLic.do" redirect="false"/>
<forward name="addCart" path="/viewInvoice.jsp" redirect="false"/>
<forward name="viewInvoice" path="/viewInvoice.jsp" redirect="false"/>
<forward name="pay" path="/makePayment.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false"/>
<forward name="main" path="/main.jsp" redirect="false" />
<forward name="reqPwdReset" path="/requestPwdReset.jsp" redirect="false" />
<forward name="newLicApp" path="NewApp.do" redirect="false" />
<forward name="renewMore" path="/licHome.jsp" redirect ="false" />
</action>
<action path="NewApp" type="com.dleg.cola.actions.NewAppAction" name="newAppInitialForm" scope="request">
<forward name="success" path="/newApp.jsp" />
</action>
<action path="/NewApp" type="com.dleg.cola.actions.NewAppAction" name="newAppInitialForm" scope="request">
<forward name="success" path="/newApp.jsp" />
</action>
<action path="/AddressInfo" type="com.dleg.cola.actions.AddressInfoAction" name="personForm" scope="request">
<forward name="success" path="/addressInfo.jsp" />
</action>
<action path="/NewAppContinue" type="com.dleg.cola.actions.NewAppContinueAction" name="newAppInitialForm" scope="request">
<forward name="success" path="/newAppContinue.jsp" />
</action>
<action path="/ChildLic" type="com.dleg.cola.actions.ChildLicAction" name="licenseeForm" scope="request">
<forward name="success" path="/child_lic.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="ChildLic" type="com.dleg.cola.actions.ChildLicAction" name="licenseeForm" scope="request">
<forward name="success" path="/child_lic.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/transferLic" type="com.dleg.cola.actions.ButtonAction" name="transferlicenseeForm" parameter="transferLicense" scope="request">
<forward name="transfer" path="/transferLicense.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/transferLicense" type="com.dleg.cola.actions.TransferLicAction" name="transferlicenseeForm" scope="request">
<forward name="transfer" path="/transferLicense.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/ChangeEvent" type="com.dleg.cola.actions.ChangeAction" name="transferlicenseeForm" scope="request" parameter="method">
<forward name="success" path="/transferLicense.jsp"></forward>
<forward name="failure" path="/error.jsp"></forward>
</action>
<action path="/addTransfer" input="transferLicense.jsp" type="com.dleg.cola.actions.TransferLicenseAction" name="transferlicenseeForm" parameter="confirmTrans" scope="request">
<forward name="success" path="/viewInvoice.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" />
<forward name="cancel" path="/child_lic.jsp" redirect="false" />
<forward name="transfer" path="/licHome.jsp" redirect="false" />
<forward name="invalid" path="/error.jsp" redirect="false" />
</action>
<action path="/reprintLic" input="child_lic.jsp" type="com.dleg.cola.actions.ButtonAction" name="reprintlicenseForm" parameter="reprintLicense" scope="request">
<forward name="reqDuplicate" path="/dupReprint.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/addReprint" input="dupReprint.jsp" type="com.dleg.cola.actions.ReprintAction" name="reprintlicenseForm" scope="request">
<forward name="success" path="/viewInvoice.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" />
<forward name="cancel" path="/child_lic.jsp" redirect="false" />
</action>
<action path="/ChangePin" input="/WEB-INF/jsps/changePin.jsp" type="com.dleg.cola.actions.ChangePinAction" name="changePinForm">
<forward name="success" redirect="false" path="Licensee.do" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/changeAddress" type="com.dleg.cola.actions.ChangeAddressAction" name="addressChangeForm" parameter="method" scope="request">
<forward name="changeEntAddr" path="/changeAddress.jsp" redirect="false" />
<forward name="success" path="/viewInvoice.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/ChangeLicAddr" type="com.dleg.cola.actions.ChangeLicAddrAction" name="addressChangeForm" parameter="method" scope="request">
<forward name="changeLicAddr" path="/changeLicAddr.jsp" redirect="false" />
<forward name="success" path="/viewInvoice.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/RenewLicense" type="com.dleg.cola.actions.RenewLicenseAction" name="renewalForm" scope="request">
<forward name="success" path="/renew.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/Register" input="/WEB-INF/jsps/register.jsp" type="com.dleg.cola.actions.RegisterAction" name="personForm" scope="request">
<forward name="success" path="/login.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/RegisterCom" input="/WEB-INF/jsps/register.jsp" type="com.dleg.cola.actions.RegisterComAction" name="companyForm" scope="request">
<forward name="success" path="/login.jsp" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/addRenewal" input="renew.jsp" type="com.dleg.cola.actions.RenewLicAction" name="renewalForm" scope="request">
<forward name="success" path="/viewInvoice.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/PendAppr" type="com.dleg.cola.actions.PendApprAction">
<forward name="approve" path="/approveTransfer.jsp" redirect="false" />
</action>
<action path="PendAppr" type="com.dleg.cola.actions.PendApprAction">
<forward name="approve" path="/approveTransfer.jsp" redirect="false" />
</action>
<action path="/ApprTransfer" type="com.dleg.cola.actions.ApprTransferAction" name="apprTransferForm">
<forward name="success" path="Licensee.do" redirect="false" />
</action>
<action path="EmpRenew" type="com.dleg.cola.actions.EmpRenewAction" name="empRenewForm">
<forward name="empRenew" path="/subRenewal.jsp" redirect="false" />
</action>
<action path="/SubmitEmpRenew" type="com.dleg.cola.actions.SubmitEmpRenewAction" name="empRenewForm">
<forward name="success" path="/viewInvoice.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/remove" type="com.dleg.cola.actions.ButtonAction" name="invoiceForm" parameter="method">
<forward name="success" path="/viewInvoice.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/addRenew" type="com.dleg.cola.actions.ButtonAction" name="invoiceForm" parameter="method">
<forward name="addCart" path="/viewInvoice.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/backHome" type="com.dleg.cola.actions.HomeAction" name="buttonForm">
<forward name="success" path="/licHome.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="/viewInvoice" type="com.dleg.cola.actions.ViewInvoiceAction" name="buttonForm">
<set-property property="secure" value="true"/>
<forward name="success" path="/viewInvoice.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<action path="viewInvoice" type="com.dleg.cola.actions.ViewInvoiceAction" name="buttonForm">
<set-property property="secure" value="true"/>
<forward name="success" path="/viewInvoice.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
<!--
<action path="/checkOut" input="payNow.jsp" type="com.dleg.cola.actions.CheckOutAction" name="creditCardForm" parameter="method" scope="request">
<forward name="success" path="https://www.govone.com/epay/http/pay.aspx" redirect="true" />
<forward name="confirm" path="/confirmPayment.jsp" redirect="false"/>
<forward name="failure" path="/error.jsp" redirect="false" />
</action>
-->
<action path="/checkOut" type="com.dleg.cola.actions.CheckOutAction" name="creditCardForm" parameter="method" scope="request">
<forward name="success" path="/wait.jsp" redirect="false" />
<forward name="failure" path="/error.jsp" redirect="false" />
<forward name="cancel" path="viewInvoice.do" redirect="false" />
</action>
<action path="/CommitTxn" type="com.dleg.cola.actions.CommitTxnAction" >
<forward name="success" path="/paymentConf.jsp" redirect="false"/>
<forward name="faillooking at the code...dont know where to start ... but usally this error occurs when u r using a property attribute in in html tag which wont actually exist in the action form or with a different spell....
just check the exact naming and spelll of property attribute of HTML tag ,,, -
Cannot find anything on "JniAgComAdaptor.write" failed
Will someone please tell me how to fix this problem? I'm running Fedora Core 4. The system hangs continually after I try to open a program I've written in the object navigator:
ERROR ##########################
ERROR: JniAgComAdaptor.write failed
ERROR ##########################
ERROR ##########################
ERROR: GuiNiWriter: write failed
ERROR ##########################
This happens after I connect to SAP and attempt to access the Object Navigator, or it might happen when I try to write or run a program. I've googled and can find no leads on this error whatsoever.
Any help would be GREATLY appreciated.
thanks-
KevinI don't know why the difference. I just asked what's 10 times 10 and the answer was from Wolfram Alpha. When I asked for information on Wolfram Alpha , I got the I have no information on Wolfram Alpha answer. Maybe the question needs to be phrased different . Try use wolfram alpha to tell me the distance to the sun.
-
Win2kr2 IIS7 customize gw login page cannot find index.html
Successfully installed GW802hp2 on Win2kr2 IIs7 and redirected to /gw/webacc.
I want to customize GW Webacc login page with company logo but cannot find the index.html file
Where is it located? I have copied the logo and splash files already.I have found the answer - at least to meet my needs. I hope this helps someone else.
After enabling HTTP-Redirect to /gw/webacc
the file to edit is: c:\novell\groupwise\tomcat5.5\webapps\gw\WEB-INF\classes\templates\webacc\css\login.htt
under DOCTYPE HTML PUBLIC . . . . at approx. line 144, enter the name of your logo.ico file (replacing /favicon.ico)
the image files need to be place in the following folder:
c:\novell\groupwise\tomcat5.5\webapps\gw\webaccess \201012110348\images\
1) your logo.ico; 2) replace the install_top_n.png with your install_top_n.png file (this is at the top of the GW login screen - you may have iused a splash.gif or splash.png n IIs6). 3) If you want to remove the watermark, or have a different watermark on the GW login screen, replace install_watermark_n.png with your watermark.png file.
NOTE: If you use the same file names and copy them to this directory, you won't have to modify the login.htt file with the name of your custom .png files.
The above will work for IE and Firefox, although there may be some modifications necessary for Firefox. -
Cannot find ActionMappings or ActionFormBeans collection in struts 1.1 app
I am using struts 1.1. After deploying application onto oc4j10.1.2. I run into this exception while running jsp page. I do not have problems if I run embedded oc4j with jdeveloper.
The following is exception:
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506) at jsp.document._jspService(_document.java:53) [SRC:/jsp/document.jsp:10] at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:569) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:305) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534)
The start jsp page source:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Document</title>
</head>
<body>
<html:form action="/fpconcepts" name="fpconceptformbean" type="gov.nih.kmdc.web.form.FpConceptForm">
<P>Enter Source Document ID:
<input name="documentid" type="text" value="902455" maxlength=10 size="15"/>
<input type="SUBMIT" value="Submit Form"/>
</P>
</html:form>
</body>
</html>
I checked over and over on struts-config.xml, web.xml. They are perfectly good. Otherwise I could not run succesfully in embedded oc4j.
Thanks in advance.
MichaelHi Angela ,
Like many others even i am stuck with this error .Were u able to solve the problem ? if yes ,pls explain how ?
my index.jsp has ---------------------------
<html:form action="/Lookup" name="lookupForm" method="post" type="aolapps.LookupForm" >
some html tags .......
</html:form>
<struts-config>
<form-beans>
<form-bean name ="lookupForm"
type ="aolStrutsdir.LookupForm"/>
</form-beans>
strut-config has ---------------------------------------------------------------
<action-mappings>
<action path ="/Lookup"
type ="aolStrutsdir.LookupAction"
name ="lookupForm"
input ="/index.jsp">
<forward name ="success" path ="/Quote.jsp">
<forward name ="failure" path ="/index.jsp">
</action>
</action-mappings>
<!-- this was a trial after getting Cannot find Bean error
<global-forwards>
<forward name="Lookup" path="/Quote.jsp"/>
</global-forwards>
-->
</struts-config>
ANd web.xml has -----------------------------------------------
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
</servlet>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
<load-on-startup>1</load-on-startup>
</init-param>
<!--standard ActionServlet mapping-->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!--standard welcome file list-->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
Any help will be apreciated
bye
N -
A former colleague set up OSB on a server several months ago. Now I am trying to sign in the "file system backup and restore" area, and need the user name and password that was created. This must be a different user name than OSB Admin -- and of course it's not in our documentation for this server.
Is there a query or config file that might hold the user name? If not, what recourse do I have? Destroying OSB and rebuilding? It was a pain to get working in the first place. (OSB Express / Win2003 / internal DAT72 )
Thanks ...Exception: Cannot find bean under name ...
Probable Cause: This is usually seen in association with a problematic Struts HTML SELECT custom tag. The Struts html:select tag behaves differently depending whether one or both of the name and property attributes is specified for its encompassed <html:options> tags. If the name attribute is specified, whether or not if the property attribute is specified, then a bean matching the specified name will be expected in some scope (such as page, request, session, or application). If the matching bean is not found in any available scope, the error above will be seen.
There are two ways to address this. The first approach is to put a bean in one of the scopes so that the html:options might be associated with it. The second approach is to not specify the name attribute and instead use only the property attribute.
Change your Frombean scope from "Request" to "Session", then it works.
Thanks,
Thagelapally -
Cannot find Microsoft Word Installed on your system - RH10 - a solution
I started receiving the error "Cannot find Microsoft Word Installed on your system" whenever I tried to generate printed documentation from RoboHelp 10. This occurred after I installed Open Office 3.4.1.
Clicking the "Printed Documentation" option in the SSL pod generated the error. However, right-clicking on the "Printed Documentation" option, selecting "Properties", then clicking "Save and Generate" did work. Go figure.
I am using Word 2007.
All of these suggested solutions to resolve the problem didn't work, unfortunately.
Uninstalling and reinstalling Open Office with the correct option selected for file associations as suggested here:
http://www.grainge.org/pages/authoring/printing/print_issues.htm#other_issues
Tried reinstalling the MPJ2DOC.DLL as suggested here:
http://helpx.adobe.com/robohelp/kb/error-cannot-find-microsoft-word.html
Tried all the suggestions here:
http://forums.adobe.com/message/4173839
Spent 2 hours with Adobe support (they were helpful but could not fix the problem) uninstalling and reinstalling RoboHelp, including reinstalling and registering the dll again.
Finally I fixed the problem by following the simple solution here. I found that the problem was that the Word file associations were corrupt and you simply need to reregister word.
http://www.word.mvps.org/FAQs/AppErr...gisterWord.htm
Here's the solution in case the link does not work:
How to re-register Word when problems crop up opening files
Article contributed by Cindy Meister
If you find that Word files do not open in the desired version of Word when you double-click them in Windows Explorer, or that when opening them from the Desktop or Explorer, a series of messages appear claiming that the file cannot be opened, such as:
“Cannot open C:\My”
“Cannot open "Documents\The”
“Cannot open "Test.doc"”
.. you need to re-register Word. To fix the problem:
Word 97 and above
Click Start | Run (bottom- left corner of your screen).
In the “Open“ box, type:
winword /rand press Enter. Note that there is a space before the forward slash
Word 95
Locate the file winword.reg on your system
Double-click it to re-register Word
Hope this helps anyone else who has struck this problem.
Cheers MarkI am not surprised that the DLL is crashing your system. If you read the Knowledge Base item for that file it specifically refers to RoboHelp 9. Your first step is to restore the correct DLL for Rh10. I hope you backed it up.
What is your operating system?
Have you tried uninstalling and reinstalling?
Is your Normal.dot file on your local drive or on a network.
Are you generating the printed document to your local drive?
At what point does the generation crash?
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge
Maybe you are looking for
-
Report navigation after creating hyperlink
Hi, I am using Webi rich clinet XI R3.1. I have one main report with six dashboards and associated detailed reports. I created hyperlink for each of the dashboard and linked to detailed report in infoview. If i need to see main report i've to close t
-
How to calculate total stock quantity in cube
Dear Master I want to verify the data between BI report and cube whether correct or not.My report name is stock summary. It's giving report for Total quantity stock (0TOTALSTCK) for paricular date. This KF(0TOTALSTCK) inflow is 0RECTOTSTCK and ou
-
How can I upload my music to the iTunes Store for others to Purchase
I am the co-founder & webmaster for a small non-profit organization *"Dreams Fulfilled Through Music"*. We provide adaptive music education & music therapy services to children & adults w/ special needs. Our mission is to bring the joy making music t
-
ORA-00060: deadlock detected while waiting for resource ON INSERT
I am running into a deadlock while INSERTING records into a table. This seems strange to me. I've tracked it down to the following, and it feels like an Oracle bug to me, so I wanted to get another opinion: I have a procedure that inserts records int
-
Hi, I had a hard drive failure on my old PC and I couldn't retrieve anything. I have purchased a new PC and downloaded itunes (Version I'm not use to which isn't helping) and signed in however it only has my purchased songs on the cloud which I need