In the LPEX editor for JSP pages, is it possible to display text inside 
JSP scriptlets in another colour than text outside JSP scriptlets? For 
example, in the following example, it would be useful if the text User 
description: (which is text that is directly displayed on the resulting 
Web page) would be displayed in another colour than the source of the 
scriptlet. Is there some kind of Preference to accomplish this? 

<% 
try 
{
   AS400 anAS400  = new AS400(system, username, password); 
   User aUser = new User(anAS400, username); %>
   User description: <%= aUser.getDescription() %>
   <P>
   <% 
   MessageQueue mq = new MessageQueue(anAS400); 
   Enumeration msgs = mq.getMessages(); 
   while (msgs.hasMoreElements()) {  
          AS400Message msg = (AS400Message)msgs.nextElement(); %>
          <%= msg.getText() %> <br />
          <% 
   }
}
catch (Exception e)
{
   e.printStackTrace();
}
%>

Ewout

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.