What is the logic flow in Struts?

My understanding of the logic flow in Struts is as follows, I would love anybody to correct me.
/index.jsp
<logic:redirect forward="Entry" />The above "Entry" value is located in the struts-config.xml under the "global-forwards" section.
struts-config.xml
<global-forwards>
<forward name="Entry" path="/Login.do" /> ... The path from this "forward" entry is then used to locate an 'action' in the same file. The web.xml specifies that actions are mapped using a "*.do" mask, which I have in my web.xml file. Therefore we look for "/Login" as an action.
<action-mappings>
<action path="/Login" forward="/WEB-INF/login.jsp" /> ...Now we forward to the JSP identified and begin sending this to the client. However, we process it as we send it and we locate some more activities to perform.
/login.jsp
<html:form action="/LoginSubmit" focus="username">
  <html:text property="username" />
  <html:password property="password" />...In the JSP we find an 'html:form' referencing "/LoginSubmit". We look this up in the 'action-mappings' from our struts-config file too.
struts-config.xml
... <action path="/LoginSubmit" type="...LoginSubmitAction" name="loginForm" input="/WEB-INF/login.jsp" validate="true" scope="request" />...We have found the action statement for this JSP form and notice that there is a 'name' applied. This name should match up with a 'form-bean' from our same struts-config file, so we look that up too.
struts-config.xml
<form-beans>
<form-bean name="loginForm" type="...LoginForm" />This final entry identifies a 'form-bean' class that we create for our application. The java class specifies fields for the input items on the form, it can also specify default values and validation to perform.
...LoginForm.java (sorry about including all of this but it does help)
public class LoginForm extends ActionForm {
  private String password;
  private String username; 
  public LoginForm()
    super();
  public String getPassword()
    return this.password;
  public void setPassword(String password)
    this.password = password;
  public String getUsername()
    return this.username;
  public void setUsername(String username)
    this.username = username;
  public void reset(ActionMapping mapping, HttpServletRequest request)
    super.reset(mapping, request);
    setPassword(null);
    setUsername("murray");   
}I run the above and get a form appearing. It initialises "murray" into the username field, and this is displayed, however I get a javascript error trying to process the focus() request. The generated html form does not receive a name, for example:
<form method="post" action="/bookshelf/LoginSubmit.do;jsessionid=6D7525A5B4B4EBCABA71C679B227A510">The fact that the NAME doesn't appear makes me think that something is not linking correctly, or I have missed some important piece of the logic flow. Is there any other important aspect of this logic I have missed.

The error is simple. The HTML source from the page includes these code fragments:
<form method="post" action="/bookshelf/LoginSubmit.do">and
<script type="text/javascript">
  var focusControl = document.forms["loginForm"].elements["username"];
  if (focusControl.type != "hidden" && !focusControl.disabled) {
     focusControl.focus();
</script>The Javacript error reported is:
Error: 'document.forms.loginForm.elements' is null or not an object

Similar Messages

  • What are the logical structure and physical structure in oracle

    what are the logical structure and physical structure in oracle and how can allocate a DB block size as default size is 8192?

    From the Concepts Guide
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/toc.htm
    The physical structures are:
    Datafiles
    Control Files
    Redo Log Files
    Archive Log Files
    Parameter Files
    Alert and Trace Log Files
    Backup Files
    The Logical Structures are:
    Tablespaces
    Oracle Data Blocks
    Extents
    Segments

  • What is the logic for 2LIS_17_I3HDR to pick a order as completed on time?

    Hi, Experts:
    I am working on PM using 2LIS_17_I3HDR to load data. In 2LIS_17_I3HDR, there is a field called "orders completed on-time". I am wondering what is the logic for 2LIS_17_I3HDR to identify if an order was completed on time. I would assume it compares some kind of completion/finish date with a planed/schduled comletion/finish date. Would someone please tell me what fields in what table or in transaction IW39 DOES does 2LIS_17_I3HDR  use for this?
    Many thanks!
    Jenny

    Hi, Ram:
    Thank you for the reply!
    The key figure is ZHLAFIH_TGERL (Number of On-time Closed Orders). I saw some SAP programs refering to its component type "DZHLAFIH_TE" too.
    Thanks,
    Jenny
    Edited by: Jenny Chen on Dec 2, 2009 7:53 PM
    Edited by: Jenny Chen on Dec 2, 2009 7:55 PM

  • What is the logical system name used for in R/3?

    We have a R/3 server. The production client has a logical system name. What is the logical system name used for?
    Tony Tam

    Hi Tony
    Following Links will help you in understanding the concept
    http://benstudycenter.blogspot.com/2008/02/logical-system.html
    http://help.sap.com/saphelp_sm32/helpdata/en/78/217dc151ce11d189570000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_sm32/helpdata/en/78/217dc151ce11d189570000e829fbbd/frameset.htm
    thanks
    Bhudev

  • What are the logical databases belongs to HR module.

    Hi experts,
    Please explain What are the logical databases belongs to HR module.
    Thanks,
    Rashmi

    Hi Rashmi,
    There are three LDBs in HR.
    1. PNPCE or PNP
    2. PCH
    3. PAP
    Good Luck
    Om

  • What is the logical message type for Inbound Credit Memo (MM)

    Hi Folks,
    What is the logical message type for Inbound Credit Memo (MM)
    Plz explain.
    Thanks,
    Matt

    Hi Mat,
      The logical message types are as follows.
      /DSD/HH_CREDITDATA             DSD Credit Exposure and Credit lLmit
      CREADV                         Credit memo display
      CRESTA                         Copy credit status (DebtorCreditAccount)
      SBINV                          Credit memo procedure with invoice creation
      SBWAP                          SD Credit Memo Procedure with Automatic Postin
    You can search for message types in database table EDMSG.
    Regards,
    Vimal.

  • Why not to Join Fatc to fact tables in OBIEE... What is the Logical Reason

    Why not to Join Fatc to fact tables in OBIEE... What is the Logical Reason
    Thanks in advance
    V

    Hi Venkat,
    I am coming from the basics of a star schema here, so hope it helps
    What is a fact?
    A fact is something that has all measures which can be aggregated (Units, Dollars, # of Orders) etc with keys to different dimensions.
    What is a dimension?
    It is the context with which we understand/record/retrieve the measures in the fact. We understand "# of Orders" for a product/By a customer etc.
    So joining a dimension and a fact helps to answer the Who/What/When kind of business questions. Ex : Who bought these products? What was the product type? When these products were sold kind of...
    Now just imagine tying up fact to another fact. With this kind of model, you can never answer any business question.
    I have never tried joining a fact with another fact in OBI (But do not think it will allow it though :) )
    Hope I am clear.
    Thank you,
    Dhar

  • What is the Logical Link ID?

    what is the logical link ID? when we define a new work center or logical link in web UI, we need to maintain logical link ID. can anybody plz explain me how it works?

    Hi ,
    To tell you in short, logical link id tells you about the target ID.  Target ID means where actually you want to go after clickinga particular link ( work centre, Direct links etc)
    Target ID stores the information about the component name and windows.
    There is alot more to it for which you would need to read documentation available at SDN.
    Regards jotsaroop singh

  • What is the logical use of defining Dimension Object Relationships in DBI?

    Hi!
    I am reading the Oracle Daily Business Intelligence Implementation Guide and as I am following the guide on how to extend DBI, I saw a section which discusses how to create dimension object relationships. Until now, I could not fully realize what is the logical use of defining this relationship among dimension objects. I hope someone can enlighten me on this matter...
    Thanks.

    It LIVES ON FOREVER, and starts to take on its own personality, hungrily chasing down other objects in memory and ATTACKING THEM AT WILL. Also it grows over time, in its evil attempt to CONSUME YOUR ENTIRE MACHINE, and comes out and EATS YOU UP TOO! MWAHHHAAAHHHAAAA
    No wait, that was a sci-fi. It just lives until no more references to it exist and thus becomes eligible for garbage collection, and is only a "JAVA" feature not JDBC.

  • What is the logic in the Application Builder

    Hi guys,
    What is the logic in the application builder when creating e.g a Report. When we create a static report we go through these four steps:
    <ul>
    Display Attributes
    Source
    Report Attributes
    Conditional Display </ul>
    Starting from the "Source" step we can Click "Create Report", and create the report .....
    is there a table for each step... or there is a collection for each step. So, when we click Create Button the collections are inserted into tables, then get emptied. ?????
    In my case, i have three real-estate entities: landlords, properties, and marketing. it goes like this:
    enter the landlord details, then click create to move to the next page to enter the property details, then click create to move to the next page to enter the marketing details.
    i hope that my question is clear..
    Best Regards,
    Fateh

    Fateh wrote:
    Hi guys,
    What is the logic in the application builder when creating e.g a Report. When we create a static report we go through these four steps:
    <ul>
    Display Attributes
    Source
    Report Attributes
    Conditional Display </ul>
    Starting from the "Source" step we can Click "Create Report", and create the report .....
    is there a table for each step... or there is a collection for each step. So, when we click Create Button the collections are inserted into tables, then get emptied. ?????
    In my case, i have three real-estate entities: landlords, properties, and marketing. it goes like this:
    enter the landlord details, then click create to move to the next page to enter the property details, then click create to move to the next page to enter the marketing details.That would be called a "wizard" in APEX (as frequently used in the Application Builder as you say). There's a "Wizard wizard" as an option when creating a new page that enables you create and link the basic multiple page structure. Themes have "Wizard Progress List" (vertical orientation) and "Wizard Progress List, Horizontal Train" (horizontal) list templates that can be used as stage progress indicators. You have to construct the contents of each page using standard components. Once the "Wizard wizard" is completed there's nothing to indicate that the pages are logically related&mdash;strangely it doesn't even generate a wizard progress list for you.
    Use Collections to store the data from intermediate stages before final processing if all of the data is captured in one session. If you want persistence across sessions (e.g. allowing users to enter information over several days) use separate drafting/staging tables instead of/in addition to collections to capture the data before final validation and promotion to the main tables.

  • What is the business flow of SD

    hi
    what is the business flow of SD

    Hi
    SD FLOW
    SD Flow Cycle and T Codes:
    INQUIRY ( VA11)
    |
    QUOTATION (VA21)
    |
    PURCHASE ORDER (ME21)
    |
    ORDER CONFIRMATION (VA01)
    |
    PICKING LIST – (VL36)
    |
    PACKING LIST - (VL02, VL01)
    |
    SHIPPING – (VT01)
    |
    INVOICE – (VF21, VF01)
    |
    AR
    Explantion with relavent tables:
    Enquiry - Customer enquires about the Products services that were sold by a company - VA11
    Quotation - Company Gives a Quotation for the products and Services to a Customer
    Sales Order - Customer gives a Purchase order to the company agaionst which a Sales order will be raised to Customer in SAP.
    VBAK: Sales Document(Header Data) (VBELN)
    VBAP: Sales Document(Item Data) (VBELN,POSNR,MATNR,ARKTX,CHARG)
    Enquiry, Quotation, Sales Order are differentiated based on Doc.
    Type(VBTYP field) in VBAK,VBAP Tables( for Enquiry VBTYP = A,
    for Quotation 'B' & for Order it is 'C'.)
    Delivery(Picking, Packing, Post Goods Issue and Shipment)->
    Company sends the material after picking it from Godown and Packing it in a Handling Unit(box) and Issues the goods
    LIKP: Delivery Table (Header Data)(VBELN,LFART,KUNNR,WADAT,INCO1)
    LIPS: Delivery Table (Item Data)(VBELN,POSNR,WERKS,LGORT,MATNR,VGBEL)
    (LIPS-VGBEL = VBAK-VBELN, LIPS-VGPOS = VBAP-POSNR)
    Billing - Also company bills to the customer for those deliveries
    And in FI against this billing Accounting doc is created.
    VBRK: Billing Table(Header Data)(VBELN,FKART,BELNR)
    VBRP: Billing Table(Item Data)(VBELN,POSNR,FKIMG,NETWR,VGBEL,VGPOS)
    (VBRP-AUBEL = VBAK-VBELN, VBRP-VGBEL = LIKP-VBELN)
    Apart from these tables there are lot of other tables which starts with
    ‘V’, but we use the following tables frequently.
    Links for sd:
    http://www.sapgenie.com/abap/tables_sd.htm
    Please check this SD online documents.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAARCSD/CAARCSD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MYSAP/SR_SD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSD/BCBMTWFMSD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOLISPLN/LOLISPLN.pdf
    Also please check this SD links as well.
    http://help.sap.com/saphelp_47x200/helpdata/en/92/df293581dc1f79e10000009b38f889/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/dd/55f33e545a11d1a7020000e829fd11/frameset.htm
    http://www.sap-basis-abap.com/sapsd.htm
    http://www.sap-img.com/sap-sd.htm
    http://www.sapgenie.com/abap/tables_sd.htm
    http://searchsap.techtarget.com/featuredTopic/0,290042,sid21_gci961718,00.html
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/SD_tutorial.html
    All help ebooks are in PDF format here
    http://www.easymarketplace.de/online-pdfs.php
    Regards,
    Priyanka.

  • What is the logic behind suggest due date in a planned order?

    I have observed that suggest due date of a planned order is not based on demand. What is the logic behind derivation of suggest due date?
    Some times pegging date is based on Sales Order request date but not all the times, how to interpret the pegging date of a planned order?
    Please confirm that suggest ship date is based on the suggest due date and In-transit time and lead time.

    HI,
    Planning engine calculates the Sugg Due Date based on some mathematical calculations and some Plan setups.
    It also depends on what option you have chosed in the plan, for Material availability i.e. at the start of the Job or at the start of operation.
    For buy item-it will minus the pre, post and processing lead time from the Material requirement date for making the job based on above setup.
    For make items, it will also consider Manufacturing lead time(based on the routing) and will show the Sugg due date
    Please mark this post as correct or helpful, if it clears your concern.
    Thanks,
    Avinash

  • What is the process flow in MRP - MD61+MD01,MD02+MD04+COR7

    Hi experts,
    I need one clarification for Material requirment planning ( MRP - Process industries )
    My company is newly implemented in SAP so i want some clarification in MRP side.  My company flow is 3 rd level converted of FG.
    1 st level - Raw paint - Samifinished
    2 nd level - Tin condition - Samifinished
    3 rd level - Case condition - FG
    I have raised PIR in MD61 at FG code, after MRP Run planded order created at three level ( 1 st, 2nd, 3rd - level)
    But what is the t.code used is correct recording MRP Run - MD01( Plant level ) OR MD02 ( Single item)
    what is the t.code used for over all requirment Bill of material list ( ROH & VERP)at plant based recording purchase the material.
    Kindly pls explain the flow for PIR > MRP RUN>STOCK RECUIRMENT LIST> PLANNED ORDER TO PROCESS ORDER>
    Thanks,
    Umapathy

    Hi,
    To proceed further you should firm confirm that below master data properly maintained in your system,
    - Create BOM - CS01
    - Create Resource - CRC1
    - Create Master Recipe - C201
    Now your business process starts with the requirements created in the system e.g. by MD61 in your case
    Now you can run the MRP by MDBT/MD01/MD02 for your case. It is suggested to go with MD02 for better understanding on MRP behavior for single FG material.
    Now You can analyze the MRP result for single FG material in MD04 transaction wherein you will get the planned order created through MRP run and also the order report for planning of below level components of BOM
    Then you can further proceed for Production Execution with the help of below transactional steps:-
    - COR1 - Create Process Order Manual
    - COR7 - Convert Plan Order to Process Order
    - COR6N/CORZ/CORR - Order Confirmation
    - CORS - Cancel Confirmation
    - CORT - Display Confirmation
    - CO53 - Control Recipe Monitor (Optional)
    - CO55/CO60 - Maintain PI Sheet (Optional)
    - CO54 - Process Massage Monitor (Optional)
    - MB31 - Goods Receipt For Order
    - COIK / MB1A / MIGO :- Goods Issue
    - KKS1/KKS2 - Calculate Varience
    - CO88 - Actual settlement
    - COOISPI - Order Information System
    You can see the all PR created through MRP in ME5A transaction by selecting the Creation Indicator as B for MRP as shown in below screen,    
    And for rest of analysis you can use COOISPI report.
    Regards,
    Narresh

  • What are the logical database source (SQVI) should i use for quick viewer

    Dear expert,
    Would like to seek for your help, how to use (SQVI) quick viewer/SAP query to generate the listing of   and can I use SQVI -quick viewer and select the data source as logical database source to generate in order to generate the listing of GL account number,GL account descrition , tax category,posting without tax allowed column in the query by company?
    Between, what are the data source should I use for logical database to generate the query with listing of GL account number,GL account descrition , tax category,posting without tax allowed column in the query by company?
    Please help.
    Many Thanks.
    Regards,
    Karen

    Hi,
    Thank you for the prompt reply, what I would like the query to generate is the master data GL listing for GL account,GL description,Tax category, posting without tax allowed column where i use BRF as the data source for logical database to generate the quick viewver but the BRF data source do not have the GL description.
    How I can join table/join query or what are the data source should i use so that i can able to generate the query with GL master data listing by company code by display GL account,GL description,Tax category, posting without tax allowed?
    Between,do you have any reference/link/document on the how to use the SQV1?
    Also, what the difference between SQV1 and SQ01 ?
    And also what are the sap query,inforset query,quick viewer mean for and what are the difference between them also when should i use sap query,inforset query,quick viewer  to generate the query?
    Please help.
    Many thanks.
    KH

  • What is the Data flow in SAP-BPC NW

    Hi All,
    Could any body explain me how the data is flowing in SAP-BPC NW.
    and what are the steps for Planning
    and what are the steps for Consolidation
    Regards,
    Setty

    Hi,
    1) Attributes describe master data like a customer. The country where the customer resides, the industry etc. describe and classify the customer. Attributes are not just the structure/metadata of the characteristics. They are also the content. The following table should visualize what i mean:
    customer-no. | name
    112 | mcpherson inc.
    113 | donalds inc.
    2) I think, you are asking about the laods from infopackage. We dont have types of infopackage. But we have one thing called Infopackage group, You can create the IPG with the selction of all infopackages in RSA1-Modelling Area to automate those loads automatically. That means it will trigger only those IP's which have been pooled up in that IGP...
    Basically there are three types of loads in Infopackage
    Full Upload: This will bring all the records in the BW irrespective of how many times you load.
    Init Delta: In this you have 2 options: a) Init with data transfer and b) Init without data transfer. Init without data transfer will just setup your delta and when you do the delta load it will bring all the records. Init with data transfer is similar to the full upload. This brings all the records for the first time and will also setup the delta process. Once the Init is done; you have to do delta for all the subsequent loads.
    Delta: This will bring only the changed / modified / added / deleted records from the source to BW.
    Hope it helps..
    Regards
    Lavanya

Maybe you are looking for