Diff. between JSP format & XML based syntax

i like to know the diff. between 2 types of jsp syntax,
JSP - 1 - ordinary
<% code %>
JSP - 2 - XML based syntax
<jsp:expression> code </jsp:expression>
what is best to use for jsp development.,

Haven't u finished fresher course yet?

Similar Messages

  • What is the diff between jsp and servlet

    is thr any other difference betwwen jsp and servlet, tht: jsp is automatic generated servlet and jsp has different types of tag, due this we have write less amount of code.any other technically difference between these two?

    As you mentioned JSP automatically gets converted into a Servlet and then compiled. From the server's perspective other than the transformation process, there is no real difference.
    However, in coding there are some minor differences such as additional access to pre-defined variables and different syntax for some minor things such as imports and etc.
    Perhaps somebody else more knowledgeable can fill you in further.
    Hope that was helpful.

  • IDOC- Diff. File format.xml.......Pls Help....

    Hi,
       My scenario is that from R/3, they are sending ZACKXI IDOC to XI. In XI we have imported an xml named ROWSET in External Definition. Now I have mapped ZACKXI with ROWSET as XI would be able to receive ROWSET format from R/3.
    R/3>(ZACKXI IDOC)>(ROWSET.xml)-->XI.
    I am using normat receiver File adapter and FTP as the protocol in the ID.
    But Surprisingly, XI is receiving xml msg, but not ROWSET, it is receiving ZACKXI IDOC xml.That should not be case. XI has to receive the ROWSET.xml format from ZACKXI IDOC coming from R/3.
    Pls reply what to do..How would I be able to solve my problem....
    BR
    Soumya

    Hi,
    In SXMB_MONI you can see both Payload.
    One is IDOC and other is ROWSET.
    It will execute succesfully if you add your interface mapping name in your interface determination.
    Regards,
    Akshay.
    Mark your question as answered if it is solved.
    Reward points if find useful.
    Message was edited by:
            Akshay Jamgaonkar

  • Diff betwn JSP 1.0, 1.1 and 2.0

    Hi all,
    Could anyone ellaborate on the diff between JSP 1.0, 1.1 and 2.0/2.1?
    Rgds,
    Seetesh

    You will find that the conepts or approach is different. The direction appears to be to NOT put java code in the JSP, but rather use EL (expression language) tags to address common functions. You can read about them in various locations around the Internet if you do a google search for them.
    The JSTL (JSP standard tag library) is a huge step in the right direction to simpliyfing JSP code. It provides a level of abstraction to the things like XML parsing, XSL transformations, getting access to the "core" request and response contexts in a page and database access. If you are not using that tag library, it will save you TONS of time and is well worth investigating.
    You can still use Java code in your pages just as always. It's just the design philosophies have changed a bit. And in some ways, for the better.

  • Difference between JSP and ASP

    Whatz the diff between JSP and ASP

    Hello msdnexpert,
    Active Server Pages (ASP) allows you to build rich, data driven, dynamic complex applications. ASPs are written in Perl, VBScript, C/C++. They run on machines running Microsoft Windows. With ASP, an HTML page on a web server can contain snippets of embedded code. This code is read and executed by the web server before it sends the page to the client (usually a browser such as Netscape Navigator or Microsoft's Internet Explorer.) For more information on ASP see:
    http://www.microsoft.com/workshop/server/default.asp
    or
    http://www.activeserverpages.com
    Java Server Pages (JSP) also allows you to build rich, data driven, dynamic complex applications. JSPs are written in Java. They run on any Java enabled machine, including Solarlis, Windows, Linux, and Mac OS. JSPs also makes available all of Java's industrial strength security for free. JSPs uses a syntax similar to ASP except that the scripting language is Java. Unlike ASP, JSP is an open standard implemented dozen of venders across all platforms. JSPs are closely tied to servlets because a JSP page is transformed into a servlet as part of its execution. For more information on JSP see:
    http://java.sun.com/products/jsp
    A servlet is a generic server extension -- a Java class that can be loaded dynamically to extend the functionality of a server. Servelets are commonly used with web servers, where they can take the place of CGI scripts. A servlet is similar to a proprietary server extension, except that it runs inside a Java Virtual Machine on the server side, so it is safe and portable. Servlets operate solely within the domain of the server: Unlike Applets, they do not require support for Java in the web browser.
    Unlike CGI, which must use multiple process to handle separate programs and/or separate requests, servlets can all be handled by separate threads within the same process or by threads within multiple processes spread across a number of back end servers. This means that servlets are also efficient and scalable. Because servlets run with bi-directional communication to the web server, they can interact very closely with the server to do things that are not possible with CGI. Another advantage of servlets is that they are portable: Both across operating systems and across web servers.
    Resources used in researching this response:
    Java Servlet Programing 2nd Ed by Jason Hunter with William Crawford.
    http://press.oreilly.com/jservlet2.html
    http://oreilly.com/catalog/jservlet2/
    -Merwyn,
    Developer Technical Support,
    http://www.sun.com/developers/support.

  • Dynamic element binding between XML based PDF form and WDA context

    Hi Experts,
    I am working on a XML based interactive form.There is a table node in the XML interface which generated by WDA context, and binding on a subform in the PDF form.
    I tried to add instances to the subform using javascript. Unfortunately, I can not get the internal table in WDA.
    If I initialize the table to 10 lines in WDA , and then add 5 line to it in PDF, when I submit the PDF, I can only get 10 lines in the WDA framework. It seems that the element which is create dynamically can not be past to the interface.
    Could you tell me why? And is there any other better solution? I just want build a table in PDF form in runtime and pass it to WDA context.
    Thanks a lot!
    Best Regards,
    Guo Guo Qing

    Hi Thomas,
    Thank you for your reply.
    I think the performance will be a problem if I create the elment in WDA using submit event. I need to create hundreds of record dynamically. I must find some way to reduce the communication between the WDA and PDF form. Maybe I can set a container with a number of elements before the PDF output. Do you have some better ideas?
    Best Regards,
    Guo Guo Qing

  • MTO(Diff between complex make to order and sales order based mass prod)

    Hi
    We are using MTO...Can anyone tell me what is the Diff between complex make to order and sales order based mass prod in finance perspective?

    Hi,
    In the case of complex make to order scenario, through MRP, the Project shall be assigned to the sales order. Then there will be milestone billling and all. In the case of mass production MTO, it is only creation of production order for each sales order item and each sales order item shall have sales order cost estimate.
    Trust this helps much and do encourage our efforts!
    Cheers!
    Edited by: Ashok Singh on Oct 28, 2008 6:53 PM

  • Char into balise jsp:scriptlet in jsp with xml syntax

    hello,
    i met a trouble with coding jsp with xml syntax,
    i use wsad to develop the jsp, and it's not allowed to put characters < or > into the balise scriptlet
    for example i cant do a loop (as i did easily with html syntax <% %> ) :
    this his the header of my jsp:
    <jsp:directive.page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
    <jsp:text>
    <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
    </jsp:text>
    <jsp:text>
    <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> ]]>
    </jsp:text>
    and the code which dont work:
    <jsp:scriptlet>
    for (int i=0;i<10;i++){
    System.out.println(i);
    </jsp:scriptlet>
    i get a compilation error, did someone could help me to code dynamic content jsp ?
    ps: excuse me for my english.

    I don't use xml, so I may be way off the wall, but did you try using the CDATA sections again?
    <jsp:scriptlet>
    <![CDATA[
    for (int i=0;i<10;i++){
    System.out.println(i);
    ]]>
    </jsp:scriptlet>

  • Diff between object based and ob. oriented

    diff between object based and ob. oriented

    Object-oriented requires at least three factors:
    1. Encapsulation: Combining data and the methods that manipulate the data into a self-contained unit called an "object" in which the data is hidden from the user and only the method interface is visible.
    2. Inheritance: Ability of a class to extend the features of another class by obtaining all the public features of the other class while adding its own specialized features (Example: Great Dane inherits from Dog)
    3. Polymorphism: The ability to perform "late binding" by invoke methods of a subclass on behalf of its superclass. (Polymorphism includes other things and it difficult to explain.
    If a language does not include all three, it is called "object-based." Visual Basic 6 is object-based, because it allows you to define classes that encapsulate, but doesn't support an inheritance hierarchy nor polymorphism.

  • What is the difference between jsp :include and server side include

    what is the difference between jsp :include and server side include(request dispatcher include method)????
    i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
    Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
    do suggest if u hav ny other diff in this context...

    The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
    If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
    Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
    - Saish

  • Using XML-based object structures to represent data in code/at run-time

    Hello,
    I have quite a "high level" question which has be bothering me for some time, and I haven't found the subject tackled in any books. I believe J2SE/J2EE is not an important divide here.
    Lets say I want to develop a J2SE game application with two programs: a "level designer", and a "level viewer", and I want to store the level files in an XML format.
    My question, and I use this example only to try and illustrate it, is:
    when coding the level designer or viewer, is it reasonable to use an XML-based object hierarchy for representing a level in code/at run-time, i.e. using the standard Java DOM APIs? Or should one (as I would have done before XML came along) develop a set of classes much closer to modelling the real form of a level, and then add a means to convert those objects to/from to XML format?
    This second option of course I would use/would have used if I wasn't thinking about XML, but isn't it sometimes easier to just read in an XML file into a DOM representation and just use the data straight out of that structure, rather than go through the bother of parsing the XML into a set of unrelated objects defined by a different family of classes? What shapes your decision here? And if the second option is best, what is the easiest way of converting to/from the XML?
    Thank you for any advice.
    Greg

    Hi Christian,
    Can I ask: what about if your domain was quite 'close' to an object/DOM representation of XML?
    For instance, what if a game operated by acting out a theatrical script, a spoken conversation, between two characters, perhaps somehow influenced at points by the user, and a particular level was just a different script for the characters.
    One could imagine that the object representation of this would in the end be quite similar to how you'd represent XML, i.e. like a tree of nodes, where each node was a line from the script, and some nodes were a decision point where different nodes could be chosen from.
    Would you still want to avoid using XML-based classes to represent the underlying 'game', or is there a point where you would 'give it' to the similarity and use existing XML structures directly?
    Thank you for any advice
    Greg

  • Diff between Seeburger Adapter and File Adapter

    Hi All,
             My company needs to interact with some banks and the banks are particular that they want SFTP, which is not supported by  File Adapter, so we have decided to go with Seeburger adapter.
    Now what are the differences between File adapter and seeburger adapter?
    I believe that Seeburger adapter does not support File Content Conversion, Archiving etc.
    Could you all pls put some light on the diff between file adapter and seeburger adapter when it comes to dealing with files?
    Xier

    Hi
    You are aware with working of File Adapter.
    The most direct way of using the Seeburger adaptors is to configure the BIC as a module. There is a software component from seeburger called bicmapper which will allow you to
    1. Define or import the inbound message metadefinition in various formats ( edifact, xml,...)
    2. Using a mapping create an xml variant as the output metadefinition or edifact in the other direction.
    3. Create a one to one mapping between input en output.
    4. Export the metadata in xsd or sda format for import in XI
    5. Generate an SDA which can be deployed in XI and used as a module.
    Have a look here,
    http://www.seeburger.com/fileadmin/com/pdf/SAP_Exchange_Infrastructure_Integratio_Strategy.pdf
    Some Seeburger related information
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e2aeb02c-0601-0010-d680-c9be61ffa390
    Go through this threads:
    http://www.seeburger.com/fileadmin/com/pdf/SAP_Exchange_Infrastructure_Integratio_Strategy.pdf
    Need Material on Seeburger Adapters.
    Seeburger Adapter
    Installing seeburger adapter
    http://www.seeburger.com/xi-adapters/
    Thanks

  • Diff between interactive report and interactive alv

    Diff between interactive report and interactive alv? Suppose I have been given certain program then how I will diffrentiate that this prog should be done in interactive alv or interactive report.

    hi
    both are used for same purpose
    interactive report means an output list which displays basic details & allow user to interact, so that a new list is populated based on user-selection. With interactive list, the user can actively control data retrieval and display during the session.
    I suggest to use ALV.by using ALV we can display in Grid as well as list format.
    Output format will be good . Sorting,Filtering facilities are provided by itself.We can have column headings also.
    if helpful reward points

  • Fetch-Xml based report (to count User Access in the last 6 months ) for Microsoft Dynamics CRM Online

    Hi,
    I have created a User Access report for CRM on-premise using SQl query in the following format. One row corresponds to one user in organization. Currently, I am using Microsoft Dynamics CRM Online trial version and have two users in my organization.
    I want to the same report for CRM Online environment. Only Fetch-Xml based custom reports are supported by CRM online environment hence this SQL query cannot be used.
    I have already written fetch-xml query to retrieve user access records ("audit" entity records) in "last-x-months" (where x = 1,2,3,4,5,6) as below.
    I am able to retrieve the records with "last-x-months" condition at a time, for example, the last-2-months  in my fetch-xml query only.
    For, example, when I retrieve the records in the last-2-months, it also includes the records in the last month. I want to count the records in the 2nd month only that is the difference between these two. The difference will be my 2nd column.
    Similarly, I want the other columns.  
    For the case in the above example, I have created the two separate datasets to get the record-count for the last month and last-2-months. But, I am not able to use the two datasets in the same table in my report and hence not able to calculate the difference.
    Is there any way to solve this problem?

    Hi,
    I have modified my Fetch-XML query to retrieve all the required User Access records and removed aggregation and counting and grouping from the query as well. Did grouping and counting in SSRS. Now the report works fine as shown in the above picture.

  • Diff between

    diff between text module,std text and text element

    hi
    Default paragraph Paragraph set to * in standard text maintenance
    If no form has been assigned to a text, the system automatically assigns the form SYSTEM, which contains minimal definitions for text formatting. There are two ways of formatting texts using forms: • Use the standard text maintenance to enter and print the text.
    Any kind of text can be included in a form. If no object is specified, then TEXT will be used (standard texts).
    Text Symbols
    Text symbols acquire their values as a result of explicit assignment. To interactively assign text symbols, in the text editor choose Include &#61614; Symbols &#61614; Text. This method is available for all text symbols belonging to a text module as well as those of the associated form. Values defined in this way are lost when the transaction is left. If you want to print the text module again, then you must enter the symbol values again. The purpose of the DEFINE command is to provide a means of making this value assignment a permanent part of the text, so that the values are available again when the text module is called again. This command can also be used to re-assign a new value to a text symbol half-way through the text. Syntax: /: DEFINE &symbol_name& = 'value'
    /: DEFINE &subject& = 'Your letter of 7/3/95' The value assigned can have a maximal length of 60 characters. It may itself contain other symbols. A symbol contained within the value assigned to another symbol is not replaced with its own value at the point at which the DEFINE command is executed. Rather, this replacement is made when the symbol defined in the DEFINE command is called in the text.
    /: DEFINE &symbol1& = 'mail' /: DEFINE &symbol2& = 'SAP&symbol1&' /: DEFINE &symbol1& = 'script' &symbol2& -> SAPscript If, however, the DEFINE command is written using the ':=' character rather than the '=' character, then any symbol contained within the value being assigned is replaced immediately with its current value. The assignment to the target symbol is made only after all symbols in the value string are replaced with their values. The total length of the value string may not exceed 80 characters. The target symbol must be a text symbol, as before.
    /: DEFINE &symbol1& = 'mail' /: DEFINE &symbol2& := 'SAP&symbol1&' /: DEFINE &symbol1& = 'script' &symbol2& -> SAPmail
    Inserting Text Symbols
    Procedure
    Inserting a Text Symbol
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Place the cursor on the desired text symbol.
    3. Choose Choose.
    4. The system inserts the text symbol.
    Editing the Value of a Text Symbol
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Edit value bearbeiten. The dialog window Value definition for symbol <text symbol> appears.
    3. Enter the appropriate value definition.
    4. Choose Continue. In the dialog window Text symbols the specified value appears after the name of the text symbol.
    5. Choose Continue.
    Deleting all Text Symbol Values
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Delete all values. The system deletes all defined values.
    3. Choose Continue.
    Using Formatting Options for Text Symbols
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Options. The dialog window Formatting options for <text symbol> appears.
    3. Fill in the fields.
    4. Choose Continue.
    5. Choose Continue. The system executes the selected formatting option.
    regards
    KK

Maybe you are looking for