• 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

display errors

 
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/>"/>
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic