title: Creating jsp pages with struts2 containing forms and other elements
body: <p>i am working on a struts2 project. in the view layer i need to create forms which have images, hyper links, text, etc. which are not struts2 component tags. As a result when i try to use both of these in my page they are separated as in the struts 2 form components are displayed separately and images and other stuff are displayed separately. How do i make page in which all these stuff lie within the region of the form without separation or unwanted linefeed. </p>
  
  <p>This is a sample problem......</p>
  
  <p><code>&lt;s:form action="xyz.action"&gt;
  &lt;s:textfield name="name"/&gt;
  &lt;img src="abc.png"&gt;
  &lt;s:textfield name="other info"/&gt;
  &lt;s:submit/&gt;
  &lt;/s:form&gt;</code></p>
  
  <p>now what i expect is an image which is displayed between the 2 textfields. but what i get is that image is loaded at  a different location(above the entire form). I will also need to use hyper links text in a similar way.</p>