-
1. Re: Newbie need help
peterj Apr 9, 2008 11:50 AM (in response to hassane)Try placing the standard-1.1.2.jar file into the WEB-INF/lib directory.
-
2. Re: Newbie need help
hassane Apr 9, 2008 12:07 PM (in response to hassane)but how am i gonna indicate to jboss that the jstl is in the WEB-INF/lib ?
-
3. Re: Newbie need help
peterj Apr 9, 2008 12:09 PM (in response to hassane)You don't need to. The jar contain the *.tld files, each of which contains the uri. The servlet container will find them.
-
4. Re: Newbie need help
hassane Apr 9, 2008 12:39 PM (in response to hassane)progress! now it runs but i don't get the content that should be returned by "include response.jsp" after submitting the form. >.<
-
5. Re: Newbie need help
peterj Apr 9, 2008 12:42 PM (in response to hassane)The if test is done on display of the form, not in submit.
-
6. Re: Newbie need help
hassane Apr 9, 2008 12:51 PM (in response to hassane)yeah i mean i never get the result of the test, no matter how i change the condition
all it does displaying is the form :/
i tried this same example on glassfish and it worked, i don't know what's still missing here -
7. Re: Newbie need help
hassane Apr 9, 2008 1:04 PM (in response to hassane)i'll struggle with this thing, thanks a lot Peter you were a great help :)
-
8. Re: Newbie need help
peterj Apr 9, 2008 1:09 PM (in response to hassane)I just now tried your jsp, and it works for me. After submitting the page, it refreshes with the contents of response.jsp showing.
What is the layout of your war file? Run:
jar -t your.war
and post the output. -
9. Re: Newbie need help
hassane Apr 9, 2008 1:24 PM (in response to hassane)the command runs but doesn't output anything and doesn't terminate...does it take a long time?
-
10. Re: Newbie need help
hassane Apr 9, 2008 1:33 PM (in response to hassane)here's how the war looks like :
META-INF
-- MANIFEST.MF
WEB-INF
-- web.xml
-- classes
-- lib
---- jstl.jar
---- standard.jar
index.jsp
response.jsp -
11. Re: Newbie need help
peterj Apr 9, 2008 1:37 PM (in response to hassane)Try removing jstl.jar, you do not need to provide it, JBossAS already has a copy.
As far as I can tell, it should work.
If you ask for response.jsp directly, what happens?
[ur]http://localhost:8080/hello1/response.jsp[/url] -
12. Re: Newbie need help
hassane Apr 9, 2008 1:47 PM (in response to hassane)if i remove the jstl.jar an exception occures :
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport
if i go to the url : http://localhost:8080/hello1/response.jsp
i get : Hello, ${param.username}!
i tried also : http://localhost:8080/hello1/response.jsp?username=sss
same thing : Hello, ${param.username}! -
13. Re: Newbie need help
peterj Apr 9, 2008 2:06 PM (in response to hassane)I forgot you were using 4.0.2, it doesn't come with jstl.jar. Also, I have been using 4.2.2.
Any particular reason you are using 4.0.2? -
14. Re: Newbie need help
hassane Apr 9, 2008 2:35 PM (in response to hassane)i downloaded and ran iit on the 4.2.2 and it works now :/
is the 4.0.2 had problems?