Re: Pass parameter to javascript function

2005-06-12 Thread Van
On 6/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Avjit its not working! As someone else already pointed out on this thread, you can only use the Java expression syntax for an *entire* attribute. You can't use it the way it was shown in Avjit's suggested example for you. It has to be:

Re: Pass parameter to javascript function

2005-06-12 Thread amitava . basak
Thanks martin, its so simpledidn't click in my mind. Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information

Re: Pass parameter to javascript function

2005-06-12 Thread amitava . basak
Avjit its not working! Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended r

Re: Having ttruble with actions and buttons

2005-06-12 Thread Michael Jouravlev
> Ok, here is the problem. When I load up my web app the page loads fine. Which app, what page? Not enough detail, and the question is too generic. > When I try to advance to another web page in my web app all I get is a blank screen. You do not "advance to pages" in Struts. You have to get use

Re: Having ttruble with actions and buttons

2005-06-12 Thread Paul Goepfert
Well I just created a test jsp file to see if I got to the page. I didn't. I just want to be sure about one thing. I am soppose to have multiple actions in my struts config? One for each page? Right? -Paul Frank W. Zammetti wrote: Ok... I probably can't be of too much help then... I've n

RE: Test whether an application resource is empty

2005-06-12 Thread Nitish Kumar
I dont understand some things here, If the application resource is empty above code would throw this error, "Define tag cannot set a null value". So how does this code helps in checking wether an application resouce is empty? Am I missing some thing here? or may be the subject is misleading..

Re: Having ttruble with actions and buttons

2005-06-12 Thread Frank W. Zammetti
Ok... I probably can't be of too much help then... I've never used Velocity. One thing to try though... change your forwards to go to a test JSP... if you get to it, then the problem is in the Velocity side of things (or the forward to the Velocity templates). At least you'll narrow down your

Re: Having ttruble with actions and buttons

2005-06-12 Thread Paul Goepfert
I am forwarding to a web page. The .vm file extension is mapped to org.apache.velocity.tools.view.servlet.VelocityViewServlet. I am using Apache Velocity for my Web page design. Should I be forwarding to Actions? My intention is to go to a Velocity page rather then an html or JSP. -Paul Fra

Re: Redirect after Post and ActionMessage

2005-06-12 Thread Michael Jouravlev
You may want to take a look at the Struts Dialogs: http://struts.sourceforge.net/strutsdialogs/ It is a new development within Struts Application project. It was me who wrote the article on TSS, and I am gradually making these ideas into usable components. DialogAction is an action which uses POST

Confused

2005-06-12 Thread Pierre Thibault
Hello, I am new to Struts and I am a bit confused. I would like some light. I have just installed Tomcat 5 for Java WSDP. Do I need this version to make Struts development or can I use the regular 5.5 version too? I have installed both. I also saw that Struts is listed in the Ex-Jakarta se

Re: Redirect after Post and ActionMessage

2005-06-12 Thread Hubert Rabago
An option is to add the action message as a redirect parameter. This was supported in an earlier ActionRedirect version I was using in my Struts projects (http://www.rabago.net/struts/redirect/), but it was decided that the version that went into Struts core not include this feature. Hubert On 6

RE: Adding parameter to local forwards

2005-06-12 Thread Abhinav Bhatnagar
Thanks! That was new information for me. For my application, the parameter value I want to pass is fixed, so I am doing it in the struts-config path itself, something like this : It works but please advise if it's proper. Regards, Abhinav -Original Message- From: news [mailto:[EMAI

Re: Having ttruble with actions and buttons

2005-06-12 Thread Frank W. Zammetti
What are you forwarding to in this mapping Paul? Is .vm the extension your application uses to map to ActionServlet, in which case you are forwarding to Actions? Or is it something else? Most commonly, the forwards go to JSPs (although not necessarily). You are correct in your thinking with

Re: Having ttruble with actions and buttons

2005-06-12 Thread Paul Goepfert
I am still new too struts so I don't understand why I would need to incluide forwards with names of success and failure in my struts-config. Those forward names just look like their just general forward names that have no real effect on where the page goes. Am I wrong in my thinking? -Paul

Redirect after Post and ActionMessage

2005-06-12 Thread Yuniar Setiawan
Hi all, I'm trying to implement the PRG (post-redirect-get) pattern which was published in theserverside. The magic key is to use redirect="true" in the local forward like this: it works very nice, no more double submit problem when user press Back and Forward button. But the problem is I los

Re: Having ttruble with actions and buttons

2005-06-12 Thread Martin Gainty
Paul- you need forwards defined for both success and failure name identified such as what you see in the struts doc http://struts.apache.org/userGuide/building_controller.html e.g. struts-config.xml HTH, Martin- - Original Message - From: "Paul Goepfert" <[EMAIL PROTECTED]>

Re: displayTag needs session scoped objects for sort/export ?

2005-06-12 Thread Lixin Chu
thanks. I do use hibernate. will take a look how to manage it. On 6/11/05, David G. Friedman <[EMAIL PROTECTED]> wrote: > If you use Hibernate as your DAO layer, you could enable caching so > DisplayTag won't hit the database every time, assuming you have the memory > footprint to support that cac

Having ttruble with actions and buttons

2005-06-12 Thread Paul Goepfert
Ok, here is the problem. When I load up my web app the page loads fine. When I try to advance to another web page in my web app all I get is a blank screen. For every page I have a form.java and an action.java file so I can move through the web app. Here is part of my struts-config file tha

Inserting tiles template into another template

2005-06-12 Thread Martin Benda
Hi! I'm a struts newbie and this is maybe a stupid question, but I really don't know... Consider I have two simple templates (simplified): * template1.jsp * ... * template2.jsp * I want to insert some html code into template2.jsp (e.g. menu.jsp, body.jsp) and then, insert temp

Re: My IncludeAction-where to forward

2005-06-12 Thread Martin Gainty
I respond to this query with a good deal of caution for the implementor My analysis is that you will blow the stack when heaping children of parent Action Classes as actions objects of class RequestProcessor ..lets take a quick view of method processActionCreated protected Action processAct