Property Values (constants)- Struts2

2007-05-24 Thread newtostruts struts
Sorry for such a basic question. What is the right place in struts2 to set constant property values like, FILE_NAME = test.txt ROW_COUNT=10 etc.. and also from that prop file or xml file how do I read it anywhere in the app.. Thx.

Re: in JSP

2007-05-23 Thread newtostruts struts
Yes. That did work.. Thanks Hassan :o) Hassan Schroeder <[EMAIL PROTECTED]> wrote: On 5/23/07, newtostruts struts wrote: > > String role = ; > %> > > Even if I use > > > I'm not able to use ${foo} in my jsp code. If you /must/ use a

Re: in JSP

2007-05-23 Thread newtostruts struts
something like this... <% String role = %> Dave Newton <[EMAIL PROTECTED]> wrote: --- newtostruts struts wrote: > Even if I use > > /> > > I'm not able to use ${foo} in my jsp code. If the action exposes "role" via a getter then &

Re: in JSP

2007-05-23 Thread newtostruts struts
Hassan, How do I do something like this. <% String role = ; %> Even if I use I'm not able to use ${foo} in my jsp code. Hassan Schroeder <[EMAIL PROTECTED]> wrote: On 5/22/07, newtostruts struts wrote: > How do I get the value of this tag

in JSP

2007-05-22 Thread newtostruts struts
How do I get the value of this tag in a JSP variable on the same page. . This prints fine on the page but I'm not able to get this value assigned to a JSP variable. Thanks - Get your own web address. Have a HUGE year through Yahoo! Small Business.

Re: Struts2 DWR parameter issue

2007-05-22 Thread newtostruts struts
n tweak the appropriate bits. newtostruts struts wrote: > I'm trying to use DWR with Struts2. The problem is when I'm trying to build > the row of a table with a link to an action class, I'm not able to send any > params in that link. > > eg: var getUname = function( user ) {

Struts2 DWR parameter issue

2007-05-22 Thread newtostruts struts
I'm trying to use DWR with Struts2. The problem is when I'm trying to build the row of a table with a link to an action class, I'm not able to send any params in that link. eg: var getUname = function( user ) { return '' + user.uname + '' }; This is what I'm trying to do but gett

Re: Init methods in Struts

2007-05-17 Thread newtostruts struts
Dave, That works great. Thank you so much. Dave Newton <[EMAIL PROTECTED]> wrote: --- newtostruts struts wrote: > Could you please explain the ' context listener ' > method you follow. First one I found: http://www.stardeveloper.com/articles/display.html?art

Re: Init methods in Struts

2007-05-17 Thread newtostruts struts
Dave, I don't really have any preferrence at this time, I'll use anything that'll work :o) Could you please explain the ' context listener ' method you follow. Thx Dave Newton <[EMAIL PROTECTED]> wrote: --- newtostruts struts wrote: > new

RE: Init methods in Struts

2007-05-17 Thread newtostruts struts
ugin implements PlugIn { public void destroy() { // holder for things to do } public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { // init your torque } } When you start the server, Torque should be initialized. Let me know if this works. -Original Messag

Re: Init methods in Struts

2007-05-17 Thread newtostruts struts
Anyone please... newtostruts struts <[EMAIL PROTECTED]> wrote: I want to initialize torque in Struts2. I've got the code to initialize torque and it works fine. The problem is where do I put that code. Is there a place like an init method which is called just once? Thx all fo

Init methods in Struts

2007-05-17 Thread newtostruts struts
I want to initialize torque in Struts2. I've got the code to initialize torque and it works fine. The problem is where do I put that code. Is there a place like an init method which is called just once? Thx all for your help. Vinod - Lugga