Re: Extending Struts Tags

2008-09-25 Thread Narayana S
Thanks Jishnu and Albert. now i am overriding doStart and doEnd tag also. here i am getting the visibility value from DB and calling Component.inject if visibility is allowed. your inputs helped to quickly find out the solution,,, Thanks a lot. On Wed, Sep 24, 2008 at 7:39 PM, Alberto

Accessing UIBean property value in action class

2008-09-25 Thread ManiKanta G
Hi, I've written a class that extends UIBean (for my custom tag) and defined few custom properties (which represents the attribute values of the custom tag). I want to access those attribute values in the requested action class. Can some one help me with this? Regards, ManiKanta

Re: How to access request & session objects in jsp using struts2 tags

2008-09-25 Thread Alexander Baetz
Gurpreet-Singh schrieb: Hi All, I am developing WML application using struts2 and tiles on weblogic server 10. Struts2 version: 2.0.11 I am facing 2 problems: 1. I am generating a url to the external site using and as follows: http://localhost:8080/test"; encode="true">

Re: Struts 2.0 start error

2008-09-25 Thread Lukasz Lenart
Hi, As you're using Pell Multipart Plugin [1], please follow installation guideline and download pell library from internet http://cwiki.apache.org/S2PLUGINS/pell-multipart-plugin.html Regads -- Lukasz http://www.lenart.org.pl/ -

Re: How to access request & session objects in jsp using struts2 tags

2008-09-25 Thread Gurpreet-Singh
Hi All, I am developing WML application using struts2 and tiles on weblogic server 10. Struts2 version: 2.0.11 I am facing 2 problems: 1. I am generating a url to the external site using and as follows: http://localhost:8080/test"; encode="true"> > Hi, > >I am trying to identify whet

Re: How to access request & session objects in jsp using struts2 tags

2008-09-25 Thread Gurpreet-Singh
Hi All, I am developing WML application using struts2 and tiles on weblogic server 10. Struts2 version: 2.0.11 I am facing 2 problems: 1. I am generating a url to the external site using and as follows: http://localhost:8080/test"; encode="true"> > Hi, > >I am trying to identify whet

FileUploadInterceptor problem with fielderror

2008-09-25 Thread cuong.van.truong
Hello, List. I am trying to do a fileupload with allowtypes and maximumSize. Everything work fine except when a filetype submited inn not allowed and fielderror get values. I get the fielderror message and everything when error triggered om fileuploadinterceptor. But after this fielderror, I ca

Writing custom S2 tag

2008-09-25 Thread ManiKanta G
Hi, I m trying to write a custom tag for S2. I've prepared taglib.tld file specifying the tag name & its attribute. I've taken size as one of its optional attribute. But I don't know what to write after this. When I looked into the source from S2 distribution and some other plugin sources, I've f

Re: ApplicationListener issue

2008-09-25 Thread Laurie Harper
Sure, that ought to work; but so should the code shown. If getApplication() is returning null, setApplication() must have been called with a null argument. That shouldn't be happening. Martin, can you set a breakpoint (or add logging) in your setApplication() method to confirm this? If that's

RE: ApplicationListener issue

2008-09-25 Thread Martin Gainty
this may be what you're looking for ActionContext context = ActionContext.getContext();then use context.getApplication() to acquire your Map http://www.opensymphony.com/webwork/api/com/opensymphony/xwork/ActionContext.html#getApplication() and to acquire specific keyed value try get(DATABASE_KE

Re: ApplicationListener issue

2008-09-25 Thread martin
Hi RDB, Thanks for your answer. I think I'm doing it OK though, let me paste here the code of my app: import java.util.Map; import org.apache.log4j.Logger; import org.apache.struts2.interceptor.ApplicationAware; import database.DBConnector; import com.opensymphony.xwork2.ActionSup

Re: ApplicationListener issue

2008-09-25 Thread [EMAIL PROTECTED]
Not knowing the whole story, I may be off target... However, your code below is suspect to me: public class MyAction extends ActionSupport implements ApplicationAware { public DBConnector getDatabase() { Map application = getApplication(); Object db = application.get(DATABASE_KEY); } At

Struts2 DisplayTag dynamic table

2008-09-25 Thread dynamicd
Heres how I got the dynamic tables working with Display Tag and Struts2 I pass in the list of columnNames and chartDATA from the controller and heres my jsp Struts 2.0.11.2 DisplayTag 1.1.1 ajaxtags 1.3 rc7 <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib uri="http://displaytag.sf.net"; pr

Re: ApplicationListener issue

2008-09-25 Thread Martín Mauri
Hi Laurie, I've checked all the points that you suggested, and I think that #3 could be a possibility. The thing is that the database object is not null when I do the context.setAttribute(DATABASE_KEY, database); But in the Action that implements the ApplicationAware interface I did the followi

Re: Unexpected Action processing

2008-09-25 Thread Laurie Harper
The framework did tell you what the problem was, it just wasn't telling you about the problem you wanted to know about ;-) When a form is submitted, Struts will perform type conversion and, if configured, validation on the input data. If there is an error in either process, Struts will automat

How to validation/workflow with fileUpload?

2008-09-25 Thread Earle Flynn
How is it possible to use validation/workflow interceptors in combination with fileUpload interceptor?   For the config below, if I submit an html form that includes the file tag, struts returns a blank white page instead of the intended success result. This occurs regardless of whether form is

Struts 2.0 start error

2008-09-25 Thread ert
Server give an error while it starts struts 2.0 application. The error is this: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.PellMultiPartRequest - bean - jar:file:/C:/myEclipseWorkspace/.metadata/.plugins/com.ge

Re: Unexpected Action processing

2008-09-25 Thread [EMAIL PROTECTED]
Turned out to be a field validation error on a java.net.URL. I've corrected the problem. I was surprised that the framework didn't tell me what the problem was. It just returned false when I finally overloaded the validate() method and checked the return value of super.validate(). Thanks for eve

RE: Unexpected Action processing

2008-09-25 Thread Eric Nelson
This error usually happens when there's a type conversion problem. There is probably a field in your form that is posting to your ActionBean that isn't a part of Strut's standard included type converters. Or, if it is part of the standard converter, you may have formatting problems. For instance,

Re: Unexpected Action processing

2008-09-25 Thread Alberto Flores
"result input" typically means that an Exception has been thrown in your execute method (default one) and you dont' have a mapping for it in your struts.xml. Try adding something like: /WEB-INF/error.jsp Where error.jsp has something meaningful such as: and also Hope this helps! [EMAI

Re: Refreshing image with AJAX request

2008-09-25 Thread ManiKanta G
Thanks a lot Frank & Manos. I'll try right away the proposed ways. ManiKanta

Unexpected Action processing

2008-09-25 Thread [EMAIL PROTECTED]
I've googled this, but can't seem to come up with the right way to ask the question. I'm not a struts super-user. I don't mind hunting for the info, but I need a push in the right direction. Here is the problem: I have a form with the following action: Upon submission of this f

Re: Refreshing image with AJAX request

2008-09-25 Thread Frank W. Zammetti
On Thu, September 25, 2008 12:07 pm, Manos Batsis wrote: > Exactly, thus an XMLHttpRequest can be used update an image in two ways: > > * The image URL can be passed as information to the HTTP response, > wrapped in XML or not (i.e. XMLHttpRequest.responseText). That can be > used to update an ima

Re: Refreshing image with AJAX request

2008-09-25 Thread Manos Batsis
Frank W. Zammetti wrote: Ajax by its nature deals with textual information only, be it HTML, XML, JavaScript or plain text. Exactly, thus an XMLHttpRequest can be used update an image in two ways: * The image URL can be passed as information to the HTTP response, wrapped in XML or not (i.e.

Re: Refreshing image with AJAX request

2008-09-25 Thread Frank W. Zammetti
Ajax by its nature deals with textual information only, be it HTML, XML, JavaScript or plain text. It has no capability to handle binary data (talking about XMLHttpRequest only, there are other Ajax techniques that can achieve it). So, when you make an Ajax request to get an image, you'll get the

Re: "Preparable" influence hibernate transaction management when using "OpenSessionInViewFilter"

2008-09-25 Thread Alberto Flores
All the Preparable Interface does (along with the prepare interceptor) is to use reflection to call the prepare method) at some point in time (depending on which order you configured it). It you don't have any code in the prepare method, then, nothing should occur with your transaction. It se

Re: Is there an Eclipse-Plugin like Nitrox was?

2008-09-25 Thread Alexander Baetz
I dont know nitrox but currently i'm using alveole http://mvcwebproject.sourceforge.net/ it's strongly beta, but quickly supported. There are some missing functions yet. but it works pretty good. Greetings, Alexander Pitt Leidner schrieb: Hi ML, after a long break without using struts, I'm

AW: Struts2: How to access indexed property (map) with dynamic index?

2008-09-25 Thread Keim, Markus
Doh, I can't believe that I skipped that variation. It's the (inner) single quotation marks that I'd never ommited (since it's a string-index). So, you're (almost) perfectly right. does the job. Thx, you made my day! 8) -Ursprüngliche Nachricht- Von: Musachy Barroso [mailto:[EMAIL PROT

Re: Struts2: How to access indexed property (map) with dynamic index?

2008-09-25 Thread Musachy Barroso
try: #fooMap[#item.fooId] On Thu, Sep 25, 2008 at 9:45 AM, Keim, Markus <[EMAIL PROTECTED]> wrote: > Hello all, > > is it possible (and how) to access the values of an indexed property > (a map) with the Struts2 "property" tag by providing a dynamicaly > retrieved/calculated index? > > In detail

Re: "Preparable" influence hibernate transaction management when using "OpenSessionInViewFilter"

2008-09-25 Thread Gabriel Belingueres
I suspect that in case A) you are just creating a new POJO in memory (never linked to the Hibernate's Session), that's why the OpenSessionInViewFilter does nothing. In case B), you are loading into the Session the POJO in the prepare method. When submit the form, it is loaded again before action's

Struts2: How to access indexed property (map) with dynamic index?

2008-09-25 Thread Keim, Markus
Hello all, is it possible (and how) to access the values of an indexed property (a map) with the Struts2 "property" tag by providing a dynamicaly retrieved/calculated index? In detail: Let's assume that "fooMap" is a simple Map that's provided by a Struts2 action. That map holds a unique key (ID

Re: Struts 2 And OGNL

2008-09-25 Thread Dave Newton
--- On Thu, 9/25/08, sikandar sikandar wrote: > Here is good article on struts 2 and OGNL > > http://struts2-java.blogspot.com/2008/09/struts-2-and-ognl.html Hmm, whoever wrote that blog article must be one of the authors of Struts 2 in Action_, because at least one of the sentences was lifted

Refreshing image with AJAX request

2008-09-25 Thread ManiKanta G
Hi, I m returning an image through custom result from action, and when the page launches the image is getting displayed correctly. But when I clicked the link to refresh, image is coming from action, but as I've specified the targets="" as the div, (instead of img tag) some garbage values are bei

Re: Getting acknowledgment for an AJAX request

2008-09-25 Thread ManiKanta G
Thanks. Will try this. ManiKanta

Is there an Eclipse-Plugin like Nitrox was?

2008-09-25 Thread Pitt Leidner
Hi ML, after a long break without using struts, I'm back now to this framework and found that this nice tool nitrox (M7) was isn't longer supported. Is there any Struts-Editor availible as an Eclipse-Plugin which ist worthy to give it a try? -- yours sincerely Pitt

[S2] JSP Exception handling

2008-09-25 Thread Diego Manilla Suárez
Hi. It seems that Struts 2 is ignoring the JSP standard approach to exception handling. If I write a JSP that throws an exception, the error JSP is not loaded even if I put a page directive with errorPage pointing to a JSP with isErrorPage="true". The exception is written to stdout. What do

Re: Question abt jsp and struts 1.3

2008-09-25 Thread Laurie Harper
Pankaj Gupta wrote: Hi, I am using struts 1.3. I have kept jsp folder parallel to WEB-INF folder. Inside jsp pages I have images folder, where I am keeping the images referred by jsp. In jsp I giving src of images as as : "images/image-1". So when I access the jsp directly, then I can see th

Re: ApplicationListener issue

2008-09-25 Thread Laurie Harper
Martín Mauri wrote: Hi all, I'm having an issue while implementing an App Listener for my App. Thing is that the ApplicationListener appears to be working fine, as from the logs I can see that the contextInitialized method is being invoked. Inside the method I do this call, same way as the Mail

Struts 2 And OGNL

2008-09-25 Thread sikandar sikandar
Here is good article on struts 2 and OGNL http://struts2-java.blogspot.com/2008/09/struts-2-and-ognl.html Regards _ Connect to the next generation of MSN Messenger  http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-u