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

Similar Messages

  • How to create web site using STRUTS frame work

    Hi,
    I know how to create web pages using JSP & Servlets.But now i have to create Matrimonial web site using STRUTS frame work.Plz any one guide for me...
    Thank U....

    Struts is not to be confused with JSF.
    Start at their own homepage over there at apache.org.
    Good luck.

  • What is the exact use of STRUTS frame work??

    Hi every one,
    I'm new to this STRUTS frame work. Can any one explain me in detail (if possible with an example) about,, why we need to use STRUTS framework as we have already JSP's.
    For example if we want to move from one JSP to another JSP, it is quite easy to move to the page with out any other extra logic. Where as comes to the point of STRUTS, we need to write, JSP form, Form-bean class, Action Class, configure our STRUTS XML file, if validation needed validation xml files. Is it not looking cumbersome to process?
    Please help me to recover from this...
    Expecting reply from many of you..
    Thanx in advance.
    Sriram

    meetshriram wrote:
    Hi every one,
    I'm new to this STRUTS frame work. Can any one explain me in detail (if possible with an example) about,, why we need to use STRUTS framework as we have already JSP's. Struts is a web MVC-2 framework.
    For example if we want to move from one JSP to another JSP, it is quite easy to move to the page with out any other extra logic. No, there's logic, and it's embedded into the page.
    It's fine for one page to another, but when you have a substantial application that has tens or hundreds of JSPs it's much harder to manage.
    Where as comes to the point of STRUTS, we need to write, JSP form, Form-bean class, Action Class, configure our STRUTS XML file, if validation needed validation xml files. Is it not looking cumbersome to process?
    Extra complexity does cost you something. Ask yourself what it's buying you: better layering, more configuration and less code, validation, etc.
    %

  • How to get MS Access DB connection in struts frame work?

    Hi All,
    I am trying to get MS Access db connection in struts frame work .
    I am using websphere.I don't know whether i have to set any configuration in the WSAD.
    In struts-Config.xml i am having this mapping
    <data-source
    type="org.apache.commons.dbcp.BasicDataSource"
    key="userDB" >
    <set-property property="driverClassName"
    value="sun.jdbc.odbc.JdbcOdbcDriver" />
    <set-property property="url"
    value="jdbc:odbc:localhost:9080/u:/EmpDetails.mdb" />
    <set-property property="username" value="" />
    <set-property property="password" value="" />
    <set-property property="maxCount"
    value="4" />
    <set-property property=" minCount="
    value="2" />
    </data-source>
    In the action class i am having this code
    dataSource = getDataSource(request, "userDB");
    conn = dataSource.getConnection();
    stat=conn.createStatement();
    result1=stat.executeQuery("select * from emp");
    While trying to execute this code i am getting this error
    java.sql.SQLException: DBCP could not obtain an idle db connection, pool exhausted
    any idea why this error is occuring?
    Thanks in advance
    Janaki.

    Yes i know that but i only wanted to know how i will connect MS Access database with Java desktop Application in NetBeans

  • How to use Adobe Interactive forms with ISR frame work in Webdynpro forJava

    Hi,
    Anybody worked on Adobe Interactive forms with ISR frame work in Webdynpro for Java in ESS/MSS development.
    We have already searched in ISR_Cookbook_2004, however we didn't anything related webdynpro for java in that.
    Any information regarding this will be of great help.
    Regards
    Satish Kumar

    There are a number of issues here. A form that you created with LiveCycle Designer (XFA) cannot be used with FormsCentral. An Acroform, the kind you can create with Acrobat, can be used with FormsCentral, with certain limitations,  one of which is skip logic. A dynamic XFA form allows for this type of thing, but as mentioned, they don't work with FormsCentral. You can set up an Acroform to show/hide or activate/inactivate fields based on selections or entries made in other fields, but you'd have to set this up in Acrobat, not FormsCentral. So you can set up something roughly equivalent to a web form's skip logic, but you'd have to learn how to do this in Acrobat using JavaScript. There is a separate Acrobat JavaScript forum here if you have any questions.

  • Cascading style sheets with htp procedures and functions

    I'm new to style sheets. I currently build dynamic web pages with database procedures using htp/htf. Can someone tell me how to use style sheets with this functionality.
    Thanks

    This is a good point to start learning about css:
    http://www.htmlhelp.com/reference/css/

  • Using RoboHelp 8 style sheet with RoboHelp 9

    Howdy. My issue:
    I was using RoboHelp 8 at work to craft a web help document out of a Word file. We have a company CSS we apply to web help for look, feel, etc. It worked in RoboHelp 8, but not in 9 despite following the same Word Import procedure. Needed to upgrade to RH9 because RH8 was not recognizing our version of Word to compile and create the web help files.
    How can I make my old style sheet work with RH9? Is there some step I'm missing? Help appreciated with 20.1 bazillion thank yous in advance.

    Hi there
    First we need to know what type of string you are using and obtain an exact measurement.
    I'm joking, of course, but the fact here is, we need more information. Things like:
    You said "...despite following the same Word Import procedure.". What are the exact steps in said procedure, please?
    Note that it's a simple process to ignore any style sheet during the Word import, then later import just the company CSS file and associate it with your topics. All of that can be done in perhaps 30 seconds or so.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Using a style sheet with hbj:link

    Hi guys,
    I'm looking for a way to use a style sheet that I've created in my jsp with an hbj:link tag. Here's my style sheet:
    <STYLE type="text/css">
    a.button
    a.button:active, a.button:focus, a.button:hover
    </STYLE>
    Here's my link:
    <hbj:link
         id="<%=linkId%>"
         text="Sign Me Up"
         tooltip="<%=toolTip%>"
         onClick="signupLinkClick"
         linkDesign="REPORTING"
         >
    </hbj:link>
    I've tried wrapping an <a href="#" class="button"> tag around the hbj:link tag, but that didn't work. Any ideas?
    Thanks!
    -Stephen Spalding
    Web Developer
    Graybar

    Hi,
    there is a possibility to change the default style, but is not really clean. The browser when rendering a tag uses the last defined style for this tag. So you can redefine it. I used it in a DynPage, it worked ok.
    First run the iview with standard style (normally). Look into the sourc of the page and find your "Sign Me Up" link. Check the class of the <a> tag. For instance it is a "urLnk".
    Now just modify your style definition:
    <STYLE type="text/css">
    urLnk.button {
    padding: 2px 10px 3px 10px;
    border: 2px outset #cccccc;
    background: #C0C0C0;
    color: #000;
    font-size: 11px;
    text-decoration: none;
    height: 19px;
    vertical-align: bottom;
    urLnk.button:active, a.button:focus, a.button:hover {
    border: 2px inset #c0c0c0;
    vertical-align: middle;
    background: #cccccc;
    color: #000000;
    text-decoration: none;
    </STYLE>
    and so on...
    Hope this helps,
    Romano

  • Changing colors/style sheets with custom header portlets?

    We would like write a completely custom header portlet (a standard portlet that is designated as a header, notusing the branding server), but I can't seem to find a way to change the style sheets in subportals when I do this.
    Am I missing something? Do you have to use the branding engine to control style sheets in subportals, or is there another way?
    Chris StoffelPortal DeveloperHalliburton KBR

    ------- developersupport wrote on 12/11/03 4:24 PM -------
    The way Branding accomplishes what you're looking for is by setting a portlet setting called &#034;Portal-Style&#034; on the header portlet using the EDK.  This setting can be set either as an Admin level or CommunityPortlet level setting.  When the portal loads a page with a header, it will check to see if the header has this preference set (first on the CommunityPortlet level, if the header is on a community, and then on the Admin level).  If so, the portal will cause everything to use the stylesheet specified in the setting value.
    The setting value is the name of the stylesheet.  For example, if you wished every page displaying the header to be orange, you could set the &#034;Portal-Style&#034; Admin setting on the portlet to a value of &#034;mainstyle17&#034;, the orange-themed stylesheet.
    Perhaps I'm not setting the preference properly. Sniffing the HTTP headers between the gadget and portal servers, I do see:
    [HTTP_CSP_GLOBAL_GADGET_PREF] => Portal-Style=mainstyle17
    (I also tried it with Portal%u002DStyle, but neither works)
    The remote server header portlet doesn't seem to be picking up the fact that there is an admin pref to override the main page's stylesheet. Did I create the portlet wrong, or am I setting the preference incorrectly, or what? Thanks

  • Style sheet with ADF

    Hi,
    I want to use Style sheet in my ADF project. I use the 'styleclass' component for each of my field in the jsp page. But I dont see any effect on my jsp page. Is there any thing to be added to web.xml or faces-config.xml files?
    Please let me know as I need this soon.
    Thanks,
    Haripriya.S

    Hi,
    I tried to have a custom skin in my application. I basically need a blue background for my application in all the pages.
    Here is the code that I added in my stylesheet (rebillSkins.XSS). I have also configured the path of the stylesheet in adf-faces-skins.xml file.
    Code:
    <style name="AFDarkBackground">
    <property name="background-color">#c5d4e9</property>
    </style>
    <style selector="af|body">
    <includeStyle name="AFDarkBackground"/>
    </style>
    But when I run my application I get the white backgroud as before. Am i wrong in my code anywhere? Please could you help me?
    Thanks,
    Haripriya.S

  • Using a style sheet with iterator tags

    I am trying to color every other row in a result set that uses iterator tags to display the results.
    Does anyone know how to do this? I am trying to do this with a style but nothing happens.

    for(int i=0;i<size;i++) {
    String colour="";
    if(i%2==0)
    colour="#ffffff";
    else
    colour="#cccccc";
    out.println("<TR bgcolor="+colour+">");
    }

  • Does Struts frame work supports Onclick function or not ...?

    HI,
    Does TLD support Onclick() onMouseOver Function or not ...?

    What? Haven't you read what this forum is about?
    By the way STRUTS just copies the attribute to underlying html (meaning the language, not the string) tag (if onclick is allowed, as you can easily check reading tld or pressing Ctrl+Space in any IDE). So support depends on the browser. Bye.

  • Hi i want to how to use DTO in struts frame work.

    hi all,
    i want to display content on jsp pages using DTO object.
    in my application one jsp page for user input. foruser input i am creating one action form for this. and also one DTO class for handing action form .
    my main aim is elimunate the actionclass coding thrugh DTOclass .
    this is my problem.
    can you tell me how to do this.if any solution please forward me .
    my email address is [email protected]

    Please ignore my previous answer. RowSetDynaClass can be implemented DTO but this will only solve half of your problem. RowSetDynaClass can be used to retrieve the data from the database. RowSetDynaClass cannot be used to encapsulate the data from a Form to take to the database. For this you can use a HashMap or BeanUtils classes.
    There are a few examples of implementing those. But I am still looking for a good one.
    Is there any point to use RowSetDynaClass to retrive info from DB if you are going to use a HashMap/BeanUtils to get the information from the Form? Should we only use HashMap/BeanUtils for transport the information back and forth between DB and View?
    Message was edited by:
    gabinux06

  • Fresher  working  on  struts  frame  work.

    what should i exactly do to become good web developer ?
    which part should i concentrate more (jsp,actions,model)?

    Start by learning how to find the correct forum for your question. This isn't it.

  • Can anyone guide me in Validation Frame Work of Struts

    Hi Guys , can anyone guide me on Validation Framework, Template Framework & tiles.I.e some of the best resources which can guide me there, As I am new to STRUTS Frame work.Better dont insist on google etc engines.Just let me know the best of the best which U feel.
    Thanx for the help in advance,
    Venu.

    Hi,
    See if the following are of use to you:
    http://struts.apache.org/userGuide/dev_validator.html
    http://www.reumann.net/do/struts/lesson1

Maybe you are looking for

  • Not able to get the full screen in Youtube with latest firefox

    Hi All,   I was using the FF 3.0.10 came with ArchLinux pacman. Recenty I downloaded the latest FF from mozilla website and put that in /opt/firefox. I am able to do all other things in it except watching the full screen flash video from Youtube. The

  • Huge Delay in Photoshop CS4 features

    Hey. I've download Photoshop CS4 and running it in trial mode. When I use the brush tool for example, the delay in it actually printing on the paper after I click and drag is like 1-2 seconds. I have a pretty good PC, 2.4ghz @ quad. Any ideas?

  • Is it a Bug? Integration between Dreamweaver and Fireworks is broken in somewhere?

    I can not upload images related my topic here but you can see it in the same topic at http://www.fireworksguruforum.com/index.php?showtopic=14282 I use CS3 Suite. It is a big trouble for me in working on real pages. Integration is broken in somewhere

  • Reg::Error in XMLDecryption algorithm for adapter module in SAP PI

    Hi Experts, I have developed a custom java code for encryption and decryption for XML to be included in adapter module in SAP PI using SAP netweaver.My decryption code is working fine for stand alone java application.But when I create EJB project and

  • User exit/BADI for Me53n

    Hi everyone, We come across a requirement in ME52N/ME53N i.e.,if Requisitioner  field is blank in contat person tab( item level ) it has to take default vale as Created by . Please suggest me in which BADI/EXIT i need write the code. I have checked a