• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

display errors  RSS feed

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am able to display my struts error in jsp but Is it possible to display my errors in a fixed place?
If there are any errors in jsp file, it appears to the user that other stuff in jsp is moving down and if there are no errors my jsp stuff is moving up. I want to avoid this and reserve a specific place to display errors.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you create a table at the top of your page and make a row then a column. then add  (space) into the column. at the side of this space enter your struts error.

it should then be displayed in the same place all the time because its a place holder.

regards
 
vas reddy
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply
I tried some thing like this, but still I have the same problem. Can you look at this, and let me know if I miss anything

thanks

<table>
<tr> <td>   <span class="errorsRed"> <html:errors property="numInstallments"/> </span> </td>
</tr>
<tr> <td>   <span class="errorsRed"> <html:errors property="appNum"/> </span> </td>
</tr>
<tr> <td>   <span class="errorsRed"> <html:errors property="premium"/> </span> </td>
</tr>
<tr> <td>   <span class="errorsRed"> <html:errors property="newAmtbooked"/> </span> </td>
</tr>
<tr> <td>   <span class="errorsRed"> <html:errors property="newDate"/> </span> </td>
</tr>
</table>
 
Danny Carson
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No probs. Enter '& n b s p ;' into {in here} without the spaces in between the letters and no single quotes, as the space I referred to in my last post. Its not letting me type it normally as it shows as a blank space (how ironic, using html lol)

Should be:



[ August 22, 2008: Message edited by: Danny Carson ]

[ August 22, 2008: Message edited by: Danny Carson ]
[ August 22, 2008: Message edited by: Danny Carson ]
 
vas reddy
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your time, but it could not work for me. Do i need to set any other values/parameters..
thanks

<table>
<tr><td> <html:errors property="numInstallments"/></td></tr>
<tr><td> <html:errors property="appNum"/></td></tr>
<tr><td> <html:errors property="premium"/></td></tr>
<tr><td> <html:errors property="newAmtbooked"/></td></tr>
<tr><td> <html:errors property="newDate"/></td></tr>
</table>
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vas
Try using <input type="label" value="<html:errors/>"/>
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!