Struts question - message-resources

Hi,
I'm trying to do someting which should be pretty straight forward, but can't figure it out. In my application.properties file I have a setting. (DEBUG = true). I can spit this value out in my jsp easy enough using
<bean:message key="DEBUG"/>
But what I want to do is be able to decide in the jsp (using some logic) if the flag is set to true, then show some hyperlinks (for debugging purposes).
What I kinda want to do is this (i know this doesnt work)....
<logic:equal name="message?" property="DEBUG" value="true">
<p>debug mode</p>
     .. print some stuff
</logic:equal>
Obviously I'm not getting a handle to a bean here & thats why it doesnt work. But is there a simple way to do this. I dont want to code this property into into a bean - there must be some way of doing it.
I was looking around on the web and found a site where somebody mentioned that a "messages" bean is created and put in the session. If this is true then I could possibly get the above syntax to work, but I dont know how to get the name of the bean - (message doesnt work)
Any help would be greatly appeciated
Paul

I don't think the logic tags are tied into struts like the bean and html tags. The only way I know of is to get the message resources the hard way...
<%
MessageResources mr = (MessageResources)application.getAttribute(Globals.MESSAGES_KEY);
Locale locale = (Locale)session.getAttribute(Globals.LOCALE_KEY);
pageContext.setAttribute("DEBUG", mr.getMessage(locale, "DEBUG"));
%>
<logic:equals name="DEBUG" value="true">
That should work, I think.

Similar Messages

  • Cannot find message resources under key org.apache.struts.action.MESSAGE ?

    Hi All,
    I am getting the following error.. while running a simple application in struts.
    Cannot find message resources under key org.apache.struts.action.MESSAGE ?
    As I have searched in google but could not find the concreate example so please help and give me a proper answer..
    my struts-config.xml file is as .....
    <code>
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
    <struts-config>
    <!-- ========== Form Bean Definitions ============ -->
    <form-beans>
         <form-bean name="login" type="test.struts.LoginForm" />
    </form-beans>
    <!-- ========== Global Forward Definitions ========= -->
    <global-forwards>
    </global-forwards>
    <!-- ========== Action Mapping Definitions ======== -->
    <action-mappings>
    <action
         path="/login"
         type="test.struts.LoginAction"
         name="login"
         input="/jsp/LoginView.jsp"
         validate="true">
         <forward name="valid" path="/jsp/MainMenu.jsp" />
         <forward name="invalid" path="/jsp/LoginView.jsp" />
         </action>
    </action-mappings>
    <message-resources null="false" parameter="test.struts.MessageResources"/>
    </struts-config>
    </code>
    And my LoginView.jsp file is as:
    <code>
    <!-- LoginView.jsp -->
    <%@ taglib uri="/struts/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/struts/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/struts/WEB-INF/struts-logic.tld" prefix="struts" %>
    <HTML>
    <HEAD><TITLE><bean:message key="title.login" /></TITLE></HEAD>
    <BODY>
    <bean:message key="heading.login" />
    <html:errors />
    <html:form action="/login">
         <p>
         <bean:message key="label.userId" />:
         <html:text property="userId" size="10" />
         <br>
         <bean:message key="label.passWord" />:
         <html:password property="passWord" size="10" />
         <br><br>
         <html:submit>
              <bean:message key="button.submit" />
         </html:submit>
    </html:form>
    </BODY>
    </HTML>
    </code>
    MessageResources.properties is as :
    <code>
    button.submit=Send for Verification
    error.no.userId=<li>User ID is a required field</li>
    error.no.passWord=<li>Password is a required field</li>
    error.invalid.login=<li>The User ID and/or Password are invalid. Please try again.</li>
    errors.footer=</ul><hr>
    errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
    label.userId=User ID
    label.passWord=Password
    heading.login=<H2>Enter your user information</H2>
    title.login=Login Screen
    title.mainmenu=Welcome
    heading.mainmenu=<H1>Welcome!</H1>
    label.userType=<H2>You are authorized to use this system as a</H2>
    </code>
    Please reply soon.
    Thanks in advance
    Amitindia

    Hi All,
    I am getting the following error.. while running a simple application in struts.
    Cannot find message resources under key org.apache.struts.action.MESSAGE ?
    As I have searched in google but could not find the concreate example so please help and give me a proper answer.. my struts-config.xml file is as .....
    <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts- 
      config PUBLIC "-//Apache Software Foundation//DTD Struts
    Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-
    config_1_0.dtd"> <struts-config> <!-- ========== Form Bean
    Definitions ============ --> <form-beans> <form-bean name="login"
    type="test.struts.LoginForm" /> </form-beans> <!-- ========== Global Forward Definitions ========= --> <global-forwards> </global-
    forwards> <!-- ========== Action Mapping Definitions ======== --> <action-mappings> <action path="/login" type="test.struts.LoginAction" name="login" input="/jsp/LoginView.jsp" validate="true"> <forward name="valid" path="/jsp/MainMenu.jsp" /> <forward name="invalid" path="/jsp/LoginView.jsp" /> </action> </action-mappings> <message-resources null="false" parameter="test.struts.MessageResources"/> </struts-config>
    And my LoginView.jsp file is as:
    <!-- LoginView.jsp --> <%@ taglib uri="/struts/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/struts/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/struts/WEB-INF/struts-logic.tld" prefix="struts" %> <HTML> <HEAD><TITLE><bean:message key="title.login" /></TITLE></HEAD> <BODY> <bean:message key="heading.login" /> <html:errors /> <html:form action="/login">
    <bean:message key="label.userId" />: <html:text property="userId" size="10" /> <br> <bean:message key="label.passWord" />: <html:password property="passWord" size="10" /> <br><br> <html:submit> <bean:message key="button.submit" /> </html:submit> </html:form> </BODY> </HTML>
    MessageResources.properties is as :
    button.submit=Send for Verification error.no.userId=<li>User ID is a required field</li> error.no.passWord=<li>Password is a required field</li> error.invalid.login=<li>The User ID and/or Password are invalid. Please try again.</li> errors.footer=</ul><hr> errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul> label.userId=User ID label.passWord=Password heading.login=<H2>Enter your user information</H2> title.login=Login Screen title.mainmenu=Welcome heading.mainmenu=<H1>Welcome!</H1> label.userType=<H2>You are authorized to use this system as a</H2>
    Please reply soon. Thanks in advance Amitindia                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Struts message-resource problems in jboss

    Hi,
    I'm fairly new to jsp/servlets and I'm trying to use the struts framework.
    I have a html file with the struts bean taglib defined and the following line :
    <bean:message key="index.title" />
    In struts-config.xml I have the following :
    <message-resources parameter="MyAppResources" />
    And I put MyAppResources.properties in WEB-INF/classes
    I then add the files to myapp.war and deploy it in jboss, but when I try to load the page I get the following exception :
    javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
    Any help would be greatly appreciated!!!

    and if, after deploying, you delete the war file? Does it work then?
    Problem seems to be that in a war file the directories arent as the class loader expects them, I think.

  • [Struts] Datasource and message-resource

    In my web application I use JBoss Application server.
    I've defined datasource parameters in jboss-config.xml.
    Must i insert the same parameters in struts-config.xml? why?
    How i can use message-resource?
    Thanks.
    Message was edited by:
    PremierITA
    Adding question

    u should use sturts-config for the entry becoze ur entry should be ur application specific,it should not be ur server specific....if u do not use wd strut-config then ur app may not run at any other place(server)...
    i do not have to much any idea an JBoss...
    bye

  • Cannot find message resources under key

    Hi All,
    I get the following error in the JSP page in weblogic 9.2 environment. The same JSP works fine in 8.1
    Cannot find message resources under key ${language}' javax.servlet.jsp.JspException: Cannot find message resources under key ${language} at org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103) at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294) at org.apache.strutsel.taglib.bean.ELMessageTag.doStartTag
    The web.xml entry:
    <servlet><servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>application</param-name>
    <param-value>com.ccrg.resources.common.ApplicationResources</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    struts-config.xml entry:
    <message-resources parameter="resources.ApplicationResources"/>
    <message-resources parameter="resources.TextResources_Profile_en" key="TEXT_RESOURCES_PROFILE_en"/>
    <message-resources parameter="resources.TextResources_Profile_fr" key="TEXT_RESOURCES_PROFILE_fr"/>
    the login.jsp:
    <%@ taglib uri="/WEB-INF/avis-html.tld" prefix="avishtml" %>
    <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
    <%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>
    <%@ taglib uri="/WEB-INF/struts-logic-el.tld" prefix="logic-el" %>
    <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
    <c:set var="language" value="TEXT_RESOURCES_PROFILE_${SiteLanguage}/profile"/>
    </c:if>
    <bean-el:message key="profile.login.pi.memberLogin" bundle="${language}"/>
    thanks,
    Balaji

    Hi Balaji,
    Did you find any solution ?
    I have the same problem.
    Thanks in advance!

  • Struts - Firfefox messages: No input attribute for mapping path /editNxtMod

    Hi!
    I'd like to create an admin application which is based upon a simple database table. The list shows already, but the detail of selected record doesn't. When I click to a record, the Firefox writes "No input attribute for mapping path /editNxtModuls". What does it mean? Maybe bad configuration files?
    Please help me!
    Thank Yoy!
    Here my code:
    <struts-config>
         <data-sources />
         <form-beans>
              <form-bean name="NxtModulsForm" type="forms.NxtModulsForm" />
         </form-beans>
         <global-exceptions />
         <global-forwards>
              <forward name="error" path="/error.jsp" />
         </global-forwards>
         <action-mappings>
              <action input="/index.jsp" path="/listNxtModuls"
                   type="actions.ListNxtModulsAction">
                   <forward name="list" path="/NxtModuls/list.jsp" />
              </action>
              <action name="NxtModulsForm"
                   path="/editNxtModuls" scope="request"
                   type="actions.EditNxtModulsAction" validate="true">
                   <forward name="edit" path="/NxtModuls/edit.jsp" />
              </action>
              <action path="/saveNxtModuls"
                   type="actions.SaveNxtModulsAction" />
              <action input="/NxtModuls/edit.jsp" name="NxtModulsForm"
                   path="/processNxtModuls">
                   <forward name="save" path="/saveNxtModuls.do" />
                   <forward name="cancel" path="/cancelNxtModuls.do" />
              </action>
              <action path="/cancelNxtModuls"
                   type="actions.CancelNxtModulsAction" />
         </action-mappings>
         <controller />
         <message-resources parameter="resources.application" />
    </struts-config>
    *****************list.jsp*************
    <td>                         <a href="editNxtModuls.do?modul_id=<bean:write name="nxtmoduls" property="modul_id"/>">
    <bean:write name="nxtmoduls" property="modul_id"/>
    <a/>
    </td>
    *****************edit.jsp*************
    <html>
         <h2>Edit</h2>
         <html:errors/>
         <body>
              <html:form action="processNxtModuls.do">
                   <table border="1">
                        <tr>
                             <td>Modul name: </td>
                             <td><html:text property="modul_name" size="20" maxlength="20" /></td>
                        </tr>
                        <tr>
                             <td>Synonym name: </td>
                             <td><html:text property="synonym_name" size="20" maxlength="20" /></td>
                        </tr>
                   </table>
                   <html:submit value="Save" onclick="go('saveNxtModuls')"/>
                   <html:submit value="Cancel" onclick="go('cancelNxtModuls')"/>
              </html:form>
         </body>
    </html>
    *********************action******************
    public class EditNxtModulsAction extends CommonAction {
         public EditNxtModulsAction() {
         @Override
         public ActionForward commonExecute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response) throws Exception {
              NxtModulsForm myForm = (NxtModulsForm)form;
              try {
                   if (request.getParameter("modul_id") == null) {
                        throw new OwnException("The modul_id parameter was not returned!");
                   Long ModulId;
                   try {
                        ModulId = new Long(request.getParameter("modul_id"));
                   catch(Exception e) {
                        throw new OwnException("The modul_id parameter is not a number!");
                   NxtModulsBean OneRecord = new NxtModulsBean();
                   OneRecord = myManager.getRecord(ModulId);
                   myForm.setModul_name(OneRecord.getModul_name());
                   myForm.setSynonym_name(OneRecord.getSynonym_name());
              catch(OwnException e) {
                   System.out.println(e);
                   myErrors.add("label",new ActionError("error.get_record_failed"));
                   saveErrors(request, myErrors);
                   mapping.findForward("error");
              return mapping.findForward("edit");
    }

    The config file looks ok to me.
    The Action looks like you aren't taking full advantage of Struts.
    You shouldn't have to call request.getParameter() - you should define an action form which picks up the parameters, and does the validations/conversions for you.
    Maybe try this:
    <html:link action="/editNxtModuls" paramId="modul_id" paramName="nxtmoduls" paramProperty="modul_id" /><bean:write name="nxtmoduls" property="modul_id"/>
    </html:link>Edit: Reads error message
    No input attribute for mapping path /editNxtModuls
    This means that the form validation for this action failed, and it is attempting to return control to the sending page so that you can fix the error.
    Check the forms.NxtModulsForm validate() method to see if validation would pass/fail.
    The fix would be to put an "input" attribute into the action
    <action name="NxtModulsForm"
    path="/editNxtModuls"
    scope="request"
    type="actions.EditNxtModulsAction"
    validate="true"
    input = "list.jsp">
    <forward name="edit" path="/NxtModuls/edit.jsp" />
    </action>
    Cheers,
    evnafets

  • Message Resource Error

    Hi,
    I've written a Struts application which uses i18n,
    I'm getting the following exception
    javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:107)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856).
    Please help me .....

    See:
    http://struts.apache.org/struts-action/userGuide/building_view.html
    The easiest thing to do is to store your application .properties files in your application's classes folder (WEB-INF/classes). Then in your struts-config file you just add:
    <!-- message resources -->
    <message-resources parameter="ApplicationResources"/>
    Assuming you have ApplicationResources.properties, ApplicationResources_xx.properties. Make sure you put this tag in the relevant place for your struts-config DTD.
    You also need to make sure you have an XML parser available (and not too many), so basically check you have an Xerces jar in your classpath somewhere. With tomcat this means putting the jar in the relevant directory (i.e. WEB-INF/lib)

  • Struts errror message

    javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE
    I already have in web.xml
    application = ApplicationResources
    I already checked that all the entries exists in the ApplicationResources.properties
    as a parameter for action servlet, but still getting this message.
    Oliver

    I posit that it is not irrelevant, but rather crucial. The OP is not using the html <form> tag, but rather the Struts <html:form> tag which converts the action= attribute to the appropriate query-string equivalent. I give more detail here:
    web.xml maps all *.do urls through the Struts servlet
    struts-config defines an <action> with name='/foo'
    author's jsp file uses Struts custom <html:form> tag with attribute action='foo'
    this action= value MUST MATCH a struts-config action name value (sans *.do ending)
    this design relieves the jsp author of having to know the web.xml servlet-mapping details
    dlgrasse

  • Message resources from page flow

    How can I access the ResourceBoundle declared at the top of the page flow, from
    the page flow?

    I have a question that goes along with this...
    Can you add formatting with any of these different bundle options? Since
    8.1 SP2 now has the attribute "accessKey" on buttons, we'd like to be able
    to underline the letter we are using for the accessKey. Our attempt at
    using the message bundle just puts the formatting inside the button value.
    When the jsp displayed this was the value shown for the button text: <u> S
    </u>ubmit
    Is this possible to do without using javascript? One of our team members
    found a script that adds the underline, but there is alot of code to
    underline one letter.
    Ideas?
    Thank you!
    Wendy
    "John Rohrlich" <[email protected]> wrote in message
    news:[email protected]...
    Gus,
    Your welcome.
    You don't need to get the bundle and pass it. You can access it directly
    from the JSP. If these are validation error messages you can use the
    <netui:error> tag. If the string you want to access is not for displaying
    validation errors you'll want to access the strings in another manner. The
    documentation in
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conDatabindingXScript.html
    shows at least 3 approaches. Here is the relevant section from that
    document.
    bundle
    The bundle data binding context references properties that you define in a
    message resources file, which allows you to implement internationalizedweb
    applications by not hard-coding text labels in your JSP pages.
    For example, in your page flow controller class, you can add an annotation
    such as the following:
    * @jpf:controller
    * @jpf:message-resources resources="labels.Messages"
    public class Controller extends PageFlowController
    { ...In this example, the naming convention is that the message resources
    file must be located in the project's /WEB-INF/classes/labels directory,and
    the file must be named Messages.properties.
    In the Messages.properties file, you might have a property such as:
    nameLabel=Name Then in your JSP page, you can use a data bindingexpression
    such as the following:
    <netui:label value="{bundle.default.nameLabel}"/> Alternately, you can use
    the key attribute on the @jpf:message-resources annotation:
    In your page flow controller class annotation:
    * @jpf:controller
    * @jpf:message-resources key="foo" resources="labels.Messages"
    public class Controller extends PageFlowController
    { ...Assume that the Messages.properties file in the
    /WEB-INF/classes/labels directory is the same as shown in the previous
    example. In the JSP page, you could use a tag such as the following:
    <netui:label value="{bundle['foo/jpfDirectory'].nameLabel}"/> In this
    case, your page flow controller class file is/jpfDirectory/Controller.jpf.
    >
    Another option is to use the <netui-data:declareBundle> tag. For example,in
    your JSP page:
    <netui-data:declareBundle name="someMessages"
    bundlePath="com/foobar/resources/WebAppMessages"/>This tag declares abundle
    that can be referenced in a data binding expression, such as in the
    following example:
    <netui:label value="{bundle.someMessages}"/> For more information, see the
    topics about the @jpf:message-resources Annotation and the
    <netui-data:declareBundle> Tag.
    "Gus" <[email protected]> wrote in message
    news:[email protected]...
    First of all, thanks!
    I want to get a string from the bundle and pass it to a JSP in therequest.
    I have defined the resources at the top of the JPF, as specified in thehelp:
    @jpf:message-resources resources="mensajes"
    The question is how can I get a string from the mensajes.properties
    file.
    >>
    Gus
    I would be better able to answer your question if I knew what you
    wanted
    to
    do. Are you trying to display the strings from the bundle?
    john
    "Gus" <[email protected]> wrote in message
    news:[email protected]...
    How can I access the ResourceBoundle declared at the top of the pageflow,
    from
    the page flow?

  • How to get bundled message resource in validation.xml?

    Hi,
    Is it possible to get a bundled message resource in the validation.xml? Basically i want to do the following validation:
    <form name="testForm">
             <field property="name" depends="required">
                  <arg0 key="form.testForm.name" />
             </field>
    </form>But the message "fom.testForm.name" is stored in a resource file stated as below in struts-config.xml:
    <message-resources parameter="com.test.TestResources" key="test"/>Means if u want to use this message in jsp, u need to add bundle="test". In this case, how to write the validation? Possible to get this message?

    u can give your message key value pair the default
    application resource bundle..Do u mean that here i could only use default application resource messages? Other resource messages could not be used for validation?

  • Access message resource without facescontext

    Hi
    I am developing a JSF application which involves periodic schedulers running in the background, ie Java threads that are CRON-triggered, using notation similar to below:
    @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "cronTrigger", propertyValue = "10 * * * * ?") })
    public class MyClass {
    ...code
    }The problem i have is that i am now trying to access the message resource bundle, which would normally be possible in my Java class using the following code:
    FacesContext context = FacesContext.getCurrentInstance().getApplication().getMessageBundle();However, it seems that when running a CRON-triggered thread, the facescontext is returned as null - i'm not entirely sure why. My question is, is there an alternative, more "static" way of accessing the message resource bundle when the facescontext is not available?
    Thanks in advance
    -Rich

    Thanks for your reply.
    I have tried hard-coding the message bundle name as you suggest, and the code to retrieve the message bundle now looks like this:
    ResourceBundle bundle =  ResourceBundle.getBundle("messages", Locale.ENGLISH,
                                     getCurrentClassLoader(params));("messages" is the name i've defined in faces-config.xml)
    However i know get the exception:
    java.util.MissingResourceException: Can't find bundle for base name messages, locale en
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
    Am i missing something?
    Thanks, Rich

  • Using EL variable in struts bean:message tag(not struts EL tag)

    Is there any work around to use an EL variable inside struts bean:message tag as key:
    I have like this:
    <bean:message key="${bean.keyName}"/>
    which is throwing error , I know this can be resolved by using struts-el tags but i cannot use them for specific reasons.
    I dont want to use bean:define tag to define my 'bean' and then use like this:
    <bean:message key="<%=bean.getKeyName%>"/> (this actually works, but i want to use EL variable)
    Is there any work around to use EL variable and make the message display on the jsp.
    i tried multiple ways like scriplets and jsp:useBean but nothing worked, Please let me know..
    Thanks in advance

    Im pretty sure that EL does not work in the normal struts tag unless its struts-el tag.Have you tried it?
    As I said, in a properly configured JSP2.0 container you can use EL expressions anywhere you could traditionally use a standard runtime expression <%= expr %>.
    What server are you using? What JSP version?
    The Struts-el tags were written so that you could use EL with struts in JSP1.2 containers.
    The c_rt tags were written so you could use runtime expressions with JSTL tags in JSP1.2 containers. Their use was discouraged even then. Now I consider their use absolutely unnecessary.
    Please read this thread: http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0
    Cheers,
    evnafets

  • Replacing JBO error messages with Struts error messages

    I would like to display Struts error messages on an HTML form instead of the JBO error messages when a user submits a form with data entry error. Has anybody done that? Do I need to extend the DataForwardAction class and write JAVA code to do it or is there a more elegant way?

    Could someone please answer this? As I understand, Steve Meunch says: "our prescriptive architecture's best practice is to implement all validation in your entities" but this is talking more about rules, I think, than about error messages that are customized to specific pages and fields.
    Thanks,
    Jeff

  • Error message "resource does not exist"

    C6; have unistalled and reinstalled ovi store three times; now I get into the store, but when attempting to download app, get error message "resource does not exist". what is that???

    hey guys just updating you all.. i wrote previously how my ovi store wasn't working, it gave me an error message 'resource does not exist'. i did soft/hard reset, also uninstalled ovi store and reinstalled STILL it wasn't working. It lasted a day. And today it's working fine. i think it was a problem with their server. It sorted it self out
    But guys i did contact the team, and i got a reply that said i should do the following if it still doesn't work:
    1. GO TO MENU
    2. GO TO INTERNET
    3. CLICK ON WEB
    4.GO TO OPTIONS
    5. GO TO CLEAR PRIVACY DATA
    6. DELETE CATCHE AND COOKIES
    That should apperantly work.
    If not guys, then i wouldn't worry. Just like mines, yours should sort it self out

  • HT201317 i have a few small videos on my phone that can be viewed perfectly well and they transferred onto my ipad and were ok for about a week and now i get the message resource unavailable ? any suggestions

    i have a few small videos on my phone that can be viewed perfectly well and they transferred onto my ipad and were ok for about a week and now i get the message resource unavailable ? any suggestions

    i have a few small videos on my phone that can be viewed perfectly well and they transferred onto my ipad and were ok for about a week and now i get the message resource unavailable ? any suggestions

Maybe you are looking for

  • Move transaction open interface

    I import move transaction through Move transaction open interface. The 11i open interface user guide tells that for WIP transaction completion, I need to insert a row into WIP_MOVE_TXN_INTERFACE, and also a line into CST_COMP_SNAP_INTERFACE. What is

  • Replace Special Characters in a String

    Let's say someone copies the folowing list and pastes it into a Javascript prompt box: 302304 305678 245675 How do I manipulate the string so it reads: 302304 305678 245675 In other words, how do I replace the manual line breaks in a string with spac

  • How to display confirm message in APEX pl/sql process

    I have a pl/sql process that selects success messages from a database table. These messages need to be displayed to the user and confirmed (only one button, to acknowledge/dismiss the mssage) along the way. Is there a way to do this within the proces

  • Is It Too Late to Create a Version Set?

    I have several photos that I edited and saved, but I did not save them as version sets.  Now I would like to convert each of them to a version set -- the edited photo on top of the original photo.  Is it too late to do that? Thanks for any suggestion

  • Icons acting up

    Whenever I restart my computer the icons appear in a different position and then i will move them back to the configuration i want and sometimes some of them will not silect it is like they bcame part of the desktop picture. what is wrong and how do