Re: [S2] Change struts-default.xml content

2007-10-24 Thread Igor Vlasov
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).

Struts 2 and Tomcat JDBCRealm

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

2.0.9 OptionTransferSelect

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: -

struts2 run time error

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

[S2] [S2.0.9] v. Ajax

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

Re: about Struts 2.0.9 portlet example ...

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

Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs

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

Re: [S2] Change struts-default.xml content

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:-) > >

Validation Best Practices?

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

Re: struts 2 action messages / action errors

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

Re: How to get initialized at startup

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: >

struts 2 action messages / action errors

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

[S2] Change struts-default.xml content

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

[S2] validation annotation problem

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

Re: Problem with findForward(null) (Struts 1.1)

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

Re: Validation of Ajax Tags

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

Re: Problem with findForward(null) (Struts 1.1)

"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

Problem with findForward(null) (Struts 1.1)

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

Configure XWork TextProvider with struts.properties

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

Re: How to get initialized at startup

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

Re: conditional statement in struts2

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

RE: conditional statement in struts2

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

Re: conditional statement in struts2

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?

iframe to disply jasperreports generated pdf in struts 2

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

Problem while setting object directly from tag

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