Invalid field value(due to type coversion) in Struts2

2007-10-24 Thread sagarlotiya
Hi Problem in Struts2. I have problem when using OGNL to set the Object directly on Model. For e.g. s:select name=courseImplementation.department list=listPropertySelectionModel.departmentListOfSchool listValue=name / e.g. Final html which is rendered by struts2 select

Problem while setting object directly from s:select 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:- s:select name=user.item list=itemList listValue=name/ public MyAction extends ActionSupport { ... public ListItem getItemList() { return (a

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? s:if test=pdfValue==1 iframe id=reportPreview name=reportPreview

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

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 a

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: user@struts.apache.org Sent: Tuesday, October 23, 2007 3:06 AM Subject: How to

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

[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

[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 bean type=com.opensymphony.xwork2.TextProvider

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

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

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

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

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

[S2] [S2.0.9] s:submit method=.../ v. Ajax

2007-10-24 Thread Dave Newton
Howdy, If you have an s:submit.../ 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

struts2 run time error

2007-10-24 Thread sagarlotiya
Hi I am using Coverter for following thing. s:select name=courseImplementation.department list=listPropertySelectionModel.departmentListOfSchool listValue=name listKey=id / After submiting form when i will come back to the same page at that time it gives me following error. ERROR [runtime]

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: - s:form name=editForm2

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

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