How to link style sheets to a jsp

Hi,
I have a html page which used a css file. I changed the html to jsp(by renaming the file , of course, there were no explicit jsp constrcuts)
But the effect of css file is gone although it is in the same directory as that of the jsp file on the web server, can somebody plz explain??
thanx
husane

Hi,
what you might want to try is to close the external css link by adding a backslash / at the end like the following:
<link rel="stylesheet" href="/d1/d2/b.css" />
Assad

Similar Messages

  • How come FireFox won't load linked style sheets for every website?

    It started about 4-5 days ago. No matter what website I go to, it isn't linking the style sheets so the websites are displayed incorrectly. Why? I didn't change anything!

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    <b> To Enable SafeMode </b>
    *You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    *''Once you get the pop-up, just select "'Start in Safe Mode"''
    If it works in Safe Mode and in normal mode with all extensions (Tools > Add-ons > Extensions) disabled then try to find which extension is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: "Firefox > Quit Firefox"; Linux: "Firefox/File > Quit")
    * https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to apply style sheet to design page

    hi all,
    i have a discussion,
    how to apply a style sheet to design page in webdynpro.
    thanks
    vikash

    Hi Vikash,
    Check the below links which will you idea on the same.
    Stylesheet for WDA without integrating in SAP Portal
    Apply custom css to WebDynpro application
    Thanks
    KH

  • How to apply style sheet (.css) in Weblogic directory listing

    Hi,
    We are migrating a directory listing application from Apache to Weblogic.
    Earlier we did this by Apache httpd.conf entry like below :
    <Directory "/opt/apache/httpd-2.1.9/htdocs/Myreportfolder">
    IndexOptions FancyIndexing FoldersFirst NameWidth=* XHTML
    IndexOrderDefault Descending Date
    IndexStyleSheet "/css/style.css"
    </Directory>
    /opt/apache/httpd-2.1.9/htdocs folder has all it's usual resource files.
    We were able to see documents in "Myreportfolder".
    Now we have moved to Weblogic and using virtual directory mapping as below and we are trying to achieve the same thing:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wls:weblogic-web-app xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
    - <wls:container-descriptor>
    <wls:index-directory-enabled>true</wls:index-directory-enabled>
    <wls:index-directory-sort-by>LAST_MODIFIED</wls:index-directory-sort-by>
    </wls:container-descriptor>
    - <wls:virtual-directory-mapping>
    <wls:local-path>/Myreportfolder</wls:local-path>
    <wls:url-pattern>/*</wls:url-pattern>
    </wls:virtual-directory-mapping>
    <wls:context-root>/getreports</wls:context-root>
    </wls:weblogic-web-app>
    We are able to view the reports but we do not get look-and-feel of Apache like directory listing.
    but we encounter below issues:
    1) File/Folder icons are not visible - we want to use style sheets in http header from the response that is returned from weblogic server
    2) Filename is limited to 29 characters when it is showing
    3) Files are not sortable as Descending order - we sorted using tag <wls:index-directory-sort-by>LAST_MODIFIED</wls:index-directory-sort-by> but the latest file is shown at the last
    We are thinking that Weblogic must be having some configuration like Apache httpd.conf where we can apply style sheets (css ).
    We would appreciate af anyone can provide better insight into the issue.
    or is it possible to extend weblogic.servlet.fileservlet class to serve this purpose.
    Thanks & regards,
    Rabi

    Hi Vikash,
    Check the below links which will you idea on the same.
    Stylesheet for WDA without integrating in SAP Portal
    Apply custom css to WebDynpro application
    Thanks
    KH

  • Link style sheet to .html file?

    Hey dreamweaver community i'm really new to dreamweaver but have a slight grasp.
    But i am creating a website (ethicistbeats.com). I have a design by using a css. style sheet and everything looks good in dreamweaver safari preview (on a mac), but when i upload it to my ftp client my designs/ format of my page does not show up, at all.
    If you guys could reply and try to help me out that would be cool. i tried talking to one pf my friends who took a class on html code, but he couldn't help me.
    Anyways, thanks in advance.
    If you guys need more info about code and stuff i'll gladly upload it. Just again i'm new to this so i don't really know much... i just dove into dreamweaver like a need a webpage, not much help, but my site wasmade from a template - not sure if that helps.
    Peace.

    Unfortunatly, you have quite a mess on your hands.  First you have embedded css above the external style sheets, which takes away one of the big advantages of embedded css, namely to override any rules in the external style sheet.
    <style type="text/css">
    .A {
         color: #E12000;
    .b {
         color: #000;
    </style>
    But that is peanuts to the other probelms,
    Your style sheets are not css files, they appear to be an html file.  To create an external style sheet, go up to File | New | CSS and a new CSS blank file will be created.  Paste your css rules into it.
    You have
    <link href="http://www.ethicistbeats.com.css" rel="stylesheet" type="text/css" />
    While I suppose you could link using an absolute link, I dont see an advantage,
    but it would be more like
    <link href="http://www.ethicistbeats.com/stylesheet.css" rel="stylesheet" type="text/css" />
    a better way would be
    <link href="stylesheet.css" rel="stylesheet" type="text/css" />
    This is not a style sheet, but another html file.
    <link href="Index.html.css" rel="stylesheet" type="text/css" />
    Take whatever css is in the files and put them into a new css file.
    Start there, but there is more work to do.
    gary

  • Linked style sheets

    is there a way to create a style sheet (paragraph, character styles) that you can link to in multiple documents? And then you only have to change one document to affect all the other documents?

    Not that I know of without scripting.
    The character style flyout menu to load character styles does not even replace existing ones. Only method I know of is to make a text box with a sample of all your character styles, then paste that into each document and redefine each character style individually.

  • How to apply style sheets to table layout

    hi i want to apply styles to my table layout region, i gave style sheets which are in OAF myhtml\OA_HTML\cabo\styles but i dint find any changes in my table layout, can any give one give me an idea of how to do it....

    Check the OAF personalization guide for details on custom CSS. It won't be possible for me to summarize the whole thing here.
    --Shiv                                                                                                                                                                                                                                                                               

  • How to apply Style Sheets to all ComboBoxItems.

    Here in the following code i have referred to stylesheet for each data item. Help me how I can set a stylesheet for all comboboxitems only one time.
    <ComboBox 
                Foreground="Black"
                BorderBrush="Black"
                HorizontalAlignment="Left" Margin="108,280,0,0" VerticalAlignment="Top" Width="200" Style="{StaticResource ComboBoxStyl}">
                <ComboBoxItem Content="One" IsSelected="True" Style="{StaticResource ComboBoxItemStyle1}"/>
                <ComboBoxItem Content="Two" Style="{StaticResource ComboBoxItemStyle1}"/>
                <ComboBoxItem Content="Three" Style="{StaticResource ComboBoxItemStyle1}"/>
                <ComboBoxItem Content="Four" Style="{StaticResource ComboBoxItemStyle1}"/>
                <ComboBoxItem Content="Five" Style="{StaticResource ComboBoxItemStyle1}"/>
            </ComboBox>

    Hi MohanrajKrishnamoorthy,
    I will recommend you create the ComboBox like the following:
    <ComboBox
    Foreground="Black"
    BorderBrush="Black"
    HorizontalAlignment="Left" Margin="108,280,0,0" VerticalAlignment="Top" Width="200">
    <ComboBox.ItemTemplate>
    <DataTemplate>
    //Add style or control in here
    </DataTemplate>
    </ComboBox.ItemTemplate>
    <!--<ComboBoxItem Content="One" IsSelected="True" Style="{StaticResource ComboBoxItemStyle1}"/>
    <ComboBoxItem Content="Two" Style="{StaticResource ComboBoxItemStyle1}"/>
    <ComboBoxItem Content="Three" Style="{StaticResource ComboBoxItemStyle1}"/>
    <ComboBoxItem Content="Four" Style="{StaticResource ComboBoxItemStyle1}"/>
    <ComboBoxItem Content="Five" Style="{StaticResource ComboBoxItemStyle1}"/>-->
    </ComboBox>
    After that all the ComboBox item will use the same style as you define in the DataTemplate.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use style sheet

    Hi,
    I have created a ui5 page and i want to apply style to it.
    so can anyone help me with the process on how to use the separate css file and style the different elements.
    Thanks

    Hi Anshul,
    use the statement
    jQuery.sap.includeStyleSheet(jQuery.sap.getModulePath("<project name>")+'/resources/css/zexthcmleavereqcre.css');
    This would include your css in the project.
    find attched a sample folder structure make folders under webcontent folder
    in the above case the project name is 'local_json'.
    Make sure you are using the right path to point to your css file.
    Thanks and Regards, Venkatesh

  • JSP Style Sheets

    can somebody pl help me....
    how to lonk an external style sheet to a jsp page.
    CSS page and JSP can be at two locations.
    the appliction will be in ear...
    thanks in anticipation
    Maruti

    i did used the same syntax but no result
    here is the dir structure
    MyApp/
    inclusde/my.css
    jsp/myjsp.jsp
    web-inf/web.xml
    my.css
    i used the following links
    <link rel = "styleshee" href="/MyApp/my.css" type="text/css">
    <link rel = "styleshee" href="my.css" type="text/css">
    <link rel = "styleshee" href="/my.css" type="text/css">
    <link rel = "styleshee" href="http://localhost:8080/MyApp/my.css" type="text/css">
    nothing working
    but if i include the css file using include tag (along with one of above) it works
    pl some body help me
    Maruti

  • How does linked CSS work in Word 2010?

    I'm trying to figure out how to work with the "linked CSS" feature in Word 2010. Can someone who has used it give me advice?
    I'm somewhat hampered by being unable to find any documentation for the thing, but it seems to me that I should be able to use it like this:
    With a document open, select File > Options.
    Select the Add-Ins tab.
    In the Manage dropdown, select Templates, then click Go.
    Select the Linked CSS tab.
    Click Add, select a CSS file, and click Open. Word adds the CSS file to the "Linked style sheets" list.
    So far, so good. But now it seems to me that Word should be able to apply the styles defined in the style sheet, and that doesn't seem to happen.
    I've added a style sheet that looks like this:
    outrage {
    line-height:400%;
    If I set a paragraph to the style outrage, it should acquire the properties of the
    outrage style rule. But it doesn't.
    I tried labeling the style rule as p.outrage to clarify that it's supposed to be a paragraph style (actually I tried that first), but it didn't make any difference.
    Have I missed some necesssary step here? Or have I simply misconstrued what "linked CSS" files are supposed to do?

    Hi,
    If we want to apply an external CSS stylesheet to the current document in Microsoft Word 2010. We may save your Word document as 'Web page (*.htm; *.html) first. We can't apply a css stylesheet to a .docx file directly as it's not html.
    Regards,
    George Zhao
    TechNet Community Support

  • RH 11 v11.0.2.240:  Cleaning up an External Style Sheet (CSS)

    Hello,
    I am in the process of trying to clean up a CSS for an "old" RoboHelp project.  I believe the CSS contains many unused styles that were probably "trial & error" styles, but were never deleted when they failed to produce the correct format.  I know it doesn't do any harm to leave them in the CSS, but I really don't want them around! 
    I did not see a report in RoboHelp that would provide this information, but before doing a search for each individual style using a program like Agent Ransack, I wanted to see if anyone in the Community had any clever ideas as to how to accomplish this task.
    Thanks for  your input/suggestions!

    I can't say I've had this issue.  But then again, I never use the CSS property inspector to create an external style sheet.  I just hit File > New > CSS.  I add my CSS rules and Save it to the local site folder.
    Link style sheet to HTML pages.
    http://alt-web.com/DEMOS/DW-Link-Stylesheet.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Style sheet with Struts frame work

    Hi,
    I am using MyEclipse editor. I am trying to use Style sheet in my JSP page using Struts frame work. I tried several ways but style sheet is not applying on my JSP page. Please look at my code and let me know where is the problem.
    1. I created a project called "AcmiReports". In the webroot I created folder called "CSS". In this folder I created "AcmiReports.css" file. In my JSP I am using like this
    <head>
    <link rel="stylesheet" type="text/css" href="/AcmiReports/WebRoot/css/AcmiReports.css">
    </head>
    Where am I doing wrong? I read somewhere that I need to set some thing in struts-config file. Is this true.
    Please help me.
    Thanks,
    Anamika

    No its not working fine, i m also facing the same problem with my code..
    when ever i come to jsp page through action css works fine, but if i directly forward to jsp page, css doesnt work
    can any body help me, its to urgent.. i need to submit my project till 1st of april... please do the need full asap
    i m copying the code used to apply the css in my jsp file
    <title><bean:message key="login.title" /></title>
    <link href="default.css" rel="stylesheet" type="text/css" />
    <script language=javascript src="clock.js" type="text/javascript"></script>
    same code works fine through action, but through normal forward it doesnt...

  • Creating Style Sheets for Existing Text

    Can I get some advice on what would be the easiest way to create and apply style sheets to a document that was layed out w/o any? My Art Director layed out a dozen pages of actual type w/o any style sheets. It's a pretty basic layout with Headers, Sub-heads and body copy. There are no "space afters" applied to any of the hard paragraph breaks after sub heads, and nothing has style sheets applied to it. All text has Basic Paragraph applied. I know how to create style sheets based on what he created, but then how would I apply to the rest of the pages w/o having to physically format it all? Thanks for any help with this.

    SIcsempertyrannis schrieb:
    Your flippant response to my question was to send my Art Director for basic computer training. How exactly is that polite or helpful? And if you know the difference between a hard and soft return then why did you ask if I meant shift+return when I clearly stated there were no space-afters applied to any hard paragraph breaks?
    Your initial response was laden with typos and sarcasm, as is your second. If you dont want to be bashed then practice what you preach. Again, and for the last time, if you dont have an answer to a question you should refrain from posting.
    No "space after" does not mean that it is shift-return! The space is depending on the settings of the Paragraph (Style) in Intends and Spacing. And sorry, a lot of people here mean with the same words different things.
    And yes, send your Art Director to a training, because when smeone uses shift-return instead of properly paragraphs he has not enough knowledge to do word processing.
    Thanks for the typos you have found. But you can keep them and all others you will find here. And no, I had no sarcasm.
    I decide myself if I refrain from posting, it is not your job.

  • Issue in using cascading style sheet(CSS) in coldfusion

    I have installed coldfusion in my machine recently. The thing
    is that my cfm files are not recognising the classes of the linked
    style sheets though I have given the correct path of the location
    of css file. Also it couldn't recognise <img src=""> tag to
    display an image.
    Please help me out to solve this issue.

    > I have installed coldfusion in my machine recently. The
    thing is that my cfm
    > files are not recognising the classes of the linked
    style sheets though I have
    CFM files are disinteresting in HTML, CSS classes and links
    and that sort
    of carry-on. It's all just "noise" to CF. So your CFM
    template cannot, in
    and off itself, cause problems with your CSS stuff.
    What you need to do is to look at the generated HTML and see
    what you're
    doing wrong. I imagine you've got the URLs wrong. Bear in
    mind that LINK
    URLs are indeed URLs, and if you're using relative ones, they
    should be
    relative to the URL of the request, and have no bearing on
    the file
    location of the CFM file they are represented in. This is a
    common mistake
    nebies make.
    Adam

Maybe you are looking for

  • Subroutine in scripts

    Hi folks,   i want to print purchase order number and document date in purchase order form in seprate window.the purchase order number iam giving in selection-screen that number i want to display. for this iam writing code in subroutine.but the data

  • How to acheive euivalent VMWARE's thin/fast clone in Hyper-V?

    Hi buddy's,     Right now I am doing some invetsigation on how to  acheive euivalent VMWARE's thin/fast clone in Hyper-V?     There is some concept of differential disk in Hyper-V , using which we can create a virtual machine which whill be pointing

  • Simple questions about the Live! Ultra for Notebooks webcam

    Hi there, I don't have a notebook, but I have an LCD display and I'm thinking of getting a webcam. Does anyone know if the Live! Ultra for Notebooks can be clipped on something as thick as 3cm? Also, does it have an in-built microphone, or is that al

  • E-mail options

    My e-mail defaults to my wi-fi carrier. That is fine with me. But if I am out of range, how do I get it to try the next active connection such as my cell carrier? I do not see a way of adjusting the e-mail settings. If I have helped you with your pro

  • Mini-Toc from Linked FM document (FM10 / RH9)

    Hi all, I'm a newbie in the use of RH, BUT, I'm trying hard My question might be quite similar to this one : http://forums.adobe.com/message/5301262#5301262 Is there a way, in a RH project created from Linked FM files, to insert a mini-TOC in a docum