-
1. Re: insert images into portal-server.war/login.jsp
roy.russo Oct 8, 2006 8:51 PM (in response to rashmi_setty)whats ur jsp look like?
-
2. Re: insert images into portal-server.war/login.jsp
rashmi_setty Oct 8, 2006 11:06 PM (in response to rashmi_setty)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
bhupeshs Oct 9, 2006 9:22 AM (in response to rashmi_setty)
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
bhupeshs Oct 9, 2006 9:23 AM (in response to rashmi_setty)
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
bhupeshs Oct 9, 2006 9:24 AM (in response to rashmi_setty)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 Oct 9, 2006 11:02 PM (in response to rashmi_setty)Why cant we access the images in Portal-server.war as that is also a war file.why is this peculiar behavior?