Display jsp content into wml format for Mobile?

hi..Currently i have many jsp's in my application and now i want to display the same content into mobile. the problem is that it looses the formatting... what are the ways to display these jsp's into my mobile web brower. any help in the same will be really appreciated. thanx.

JoachimSauer wrote:
You either need a browser that supports HTML on your mobile or produce WML instead of HTML in your JSPs.Or use XSLT to generate WML from the HTML that the JSP generates. As usual, nothing an additional layer won't solve!

Similar Messages

  • "Formatted for mobile viewing by Google"

    When you use Google's mobile search engine with the built-in Nokia browser and choose one of the resulting links, does the site ever appear "formatted" by Google?  This has happened now for several weeks and is driving me crazy!  Why?  Because their "formatted" page looks awful, and because I resent their paternal attempts to protect me from the web!  I see "page 1" and "zoom" links at the top, and the text "Formatted for mobile viewing by Google" and a "View page directly" link at the bottom.  So to to view the site as I expect, I must now load every page twice!
    My phone is an E73 and I'm in the USA, but I expect this new "feature" affects a wide range of Nokia phones.  Except that I appear to be the first person here complaining.   Perhaps this "feature" isn't yet available worldwide?
    Sooo, does this problem affect anybody else??  Thanks!
    Solved!
    Go to Solution.

    A happy update.   I tried contacting several tech news web sites, to see if their journalists would take up my cause and use their contacts at Google to learn what is going on.  (Mere users certainly can't reach Google anymore!)  I met a nice fellow from CNet, but even he didn't seem to take my situation very seriously.
    So I changed tactics and started taunting Google.   At the bottom of every reformatted page is a "Report a problem" link, which leads to a list of common problems and solutions.  The last problem is "Other", which leads to a web form.  2 or 3 times a day, I was submitting things like
    "I am a user and would like to PERMANENTLY disable reformatted web pages for my Nokia E73 phone, without using logins or cookies.  This is a 2-year-old phone and I have gotten by very well so far without your meddling."
    "I am a user and take great exception to your attempt to reformat web sites.  I get the impression your programmers have run out of things to do and are now making changes for the sake of change, and not based on user feedback.  I do not need protection from the big, bad www!  Nokia E73 user."
    and lastly
    "The new, improved Google mobile search proved as welcome as Lupus.  A Nokia E73 user."
    (If anybody relied on DejaNews in the late 1990's, their usenet search database was a godsend at first, but the web interface was gradually retooled to the point of being unusable.  And then an upstart company named Google rescued us by buying the database and again giving it a usable front end.  IMHO, Google's search interfaces are now reaching DejaNews complexity and are in need of being rescued themselves.  An article on suck.com about the fall of DejaNews inspired the above comment.)
    Fast forward about a week and now no search results are reformatted.  Even the Preferences link on the main search page doesn't include the option "Format web pages for your phone".  Yes, it's possible Google still wasn't listening, and this was just the result of them further refining their filters.  Or maybe they turned the whole thing off for now?  But for anybody with this problem also needing a resolution, I still highly recommend clicking "Report a problem" and "Other" and telling them what you really think!

  • How to convert table content into html format?

    Hi,
    Experts,
    How to convert internal data into HTML format is there any function module or piece of code to download content into HTML.
    Thank u,
    Shabeer Ahmed.

    Then use this code....
    REPORT  ytest_table_html1.
    *        D A T A   D E C L A R A T I O N
    *-HTML Table
    DATA:
      t_html TYPE STANDARD TABLE OF w3html WITH HEADER LINE,
                                           " Html Table
    *- Declare Internal table and Fieldcatalog
      it_flight TYPE STANDARD TABLE OF sflight WITH HEADER LINE,
                                           " Flights Details
      it_fcat TYPE lvc_t_fcat WITH HEADER LINE.
                                           " Fieldcatalog
    *-Variables
    DATA:
      v_lines TYPE i,
      v_field(40).
    *-Fieldsymbols
    FIELD-SYMBOLS: <fs> TYPE ANY.
    *        S T A R T - O F - S E L E C T I O N
    START-OF-SELECTION.
      SELECT *
        FROM sflight
        INTO TABLE it_flight
        UP TO 20 ROWS.
    *        E N D - O F - S E L E C T I O N
    END-OF-SELECTION.
    *-Fill the Column headings and Properties
    * Field catalog is used to populate the Headings and Values of
    * The table cells dynamically
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'SFLIGHT'
        CHANGING
          ct_fieldcat            = it_fcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2.
      DELETE it_fcat WHERE fieldname = 'MANDT'.
      t_html-line = '<html>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<thead>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<tr>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<td><h1>Flights Details</h1></td>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '</tr>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '</thead>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<table border = "1">'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<tr>'.
      APPEND t_html.
      CLEAR t_html.
    *-Populate HTML columns from Filedcatalog
      LOOP AT it_fcat.
        CONCATENATE '<th bgcolor = "green" fgcolor = "black">'
            it_fcat-scrtext_l
            '</th>' INTO t_html-line.
        APPEND t_html.
        CLEAR t_html.
      ENDLOOP.
      t_html-line = '</tr>'.
      APPEND t_html.
      CLEAR t_html.
      DESCRIBE TABLE it_fcat LINES v_lines.
    *-Populate HTML table from Internal table data
      LOOP AT it_flight.
        t_html-line = '<tr>'.
        APPEND t_html.
        CLEAR t_html.
    *-Populate entire row of HTML table Dynamically
    *-With the Help of Fieldcatalog.
        DO v_lines TIMES.
          READ TABLE it_fcat INDEX sy-index.
          CONCATENATE 'IT_FLIGHT-' it_fcat-fieldname INTO v_field.
          ASSIGN (v_field) TO <fs>.
          t_html-line = '<td>'.
          APPEND t_html.
          CLEAR t_html.
          t_html-line = <fs>.
          APPEND t_html.
          CLEAR t_html.
          t_html-line = '</td>'.
          APPEND t_html.
          CLEAR t_html.
          CLEAR v_field.
          UNASSIGN <fs>.
        ENDDO.
        t_html-line = '</tr>'.
        APPEND t_html.
        CLEAR t_html.
      ENDLOOP.
      t_html-line = '</table>'.
      APPEND t_html.
      CLEAR t_html.
    *-Download  the HTML into frontend
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'C:\Flights.htm'
        TABLES
          data_tab                = t_html
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *-Display the HTML file
      CALL METHOD cl_gui_frontend_services=>execute
        EXPORTING
          document               = 'C:\Flights.htm'
          operation              = 'OPEN'
        EXCEPTIONS
          cntl_error             = 1
          error_no_gui           = 2
          bad_parameter          = 3
          file_not_found         = 4
          path_not_found         = 5
          file_extension_unknown = 6
          error_execute_failed   = 7
          synchronous_failed     = 8
          not_supported_by_gui   = 9
          OTHERS                 = 10.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    none of the above function modules r obsolete...

  • [Perm] TABLES: import contents into existing format

    I'm creating about 20 tables that have the same complex formatting: row stroke widths, color of strokes, fills, etc. Would like to import the data (from Word tables originally created in excel) . Is there a way to import data without recreating each an every table I import into InDesign?
    I suggested a "table style" to Adobe several months ago; that would be the ideal solution. What can I use now?

    Cherie,
    I have posted a script (it's actually in message 26 of the long topic on pasting unformatted text) that will import the clipboard contents into part of an existing table in such a way that the new contents retains the old formatting.
    You can find the script here:
    Populate Table From Clipboard along with a description of how to use it.
    Basically, you:
    1. Open your Excel worksheet
    2. Copy and paste the range of cells you want to update to the clipboard
    3. Switch to your InDesign document and click in the top left cell where you want the updated data to start.
    4. Run the script.
    The new data replaces the old using the formatting of the old (provided that you have used only paragraph styles to do that formatting: any use of character styles within the cells will be lost).
    Hope this helps.
    Dave

  • My ole' Premiere program...trying to convert created video into supported format for youtube...

    I have the Adobe Premiere 3.0 program...i know, i know...pretty ancient. But hey, it works for the time being...lo. My problem is, i keep creating videos from this program, and am unable to convert it into the format supported by Youtube...HEEELLLPPP!!! The format i am saving it in is, [.prel]. the formats acceptable are; MPE4 format [Divx, Xvid, or SQV3 instead of h. 264] at 640x480 resolution with MP3audio [64k momo]
    After reading those stereo instructions, my question is....hoe do I convert an already designed video to fit these specs?
    Thanks in advance for your assistance, and I love you all.

    Thanks Hunt, hun.
    Been trying to figure this out for some time now. I am not that knowledgeable in the formats for videos being uploaded to different sites, but i am pretty good at creating videos. I am saving them in the format [.prel], and have no iea as to how to convert the format from - .prel, to {any other format}. I am looking on the program, and see no spot for conversion. i also have a program called prism video converter, which was unable to convert the format as wel, due to the fact that they dont support beginning formats of -.prel, as well. So i am within a rock a very very hard place right now. Is there a different program which i could install, which would allow me to convert the premiere videos i have created into another format? i recently downloaded the trial version of premiere pro. I hope this program allows me to take the saved project, and convert it into a usable format. Thanks again for all your assistance hun. Really appreesh it.

  • Download table content into CSV format in background

    Hi,
    I would like to download some 50 tables data content locally into csv file format. As the number of tables are quite more, I am planning to run this in background. GUI_DOWNLOAD doesnt help me here. Can you plz suggest how can I go ahead to download files then.
    I am using the FM 'SAP_CONVERT_TO_CSV_FORMAT' for converting the internal table to csv format. Suggest me if there is any other way.
    Your suggestions would be very valuable.
    Thank you in advance.

    go through this  link...
    Re: how to create a CSV file

  • How to export a JSP page into other formats

    Hi All!
    Actually, I am generating some dynamic reports using the JSP technology. However, i also want them to be exported into other storable formats like .Doc, .xls or .pdf.
    Is there any way of doing it? plz help. its urgent. Someone told me this could be done using JSF technology. Hence I am posting this thread here.
    Plz Help!
    Thanks & Regards,
    Rajat Aggarwal

    For outputting h:datatables (but not whole page) to excel, you can check out jsfexcelcreator
    http://www.jroller.com/page/mert?entry=jsfexcelcreator_sample_webapp_is_out

  • Migration of JSP forms into adobe forms for PCRs

    Hi All,
    I am working on Upgrade project for ESS/MSS. Our client had JSP based PCRs which we need to migrate into adobe based PCRs.
    i have few questions regarding this migration.
    Has someone the experience to migrate a  JSP based PCR into Adobe based PCR?
    How much effort the migration will take, and can we fully reuse ISR configuration and workflow?
    Thanks,
    Ankur

    If you are using the SAP delivered JSP forms - there maybe equivalent SAP delivered Adobe based PCRs in the next ESS/MSS releases that you can use instead of migrating the forms
    I am not aware of any tools or documentation that help to migrate custom JSPs to custom Adobe forms
    As I see it you would have to create new Adobe based versions  of your JSP PCRs  - I am vaguely aware of a guide entitled
    "Developing Your Own Personnel Change Requests" for ERP2004 - however I am not sure how you would obtain a copy
    or whether this approach is recommended, supported or complete - this documentation would detail how to create an ISR based Adobe form
    At the same time there may be restrictions as to what standard JSP forms are available as standard Adobe forms and what can be configured in the ISR scenarios (for example use of Value Help in WD JAVA Adobe scenarios)
    - SAP have been recommending instead of creating say a ISR based Adobe form for WD JAVA to
    use HCM processes and forms (also available in the MSS role) going forward
    - HCM processes and forms is WD ABAP based framework using Adobe which allows users to create custom Adobe forms which update back-end infotypes directly from the Portal - also such scenarios as Value Help etc may be possible (or more easily achieved)
    Best wishes
    Stuart

  • How can I put Lightroom 4 video into a format for viewing on DVDs?

    I have made as slideshow in Lightroom 4. It translates well into MP4. This MP4 file runs on some computers and all BluRay players I've tested.
    I want this slideshow to play on all DVD playeres. How can I take the MP4 file... and make it into an AVI or other file format? Is there a better file format than AVI?
    How should I proceed? Thanks.

    I don't do a lot of video. But when I do I use Adobe Premiere Elements. Since I don't do a lot of video, I don't have the most current version. But it is a pretty good program. You can use AVI or mp4 and I think some other file formats. You can trim your video and add special effects and transitions as needed. There are other video editing programs as well. I started with a program called Pinnacle Studio. I prefer PE, however. I'm sure there are numerous other video editing software programs available. Just do a Google search.

  • Best exporting format for mobile me publishing

    Hi all,
    Every time I publish a movie to my mobileme site I get notes from folks with PC's complaining they cannot watch my movies without downloading QT. Does anyone have an export choice that might solve this dilemma, and will there eventually be an export format that will work with both platforms?
    Thanks

    +"Does anyone have an export choice that might solve this dilemma, and will there eventually be an export format that will work with both platforms?"+
    Not if you want to post to MobileMe. You would have to post to YouTube, Vimeo or some other video hosting site.

  • Convert jsp page into xml  or dom for search

    Hello everyone,
    I have to build an application that searches for message beans in all jsp page. I did it the traditional way, using scanner and string methods. Its working but its not perfect. So i want to convert all my jsp page into xml format and then process them. My jsp pages are quite complicated. I used some jars that convert them into jspx . But its not working. Please help
    Thanks in advance

    Well its like this.I need to develop a program that reads all the message bean keys.. We have lots of struts webapps. All messages in the jsp pages have been externalised and internationalised. Now i have to build a program that given a webapp path prints out all the message bean keys used in the webapp. I have developed the program using the Plexus Directory scanner to filter all the jsp pages and java util Scanner to read line by line and used String functions to search for keys.
    Now thats not the best soultion. The best way, imo, is to cinvert the jsp into xml pages and then we can parse the xml pages easily. The' problem is to find a way to convert the jsp pages(jstl +javascript) into xml.
    Can you help me out?
    Thanks

  • How to convert LRAW data into the Format of JPEG TIF

    Hi All,
    I am getting data in LRAW from the table DRAO i want to change it into Binary for display,
    I want to display the content into JPEG TIF
    I am getting error when display that format is not suitable.
    Thanks,

    Hello Shilpi,
    you can use SCMS_XSTRING_TO_BINARY to convert the RAW data to Binary.
    BR, Saravanan

  • Inserting XML content into Database

    Hallo
    i´m new to Oracle.
    i want to insert xml content into the database. for testing i installed the version 10g on a windowsxp computer.
    i read the oracle xmldb developer´s guide. on page 3-4 ff. it is explained how i can insert content into the database. that´s how i did it (with isqlplus):
    create table example1(key_column varchar2(10) primary key, xml_column xmltype)
    -->works fine
    create table example2 of xmltype
    -->works fine
    now i made a directory under c:\myXmlFilesForDb in WinXp
    create directory xmldir as 'c:/myXmlFilesForDb in WinXp'
    (also tried: create directory xmldir as 'c:\myXmlFilesForDb in WinXp')
    --> in this directory is a file named: mydokument.xml
    --> works fine
    insert into example2 values(xmltype(bfilename('xmldir','mydokument.xml'), nls_charset_id('AL32UTF8')))
    the following error message is displayed (in German):
    ORA-22285: Verzeichnis oder Datei für FILEOPEN-Vorgang nicht vorhanden
    ORA-06512: in "SYS.DBMS_LOB",Zeile 523
    ORA-06512: in "SYS:XMLTYPE",Zeile 287
    ORA-06512: in Zeile 1
    whats wrong? can anybody help me please?
    ohhh....
    thank you very much
    cu
    George

    Directory entries are case sensitive.
    Select * From dba_directories to ensure you case is the same as you are using in your insert statement.
    Are you using the same user? if not grant read on directory directoryname to username;
    try to just select.
    select dbms_lob.getLength(BFileName('directoryname','filename.xml'))
    as length
    from dual;

  • How to put jsp content in to string butter?

    Hello Friends,
    I'm new to J2EE. please tell me how can I put jsp content into string buffer. following is a part of code I wrote. I'm also reading data from database on some part of code.
    <html>
         <head>
              <title>JSP for AdminForm form</title>
         </head>
         <body style="font-family:verdana;font-size:10pt;"><=<br>
         <%@ include file="header.html" %>
              <html:form action="/admin">
                   <table border="1" width="700" height="500">
                   <tr>
                   <td border="1" width="100" height="5"> Check <br></td>
                   <td border="1" width="100" height="5"> SNo. <br></td>
    </tr>
    <tr>
                   <td border="1" width="150" height="5"> userId <br></td>
                   <td border="1" width="150" height="5"> Role <br></td>
                   <td border="1" width="150" height="5"> Dept. <br></td>
                   <td border="1" width="150" height="5"> Edit <br></td>
                   </tr>
    </table>
    </body>
    </html>
    please help me out.
    Thanks.

    You have to generate a replacement for the default ServletOuputStream so that every time the data is sent to the browser (via the output stream) it is also sent to a tool that can generate a String or StringBuffer (a StringWriter does this nicely). One way to do this is to generate a ServletOutputStream implementation that wraps a ServletOutputStream and StringWriter. You would implement each method in ServletOutputStream and pass the parameters to both wrapped streams, i.e.:
    public class ServletOutputStreamAndStringWriter extends ServletOutputStream {
      private ServletOutputStream sos;
      private StringWriter sw;
      pubic ServletOutputStreamAndStringWriter (ServletOutputStream sos, StringWriter sw) {
        this.sos = sos;
        this.sw = sw;
      public void print(String s) {
        sos.print(s);
        sw.write(s);
      public void println(String s) {
        sos.println(s);
        sw.swrite(s+System.getProperty("line.separator"));
      //etc... for all methods including flushes and closes...
    }Next you have to insert the ServletOutputStream implementation above into the application in a manner that doesn't require a re-write of the rest of your code. The best way to do this is to generate a ServletResponseWrapper implementation that returns your new implementation of the ServletOutputStream in the getOutputStream() method:
    public class SplitOutputServletResponse extends ServletResponseWrapper {
      private ServletOutputStreamAndStringWriter sosasw;
      public SplitOutputServletResponse(ServletResponse sr, ServletOutputStreamAndStringWriter sosasw) {
        super(sr);
        this.sosasw = sosasw;
      public ServletOutputStream getOutputStream() { return sosasw; }
    }Now all you have to do is replace the response you use in your application with this wrapper. The best way to do it is through a Filter:
    public class SplitOutputFilter implements javax.servlet.Filter {
      private FilterConfig fc;
      public void init(FilterConfig fc) { this.fc = fc; }
      public void destroy() { }
      /* This is where the filtering work gets done.  You get a request and a response, you pass the request,
          replace the response, and let the rest of the filter chain do its work (the JSP page gets generated and the
          response to the client is generated).  Then after the rest of the filter chain you get the text out of the
          StringWriter you generated for the ServletOutputStream
      public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) {
        // After the JSP does its work, the StringBuffer will be generated from this StringWriter
        StringWriter stringBufferFromHere = new StringWriter();
        // This is the tool used to deliver the JSP output to the above StringWriter
        ServletOutputStreamAndStringWriter output = new ServletOutputStreamAndStringWriter (response.getOutputStream(), stringBufferFromHere);
        // And this is the tool used to deliver the above output stream to the JSP pages
        SplitOutputServletResponse sosr = new SplitOutputServletResponse(response, output);
        // Now we replace the incoming ServletResponse with the wrapper generate above for the rest of the FilterChain
        // which includes the actual execution of the JSP
        chain.doFilter(request, sosr);
        // By the time we get to this point, the JSP has already generated the page.  We need to extract the text as
        // a StringBuffer, which we should have access to via the StringWriter
        StringBuffer jspOutput = stringBufferFromHere.getBuffer();
        // Then do whatever you need to do with the buffer...  Note that the FilterContext provides a reference to the
        // ServletContext which could help you store the buffer, put it in DB, or whatever you wanted to do with it...
    }Filters start at the beginning of a request cycle, can be mapped to particular URLs or groups of URLs. To see how to use them see: http://java.sun.com/products/servlet/Filters.html which also has some similar examples.

  • Query on Legacy Upload Format for EMIGALL

    HI ,
    I need to upload around 500000 records for a particular data object(ex. PARTNER) in EMIGALL .
    For that i need to prepare a file in the legacy system to upload into the SAP using EMIGALL.
    Question
    1. What should be the format of file that is to be prepared .
    FORMAT1:
    LEGACY NUM     BU_TYPE   NAME_ORG1     NAME_LAST  NAME_FIRST  TEL_NUMBER
    15070005 ..............2.................  COUNTY .......... test1..........  abc........    123456     
    This is the format of file i have received from the customer . Does it need to be converted into another format for uploading .
    If yes ...is there a way by which i can convert this file into desired format to upload or i have to manually convert each record to the desired format.please help
    Thanks in advance.I shall appreciate any quick help in this regard.
    Regards
    Gaurav

    Hi Gaurav
    Within transaction EMIGALL go to menu item "IS-U migration: User Handbook".
    The User Handbook describes the file layout under
      General information
        Sequential Import Files
    After setting-up a migration object a sample file layout can be found via menu item "Utilities: Structure display: Display customer structure" and within the next screen pressing button "Import File Layout".
    Yep
    Jürgen

Maybe you are looking for

  • Bpelc issues with WSDL schema definition

    Hi, I have been attempting to deploy a relative simple BPEL example, developed using the BPEL Designer Eclipse plugin and deployed on BPEL Process Manager. The BPEL consists of receiving a SOAP message, copying variables using assign from the input m

  • File icons not displaying in dock folders

    I'm having trouble seeing File icons in the folders added to the dock in Lion. For example I am used to seeing a file icon that isa preview of the file e.g. for a pdf the icon would show the content of that pdf. For many files (but not all) I just se

  • Memory timmings

    I just upgraded my CPU to the AMD Phenom 9850. CPUZ shows my memory running at 400mhz. I manually set the timmimgs to 2.1v, 5-5-5-15-26, 2t command rate, fsb 1:2. Orthos tests ran great. I then went back to the bios and set the fsb to 1:2.66 and made

  • Pages and address book

    I am going to use the expense report template and modify it to be a point of sale invoice. What I want to do is to create a new address book contact for each customer and then be able to drag and drop in the address card into pages to fill out the sa

  • Need some real serious help with continuing disk problem

    The story started when my internal hard drive, in my 15" lap top, gave up the ghost, and I bought a new replacement: Seagate Momentus 5400.2 ST9120821A - hard drive - 120 GB - ATA-100 Manufacturer: Seagate Technology Inc. Specs: 120 GB, 12.5 ms, 5400