A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
set the strut tag
sameera liyanage
Ranch Hand
Joined: Nov 25, 2008
Posts: 643
posted
Apr 30, 2009 04:40:21
0
is there any tag library need for bellow code
<%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <title>Struts 2 Control Tag Example</title> </head> <body> <s:set name="technologyName" value="%{'Java'}"/> <s:if test="%{#technologyName=='Java'}"> <div><s:property value="%{#technologyName}" /></div> </s:if> <s:elseif test="%{#technologyName=='Jav'}"> <div><s:property value="%{#technologyName}" /></div> </s:elseif> <s:else> <div>Technology Value is not Java</div> </s:else> </body> </html>
it shows error in the first line "uri="/struts-tags" "
Nishan Patel
Ranch Hand
Joined: Sep 07, 2008
Posts: 676
I like...
posted
Apr 30, 2009 05:18:44
0
hi,
you have to add Struts 2 jar file into your Build path..
Please Make sure you have include six jar for basic Struts 2.0 Application.
1 ) struts2-core-2.1.2
2 ) xwork-2.1.1
3 ) freemarker-2.3.12
4 ) ognl-2.6.11
5 ) commons-collections-3.2
6 ) commons-logging-1.1
Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD
Java Developer
,
My Blog
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Apr 30, 2009 06:30:57
0
I think you mean Struts 2.1. You'll also need commons-io and commons-fileupload; IIRC the framework won't start up without them (although this may have changed).
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: set the strut tag
Similar Threads
S:elseif not working correctly
s:radio and display tag
Run the strtus 2.0 Program with control tag but no output
Struts 2 - If test of parameter value
Checking page sessions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter