Hi,
I have a plain vanilla servlet and I want to "include" via the
RequestDispatcher mechanism the rendered output of a struts page. Here's
the code I have:
ServletContext ctx = servletConfig.getServletContext();
RequestDispatcher rd =
ctx.getRequestDispatcher("/modules/foo/Hom
Hi,
Am building an application in struts2 and tiles. My requirement is to
retrieve an image blob from mysql database and display the image in a jsp
using img tag as below..
img src=""
Part of my struts.xml is as below:
I figured it out.
In myClass, I have an enum listing the different state values. My
AVAILABLE_STATES variable was placed inside the curly braces for the enum.
This inadvertently placed the AVAILABLE_STATES variable inside the enum and
caused Struts 2 to throw an error message.
DavidZaz wrote:
>
I'm trying to access a static constant from a JSP page in Struts 2.0.14, but
it is not working.
My JSP page:
Java code:
package org.my.company;
import java.util.ArrayList;
import java.util.List;
public Class myClass {
public static final List AVAILABLE_STATES = getStates();
public static
1 = Struts 1
2 = Struts 2
On Mon, Jan 4, 2010 at 10:06 AM, Balwinder Kumar
wrote:
> Hi Paul,
>
> Thanks for insight.
>
> 2 = Major release version. This is the architecture number.
>
> Can you please tell me how exactly this architecture number is decided, I
> mean what kind of changes in archite
I sent this tiles issue the wrong list.
Sorry for crossposting to struts and tiles.
BTW:
Got it working with an additional import statement:
Main.jsp
main.jsp:
navigation.jsp
tiles2:
main.jsp:
Hi Rakesh,
use preparable interface and in prepare method initialize anything
that is necessary to show that page.
Best greetings,
Pawel Wielgus.
2010/1/4, Rakesh K nair :
>
> Hi
>
> In my struts2 jsp page there is a "selection list".I am populating the
> "list" from action class before rendering
7 matches
Mail list logo