I have a jsp that uses JSTL to manage the value of the beans and I need to align two elements without touching the rest of the page (that was not written by me)
I have two rows like this:
AAAAAAAAAAAAAAAA element one
element two
IF "AAAAAAAAAAAAAAAA" (a variable) has a value I want to align "element two" with "element one" (that has AAA before, so is more at right than the second one)
So I want to obtain this (only if AAAA.. has a value):
AAAAAAAAAAAAAAAA element one
element two
the part is:
<c:out value='${variableA}'/> <c:out value='${elementOne}'/>
<c:if test="${variableA != ''}">
--I need to insert spaces here--
</c:if>
<c:out value='${elementTwo}'/>
I tried inserting many  , but they get inserted even when the "if" is false. I tried with div and p but without success and I tried valorizing a JSTL variable with many " " but obviously they get trimmed when converted into html. Can someone help me putting some spaces over there? :( Thank you very much :)