To put WML Content  in JSP.?

hi all....i m working with one mobile application ..in that i want to put my wml content in jsp ....can i put all wml content and tag in jsp ......if yes then could u give me sample for that one so it will be appriciate me....
regards.....

The only thing you can watch on AppleTV that ISNT in your iTunes library is photos. Everything else must be there.
I'm not sure why you remove things from iTunes after syncing with your iPod, but that shouldn't be necessary...
Your media does not have to "live" on your MBPro hard drive to be in your iTunes library. I highly recommend using an external drive to store everything and just use a "home" and "travel" iTunes library if needed to keep things separate. As it is, I use a single iTunes library and manually sync to my iPhone.

Similar Messages

  • WML Variables with JSP

    Hello,
    I'm trying to build a site that can handle my wml Variables through JSP. Like this:
    <\%@page language="java" \%>
    <\%@page import="java.sql.*,java.text.*,java.util.*"\%>
    <\%@page import="db.*"\%>
    <%
    String statement = "";
    String menueDate = "";
    String description1 = "";
    String description2 = "";
    statement = "select menu_date, description, description02, SYSdate from menu "+
                "where to_char(menu_date, 'dd.mm.yyyy') = to_char(sysdate, 'dd.mm.yyyy')";
    Abfrage menue = new Abfrage("jdbc/kantine",statement);
    ResultSet getMenue = menue.abfrageAusfuehren();
    while (getMenue.next()) {
       menueDate = getMenue.getString(1);
       description1 = getMenue.getString(2);
       description2 = getMenue.getString(3);
    menue.abfrageSchliessen();
    %>
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" "http://www.phone.com/dtd/wml11.dtd" >
    <wml>
      <card id="eins" title="Tagesmenue" >
    <p align="center">
      <img src="images/TMLogo.wbmp" alt="TechnoMealLogo" />
      </p>
    <p align="center">
    Heute: <%=menueDate%>
    </p>
    <table title="Menue" columns="2">
    <tr><td>Hauptgericht: </td><td><%=description1%></td></tr>
    <tr><td>Suppe:</td><td><%=description2%></td></tr>
    </table>
    </card>
    </wml>If I want to run the site, my Browser is canceling translating, at the first '%' . How can I edit the Sourcecode that it works?
    Thanks
    J.M.

    Why the '\' in your page directives?
    <\%@page .... \%>You'll probably also need to change the content type to text/wml and may need to set up an equivalent mime type on your server.

  • How to put Tool Tip in JSP page

    Hello.
    How can i put Tool Tip in JSP page and also html page.

    title="value"
    put this in all the tags whereever it is required

  • How to display Arabic content in JSP ?

    Hi all,
    I used the following encoding method to display arabic content in JSP page.
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
    I also set -Dfile encoding=ISO-8859-6 in the JVM Options.As a result the arabic data is getting displayed .
    Variable "data" contains the actual arabic data.
    function updateArabicData(data){
    try{
    document.getElementById('divtag').innerHTML=""+data;
    }catch(err){
    <html>
    <body>
    <div id="divtag" lang="ar-sa"></div>
    </body>
    </html>
    But the problem is the arabic data getting displayed in JSP (within the <div>)seems to be jumbled up.The users say that the arabic words within a single sentence are not arranged correctly.They are mixed up.Please help me with a solution.
    Edited by: Alance on May 27, 2010 5:34 AM

    Data is retrieved as follows
    if(msg.getField("GEN_UNICODE_MESSAGE_1")!=null){
    resultString=resultString+"N"+""+new String((byte[])msg.getField("GEN_UNICODE_MESSAGE_1").value.get(0),"ISO-8859-6");
    with content Type set as response.setContentType("text/html;charset=ISO-8859-6");
    ISO-8859-6 -since the data contains arabic news.
    Edited by: Alance on May 27, 2010 11:05 PM

  • Put PHP Content into Dynamic Text Field

    How do I put the contents of a php document into a dynamic
    text field in a Flash document? Thanks.
    G

    Do you mean an html document generated from a PHP script?
    Do you mean the source of a PHP script?
    Probably you mean you want to format a page such as a PHP
    script would do.
    That is done either manually inside a Flash movie or
    dynamically via
    Actionscripting. Then you only send data back and forth
    between PHP and
    Flash using either the LoadVars or the XML Actionscript
    classes. You can use
    HTML inside of Flash TextField objects but again that will be
    data sent from
    the PHP server script.
    Here are some basic examples I use in Flash seminars you can
    look at:
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/LoadVars/LoadVarsEx01.php
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/LoadVars/Ex02/LoadVarsEx02.p hp
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/GenerateFlashObjectsFromPHP/ Ex01/GenerateFlashObjectsFromPHPEx01_Doc.php
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLPHP/EX01/XMLPHPEchoEx01_D oc.php
    You also want to look at the docs for LoadVars and XML
    sendAndLoad methods:
    XML
    http://livedocs.macromedia.com/flash/8/main/00002879.html
    LoadVars
    http://livedocs.macromedia.com/flash/8/main/00002336.html
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "gena.wenli" <[email protected]> wrote in
    message
    news:e5g6av$lpv$[email protected]..
    How do I put the contents of a php document into a dynamic
    text field in a
    Flash document? Thanks.
    G

  • I get a message saying some of the itunes files cannot be copied to my ipod b/c i can only have content from 5 itune accounts. what can i do to put the content i bought?

    i get a message saying some of the itunes files cannot be copied to my ipod b/c i can only have content from 5 itune accounts. what can i do to put the content i bought?

    Obviously that's your problem.  As the message states, five is the maximum supported.

  • I got  a new computer, how do i put the content of my ipad into itunes on the new computer

    i got  a new computer, how do i put the content of my ipad into itunes on the new computer?

    You should copy everything from your old computer, or your backup copy of your old computer, to your new one.

  • Syncing puts all content under songs

    I have downloaded songs, tv shows and comic strip live podcasts. When I synced the ipod it put all content under songs. How do I organize content in my ipod so they are under the right heading. In my ipod, currently, the show CSI and other podcasts appear under songs. HELLLLP!!!

    I have a similar question, but I couldn't figure out how to ask it somewhere else. Sorry about that.
    Anyway, there are songs on my iPod that I KNOW are there because they show up under the "songs" category, but when I try to find those songs in the "artists" category based on what artist they're SUPPOSED to be under, they aren't there.
    example: I want to listen to Loverboy by Queen. When I go to Queen all I see is Bohemian Rhapsody. When I look under "songs" though, I see Loverboy as well as the rest of my Queen songs.
    PLEASE HELP!! This is so irritating. I thought iPods were supposed to be convienent....

  • How to put HTML content after the following java code in the JSP

    Hello Guys :),
    In the following jsp I force the user to download a file but I am not able to perform any action after I do this. I want to put some HTML code in this jsp at the end so that user has the option of doing other things after downloading the file.
    Any solution will be highly appreciated :)
    Thanks
    <%@ page import="java.util.*,java.io.*"%>
    <script language="JavaScript" src="common.js"></script>
    <%
    Hashtable hashTable = (Hashtable)session.getAttribute("platformAndSampleInfo");
    Date date = (Date)hashTable.get("date");
    String userName = (String)hashTable.get("userName");
    String dateString = date.toString().substring(0, date.toString().length()-9).replace(' ','_');
    dateString = dateString.replace(':','_');
    String fileExtension = (String)session.getAttribute("fileExtension"); //,getFileExtension(request));
    String outputFile = userName + dateString + fileExtension;
         File f = new File (outputFile);
         response.setContentType("APPLICATION/OCTET-STREAM");
         response.setHeader ("Content-Disposition", "attachment; filename=\""+ f.getName() + "\"");
    InputStream in = new FileInputStream(f);
         ServletOutputStream outs = response.getOutputStream();
              int bit = 256;
              int i = 0;
              try {
                   while ((bit) >= 0) {
                        bit = in.read();
                        outs.write(bit);
              } catch (IOException ioe) {
                   ioe.printStackTrace(System.out);
              outs.flush();
              outs.close();
              in.close();     
    %>
    <!--
    The following piece of HTML code is never reached
    -->
    <html>
    Want to display this
    <html>

    Thats odd.. try using out to print the character
    inst of creating the instance outs.. Maybe your
    overiding something.
    ex)
    char c='s';
    out.print(c);
    //the jsp will create the instance of out for you.

  • How to display a document content in JSP page

    Hi friends,
    I am trying to display a document's content in a JSP page after user authentication.For that I mapped a jsp file with extension .sens in Content Management SDK manager,and put it the file in the directory '/ifs/jsp-bin' of webstarterapp,but it is not working.Down I am giving the code snippet,please help me.I need this to be done fast.
    <HTML>
    <HEAD>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="oracle.j2ee.connector.Login" %>
    <%@ page import="oracle.ifs.adk.filesystem.IfsFileSystem"%>
    <%@ page import="oracle.ifs.adk.http.HttpUtils"%>
    <%@ page import="oracle.ifs.beans.LibrarySession"%>
    <%@ page import="oracle.ifs.beans.DirectoryUser"%>
    <%@ page import="oracle.ifs.beans.PublicObject"%>
    <%@ page import="oracle.ifs.beans.Document"%>
    <%@ page import="java.io.*"%>
    <jsp:useBean id="login" scope="page" class="oracle.j2ee.connector.Login">
    <TITLE>FileExtension.jsp</TITLE>
    </HEAD>
    <BODY BGCOLOR="SILVER">
    <%
    String theDisplay = "initialized";
    String theHidden = "initialized";
    boolean theAdminRights = false;
    try
    login = (Login) request.getSession(true).getValue("IfsHttpLogin");
    LibrarySession ifsSession = login.getSession();
    IfsFileSystem ifsFile = new IfsFileSystem(ifsSession);
    DirectoryUser du = ifsSession.getDirectoryUser();
    String path = HttpUtils.getIfsPathFromJSPRedirect(request) ;
    PublicObject po = ifsFile.findPublicObjectByPath(path);
    if(po instanceof Document)
    Document doc =(Document) po;
    InputStream in= ifsFile.getDocumentContent(doc);
    int i=in.read();
    while(i!=-1)
    out.write(i);
    in.close();
    out.flush();
    out.close();
    theAdminRights = du.isAdminEnabled();
    theDisplay = po.getAttributeByUpperCaseName("DISPLAY").toString();
    theHidden = po.getAttributeByUpperCaseName("HIDDEN").toString();
    catch (Exception e)
    e.printStackTrace();
    %>
    Here is some static content.
    <P>
    The Display Value: <%= theDisplay %>
    <P>
    <%
    if (theAdminRights)
    %>
    The Hidden Value: <%= theHidden %>
    <%
    %>
    </jsp:useBean>
    </BODY>
    </HTML>

    these may help you.
    Google map integration to EBS

  • Put HTML reference on JSP

    Hi everybody,
    I'd like to have a web app based on jsp files which include different HTML files stored on Apache Web Server (on a different machine!!)
    Ex. Header.html, Menu.html and so on...
    I tried with Stuts tags but it seems not working with HTML files!
    Es.
    <template:insert template='/jsp/FixedPortal/template.jsp'>
    <template:put name='Fixed_Portal' content='http://webserver/Portal.htm' />
    </template:insert>
    Do you know how to create JSP with struts or in another way.
    Regards

    I doubt the template taglib supports getting files from other servers. maybe write your own version which uses URLConnection to get the file?

  • Displaying content in JSP page, want BR but not other Html tags

    I have a page and am reading files and displaying the contents of the files onto the page in a <div> Oneissue is that in the file the end of line are \n or \r\n whichever operation system. I replaced those with <BR> no problem. Now my issue is that I display that in the JSP page:
    <c:out value="${filecontents}" escapeXml="false" />I use escapeXml so that <BR> will add the line breaks. Now my issue is that the file might contains other HTML tags that I want to display simply as text - I don't want the browser to render the other HTML tags.
    Is there a way to do that? Would I have to replace HTML tags with something special?

    Hmm... your file contains HTML tags, but you don't want the browser to interpret them as HTML tags, right? So the way to do that is to use escapeXml="true" in your c:out element.
    But then that also escapes the <BR> tags that you carefully put in there. And you don't want that. You want the browser to interpret those as HTML tags.
    I guess you can't have it both ways. Can you do something like outputting one line of the file at a time with <c:out ... escapeXml="true"> followed by <br>?

  • Display request contents in JSP page

    i need to display the contents in a request in my JSP.
    meaning:
    i have a hashmap (containing string and a list) coming from the EJB tier to struts action in an event response object, I'm sure that the request has these values. cuz i tested it in struts action using the following code:
    HashMap result = (HashMap)((EventResponseSupport)request.getAttribute(WebKeys.EVENT_RESPONSE)).getPayload();
    System.out.println("Sponsor name = " + result.get("sponsor"));I am able to print it in the console but i need to know how to display it in the jsp. i tried many things but i can't get it right.
    first i need to display the string and then i need to iterate through the list to display its contents in a table.
    any help would be appreciated.

    Kindly use JSP Scriplet to load the HashMap into the Page Context.
    Then you can use the Struts iterate tags to paint the contents of the HashMap

  • Cannot pass content to JSP in JSPDynpro

    Hi everyone:
    I have an issue. I use nw developer studio wizard to create a JSPDynpro. But it seems JSP cannot get bean's value by useBean tag. Please give me some advice. I will reward the reply. thanks
    The source is below:
    package Exercise2;
    import Exercise2.AddressBean;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class addresslist extends PageProcessorComponent {
      public DynPage getPage(){
        return new addresslistDynPage();
      public static class addresslistDynPage extends JSPDynPage{
        private AddressBean addrBean = null;
        public void doInitialization(){
          IPortalComponentProfile profile = ((IPortalComponentRequest)getRequest()).getComponentContext().getProfile();
          Object o = profile.getValue("addrBean");
          if(o==null || !(o instanceof AddressBean)){
            addrBean = new AddressBean();
            profile.putValue("addrBean",addrBean);
          } else {
              addrBean = (AddressBean) o;
          // fill your bean with data here...
          addrBean.setLocation("Home");
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
          this.setJspName("chooselocation.jsp");
    Bean:
    package Exercise2;
    import java.io.Serializable;
    public class AddressBean implements Serializable {
         public String location;
    @return
         public String getLocation()
              return location;
    @param string
         public void setLocation(String string)
              location = string;
    JSP:
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="addrBean" scope="application" class="Exercise2.AddressBean" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
          <hbj:textView id="Location" text="<%=addrBean.getLocation()%>"/>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    portalapp.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="addresslist">
          <component-config>
            <property name="ClassName" value="Exercise2.addresslist"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/chooselocation.jsp"/>
          </component-config>
          <component-profile>
         <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>

    Hi.
    U need to remove the following line from the portalapps.xml .
    <property name="ComponentType" value="jspnative"/>
    <property name="JSP" value="pagelet/chooselocation.jsp"/>
    I think now u r problem will
    be solved .... as using the above
    line the page on submisson didn't
    move to the controller <b>"addresslist"</b>
    and it was directed to the jsp page.
    And therfore on the romoving the above
    line from the portal apps.xml will
    direct the page on submission
    to the controller.
    If the suggestion is helpful please reward with points.
    Thanks
    ritu
    Message was edited by:
            Ritushree Saha

  • Show file content in jsp

    i want to get an xml file and give the client user.maybe in the jsp i write the XML content to notepad.But i don't know how can i open notepad and write the content to it.
    pls tell me the the right way! thanks a lot a lot!

    Why don't you use Java Script to reference the xml file and open it in a new window from your JSP?
    String browserFilePath = request.getContextPath() + "/some_directory/myfile.xml";
    then in your jsp
    <% if (...???) { %>
    <Script>window.open('<%=browserFilePath%>')</Script>
    {% } %>

Maybe you are looking for

  • What do you enter for a Carriage Return in Find&Replace?

    I'm using TextEdit to find and replace all instances of a string in an exported .txt with Carriage Returns (CRs). Only, I can't figure what to press in the 'Replace with:' field to tell TextEdit that I want the CR to go in there. Obviously, if I just

  • IWeb 08 screws my photos color profile

    Anyone has this problem with the new iWeb 08? I installed the new version, ran it without any problems, did some rearranging of my site, created a new page etc.. And then published the whole site all over again. But now, all my images are tagged with

  • User with authorization to modify an specific field into the G/L Account

    Hi everyone, I´d would like to know if It´s possile GIVE AUTHORITY ONLY to some users will be able to modify the field SKB1 - ALTKT into the G/L Account Master Data through transacction FS02. In this way, only the selected users could introduce or mo

  • Saving a image without a background

    I did the tutorial on Removing Image Backgrounds with Fireworks. That works great, but I don't know how to save a image without a background. I am trying to save it for a website. I have Fireworks 8.0. I tried to save it as a Alpha Transparency GIF f

  • HT4906 how do I download my photos on my iCloud?

    Can anyone tell me how to download my iCloud photos, etc... to my MAC?