Jump to content

Struts In My Jsp File. Need Help!

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}"/>

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...