Fonts and JSP

I need to add a different font on a JSP page. The font is installed but not sure how to access it... Can I use awt? Not sure how to proceed. Any help would be appreciated.
Thanks.

Your JSP is just producing HTML, isn't it? Do you need help in using fonts in HTML? (AWT has nothing to do with it.)

Similar Messages

  • Is it possible to get the style, font and related info of a paragraph of a in design file and write it on the same in design file  on the  left side

    Is it possible to get the style, font and related info of a paragraph text  of a in design file and write  all the stuff on the same in design file  on the  left side with small fonts 
    as
    Lets  this is a text in in design file    :
    style : abc                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 12                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu
    style : xyz                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 10                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu

    Hi Poojith
    Not sure if this would solve your requirment but just in case might be helpful:
    1. We can mix up the HTML and HTMLB components in the JSP Page. However, can access only the HTMLB components in the controller. The following link refers to what customizations are offered by the HTMLB framework:
    [http://www.sapdesignguild.org/resources/htmlb_guidance/]
    2. Another option would be to use AbstractPortalComponents or a simple web app if that's feasible. (where custom UI themes, css and layout are more in control of the developers.)
    Thanks
    Deepak

  • Please....help me....Weblogic and JSP

    I have the following jsp example. This jsp call a applet and set the pool and server values. This example is taken from www.weblogic.com documentation. I would like to know what is doing this jsp in the following sentence:
    <param name="weblogic_url" value="t3://localhost:7001">
    This is jsp code:
    <html>
    <head>
    <title>
    Phonebook Applet
    </title>
    </head>
    <body bgcolor=#FFFFFF>
    <font face="Helvetica">
    <h1>
    <font color=#DB1260>
    Phonebook Applet
    </font>
    </h1>
    <BLOCKQUOTE>
    This applet has been loaded using the Java 1.1.3 Plugin from a
    <font face="Courier New" size=-1><jsp:plugin></font> tag.
    The JSP servlet should have sent the appropriate browser plugin
    tags for your browser type. Try viewing the HTML source to see
    the tags, then try loading the same JSP from another browser,
    and view the HTML source again.
    </BLOCKQUOTE>
    <center>
    <jsp:plugin type="applet" code="examples.applets.PhoneBook1" codebase="/classes/"
    height="800" width="500" type="applet" jreversion="1.1.3"
    nspluginurl="http://java.sun.com/products/plugin/1.1.3/plugin-install.html"
    iepluginurl="http://java.sun.com/products/plugin/1.1.3/jinstall-113-win32.cab#Version=1,1,3,0"
    >
    <params>
    <param name="weblogic_url" value="t3://localhost:7001">
    <param name="poolname" value="demoPool">
    </params>
    <fallback>
    <font color=#FF0000>Sorry, your browser type is not supported!</font>
    </fallback>
    </jsp:plugin>
    </center>
    <p>
    <hr>
    <font size=-1>
    Copyright &copy; 1996-2000, BEA Systems, Inc. All rights reserved.
    </font>
    </font>
    </body>
    </html>
    Because I would like to call a applet and that applet does access to the DB, and i need to specify that line, but i don�t know how....before that it example i reached do the following jsp, which do a query a DB:
    <!doctype html public "-//w3c//dtd html 3.2//en">
    <html>
    <!-- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.-->
    <head>
    <title>Query of Municipalities</title>
    </head>
    <body bgcolor=#FFFFFF>
    <font face="Helvetica">
    <h1>
    <font color=#DB1260>
    Municipalities List
    </font>
    </h1>
    <%@ page import="
    weblogic.db.jdbc.*,
    weblogic.html.*,
    java.sql.*
    " %>
    <p>
    <%
    Connection conn = null;
    try {
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:weblogic:pool:DESAPool");
    catch (Exception e) {
    e.printStackTrace();
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * from CAT_MUNICIPIO");
    ResultSetMetaData md = rs.getMetaData();
    int numCols = md.getColumnCount();
    %>
    <p>
    <center>
    <table border=1 cellspacing=2 cellpadding=0 width=400>
    <tr>
    <%
    for (int i = 1; i <= numCols; i++) {
    %>
    <td><font face="Helvetica"><b><%= md.getColumnLabel(i) %></b></td>
    <%
    %>
    </tr>
    <%
    while (rs.next()) {
    %>
    <tr>
    <%
    for (int i = 1; i <= numCols; i++) {
    %>
    <td><font face="Helvetica"><%= rs.getString(i) %></td>
    <%
    %>
    <%
    %>
    <%
    rs.close();
    stmt.close();
    conn.close();
    %>
    <p>Please call Mary with any updates ASAP!
    <p>
    <font size=-1>Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
    </font>
    </font>
    </body>
    </html>
    This jsp is accesible from:
    http://172.21.9.23/gep/alterno/ex_jsp/b1.jsp
    From the final jsp, I think that i have to change the following lines from the first jsp:
    <params>
    <param name="weblogic_url" value="t3://localhost:7001">
    <param name="poolname" value="demoPool">
    </params>
    by:
    <params>
    <param name="weblogic_url" value="t3://localhost:7001"> //Here is my doubt.What�s "t3:" meanning?
    <param name="poolname" value="DESAPool">
    </params>
    Could somebody help me please?.....
    Thanks in advance.....
    Mary

    look at this url you will understand
    http://www.weblogic.com/docs51/classdocs/urls.html
    n joy ....
    </ksenji>

  • How do I change font and colors back to default?

    I have changed the font and color of the text through the tools button and the options button and the content tab. I find nothing telling me how to change the font and colors back to default font and colors. Can you advise me? I'm using Windows 7 Home Premium OS. Thanks.

    Hi Brenda19605,
    You can use this article to set the fonts and colors: https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use?esab=a&s=font&r=0&as=s
    The default settings for the font are in this article:
    https://support.mozilla.org/en-US/kb/Some%20text%20shows%20up%20bold%20after%20upgrade
    Unfortunately for the default colors has no good reference. But for text it is black (most lower left) color, background is white (most upper left color). Unvisited links is blue (column 8, row 5) and visited link is purple (column 9, row 5).
    Let me know if you need anymore help!
    Lordfreak

  • I am using Illustrator CS5. I am using a certain font and when I make a selection to use one of the letter options or a glyph, it does not take my selection; in other words, nothing changes.

    I am using Illustrator CS5. I am using a certain font and when I make a selection to use one of the letter options or a glyph, it does not take my selection; in other words, nothing changes.

    What font? What system? What Glyph? What language settings? Could be anything. Either way, ask in the AI forum. You'll get quicker answers there - if you provide all the required info.
    Mylenium

  • Problem with fonts and appearance on firefox

    Hello everyone, I have firefox 18 and for a few days Firefox is very unstable ... starts normal, but a second to another entire interface (colors, fonts and website) .. deforms everything .. and I've tried reinstalling the application to delete my session .. and always the same .... someone has an idea of what I can do?
    Here a picture of how it looks
    https://www.dropbox.com/s/a8wdeo4kpz2jd … 2%3A25.png
    https://www.dropbox.com/s/liuf8ryjf4c2f … 4%3A54.png
    PD: The problem is only with firefox,Chrome is fine..
    Last edited by armandopk (2013-01-22 22:41:05)

    From Mozilla support

  • How to change DEFAULT font and font size on new Pages document

    When I open a new Page document, it always comes in with a default font and font size. I know how to change those settings on the open document.
    I want to know how to change the ~default~ font and font size so that a new Page document always opens with those default settings.
    -Thanks for your service to the community.

    Hi Lionate
    Welcome to the forum.
    Make a document to your liking.
    Change the Body style and any other styles in :
    +Menu > Show Styles Drawer > click on the little triangle next to Body > redefine Style from Selection+
    Capture the page:
    +Menu > Format > Advanced > Capture Pages… > Name it > OK+
    +Menu > Format > Advanced > Manage Pages… > Delete other Sections/Pages > OK+
    Save as a template:
    +Menu > File > Save as Template…+
    +Menu > Pages > Preferences > General Preferences > For New Documents > click Use template: > Choose > browse to the template above+
    Peter

  • Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset pref

    Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset preferences and still have problem. Slow to open and in force quit "Photoshop not responding" At this point should I uninstall and start over.

    What are the performance Preferences?

  • After removing system fonts and reinstalling fonts, FireFox will not start

    After removing system fonts and reinstalling fonts, FireFox will not start! When I start FireFox the "Mozilla Crash Reporter" opens as if FF just crashed??? I don't see any records in event viewer. I am using FF v3.6.3 on a Windows 7 box. I tried uninstalling 3.6.3 and installing 3.0.18 and had the same problem!
    == This happened ==
    Every time Firefox opened
    == After a uninstalled all fonts including system fonts and then reinstalling system fonts. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTB5.5)

    The files with submitted crash report ids are inside the ''submitted '' directory, from the directory you found the LastCrash.txt timestamp file.
    The file names will begin with '''bp-'''
    There might be more information from the crash report, but it might just tell us you are crashing the first time Firefox tries to use a font.
    One thing I suppose you could do is select only those fonts you've got in Tools -> Options -> Content -> Fonts and Colors -> Advanced and then uncheck the '''Allow pages to use their own fonts''' option.
    See http://support.mozilla.com/en-US/kb/Options+window+-+Content+panel#Fonts_Dialog
    To be honest, I can't find anything on this Netscape Font Navigator and it sounds highly dubious.

  • How do I use all fonts and Microsoft Word?

    Although my fonts seem to be installed correctly, I often get a message when I try to use a new font that says "font not available for use in Microsoft Word," or some such. How can I make installed fonts available for Word? (By the way, this was true with earlier versions of OS 10.4, as well.)

    Fonts you download or otherwise acquire as font files should be placed in the Fonts folder in your Library or in the Fonts folder in the global Library. Having been placed there, the Mac OS knows what to do and there's nothing more for you to do.
    However, if you add fonts to the Fonts folder while an application is running...well the OS is supposed to let the program know about that and the program is supposed to gracefully accept them but it doesn't always work that way. I've never seen the error you mention but I can imagine it occurring if you've just added a font and the program was running. Just quit and restart the program.
    Having said that, some programs, Word included, prebuild font lists to enable faster loading times. I can also imagine Word's font list becoming corrupt (which happens all too frequently) which might cause your error message. The fix is to delete the font cache file. (found in the ~/Library/Preferences/Microsoft/Office Font Cache)

  • Sharpener Pro 3 has problems in Aperture as the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Have removed all duplicate fonts and tried using a new user account. Any ideas?

    I am experiencing problems with Sharpener Pro 3 as an Aperture 3 plug-in. These are:  the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Following discussions with Nik Software I have removed all duplicate fonts and tried using a new user account. Neither of the courses of action worked. Have other users experienced these difficulties? Can you suggest an alternative remedy?

    I am experiencing problems with Sharpener Pro 3 as an Aperture 3 plug-in. These are:  the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Following discussions with Nik Software I have removed all duplicate fonts and tried using a new user account. Neither of the courses of action worked. Have other users experienced these difficulties? Can you suggest an alternative remedy?

  • How can I change the font and color of an email signature?

    How can i change the font and color of an email signature?

    Mail > Preferences > Signature
    Highlight the Signature.
    Click Format in the menu bar and select " Show Fonts".
    Select the Font.
    Highlight the Text.
    Click Format in the menu bar and select " Show Colors".
    Select the color.
    Mail > Preferences > Composing > Message Format:  Rich Text
    Best.

  • I would like to print links as regular text i.e. not underlined or in a different font and color.

    I have created a page with my resumé, using Dreamweaver CS4 on my iMac (running OS X 10.6.6).  You can see the page here: http://www.peterforkes.com/Resume.html
    It looks great when it is on the screen, but when I print it I would like the links to not be underlined and also to be displayed in the same font (and color) of the text surrounding it (a link is largely useless on a piece of paper, if it it not showing the URL).
    So, I created a stylesheet called "print.css" and have this in it:
    a:link {
    text-decoration: none;
    In my html document (Resume.html)  I have this code, at the top:
    <link href="_css/Resume.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="_css/Print.css" rel="stylesheet" type="text/css" media="print" />
    Now, things such as the graphics in my document do not print out (this is how I want it) but links seesm to be doing unexpected things for me.  As I mentioned, when I print the page I would like them to:
    a) not print with an underline (which I would expect the code snippet shown above to do).
    b) I would like the link color to be the same as the surrounding text (I have links in several places, such as in <h2>, <h3> and <p>).
    c) I would like the link to have the same font and text size as the surrounding text.
    Any help is always appreciated.
    Peter A. Forkes

    You've solved it for a:link but you may print the page with the <a> tag in link or visited state so you need to cover both.
    In http://www.peterforkes.com/_css/Print.css
    change
    a:link {
    text-decoration: none;
    to
    a:link, a:visited {
    color: #333;
    text-decoration: none;

  • Can I set a default font and font color for the text field properties?

    I am setting up applications, some of the information I fill in prior to sending it to the client; I would like that text to always be in a specific font and color so it is clear to the client what information I filled in for them when they are reviewing the document.
    Thank you

    Not at this time, but I've asked the product team to consider adding it as a feature. Thanks for the suggestion.

  • Ideas pls for a small application on java and jsp?

    hi ,
    I would like to create an application which for resume. I would like to codify the java code . The java code should be able to autogenerate jsp file's since the output of the resume would be on an jsp page. To add it simply a wizard for dynamic resume creation using java swings and jsp. Code for jsp should be autogenerated please note it.
    Ideas please!
    Thanks in advance

    I'd like to add more information to Patreck's suggestion.
    JSP pages are wonderful if you need the web server to perform some actions before sending you the final web page.
    Here, you don't need the web server to do anything because your Swing application can do it for you. As Patreck implies, Swing can make a connection to the database, retrieve any information you want, perform whatever logic you need, and write the output to an HTML file.
    To give you an example, you can use Internet Explorer to view a basic web page on your hard disk. You can also use Microsoft Word to view the same basic web page. They both do the same task and there is no need to force IE to use its Word plug-in in order to view the web page.
    JSPs are not necessary because Swing will do all of the work for you. You only need JSPs if you want people to use your program through a web browser because they can't do Swing inside a web browser. You should only use one or the other, not both. Understand now?
    If you really really must generate JSP code from a Swing application, then just write out the JSP stuff in the file. For example...
    public void createWebPage( Printwriter pw, String myName ) {
       pw.println( "<% String myJSPName = \"" + myName + "\" %>" );
       pw.println( "<HTML>");
       pw.println( "<HEAD>");
       pw.println( "<TITLE>My Resume</TITLE>" );
       pw.println( "</HEAD>");
       pw.println( "<BODY>" );
       pw.println( "<H1>My name is " + myName + " and my JSP name is <%= myJSPName %></H1>" );
       pw.println( "</BODY>" );
       pw.println( "</HTML>" );
    }As you can see, it's pointless to embed JSP when you can do all the programming within Swing first and just write out the correct response.

Maybe you are looking for