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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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]
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
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
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).
22 matches
Mail list logo