This action cause an error.
I will write in struts.xml:
Re: about Struts 2.0.9 portlet example ...
It is true that inter portlet communication is not supported in the
JSR168 spec, but there are ways to exchange data between portlets in a
less proprietary manner. The easiest way is to use the shared session
scope which is available to all portlets in the same portlet
application (same war file).
Hi,
I am trying to add user authetication using tomcat JDBCRealm in my
struts-2 application. But I don't seem to get it working.
Has anyone tried it ? I have configured web.xml and my context.xml
for "Form" based validation. but after I click submit, it goes back to
error page described in web
I am trying to upgrade our app to 2.0.9 and having difficulty in the
optiontransferselect tag.
Here is a sample of what a typical OTS tag looks like in our app:
-
Hi
I am using Coverter for following thing.
After submiting form when i will come back to the same page at that time it
gives me following error.
ERROR [runtime]
Method public boolean
org.apache.struts2.components.ListUIBean.contains(java.lang.Object,java.lang.Object)
threw an exception when
Howdy,
If you have an with "method=''" or "name='method:foo'"
attributes and set "theme='ajax'" is the method attribute/name-thing ignored?
Thanks,
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Ok thanks, that's good to know.
There is a strong recommendation coming from a colleague to use the IBM
Portlet API on WebSphere Portal, particularly because of its support for
inter-portlet communication - from what I'm told, this isn't supported by
the standard JSR-168 API. I'm not too keen on
Hi,
I am using RAD 7.0 with WAS test environment.
My Struts2 app is not working (There is no Action mapped for action name -
error) in the test environment. I exported my project as WAR and deployed it
in the app server. This time it worked. I observed the same behavior even
with the Struts Blank
you can redefine it in your struts.xml, much like how you would specify the
object factory to override the default object factory .
-a
Igor Vlasov wrote:
>
> Hello.
> I want to change some information in struts-default.xml.
>
> I can move it to classes directoty and do any change:-)
>
>
Hey,
I have a question concerning where validation should be performed, and
what people feel best practices are. Specifically, I have a number of
business objects that validate parameters supplied to their setters
for correctness, and throw IllegalArgumentExceptions if something is
invalid. For ex
Struts 2 allows you to style them, but using themes. Themes are both
more powerful and more complicated than what Struts 1 offered.
Before you dive into customizing a theme, see if you can style it
entirely with CSS. You're best better is probably to "View source" in
your browser to see the
I did what Sartini suggested. I implemented the ServletContextListener
interface and added it as a listener to my application. I use it to create
and take down some database connections that I need for my application. It
works really well.
Brian
On 10/24/07, vamsi <[EMAIL PROTECTED]> wrote:
>
Does struts2 handle the css-styling of action errors and messages the same
as struts1? In struts 1, i defined some keys in the message bundle
errors.prefix and errors.suffix that were automatically used to style the
html generated by the actionerrors. Is this enabled in struts2?
Thanks,
Brian
Hello.
I want to change some information in struts-default.xml.
I can move it to classes directoty and do any change:-)
Is there any more sofisticated method to do the same from struts.xml?
For example i want to change TextProvider:
>From
to
--
View this message in context:
htt
I use model driven actions and want to use validation by annotation.
so I have somethings like:
@Validation
public Class ...Action implements ...{
...
@VisitorFieldValidator(message = "", appendPrefix = false)
public TestModel getModel() {
return testModel;
}
...
in the m
2007/10/24, Himstedt, Maik (EXTERN: T-Systems on) <
[EMAIL PROTECTED]>:
>
> return findForward(null);
> ...
> Debug shows that the code in the action method is executed, but the
> browser shows an empty page after executing the action. I would expect
> that simple nothing would happen (as the r
Yes, I did add the tag. When I submit the form I get a
message from the tag saying the site field is required and
am returned to the same page with all the input fields completely blank.
Shouldn't they contain the input I entered when filling out the form? The
same validation failure occurs r
"Himstedt, Maik (EXTERN: T-Systems on)" wrote:
>return findForward(null);
This might work, but IIRC you should just return null if you're handling the
result yourself.
> Debug shows that the code in the action
> method is executed, but the browser shows
> an empty page after executing the
Hi,
I have an action that is to accomplish three things: searching for
protocols, download a single protocol, deleting a single protocol. When
downloading a protocol no new page etc. has to be accessed because I
handle the response by myself.
So my action contains the following:
if(!protocolForm
Hello
I try to use my own TextProvider implementation.
1)I try to use this by adding
to struts.xml.
This caused
Unable to load bean: type:com.opensymphony.xwork2.TextProvider
class:karak
I am writing my own servlet for this as I didn't found anything.
As I feel I have more control on that.
post it if you got solution for this one.
- Original Message -
From: "Brian Hawkins" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, October 23, 2007 3:06 AM
Subject: How to get initialized at
As per my local set up here it is working ok.
I have taken local method in action class named getPdfValue()
public int getPdfValue() {
return 1;
}
and it is working ok.
Jignesh.
carmi_cd wrote:
>
> would this code function correctly..that if pdfValue==1 it will display an
> iframe containing
Please check http://www.roseindia.net/struts/struts2/struts-2-tags.shtml
Thanks
-Original Message-
From: carmi_cd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 24, 2007 2:47 PM
To: user@struts.apache.org
Subject: Re: conditional statement in struts2
would this code function corre
would this code function correctly..that if pdfValue==1 it will display an
iframe containing a pdf generated from jasperreports else a strut div will
be displayed containing an html format report?
hi i want to be able to display a pdf generated from a action class that uses
jasperreports to produce
pdf format report, i want it to be displayed in a portion of my browser
using iframe or something the same like
. how can i do this? please i'm new in implementing struts 2..thanks
in advance fo
Hi,
I am having problem while setting my selected list object directly to my
bean class.
My code looks like given below:-
public MyAction extends ActionSupport {
...
public List getItemList() {
return ("a list with itemobjects in it");
}
public Us
26 matches
Mail list logo