Re: Modify JSON Format?

2010-06-22 Thread Rahul Mohan
Hi, I don't think the plugin has any option like that. But, even if you manage to do that how will you ensure that the order of data returned will match the order of grid columns on the client? You have two options: 1. Use a List of List on your action class itself so that the order is prese

Problem accessing a field from an object which is placed in session using the key from property file

2010-06-22 Thread prathima
Hi, We are migrating Struts 1.2 application to Struts2 and I am facing some issues.   I have all the constants defined in a file called SalesConstants.java. It has a constant which is SALES_MKT_CAT ="marketing". In the Action class, an object(marketingProduct) of type Product is placed in session

Re: Page composition strategy

2010-06-22 Thread Brian Thompson
Allow me to throw in a vote for Sitemesh. I've never used Tiles, so I can't directly compare the two, but Sitemesh is quite easy to use and incredibly powerful for this sort of thing. You define it as a servlet filter in your project, and it adds decoration to the requests that come through. The

Re: Page composition strategy

2010-06-22 Thread satyanarayana katta
U should try tiles for this Sent from my iPhone On Jun 22, 2010, at 10:03 AM, "Antonio S." wrote: > Hello. > > I'm a beginner in web development with Struts2 and I'm planning the > structure of my application. Let me tell you my problem. > > With 'page composition strategy' I mean the strateg

Re: one-to-many persistence, ConstraintViolationException

2010-06-22 Thread Ken
Thank you for sharing, Here is something you might find useful: I don't know if you know about MySQL workbench? It will help you define your database schema. It gives a nice graphical layout, it's free... I'm using Ubuntu linux 10.04 and there was some issue, with it where I needed to download

Re: Page composition strategy

2010-06-22 Thread Ken
On Tue, 2010-06-22 at 19:03 +0200, Antonio S. wrote: > So, my questions are: > > 1. Can you recommend the best practice for page composition in Struts2? Stand on the shoulders of others =) > 2. Can I use Struts2 for implementing above mentioned strategies i. and > ii.? How? Look into SiteM

Re: one-to-many persistence, ConstraintViolationException

2010-06-22 Thread Jake Vang
ken, thanks for responding. i got things to work, but i haven't figured out really why it's working (on a conceptual, philosophical level). here's what i did to the code above. 1. for the Company class, i removed the @ForeignKey annotation 2. for the Employee class, i removed the companyId field.

Re: OT: Mail daemon complaint

2010-06-22 Thread Ken
This is the top of what I get when I make a "successful" post: Hi. This is the deliver program at bjtu.edu.cn. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. 02211...@mail.bjtu.edu.cn quota exceed

OT: Mail daemon complaint

2010-06-22 Thread Ken
Every time I've posted a message here the mail daemon either sends me a copy back and fails to post the message to the forum OR sends me a copy back AND posts the message anyway. My issue comes from links probably, I like to point out why something is the way it is and then post a link that suppo

Re: one-to-many persistence, ConstraintViolationException

2010-06-22 Thread Ken
I'm sorry I quickly scanned this and didn't read it in full... Here is my 2 cents. "InnoDB rejects any INSERT or UPDATE operation that attempts to create a foreign key value in a child table if there is no a matching candidate key value in the parent table." So the parent has a valid entry befor

Page composition strategy

2010-06-22 Thread Antonio S.
Hello. I'm a beginner in web development with Struts2 and I'm planning the structure of my application. Let me tell you my problem. With 'page composition strategy' I mean the strategy for making all pages in the application share the same HTML structure (header, left-column, content, right colum

Modify JSON Format?

2010-06-22 Thread Ozu Natsu
Hi, I am using JSON plugin to return data to JQuery DataTable, but format is not compatible with Datatable plugin. I have a collection with a getter function on my struts2 action that is annotated with @JSON annotation. The action returns an array of objects, such as: {"aaData":[",{"age":2,"bree

sx:dateTimePicker disable textfield

2010-06-22 Thread lucas owen
Hi Struts 2 users! I have a jsp in which I allow the users to enter a date: If the user enters anything with wrong format (for instance, ), the datetimepicker changes this value to 01/01/1970 (I dont know why!!) so I want to disable the textbox so that the user only can introduce a date wh

JSF problem with selectManyMenu tag

2010-06-22 Thread slayer666
Good morning, i am trying the JSF selectManyMenu tag and i when i execute the aplication renders this trace log: javax.servlet.ServletException javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) causa raíz java.lang.NullPointerException org.apache.catalina.connecto

Re: How to set a variable in session in the JSP

2010-06-22 Thread Kushan Jayathilake
Hi Mano, Thanks for your reply, i got it sort out :) -- Regards Kushan Jayathilake On Sun, Jun 20, 2010 at 11:58 AM, Mano Dasanayaka wrote: > Hi Kushan, > > You can access the session object using a jsp scriplet and set your > required > variables there. > <% > request.getSession().setAttribu

Re: Jasper Report Problem in HTML format

2010-06-22 Thread Amol Ghotankar
Dear List memebers, I tried it, but it was given error. Error is in struts 2.0.x as bug the work around is mentioned on the following link https://issues.apache.org/jira/browse/WW-2324?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel And IT WORKS. On Mo