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
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
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">
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/
-
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
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
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
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
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
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
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
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
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
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
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 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
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
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
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,
"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
Thanks a lot Frank & Manos.
I'll try right away the proposed ways.
ManiKanta
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
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
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.
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
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
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
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
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
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
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
--- 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
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
Thanks.
Will try this.
ManiKanta
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
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
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
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
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
39 matches
Mail list logo