I’ve a requirement to include an html in jsp using struts2.
I used
<s:include value="objBarcodeCertificationTaskForm.strTrainingPage"></s:include>
the html path has to developed dynamically in action and set in the form bean
objBarcodeCertificationTaskForm.setStrTrainingPage(strTrainingPage);
But when i run the jsp i get an error saying “Requested source unavailable”
Is there a way to proceed using <s:bean> tag?
I tried something like this and it’s worked perfectly
I suggest you to observe the value whether you getting proper jsp name and you will get the above error message when it’s not to find the resource. using following identify the value.