Form values are not submitting to ActionForm class

Hi All,
I have a problem with <html:form> tag. When i am submitting the form using the submit button it is going to the Struts-config.xml file and getting the action mapping for the HazSummary.do. It is getting the HazardSummaryAction class and getting the input from HazardSummary Form class. If result is sucees it is going to the next jsp page.
All above things are happening properly. But the form values are not getting in to the HazardSummaryForm.jav.
Here in this case Action class is HazardSummaryAction.java, Action Form class is HazardSummaryForm.java and jsp page is Hazard.jsp.
Here is the code for Hazard.jsp
<html:form action="/HazSummary.do">
<table width="100%" border="0" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
     <tr colspan="4"><td>
     <%String jd="jmd";
     String st="closed";%>
     <input type="text" name="wkploc" value=<%=jd%>>
     <input type="text" name="hastat" value=<%=st%>>
<html:submit property="action">
<bean:message key="haz.save.label"/>
</html:submit>
     </td></tr>
</table>
</html:form></body>
Here is the code for HazardSummaryAction.java
package com.prospecta.WSOProject.action;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class HazSummaryAction extends Action{
     public String hazstatus;
     public String workplace;
     public String prin1;
     public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
          HazardSummaryForm hsf = new HazardSummaryForm();
          HttpSession session = request.getSession(true);
     try{
     hazstatus=hsf.gethastat();
     System.out.println(hazstatus);
     workplace=hsf.getwkploc();
     System.out.println(workplace);
     session.setAttribute("stat",hazstatus);
     session.setAttribute("loc",workplace);
     return mapping.findForward("success");
     catch(NullPointerException nex){
          return mapping.findForward("failure");
          }catch(Exception e)
     e.printStackTrace();
     return mapping.findForward("failure");
Here is the code for HazardSummaryForm.java
package com.prospecta.WSOProject.action;
import org.apache.struts.action.ActionForm;
public class HazardSummaryForm extends ActionForm {
     public String wkploc;
     public String hastat;
     public void setwkploc(String wkploc)
          this.wkploc=wkploc;
     public String getwkploc()
          return this.wkploc;
     public void sethastat(String hastat)
          this.hastat=hastat;
     public String gethastat()
          return this.hastat;
Here is the code for Struts-config.xml file
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
     <form-beans>
<form-bean name="HazSumForm"     type="com.prospecta.WSOProject.action.HazardSummaryForm">
               <form-property name="wkploc" type="java.lang.String"/>
               <form-property name="hastat" type="java.lang.String"/>
     </form-bean>     
     </form-beans>
<action-mappings>
<action path="/HazSummary" input="/HazSumForm" name="HazSumForm" scope="request" validate="false" type="com.prospecta.WSOProject.action.HazSummaryAction">
               <forward name="success" path="/HazardSummary.jsp"/>
               <forward name="failure" path="/Hazard.jsp"/>
          </action>                                         
     </action-mappings>
     <controller processorClass="fr.improve.struts.taglib.layout.workflow.LayoutRequestProcessor" locale="true"/>
     <message-resources parameter="com.prospecta.WSOProject.ApplicationResources"/>
     <plug-in className="org.apache.struts.tiles.TilesPlugin">
          <set-property property="definitions-config" value="/WEB-INF/tileDefinitions.xml"/>
     <set-property property="moduleAware" value="true"/>
     <set-property property="definitions-parser-validate" value="false"/>
     </plug-in>
     <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
     <set-property property="pathnames" value="/WEB-INF/validator/validator-rules.xml,/WEB-INF/validator/validations.xml"/>
     </plug-in>
</struts-config>
i followed the same process for previous pages which they are working. But in this case it was not working properly.
Please resolve this problem ....................

Hi Sreelatha,
When you develop any interactive form please keep in mind the below things which you need to check:
1. The layout type of the form should be ZCI. Select it from the form properties tab in SFP t-code.
2. In web dynpro application (in case you are using for the form), the form type should be selected as native.
3. In the form layout insert web dynpro script using menu->utilities->insert web dynpro script.
4. After that come out of the form and run the report FP_ZCI_UPDATE giving your form name, also select the update check box in the report.
Once these things are done your form should work fine.
Regards,
Vaibhav

Similar Messages

  • BICS_PROV_GET_INITIAL_STATE and form Variables are not submitted

    Hi Team,
    We are geting following error message while running WAD reports on BI QA and Test system portal.
    Our issue is similar to the issue mentioned in SDN thread BICS_PROV_GET_INITIAL_STATE Exception
    - We are facing issue in refreshed systems.
    - Variable Entry Screen is displaying correctly.
    - After entering values once you click on "OK"  we are getting UNCAUGHT_EXCEPTION.
    - Support Desk tool is displaying green.
    - Same report is executing fine in Dev and Prod system.
    - BI Queries are running fine on Portal
    - Only WAD reports are giving exceptions
    - Support desk tool is showing green for everything.
    Error Message:
    Exception in BI runtime
    Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    System error in program BICS_PROV_GET_INITIAL_STATE and form Variables are not submitted (see long text)
    Log ID: 0018FE2D262B00A000000D68000032CA00047CFC82B5D87E
    Initial cause
    Message:
    Termination message sent ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION  MSGV1: SAPMSSY1  MSGV3: UNCAUGHT_EXCEPTION
    Stack trace:
    com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException: Termination message sent ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION  MSGV1: SAPMSSY1  MSGV3: UNCAUGHT_EXCEPTION     at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:130)     at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:123)     at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:123)     at com.sap.ip.bi.base.application.service.RfcService.fillMessages(RfcService.java:221)     at com.sap.ip.bi.base.application.service.RfcService.doPostProcessing(RfcService.java:171)
    Please help me on this
    Thanks,
    Preethish

    Hi,
    Try filtering the queries with the values of variables entries included in the filters.
    Then include them in WAD report. If that works fine then it can be a memory issue.

  • Forms values are not displayed correctly

    This is happening on the client view. I have a custom form and after some Windows updates on user's laptop, the text field values started stopping to display in the form. If I click on View mode then the text values shown and change back to Edit the form
    now text values show up in the text field.
    Another thing is when trying to print the view out, text values are not shown up at all. I tried to upgrade user to IE11 and same issue. Using Firefox then text values are shown in print preview but not in Editing. I don't want users to use different browser
    rather than IE.
    Any thoughts on this would be much appreciated.

    Hi,
    Since the issue happens after some Windows Updates, I would suggest the user log on another machine and see if the issue persists. If the issue only happens on this laptop, you can manually uninstall the update patch you doubt to test
    the issue. Go to Control Panel->Programs and Features->View installed Updates->”right click” and “uninstall”.
    Meanwhile, add the SharePoint sites to a trusted zone in IE settings.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Parameter values are not showing in in the Organization Parameter form

    We have done a setup for an Inventory Organization.
    Everything was working fine.
    Values were showing everywhere.
    We have lot of transactions done in the org also.
    But suddenly yesterday when I was trying to open the Organization Parameter form for that specific organization, the form came up as blank and in the bottom the error is Query caused no records.
    I have checked data is there in the base table mtl_parameters.
    Value is coming for other organizations. Only one specific organization is having this issue.
    Even in Examine, I have taken the last query run on that form and ran the same in back end database, I can see all values are there in the database.
    But in frontend screen the values are not showing. even organization code also not showing.
    Navigation is: Inv Super user --> Setup --> Organization --> Parameter

    Have you checked Organization Access to ensure that no one restricted that org?
    Or shipping grants and roles?
    I think there are quite a few places that you can restrict access.

  • CRM 7.0 WEB IC - context node values are not seen in webIC

    Hi
    can anyone help me in resolving my problem in CRM WEB IC.
    Actually i have added a new context node Using wizard , by right clicking the context nodes. i have four custom fields in that node, these i have to show on the View Account overview and the context node for this is Account where i have to fetch data based on the BP_number i have in Account, i have to  display custom fields from the context node BALANce which i have created .
    I gave all my coding in do_prepare_output method. But the values are not passing to my custom fields as a result the view in WEB IC dissappears saying
    &NBSP;
    Cannot display view IUICOVW/AccInfo of UI Component IUICOVW
    An exception has occurred Exception Class  CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference 
    Method:  ZL_IUICOVW_ACCINFO_IMPL=>DO_PREPARE_OUTPUT 
    Source Text Row:  82
    Edited by: nelachinni on Dec 16, 2010 10:04 PM

    Hi,
    Could you please share what are you trying to access at line 82 in do_prepare_output ? sharing code snippet might help in understanding the issue.
    Cheers,
    Sumit Mittal

  • Updated (VORowImpl ) values are not reflected in inline POPUP table

    Hi Expert,
    Currently i am getting exception when i try to update my iterator binding,
    Here is my use case,
    I have view object displayed inside the inline popup as a table. When i modify one of the cell i am firing the value change listener and it is called the ViewObjectRowImpl class method. Inside the method i do some computation (i am executing some DB query to get back some value). After the query execution i am updating the other columns data based on the changes.
    First i have PPR the table and check out the update values. Unfortunately the change values are not reflected.
    Then i used the following code
    DCIteratorBinding itrBinding = findIteratorBinding("EmployeeVO1Iterator");
    if (itrBinding != null) {
    itrBinding.executeQuery();
    itrBinding.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
    Now i am getting the " JBO-25003: Object EmployeeMgmtAM of type ApplicationModule is not found."
    May i know what went wrong? Am i missing anything. May i know how can i refresh the UI table based on the updated VORowImpl. Looking forward hints.
    Thanks

    Thanks Frank, Actually i am accessing the client method as follows,
    DCIteratorBinding itrBinding = findIteratorBinding("EmployeeVO1Iterator");
    if (itrBinding != null) {
    EmployeeVORowImpl employeeVO = (EmployeeVORowImpl)itrBinding.getCurrentRow();
    empoyeeVO.methodName();
    May i know what is the different between accessing the method as shown above and access via the MethodBinding?
    How about access the attribute of the View object using the above approach? i.e empoyeeVO.getName() like ....
    Also i have configure the ADF looger to finest level and found the primary reason to "Applicaiton module not found" was some entity validation. But this not always happened. Same test case works fine and fails sometimes. I am clueless. Could you please throw some light.
    Thanks
    Edited by: user1022639 on Feb 7, 2012 5:24 PM

  • Custom propertie's values are not updated for workflow metadata

    Hi,
    I've a requirement where I need to add and update some properties. to /etc/workflow/instance/<Instancename>/data/metadata node.
    I've two workflow Process steps,
    Process step 1:
        Adds some properties to metadata.
    Process step 2:
        Updates the propertie's values which are added in Process step 1.
    But the issue is update is not working when the node is /etc/workflow/instance/<Instancename>/data/metadata.
    i.e. In the step 1, Properties are added to metadata node but In the step 2 propertie's values are not updated to the same node.
    Here is my process code:
    =================================================
    import java.util.Locale;
    import java.util.StringTokenizer;
    import javax.jcr.Node;
    import javax.jcr.Session;
    import org.apache.felix.scr.annotations.Component;
    import org.apache.felix.scr.annotations.Properties;
    import org.apache.felix.scr.annotations.Property;
    import org.apache.felix.scr.annotations.Reference;
    import org.apache.felix.scr.annotations.Service;
    import org.osgi.framework.Constants;
    import javax.jcr.Value;
    import com.adobe.granite.workflow.WorkflowException;
    import com.adobe.granite.workflow.WorkflowSession;
    import com.adobe.granite.workflow.exec.WorkItem;
    import com.adobe.granite.workflow.metadata.MetaDataMap;
    import com.adobe.granite.workflow.exec.WorkflowProcess;
    import com.adobe.granite.workflow.model.WorkflowModel;
    import org.apache.sling.api.resource.ResourceResolver;
    import org.apache.sling.api.resource.ResourceResolverFactory;
    import org.apache.sling.jcr.resource.JcrResourceUtil;
    import org.apache.sling.api.resource.PersistableValueMap;
    import org.apache.sling.api.resource.PersistenceException;
    import org.apache.sling.api.resource.Resource;
    @Component
    @Service
    @Properties({
           @Property(name = Constants.SERVICE_DESCRIPTION, value = "Test"),
           @Property(name = Constants.SERVICE_VENDOR, value = "Adobe"),
           @Property(name = "process.label", value = "Test 1")})
    public class Test1 implements WorkflowProcess
        @Reference
        private ResourceResolverFactory resourceResolverFactory;
              public void execute(WorkItem workItem, WorkflowSession wfsession, MetaDataMap metadata)
                                  throws WorkflowException {
                        System.out.println("Testing");
            try{
                ResourceResolver resolver;
                resolver = resourceResolverFactory.getAdministrativeResourceResolver(null);
                String instancePath = workItem.getWorkflow().getId();
                Node instanceNode=null;
                Session jcrSession = wfsession.adaptTo(Session.class);
               String payload = (String) workItem.getWorkflowData().getPayload();
               //instanceNode=JcrResourceUtil.createPath(payload+"/jcr:content", "nt:resource","nt:resource", jcrSession, true);
                                  instanceNode=JcrResourceUtil.createPath(instancePath+"/data/metaData", "nt:resource","nt:resource", jcrSession, true);
                                  System.out.println("Test: instance PAth:"+instanceNode.getPath());
                Resource resource = resolver.getResource(instanceNode.getPath());
                    if(resource != null)
                        PersistableValueMap valueMap= resource.adaptTo(PersistableValueMap.class);
                        valueMap.put("name", "Rajesh");
                        valueMap.put("id", "A002");
                        valueMap.put("designation","SE");
                        valueMap.save();
                        System.out.println("Name:"+valueMap.get("name"));
                        System.out.println("Id:"+valueMap.get("id"));
                jcrSession.save();
                resolver.close();
            }catch(Exception e)
                System.out.println("Exception:"+e.getMessage());
    ===================
    The code works fine when the node is payload/jcr:content.
    Note : Process 1 and Process 2 code is same expect the values I'm passing to the PersistableValueMap.
    Any pointers would be more helpful..
    Thanks
    Siva

    Is there anything wrong in my code/ it's a bug..  
    Thanks
    Siva

  • Values are not populating...

    After selecting the data from LOV the values are not populating in the respective fields.
    i've checked the 'LOV' no problem in that,but im think below coding have a problem.
    declare
         b boolean;
    begin
         :global.job:=null;
         clear_form(no_validate);     
         b:=show_lov('view');
         :GLOBAL.ADDNEW1:=0;
    --     go_block('JOB_CARD_MAIN');
         GO_ITEM('JOB_CARD_MAIN.BRANCH_CODE');
         set_block_property('job_card_main',default_where,'job_no='||chr(39)||:job_card_main.job_no||chr(39));
         execute_query(no_validate);------after this line get execute the values get disappear from the field
         insert into da.mylog(username,tname,mdate,oper) values(user(),'Job Creation',sysdate,'S');
         commit;
    end;
    Pls help..

    Which trigger do you have this code in? I'm guessing it is a Key-ListVal trigger.
    Have you tested the WHE RE clause in SQL*Plus to ensure it returns a record set? Most likely, the query returns no rows which could explain why the block is empty. Also, why are you clearing the entire Form instead of just the JOB_CARD_MAIN data block? Perhaps you should try:
    Go_Block('JOB_CARD_MAIN');
    Clear_Block(NO_VALIDATE);Also, the EXECUTE_QUERY built-in does not have a NO_VALIDATE parameter. It only supports the following parameters:
    ALL_RECORDS
    FOR_UPDATE
    or the combination of the two (ALL_RECORDS,FOR_UPDATE). It also allows you to set the Locking mechinism by passing the parameter NO_WAIT.
    Just a suggestion, try your query in SQL*Plus to make sure it produces a record set and Comment out all the extra stuff in your code and only keep the SHOW_LOV, CLEAR_BLOCK, SET_BLOCK_PROPERTY and EXECUTE_QUERY to see if a row is returned. If yes, then add the rest of your code back one line at a time.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • COGS Values are not flowing to COPA

    HI
    Dear experts
    here i  have prepared copa report , but cogs values are not comming to copa report
    cogs elements have been created by taking cost element category "1"
    Regards
    RAJESH

    Hi,
    Can you check whether COPA document is created for billing document and COGS value field is updated in this document? If this value is not updated then you need to check COGS value field mapping to COGS condition type (generally VPRS).
    If the COGS value is updated in COPA document then you need to check COPA form and report.
    Let me know if you need further details.
    Thanks & Regards,
    ADI

  • GR/IR A/c Amount and Amount in local Curreny values are not matching

    Hello Gurus
    When we are doing MIGO for some Scheduling Agreement PO's the Amount and Amount in local currency columns are mismatching with  paise (+/-), eventhough PO belongs to Local Currency (INR). Because of this GR/IR account is not cleared after MIRO through F.13. Both MIGO and MIRO amount are showing as Open items.
    Why it is happening and what is the way to clear GR/IR A/C. (F.13 with Tolerance limit is also not workout).
    Thanks & Regards
    Venkat.P

    Hi sridhar
    Thanks for reply
    Through MR11 also these values are not cleared.
    Regards
    Venkat.P

  • While Creation Of SaleOrder Char Values are not getting saved.(V C)

    Hi SAP gurus,
    One of my client can able to create a saleorder but when we go and see in VA03 Display mode,we found Charactrestic values getting miised out.What could be the probale reasons.
    Note: I Have stimulate the required combination as per my client requirement in CU50,here i can able to indentify the Green Sign,but While Creation Of SaleOrder Char Values are not getting saved.
    Awaiting for your valuable reply.
    Cheers,
    Kumar.S

    Kumar ,
    If you assign values in classification view or configuration profile  they will become default for the product, and it willnot be changed in sales order.
    another thing if the item category is incorrect you will not get the configuration pop up at all .
    problem what i understand from your thred is at the time of sales ordeer creation there is some inconsistances in the configuration , may be some condition is not fullfilling.
    If in CU50 the result shown are error free, same configuration should owrk properly in sales configuration process, please again try to create it in sales order with same value assignment also check all the messages.
    see the result of configuration before saving the sales order , i hoep it will work for you.
    I am assuming all the things from SD are properly configured ie item catageory, varient pricing etc.
    Check and revert back.
    Regards
    Ritesh

  • Values are not getting updated in sales report

    I have configured sales information system, and i have been trying to run sales report but values are not getting updated in sales report, System will through message that no data exists.
    regards,
    thooyavan

    Hi,
    Please check with the Customer and Material Statistics group in the Customer and material master respectively.
    Further check with the LIS settings (Sales Area combination with the Update group).
    Reward points if this helps you.
    Regards,
    Harsh

  • Values are not getting updated in 'stocks App' in my i4 phone.  What is the solution?

    values are not getting updated in 'stocks App' in my i4 phone.  What is the solution?

    you have encountered activation lock.  Read iCloud: Activation Lock

  • Excise values are not flowing  in MIGO

    Dear All,
    I am facing a problem during MIGO.
    THERE IS STOCK TRANSFER BETWEEN 2 PLANTS AND 2 PLANTS ARE UNDER DIFFERENT COMPANY CODES.
    1 I have created a PO.
    2.Delivery through VL10D
    3.Picking-vl02n
    4.Created Bill-VF01
    5.Created Invoice and saved it
    When I am doing MIGO the excise values are not following.in migo SCREEN.I I want to know do i need to post EXCISE INVOICE and how to do the same.
    Pl let me know anything is missed out so that excise invoice is not flowing in MIGO screen.
    Regards
    Manash

    Hi,
    Have you miantained Tax code in STO ? if yes, then have you mainatained Settoff as 100% for that Tax Code in FV11 for which combination you are using
    SETOFF Must Be Maintained:-
    JMX1 --     IN: A/P BED setoff
    JEX1 ---      Ecess Setoff Sta
    HX1     IN: A/P SECess SOTot       
    If it is there please follow the Following steps for STO
    1.     Create Purchase Order(STO)  using ME21N
    2.     Create Outbound Delivery using VL10B
    3.     Create Billing Document using VF01
    4.     Create Excise Invoice using J1IIN
    5.                   GR with respect to Inbound delivery and in Excise Invoice give number of VF01.
    Hope Help U !
    Regards,
    Pardeep Malik

  • Screen values are not retained in Tcode BP, onclick of SAVE button

    Hi,
    In Tcode BP, I am selecting a Role with the Business Partner number. COMPANY CODE Push button on the Top is Enabled and Click on that.
    Enter the Company Code and provide the Account management tab by providing Reconciliation Acct 120113, Sort key as 035, Planning Group as E1. Go to Payment Transaction Tab, Enter the Payment terms as Z003, check Record payment history. Now, Click on SAVE Button on the TOP.
    The issue is that, The screen values are not retained in the Payment terms tab and Customer is not Created after saving of a BP Number which is related to a Customer.
    Regards,
    Deepthi.

    OSS Note 1254214 is applied and it is solved.

Maybe you are looking for