6 Replies Latest reply on Oct 9, 2006 11:02 PM by Rashmi Setty

    insert images into portal-server.war/login.jsp

    Rashmi Setty Newbie

      I have placed images in images folder in portal-server.war/images.
      i am accessing the images in login.jsp using img tag.
      but the images are not displayed in login.jsp

      please help
      thx

        • 1. Re: insert images into portal-server.war/login.jsp
          Roy Russo Master

          whats ur jsp look like?

          • 2. Re: insert images into portal-server.war/login.jsp
            Rashmi Setty Newbie

            Hi below is how my jsp looks.
            I am inserting image in jsp using img tag .I have placed the images in images folder under D:\jboss\jboss-portal-2.4.0\server\default\deploy\jboss-portal.sar\portal-server.war
            Please help...
            Thanks in advance!!

            <?xml version="1.0" encoding="utf-8"?>
            <head>
            </head>
            <html>
            <body OnLoad="document.loginform.j_username.focus();">
            
            <form method="POST" action="<%= response.encodeURL("j_security_check") %>" name="loginform" id="loginForm">
             <table width="350" height="200" cellpadding="0" cellspacing="0" class="form">
             <tr>
             <td align="right" width="100">
             Username:
             </td>
             <td align="left">
             <input type="text" name="j_username" value=""/>
             </td>
             </tr>
             <tr>
             <td align="right" width="100">
             Password:
             </td>
             <td align="left">
             <input type="password" name="j_password" value=""/>
             </td>
             </tr>
             <tr>
             <td colspan="2" align="center">
             <input type="submit" name="login" value="Login"/>
             </td>
             </tr>
             </table>
             </form>
            <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
             <tr>
             <td align="center" background="/images/bot_bg.gif"><img src="/images/clear.gif" width="1" height="30" /></td>
             </tr>
             <tr>
             <td height="24" align="center" valign="top" class="text"><br />
             Copyright © 2006 Tata Sky Ltd.<br />
             <img src="/images/trademark.gif" width="500" height="23" /><br /></td>
             </tr>
            </table>
            
            </body>
            </html>


            • 3. Re: insert images into portal-server.war/login.jsp
              bhupesh reddy Newbie


              I am unable to reference any images in portal-server.war, but I able to reference the images in any other context. say the images are in portal-core.war then you can reference it by giving the contextPath followed by the image uri.
              say

              • 4. Re: insert images into portal-server.war/login.jsp
                bhupesh reddy Newbie


                I am unable to reference any images in portal-server.war, but I able to reference the images in any other context. say the images are in portal-core.war then you can reference it by giving the contextPath followed by the image uri.
                say

                • 5. Re: insert images into portal-server.war/login.jsp
                  bhupesh reddy Newbie

                  I am unable to reference any images in portal-server.war, but I able to reference the images in any other context. say the images are in portal-core.war then you can reference it by giving the contextPath followed by the image uri.
                  say

                  <img src="/portal-core/images/copyright.gif" />


                  • 6. Re: insert images into portal-server.war/login.jsp
                    Rashmi Setty Newbie

                    Why cant we access the images in Portal-server.war as that is also a war file.why is this peculiar behavior?