You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by sh...@wipro.com on 2007/07/25 05:47:20 UTC

Problem with JSTL tags in MyFaces application

Hi,

                I am using MyFaces 1.1.3 and Facelets 1.1.11 in my web
application. My application server is JBoss 4.0.2. I am using JSP for
login page and in that page I am using JSTL fmt tag library. My EAR file
contains the following structure.

 

x.ear

|

|--- y.war

                |

                |--- *.xhtml

                |-- login.jsp             

                |-WEB-INF

                    |

                    |---lib

                                |

                                |-standard.jar

 

My login page looks like as follows,

 

login.jsp

----------               

<%@ page contentType="text/html; charset=utf-8"
import="javax.servlet.http.HttpServletRequest" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

 

<fmt:setBundle basename="resources"/>

 

<html>

<body>

                        <form name="loginForm" action="j_security_check"
method="post" ONSUBMIT="return validateForm();">

                            <table class="loginTable" cellspacing="8">

                                <th><img src="./images/keys.gif"
border="0" width="32" height="32"></th>

                                <th><fmt:message
key="login.loginHeader"/></th>

                                <tbody>

                                    <tr>

                                        <td
class="loginFieldNames"><fmt:message key="login.userName"/></td>

                                        <td><input name="j_username"
value="" size="18" type="text"></td>

                                    </tr>

                                    <tr>

                                        <td
class="loginFieldNames"><fmt:message key="login.password"/></td>

                                        <td><input name="j_password"
size="18" type="password"></td>

                                    </tr>

                                    <tr>

                                        <td colspan="2"><input
name="loginButton" value='<fmt:message key="login.button"/>'
type="submit"></td>

                                    </tr>

                                </tbody>

                            </table>

                        </form>

</body>

</html>

 

Then if I deployed my ear file in Windows XP machine its working fine.
But if I deploy the same ear in Solaris machine it's deployed
successfully in the server.

But if I request for a login page I am getting error saying that "The
absolute uri: http://java.sun.com/jsp/jstl/fmt can not be resolved in
either web.xml or the jar files deployed with this application." I
goggled and finally I copied the "fmt.tld" file to my WEB-INF directory
and deployed then my problem solved.

 

Can anybody please tell me why it is working in Windows XP and not in
Solaris without this change.

 

Thanks and Regards,

Basha

 

 




The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

RE: Problem with JSTL tags in MyFaces application

Posted by sh...@wipro.com.
No, my Solaris machine is online only when I was running my application.

 

Thanks & Regards,

Basha 

 

________________________________

From: Parag Shah [mailto:adaptives@gmail.com] 
Sent: Wednesday, July 25, 2007 10:26 AM
To: MyFaces Discussion
Subject: Re: Problem with JSTL tags in MyFaces application

 

Was your Solaris machine offline when you ran the app?

--
Regards
Parag

On 7/25/07, shaikyesdani.basha@wipro.com <sh...@wipro.com>
wrote:

 

login.jsp

----------               

<%@ page contentType="text/html; charset=utf-8"
import="javax.servlet.http.HttpServletRequest" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

 

 

Then if I deployed my ear file in Windows XP machine its working fine.
But if I deploy the same ear in Solaris machine it's deployed
successfully in the server.

But if I request for a login page I am getting error saying that "The
absolute uri: http://java.sun.com/jsp/jstl/fmt can not be resolved in
either web.xml or the jar files deployed with this application." I
goggled and finally I copied the "fmt.tld" file to my WEB-INF directory
and deployed then my problem solved.




The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

RE: Problem with JSTL tags in MyFaces application

Posted by sh...@wipro.com.
My Solaris machine is connected to the network but not to the Internet.

 

________________________________

From: Parag Shah [mailto:adaptives@gmail.com] 
Sent: Wednesday, July 25, 2007 10:26 AM
To: MyFaces Discussion
Subject: Re: Problem with JSTL tags in MyFaces application

 

Was your Solaris machine offline when you ran the app?

--
Regards
Parag

On 7/25/07, shaikyesdani.basha@wipro.com <sh...@wipro.com>
wrote:

 

login.jsp

----------               

<%@ page contentType="text/html; charset=utf-8"
import="javax.servlet.http.HttpServletRequest" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

 

 

Then if I deployed my ear file in Windows XP machine its working fine.
But if I deploy the same ear in Solaris machine it's deployed
successfully in the server.

But if I request for a login page I am getting error saying that "The
absolute uri: http://java.sun.com/jsp/jstl/fmt can not be resolved in
either web.xml or the jar files deployed with this application." I
goggled and finally I copied the "fmt.tld" file to my WEB-INF directory
and deployed then my problem solved.




The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

Re: Problem with JSTL tags in MyFaces application

Posted by Parag Shah <ad...@gmail.com>.
Was your Solaris machine offline when you ran the app?

--
Regards
Parag

On 7/25/07, shaikyesdani.basha@wipro.com <sh...@wipro.com>
wrote:
>
>
> login.jsp
>
> ----------
>
> <%@ page contentType="text/html; charset=utf-8" import="
> javax.servlet.http.HttpServletRequest" %>
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
>
>
>
> Then if I deployed my ear file in Windows XP machine its working fine. But
> if I deploy the same ear in Solaris machine it's deployed successfully in
> the server.
>
> But if I request for a login page I am getting error saying that "The
> absolute uri: http://java.sun.com/jsp/jstl/fmt can not be resolved in
> either web.xml or the jar files deployed with this application." I goggled
> and finally I copied the "*fmt.tld*" file to my *WEB-INF *directory and
> deployed then my problem solved.
>