struts2

How to use Struts2 validation for conditional validation?

Can Struts2 be used for conditional validation? As in, if checkbox "Other" is filled in, then field "otherDetails" must not be empty? Note that I'm looking for Struts2, not Struts1. Any example is greatly appreciated. ...

Full Hibernate Plugin and Struts2 validation

I did all the validations for my actions and when i start tesing no testing was being performed. I figured out FullHibernate Plugin xml doesn't have the validation interceptor, but defining an interceptor stack with basicStack, hibernateSessionInterceptor and validation interceptors doesn't fix the problem. Thanks a lot. ...

Injecting EJB 3 session beans into struts 2 action classes

Hi, Is there a way to inject EJB 3 stateless session beans into struts 2 action classes. Please dont suggest a JNDI look up. I want inversion of control. It would be nice if some one gives me links to illustrations. Ofcourse, I will give you a up vote :). ...

dynamic subdomains and struts2

Hello! I want to create dynamic subdomains on my site. I know how to create it using apache2 mod_rewrite (convert urls like sub.domain.com to domain.com/sub/). But I have one problem: I don't know how my web application learn about this subdomain. How I can do this using Struts2? ...

What is better for SaaS?

Hello! I want to develop SaaS application, that will be used in small companies. Technologies are: Java, Spring, Struts2. I want to host it on my server. What is the better: develop make one copy and one database for one company, or develop the application that can be used for all in one time and use 1 database? ...

Struts2 ognlproblem

Hi All, i've got a strange problem with struts2 : if in a jsp i would like to access to a session variable it's quite simple i just call (for example) <s:property value="%{#session['LoggedUser'].name}"/> if the String 'LoggedUser' is in a variable i can access to them with <s:property value="%{#session[@pkg.ClassName@Var].name}"/> q...

Struts2 VisitorFieldValidator annotation field name error

Hi All, I am wrecking my brain trying to get field names in error messages to be displayed correctly when using VisitorFieldValidator annotation and (for example) RequiredStringValidator annotation in the in the Model Bean, basically I have a CustomerAction with: @VisitorFieldValidator() public Customer getCustomer() { return this....

Parameters charset conversion in struts2

Hello all, I have a struts2 web application which accepts both POST and GET requests in many different charsets, does conversion of them into utf-8, displays the correct utf-8 characters on the screen and then writes them into utf-8 database. I have tried at least 5 different methods for doing simple losless charset conversion of windo...

Struts - struts-taglib.jar not found

I am new to Struts. I downloaded the struts from its website. Now I want to refer struts-html.tld file in one of my JSP files. But when I looked for struts-taglib.jar file in the downloaded struts, I didn't find it. I downloaded Struts2 ...

Struts - In which jar file all the .tld files located

I am developing a Struts based web application. I am new to Struts. I want to use struts-html.tld taglib, provided by struts, in my jsp pages. When I searched on net, I came to know that prior to Struts 1.2.9, we need to locate the .tld files manually. But now these .tld files are packed in .jar files and we need to just use those jar...

struts2 rest plugin on google app engine

I am trying to deploy struts2 with the rest plugin onto the Google app engine... I have copied the showcase files to a GAE project created in Eclipse. The compilation and upload works fine. When I hit the index.jsp, which forwards me to /orders I get a 404. When I check the logs, there is no error, just a warning (as below). The Orde...

How to parse Request URL in Struts 2 ?

Hi, The registered accounts in my web application (Created using struts2) gets a separate site like http://localhost/accountname And each account has its own login page. After registering, the users will get a separate site http://localhost/accountname I want to scan the request URL (in struts2) first and then forward that request ...

How to add CSS to struts2 tags

Hi, I am using struts2 to build a web application and I use struts2 tags extensively. I am not able to apply CSS styles to my struts2 textfields, buttons, labels etc., What is the trick for setting CSS rules to struts2 UI components. Please help ...

SEVERE error in Eclipse Web application Startup

I use tomcat. I am developing a web application using struts2, and I use eclipse as my IDE for development. I get this error Mar 7, 2010 7:38:42 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.sprin...

How to input Date to a Struts2 action from a jsp?

I am facing a lot of problems here in my jsp page. What tag I should use to get a date (yyyy-MM-dd) from user and store it in a Date property of a Struts2 action ? The property in my action is declared to be of java.util.Date. I want the input from jsp page to land in this property. please help. I get Invalid field error (in JSP) if ...

Does Struts2 Application Run on Jboss5.0.0GA??

Does Struts2 Application Run on Jboss5.0.0GA?? Getting the error in struts-default.xml file ...

CSS rules not getting applied in JSPs ?

Im building a web application using struts2. I have an authentication interceptor at the top of all the interceptors (I have set it up as such) which checks whether a user is logged in. If not, it will give a login page as result. In login page, I have some set of standard CSS rules which I use for all the JSPs in the app. But that log...

School Project for final year

I'm in final year of my degree and it is required that i do a final year project. I have decided to do something on adaptive websites that implements customisation, personalisation and basically adaptation via heat maps and weblogs. So for a prototype i would be designing a website for tertairy level students and see if these technologie...

I want to display the contents of the jsp returned from a Struts2 action in the sx:tabbedpanel

Hi Guys, In Struts2 application that I am developing, I am using <sx:tabbedpanel> <sx:div> ... </sx:div> <sx:div> ... </sx:div> </sx:tabbedpanel> to create a set of tabs. In One of the tabs I need a functionality that, when I click a button from within the tab, the action gets executed and the j...

Enable Tiles devMode like Struts' devMode to reload tiles.xml with each request.

Does Apache Tiles have a devMove like Struts that would reload the tiles.xml file with each request? If so, how can this be enabled? ...