Re: Form doesn't clear

2009-04-20 Thread Jari Fredriksson
> Hi, > Using Struts 1.3, Tomcat 6. > > I have the two following problems: > > 1. I have a screen where I enter some text and call a > struts action to insert it into the database. The action > calls a DAO to do that. > When the screen returns, the values I entered in the text > fields are still

Re: Struts 2 using Quartz

2009-04-20 Thread Johnson nickel
Thanks for your quick response. But , i'm not aware of spring. In struts 2, i want to integrate quartz,for that give any sample or idea. It will be helpful for my further progress. Burton Rhodes wrote: > > Is implemeting Spring in your stuts app an option? If so the Quartz > Spring plugin is

Form doesn't clear

2009-04-20 Thread Mighty Tornado
Hi, Using Struts 1.3, Tomcat 6. I have the two following problems: 1. I have a screen where I enter some text and call a struts action to insert it into the database. The action calls a DAO to do that. When the screen returns, the values I entered in the text fields are still there and I want the

Re: Struts 2 using Quartz

2009-04-20 Thread Zoran Avtarovski
We use spring as standard to setup the struts2 actions so it was a simple matter of adding some config information to the applicationContext.xml file. The spring site has comprehensive documentation. Z. > > > > Hi all, > > I'm using struts 2.0.6. I have requirement to write an logic

Re: Is there a better way?

2009-04-20 Thread Mighty Tornado
Thanks. On Mon, Apr 20, 2009 at 5:27 PM, Lukasz Lenart wrote: > 2009/4/20 Mighty Tornado : > > This works, but is there a better way to do it with Struts? The question > is: > > the jsp page is not an HTML form; it just displays information - can I > use > > the form for this purpose though, and

Re: Is there a better way?

2009-04-20 Thread Lukasz Lenart
2009/4/20 Mighty Tornado : > This works, but is there a better way to do it with Struts? The question is: > the jsp page is not an HTML form; it just displays information - can I use > the form for this purpose though, and if so, should I? It's up to you, the only think, you have to be consistent.

Is there a better way?

2009-04-20 Thread Mighty Tornado
*Struts: *1.3 *Tomcat:* 6.0 *OS:* Mac OS X Hi, I have a sample application I am building, and I got it working, but am not sure that what I have is the best most efficient way to do it. Here is what I have: I have a Home Page with several links, one of which takes me to Family Members page. Th

Re: Struts2 crud application gone wrong

2009-04-20 Thread Bhaarat Sharma
yeah it is a redirectAction :( so now i know why the value for the string is not there. Any workarounds to this issue? One I thought of is to set an attribute and retrieve it in the jsp page? Thanks On Mon, Apr 20, 2009 at 3:57 PM, Dave Newton wrote: > If it's a "redirectAction" then the acti

Re: Struts2 crud application gone wrong

2009-04-20 Thread Dave Newton
If it's a "redirectAction" then the action will be re-instantiated. Dave Bhaarat Sharma wrote: sorry about the typo. as i was trying to give an example and not just copy paste the code I made a mistake. This is what I have in my jsp page. I have verified whether it is because of a typograph

Re: Struts2 crud application gone wrong

2009-04-20 Thread Bhaarat Sharma
I just debugged the code and it seems like the doSave method is called when 'Submit' is hit on the edit page. However, since the doSave is returning Success and based on struts.xml it will redirect to action index then the prepare method for EmployeeAction class is called again and at this time sa

Re: Struts2 crud application gone wrong

2009-04-20 Thread Bhaarat Sharma
sorry about the typo. as i was trying to give an example and not just copy paste the code I made a mistake. This is what I have in my jsp page. I have verified whether it is because of a typographical error but it is not. And since you are saying it cant be because I am just calling a particula

Re: Struts2 crud application gone wrong

2009-04-20 Thread Dave Newton
Bhaarat Sharma wrote: What I wanted to do was that when user edits something and comes back to the listing page, they see a message on top saying id XXX has been modified. However, I think this is not possible because a method name is mentioned in struts.xml. Is that correct? No. to try it o

Struts2 crud application gone wrong

2009-04-20 Thread Bhaarat Sharma
hi guys, i was using the example crud application ( http://struts.apache.org/2.0.14/docs/crud-demo-i.html) as the skeleton for a CRUD like module in my site. But I've ran into a dead end. in this sample applications the package is like this: /WEB-IN

Re: Stateful ejb lose the information

2009-04-20 Thread Stefano Tranquillini
i've done some trial:. an action @InjectEJB(name = "WAP-Shop/TestDeiBeanBean") TestDeiBeanLocal tdb; public String execute() throws Exception { //scb = lookupShopCartBean(); System.out.println("value --> " + tdb.value()); System.out.println("setTrue " + tdb.setTrue(

Re: struts2 show question

2009-04-20 Thread Dave Newton
red phoenix wrote: then I modify struts action,like following: List testList=this.getHibernateTemplate().find(" select col1,col2 from mytable"); request.setAttribute("testList",testList); return SUCCESS; the action dispatch to the same jsp,but this time,the jsp s

Stateful ejb lose the information

2009-04-20 Thread Stefano Tranquillini
Hi all. i've a problem with ejb stateful bean. in my stateful ejb i've this method @Stateful public class ShopCartBean implements ShopCartLocal { @EJB private MGMTLocal man; private Customer customer; public boolean *enableShopping*(String user, String password) { custom

Re: struts2 show question

2009-04-20 Thread Jim Kiley
Oh heck I misread your code there. This is Struts 1 and not Struts 2, isn't it? Sorry about that. jk On Mon, Apr 20, 2009 at 12:08 PM, Jim Kiley wrote: > Have you tried writing a unit test to ensure that testList is populated > after your action executes? I'm pretty sure you'll find that it i

Re: struts2 show question

2009-04-20 Thread Jim Kiley
Have you tried writing a unit test to ensure that testList is populated after your action executes? I'm pretty sure you'll find that it isn't. It looks to me like you're declaring testList to be a local variable within your action method (you're doing "List testList = " instead of "testList = ").

struts2 show question

2009-04-20 Thread red phoenix
I have a table named mytable,it has two cols,col1 and col2,the data are col1 col2 --- John 24 Kate 18 hibernate xml file is follows: Then I user struts2 to get the data by following statement: List testList=this.getHibernateTemplate().find(" from myta

RE: Help with dynamic form id

2009-04-20 Thread Security Management
Doh! I asked too soon, here it is: Then, with JS, document.getElementById('person_').submit(); -Original Message- From: Security Management [mailto:list-subscripti...@secmgmt.com] Sent: Monday, April 20, 2009 10:15 AM To: 'Struts Users Ma

how remain in the same page

2009-04-20 Thread elyes sallem
Hello, i have a struts application, which can be used by different user profile among the profile, there is one who can access some pages so if he try to access to one page , i will diplay a warning message in the depart page so, i wanna know , after checking the user profile in the action, how ca

Help with dynamic form id

2009-04-20 Thread Security Management
I have the following in a jsp, I'm creating hidden forms to submit with javascript when someone clicks on a table row: I get the following HTML generated: /> Is there any way to do it other than not using s:form and using

Struts HttpSession Thread Safety

2009-04-20 Thread Carlo Camerino
Hi, Our application uses struts 1. We are now currently problem with httpsessionswapping We would like to ask on the best way to approach this because currenty we are using request.getSession() to access the httpsession public ActionForward loadFundTxferAddSel( ActionMapping mapping,

Re: Struts 2 using Quartz

2009-04-20 Thread Burton Rhodes
Is implemeting Spring in your stuts app an option? If so the Quartz Spring plugin is incredibly easy. On 4/20/09, Johnson nickel wrote: > > Hi all, > > I'm using struts 2.0.6. I have requirement to write an logic in > action file. Where that > action should be schedule in (daily or weekly

Re: Menus

2009-04-20 Thread Lukasz Lenart
2009/4/20 abhishek reddy : > can anyone let me know how to build menus in struts? Struts Menu [1] [1] http://struts-menu.sourceforge.net/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@

Re: Menus

2009-04-20 Thread Dave Newton
abhishek reddy wrote: can anyone let me know how to build menus in struts? That's a rather nebulous question. What kind of menu do you want? Why not just use one of the million existing menu solutions out there? Dave - To

RE: Calling Action on page load

2009-04-20 Thread Martin Gainty
if you're bound by political considerations to use Struts1 use Dave's suggestion (if you are able to implement Struts2 solutuion use the suggestion I posted yesterday) please keep us apprised Martin __ Disclaimer and Confidentiality/Verzicht und Vert

Re: reconnecting to the Oracle database.with Hibernate 3. I

2009-04-20 Thread Dave Newton
srinivasa_v . wrote: Hibernate list/forum is down and its a prodction issue for me Keep trying. This list is for Struts-related stuff. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comman

Menus

2009-04-20 Thread abhishek reddy
hi everyone, can anyone let me know how to build menus in struts? -- Abhishek

Struts 2 using Quartz

2009-04-20 Thread Johnson nickel
Hi all, I'm using struts 2.0.6. I have requirement to write an logic in action file. Where that action should be schedule in (daily or weekly). For that , i have used Quartz in struts 1. It was working fine as per this site details. http://demo.jgsullivan.com/struts/ I want

Display problems when tomcat is busy

2009-04-20 Thread Leleu Eric
Hello, I currently have a problem using Struts 2.0.12 with Tomcat 5.5. If the tomcat server isn't busy (1 to 10 connections) my pages display well. However if tomcat becomes just a little busy, the name attribut of "s:text" tags isn't internationalized, sometimes some tags aren't displayed at all

Re: reconnecting to the Oracle database.with Hibernate 3. I

2009-04-20 Thread srinivasa_v .
Hibernate list/forum is down and its a prodction issue for me On Mon, Apr 20, 2009 at 1:43 PM, Nils-Helge Garli Hegvik wrote: > Maybe you should try a Hibernate list/forum instead? > > Nils-H > > On Mon, Apr 20, 2009 at 10:11 AM, srinivasa_v . > wrote: > > Hi > > > > I am getting Exception whil

Re: reconnecting to the Oracle database.with Hibernate 3. I

2009-04-20 Thread Nils-Helge Garli Hegvik
Maybe you should try a Hibernate list/forum instead? Nils-H On Mon, Apr 20, 2009 at 10:11 AM, srinivasa_v . wrote: > Hi > > I am getting Exception while reconnecting to the Oracle database.with > Hibernate 3. I was getting this problem when Data Base server restarts. its > start working when > >

reconnecting to the Oracle database.with Hibernate 3. I

2009-04-20 Thread srinivasa_v .
Hi I am getting Exception while reconnecting to the Oracle database.with Hibernate 3. I was getting this problem when Data Base server restarts. its start working when restartig the application server. Here is the error message I am getting in logs JDBCException W org.hibernate.util.JDBCExcepti

Re: Calling Action on page load

2009-04-20 Thread Denis Fefermann
Thank you all for the hints. I will try again as soon as I'll get fit. Denis Fefermann wrote: > I am using Struts 1 and no JavaScript Frameworks. I do not need data from > calling the action. > The point is, everytime I refresh my JSP Page , I need to increment a > sort of a counter in m

RE: creating list in dropdown using struts

2009-04-20 Thread Muthu Velappan
I don't think there is any way to get both label and text from select box in request option. You will get only the value specified in tag. I believe in ur case, ID is the value in tag and that's the reason u get Id back in action during postback... There is couple of workaround's to overcome thi