Jump to content

Struts In My Jsp File. Need Help!


skaterdav85
 Share

Recommended Posts

So im completely new to jsp and struts, but ive been given a task to figure part of it now and im stuck.Instead of using a static jsp include, i need to do a struts call using the ajax method. and it references an xml file. However, it doesnt work, and I am totally lost. Any help would be greatly appreciated! :)xml file related to header:

<package name="main" extends="struts-default">	 		<action name="header">			<result>/jsp/header.jsp</result>		</action></package>

struts call

<s:url action="header" id="header_url"/><s:div id="header" theme="ajax" href="%{header_url}"/>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...