struts 1.3.8 trying to get the rendered output of a struts page from a plain servlet

2010-01-04 Thread Jason Novotny
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

Displaying an image in JSP in struts+tiles project

2010-01-04 Thread Aruna Ponaka
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:

Re: Accessing Static Constants from JSP in Struts 2.0.14

2010-01-04 Thread DavidZaz
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: >

Accessing Static Constants from JSP in Struts 2.0.14

2010-01-04 Thread DavidZaz
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

Re: OT- Versioning in Struts

2010-01-04 Thread Paul Benedict
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

RE: migration to tiles2 - put attribute into request scope?

2010-01-04 Thread Michael Heinen
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:

Re: struts 2 validation error

2010-01-04 Thread Paweł Wielgus
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