Problem while setting object directly from tag

2007-10-24 Thread jignesh(india)
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

iframe to disply jasperreports generated pdf in struts 2

2007-10-24 Thread carmi_cd
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

Re: conditional statement in struts2

2007-10-24 Thread carmi_cd
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?

RE: conditional statement in struts2

2007-10-24 Thread Deepak Kumar
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

2007-10-24 Thread jignesh(india)
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: How to get initialized at startup

2007-10-24 Thread vamsi
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

Configure XWork TextProvider with struts.properties

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

Problem with findForward(null) (Struts 1.1)

2007-10-24 Thread Himstedt, Maik (EXTERN: T-Systems on)
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

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

2007-10-24 Thread Dave Newton
"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

Re: Validation of Ajax Tags

2007-10-24 Thread chengas123
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)

2007-10-24 Thread Antonio Petrelli
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

[S2] validation annotation problem

2007-10-24 Thread lbastil
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

[S2] Change struts-default.xml content

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

struts 2 action messages / action errors

2007-10-24 Thread Brian Relph
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

Re: How to get initialized at startup

2007-10-24 Thread Brian Hawkins
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: >

Re: struts 2 action messages / action errors

2007-10-24 Thread Jim Cushing
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

Validation Best Practices?

2007-10-24 Thread Sean Kleinjung
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: [S2] Change struts-default.xml content

2007-10-24 Thread cilquirm
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:-) > >

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

2007-10-24 Thread patb23
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: about Struts 2.0.9 portlet example ...

2007-10-24 Thread Guillaume Bilodeau
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

[S2] [S2.0.9] v. Ajax

2007-10-24 Thread Dave Newton
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

struts2 run time error

2007-10-24 Thread sagarlotiya
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

2.0.9 OptionTransferSelect

2007-10-24 Thread Brian Trzupek
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: -

Struts 2 and Tomcat JDBCRealm

2007-10-24 Thread Leena Borle
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

Re: about Struts 2.0.9 portlet example ...

2007-10-24 Thread Nils-Helge Garli Hegvik
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).

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

2007-10-24 Thread Igor Vlasov
This action cause an error. I will write in struts.xml:

26 matches