You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yuva Chandolu <yc...@ebates.com> on 2001/01/02 02:05:34 UTC

JspException:Missing resources attribute org.apache.struts.action .MESSAGE

I have installed service pack 8 to Weblogic 510. and now I am getting 

  javax.servlet.JspException: Missing resources attribute
org.apache.struts.action.MESSAGE 
  at org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:361)

What could be the solution to this?

Thanks
Yuva

performance and problem

Posted by Jon Teichrow <jo...@msoft.com>.
I am writing a struts-based page which needs to collect a 
"Start Time" and an "End Time".  My customer has requested
that I use 3 drop down single select controls for the hours,
minutes and AM/PM indicator (no worries about internationalization).
As a result, I proceeded to develop the page as follows (with
similar controls for "startTimeMin" (which has 60 options)
"startTimeAMPM", "endTimeHours", "endTimeMin" and "endTimeAMPM"):

<form:select property="startTimeHour">
  <form:option value="null">  </form:option>
  <form:option value="01">01</form:option>			
  <form:option value="02">02</form:option>			
  <form:option value="03">03</form:option>			
  <form:option value="04">04</form:option>			
  <form:option value="05">05</form:option>			
  <form:option value="06">06</form:option>			
  <form:option value="07">07</form:option>			
  <form:option value="08">08</form:option>			
  <form:option value="09">09</form:option>			
  <form:option value="10">10</form:option>			
  <form:option value="11">11</form:option>			
  <form:option value="12">12</form:option>			
</form:select>

Couple of problems I encountered:

1. The resulting page is quite slow because of the 30 lines
of jsp code emitted for each "<form:option>".  I'm new to struts
so I imagine there's probably a better way to do this (like maybe
a custom tag that takes a "min" and "max" for the number options
to display).  But anyway, that was my initial brute-force attempt
and mainly I wanted to pass on this performance feedback that
lots of options will slow a page down significantly.

2. There is a translation-time error when all the options are
coded and the page is being loaded (this page probably has about
200 "<form:option> tags).  The error I get is "Illegal target of 
jump or branch".  I believe this to be a struts problem.  This is 
reproducible by copying the above code and putting about 125 options
in it.

Jon