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

Similar Messages

  • 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 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.

  • Applying style sheets to Jato

    Is there an example of this somewhere or some documentation? I'm using Jato
    1.2.
    Also, in the emails that fly back and forth I have seen a date sample
    mentioned.
    Where is this? I have got the JatoSamples.war deployed and I don't see a date
    example. I just wonder if I'm missing some other Jato examples.
    Thanks.
    Belinda

    There is some confusion here. The JatoSample project that shipped with the
    Developer CD does not include the Components samples (which includes the Date
    example). The "live" sample that is viewable on the intenal web site
    http://ias.red.iplanet.com/jato/ does include the Component samples.
    We intentionally disabled the Component samples in the Developer CD version
    because at the time that it shipped we had an unresolved issue with running the
    Component samples on certain servlet containers. That issue has been favorably
    resolved.
    The downloadable version of Jato 1.2 should contain a version of the JatoSample
    which does have the Component sample enabled.
    ----- Original Message -----
    From: Matthew Stevens
    Sent: Thursday, November 29, 2001 8:39 AM
    Subject: RE: [iPlanet-JATO] applying style sheets to Jato
    Belinda,
    Sorry for the delay. JATO is now available on http://developer.iplanet.com
    and the JATO Sample WAR file is available separately for download - so make
    sure you have this latest example. The sample is available LIVE on internal
    sites which I will send you offline. We are working to have this and other
    samples running live on the public web site shortly.
    For the Date component example please check out the Components section in
    the Index of the running application and the following in the WAR file
    WEB-INF/classes/jatosample/module1/E0130Viewbean.java
    WEB-INF/jatoSample.tld
    WEB-INF/classes/jatosample/components
    Could you please elaborate on your requirements for style sheets. Other
    than using style sheets normally as you would with JSPs, what are you trying
    to do? We would like to be focused in our answers.
    matt
    -----Original Message-----
    From: Belinda Garcia [mailto:<a href="/group/SunONE-JATO/post?protectID=014056235009078154169082148140172241239144044214017123152006048067">belinda.garcia@s...</a>]
    Sent: Tuesday, November 27, 2001 5:08 PM
    Subject: [iPlanet-JATO] applying style sheets to Jato
    Is there an example of this somewhere or some documentation? I'm using Jato
    1.2.
    Also, in the emails that fly back and forth I have seen a date sample
    mentioned.
    Where is this? I have got the JatoSamples.war deployed and I don't see a
    date
    example. I just wonder if I'm missing some other Jato examples.
    Thanks.
    Belinda
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    [Non-text portions of this message have been removed]

  • 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

  • Applying Style Sheets to all Project Topics

    Currently I have topics that use different style sheets (there are 5 listed, although I only created one).
    I want all topics to use the same style sheet.
    Is there any way to apply a Style to all Project Topics?

    Welcome to the forum.
    Go to the topic list and select all topics, then right click and select Properties. You can assign the new CSS there. Any style names in your topics not included in the new CSS will of course be broken and need to be assigned to whatever style you choose.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • 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

  • How to apply style to submit button

    Hi All,
    I am developing an application in struts where I have multiple buttons on a single form. Each button corresponds to different action to be executed, and to achieve this I have used DispatchAction.
    Since I need to submit the data, I am looking for some ways through which I can put some style on submit button, such as putting an image over the submit button,giving it some border, some color and so on. I want to do this through CSS or if not possible through CSS then as inline style.
    I am using struts-html.tld tag library to render all the HTML controls.
    Any idea how to put images over submit buttons, or if putting an image is not possible then how to have style for it so that the look of submit button changes and the user feels as if it is a graphic button.
    Any help is appriciated.
    Thanks.

    You do realise there is an <html:image> tag which
    generates the html graphical submit button (ie <input
    type="image">) ?
    There are two tags in struts:
    <html:img> - generates an image tag: <img src="...">
    <html:image> - generates a graphical submit buttonYea, I do know this. But the problem is I don't have one submit button in my page. There are mroe than one buttons and each button calls a different method of the Action class. I could not get a way to pass the parameter name and parameter value using
    <html:image> tag.
    To be more clear, I need CRUD operations in one page and they all refer to one Action class. If I use html:image tag, I can't call seperate functions as it will then call the execute method. Also I don't want to have any javascript to call the relevant method from the Action class.
    Is there any way out? I am not a pro in struts, just s beginner, so any help is more than appreciated.
    Thanks.

  • Variable Entry Style Sheet (CSS)

    The Web template uses the style sheet from the MIME repository:
    <link href=/sap/bw/mime/BEx/StyleSheets/BWReports.css  type=text/css rel=stylesheet>
    But, when the variable entry screen is displayed when executing the query it is not formatted and uses this style sheet:
    <link rel="stylesheet" href="OWNER">
    What is missing or needs to be configured so that the variable entry page uses the same style sheet as the Web template?
    Thanks for the help in advance.

    i had ot type out in the file:css in order for it to be imported into DW i dont know why its doing that.
    Did you define a local site folder in DW before you begain your project? 
    http://help.adobe.com/en_US/dreamweaver/cs/using/WS753df6af718a350a60097e0f131686fa2b4-7ff e.html
    This critical first step allows DW to manage your site links and assets for you.  Without a local site folder definition, many of DW's advanced features won't work.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Discoverer item type - how to apply style

    Hi.
    On OracleAS 10.0.04, we have links to disco portal & viewer (added an item, chose Discoverer as item type, and typed "viewer" / "plus" in the DiscoItem section).
    These to links does not seem to change according to style changes - always the same font (Time new roman), same size and same color.
    How can we modify this?
    Thanks,
    Dovi.

    This is by no means a good technique for this problem but it
    could work.
    If you can leave a space beween the list item and the anchor
    this will give you a selectable region.
    Then write a JS function which looks through the document on
    page load and removes any spaces at the beginning of li nodes.
    As I said it ain't pretty and you'd best try to alter your
    style sheet to work around your problem, but the above would work
    if you have no other options.

  • 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

  • How to overwrite styles with CSS?

    I have a large number of older html documents (I use Dreamweaver CS3 Premium) that were originally built using "regular" styles. I have tried to overwrite these old styles with CSS but this doesn't work. I first delete the old styles, attach the CSS and then apply the new CSS style, but artifacts of the old style remain, such as text colour, background colour, even font size. This has become a major time problem as I have to undo each element of a style to an item before I can successfully apply the new CSS. As I have over a hundred of these files to update, this process is costing me an enormous amount of time. Surely there must be a better way to apply new styles. Any help would be much appreciated.

    I’ll try to explain this problem again. The old HTML document has, for example:
    <style>
        .h1blue
        .h2blue
        .body
        .footer
    So .h1blue is “Arial, Helvetica etc,” size 16 pixels, font weight bold, color #000066.
    I first delete this set of styles and then attach a new CSS:
    ALPHA 210 new.css
        .body [Arial, Helvetica, etc.; size 12 points, line height 16 pts]
        .head1Brown [Times etc; size 18 points, font weight bold, color #663300]
    When I apply .head1Brown, for example, the result is Arial 18 points rather than Times, and color #000066 (blue) rather than #663300 (brown). This means that I have to undo the font info (back to default), undo the color (to black), then reapply the style. Sometimes I have to do this 2 times or more for it to take.

  • Web template style sheets(.css) !!!

    Hi,
    where can I create my own style sheet for the web template and also how can i edit the exisitng style sheet in BW..
    Thanks for your help in advance,
    AC..

    You can create your own using notepad or any other authoring tool.  To get a stylesheet from the BW server, go to the Mime Repository (Transaction SE80).  From there you need to find it in the directories.  Normally it is in the SAP->Public->BW->BEx->Stylesheets or BW->Customer->Stylesheets.  You can import, export, display, and change the stylesheets from here.  If you make changes to the stylesheets, you will need to invalidate the global cache by using the transaction SMICM.  Use the GoTo menu in the top menu and select HTTP Server Cache->Invalidate Global in System.  This should help you out.  Use this link for more on the stylesheets:
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/ca453afbf37b54e10000000a11402f/content.htm
    Thanks,
    Jeff

  • How do I populate an array with a directory listing.

    I have a web site that has its photos updated by another person using a content management system that I have written. As Dreamweaver does not know about these extra photos, if I try to
    syncronise the site on my machine for backup purposes, Dreamweaver downloads all 5000+ photos, and this can take upwards of 12 hours if there are no breaks in the connection.
    So I am trying to write a page that creates an array of the existing files on the remote site. It will then do the same on my local site, and by comparing the arrays, will make a list of the new files, and then download these, which will save a lot of time and bandwith charges.
    First I have to read the directory list, using the code below which reads and echos it on screen.
    However, I cannot work out how to populate the required array.
    <?php
        try
        {          /***photo directory ***/
            $it = new directoryIterator('../web/thumbs');
            while( $it->valid())
                  /*** echo if not a dot directory ***/
                if( !$it->isDot() )
    /**** Array creation code needs to go here I think.***/
    echo $it->current()."<br />";
         /*** move to the next element ***/
                      $it->next();
        catch(Exception $e)
            /*** echo the error message ***/
            echo $e->getMessage();
    ?>
    This creates a list of files and displays it on the page.
    How do I store it in an array?
    Howard Walker

    Although not the solution you were looking for, consider the following:
    Click the icon in DW for "Expand to show local and remote sites."  Arrange the remote image directory by "Modified date," Then select all the recent images and GET them.
    I find the above method good enough for occassional synchronization. I also simply ignore broken image links on the testing system.
    If the above is not a solid enough solution, perhaps someone else will write your array function for you. I don't have the time.

Maybe you are looking for