context « Struts « JSP-Servlet Q&A





1. Access definition name + other proeprties from jsp context    struts.1045723.n5.nabble.com

Dear Tiles Dev, I have a situation where I would like to be able to access the current definition's name from the jsp / page context is doing the rendering. For example: In the JSP I'd like to be able to do something like this: ...

2. could not deserialize the context attribute "org.apache.struts.action.ACTION_SERVLET" java.io.NotSerializableException    struts.1045723.n5.nabble.com

I am using struts 1.2 version and Weblogic 11g. This issue happens sometimes during restart of the server. I searched various forums and couldn't figure out the issue / solution. Let me give you a brief about the struts usage in our project: I have subclassed both 'TilesRequestProcessor' and 'RededployableActionServlet' and I am using those custom classes. Following is the log. ...

4. Re: Access definition name + other proeprties from jsp context    struts.1045723.n5.nabble.com

Thank you for your suggestion Antonio, but I've already tried that approach, and cannot find a way to access the Definition object from the execute() method of a ViewPreparer. Perhaps the Definition could be made part of the ViewPreparer interface in future? Regarding which definition, I think that absolutely there is a single specific definition at the point when rendering occurs. ...

5. @SMDMethod and servlet context    struts.1045723.n5.nabble.com

Hi, in my application there is an action class named ShowSearchResult, which is derived from BaseActionSupport. BaseActionSupport implements ServletContextAware. The app stores some object in the servlet context, e.g. an object for the database connection. Other classes derived from BaseActionSupport have no problem to access the servlet context. In ShowSearchResult there is a method named getRows. I import the jsonplugin and ...

6. Accessing a servlet from a Struts App running in another context.    coderanch.com

Emailed by Tomson Antony Thanks for your reply. But i would like to explain the whole scenario. I am using struts application through which i am contacting the ejbs in the app server. The requirement is that i want to write a file which has been uploaded by the client to the m/c where app server is running. Suppose my web ...