RE: external javascript file linking problem?

2006-12-11 Thread Strachan, Paul
From: Mallik [mailto:[EMAIL PROTECTED] Sent: Tue 12/12/2006 4:53 PM To: user@struts.apache.org Subject: external javascript file linking problem? Hi friends i am converting a project into struts i want to use my javascript(js) calender file in strtus applicat

Re: struts2.0 question

2006-12-11 Thread Chris Pratt
You can use the serialver program that comes with the JDK to generate those values. (*Chris*) On 12/11/06, Christopher Goldman <[EMAIL PROTECTED]> wrote: On Tue, 2006-12-12 at 09:08 +0800, red phoenix wrote: > I have a question about Struts 2.0 Action,I find Action will extends > ActionSuppor

external javascript file linking problem?

2006-12-11 Thread Mallik
Hi friends i am converting a project into struts i want to use my javascript(js) calender file in strtus application.(calender will display in popup) but that javascript file is not working. what will be the reason this way i link it to jsp file: --

Re: problems with tag

2006-12-11 Thread Mallik
HI Rick make sure that doesn't close with in start tag like this: (i got the same problem beacuse of this silly mistake) ur's Mallik Rick Schumeyer wrote: > > Never mind...it turns out that I added a non-default constructor to the > ActionForm bean without also adding a default constructor.

Re: [s2] Creating a UI Component

2006-12-11 Thread Martin Provost
Thanks for sharing. I looked further into the Vita Rara meaning on your website, and found your idea incredibly simple but yet so powerful. Really appreciated the motorcycle pictures. What level of developers are admissible to participate within Vita Rara? I'm asking because I'll be an undergrad

[s2] Creating a UI Component

2006-12-11 Thread Mark Menard
Having recently dug into creating UI tags in Struts 2 I wrote up a quick overview: http://www.vitarara.org/cms/node/86 Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts 2 tutorial and maven question

2006-12-11 Thread Chong Yoke Ping
Hi, In your pom.xml, under the resource tag, you need to add the resource directory "**/*.xml". Hence your resource tags should have the following: ${basedir}/src/main/resources **/*.*

Re: struts2.0 question

2006-12-11 Thread Christopher Goldman
On Tue, 2006-12-12 at 09:08 +0800, red phoenix wrote: > I have a question about Struts 2.0 Action,I find Action will extends > ActionSupport,like follows: > public class GetUpdatedHangmanAction extends ActionSupport implements > SessionAware { > private static final long serialVersionUID = 5506025

Re: java.sql.SQLException: No more data to read from socket

2006-12-11 Thread Martin Provost
Dude be carefull not to give too much info: jdbc:oracle:thin:@cancer.secorporation.com:1521 it could cause you security issues...from potential evil disposed idiot As per your question, I cannot help you cause I am myself a newbie! Cheers, Martin 2006/12/11, Aiping <[EMAIL PROTECTED]>: H

java.sql.SQLException: No more data to read from socket

2006-12-11 Thread Aiping
Hi, I'm a newbie to struts. Lately, I have tasked to maintain a struts application which makes use of struts data-source. This is working fine, but when after a certain period, it starts to give java.sql.SQLException: No more data to read from socket and users of the website are not able

struts2.0 question

2006-12-11 Thread red phoenix
I have a question about Struts 2.0 Action,I find Action will extends ActionSupport,like follows: public class GetUpdatedHangmanAction extends ActionSupport implements SessionAware { private static final long serialVersionUID = 5506025785406043027L; . I am puzzled with variable serialVersionU

Re: Struts 1.3.5 and SSL

2006-12-11 Thread Joseph McGranaghan
Thanks Naill, you're the man! :-) I'll reply my results to the list. -Joe Niall Pemberton wrote: On 12/10/06, Joseph McGranaghan <[EMAIL PROTECTED]> wrote: Sorry, but I just can't get a clear understanding of a solution for Struts 1.3.5 and SSL. I've always used sslext to ensure my pages ar

RE: how to initialize an edit page?

2006-12-11 Thread Strachan, Paul
I'm using struts 1.2.9 but your case seems pretty standard. 1. yes, you should include the form name in your mapping 2. if necessary, in your action access the "id" from either the request or the form 3. get your data and populate the form 4. do not create form beans yourself If you still have

Re: how to initialize an edit page?

2006-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rick, Rick Schumeyer wrote: > I am looking for an example of an edit cycle. Let's say I have a list > of employee names; If I click on one I want to have a page to edit the > employee values. > > The initial click would call an action that queries t

RE: html:link

2006-12-11 Thread Strachan, Paul
a) The displayTag library can sort for you b) you can only pass one parameter using html:link (unless you use a Map) c) if "function" is a Dispatch method you could use javascript onclick event handler to submit to the "sort" method, passing the sortOrder parameter - then toggle it in your action

struts 2 tutorial and maven question

2006-12-11 Thread Cecilia Castillo
Hi! I am new to struts, maven etc. I am trying to follow the bootstrap tutorial for struts 2. I used the Maven Archetype to create a new application for the tutorial and everything worked fine except... - when I create the Login-validation.xml in my src/main/java/tutorial directory (where L

how to initialize an edit page?

2006-12-11 Thread Rick Schumeyer
this is a struts 1.3.5 question. I am looking for an example of an edit cycle. Let's say I have a list of employee names; If I click on one I want to have a page to edit the employee values. The initial click would call an action that queries the database, gets the employee data, and stores

Re: problems with tag

2006-12-11 Thread Rick Schumeyer
Never mind...it turns out that I added a non-default constructor to the ActionForm bean without also adding a default constructor. Rick Schumeyer wrote: I'm using struts 1.3.5. I have a jsp that displays a . If I surround the table with: ... then nothing in the page renders. The Employee

problems with tag

2006-12-11 Thread Rick Schumeyer
I'm using struts 1.3.5. I have a jsp that displays a . If I surround the table with: ... then nothing in the page renders. The EmployeeAdd action exists; it is associated with an ActionForm that also exists. Does anyone have any idea what can cause this problem?

Re: Struts 1.3.5 and SSL

2006-12-11 Thread Niall Pemberton
On 12/10/06, Joseph McGranaghan <[EMAIL PROTECTED]> wrote: Sorry, but I just can't get a clear understanding of a solution for Struts 1.3.5 and SSL. I've always used sslext to ensure my pages are secured. So now if I want to use the new ComposableRequestProcessor, how can I implement this funct

Re: Struts 1.3.5 and SSL

2006-12-11 Thread Joseph McGranaghan
Thanks for your input Wendy. The most relevant thread I've found is http://marc.theaimsgroup.com/?l=struts-user&m=116112041327956&w=2 The struts wiki page http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 documents the fix for the missing tiles commands. -Joe Wendy Smoak wrote: on 12

Re: Struts 1.3.5 and SSL

2006-12-11 Thread Wendy Smoak
on 12/11/06, Joseph McGranaghan <[EMAIL PROTECTED]> wrote: - Do I start with the default ComposableRequestProcessor? - Do I gut the org.apache.struts.action.SecureTilesRequestProcessor and add it to commands - Do I need to alter the underlying struts chain-config, override it, or just add comm

RE: Struts 1.3.5 and SSL

2006-12-11 Thread Scott Purcell
I was trying to follow this thread and didn't see any responses? Has this been answered off-line? Just curious. Thanks, -Original Message- From: Joseph McGranaghan [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 6:34 AM To: Struts Users Mailing List Subject: Re: Struts 1.3.5 an

Re: Action maps back to same page...best way to reset ActionForm?

2006-12-11 Thread Christopher Goldman
On Sat, 2006-12-09 at 13:29 -0500, Rick Schumeyer wrote: > I have jsp containing a form to add employees. This submits to an > action that adds the new employee to the database, and then forwards > back to the add employee page so that more employees can be added. > Currently, when I get back

Re: Struts2 : Codebehind and Zero Configuration

2006-12-11 Thread Don Brown
Yeah, I noticed that as well the other day, so it should be fixed in trunk. I really need to sit down and do a tutorial showing off the new conventions in Struts 2 as it really makes building apps easier. Please let us know how using this plugin works out. Don On 12/11/06, Ron Chan <[EMAIL PROT

RE: Need help in Custom tags

2006-12-11 Thread Dave Newton
From: Anil Kumar Pippalapalli [mailto:[EMAIL PROTECTED] > It should contain html select tags as inner tag. > how would i do that > iam getting this error, > javax.servlet.jsp.JspException: OptionsCollection tag must be nested > in a Select tag The Struts OptionsCollections tag does

Re: Formatting numbers in text field

2006-12-11 Thread Nabil ALI-MOUSSA
[EMAIL PROTECTED] a e'crit : Have you tried the JSTL tag? -Original Message- From: chamal desilva [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 3:35 AM To: Struts Users Mailing List Subject: RE: Formatting numbers in text field Thanks Richard But if do it uing get

Need help in Custom tags

2006-12-11 Thread Anil Kumar Pippalapalli
Hi all, I need to create a custom tag for my project. It should contain html select tags as inner tag. how would i do that i tried my best but in vain... iam getting this error, javax.servlet.jsp.JspException: OptionsCollection tag must be nested in a Se

Re: Validator FrameWork

2006-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Thomas Thomas wrote: > Thank u, > it works great :-) No problem. > I have : > > > > May I ask u, dear Christopher, what's the difference of it with what u have > done : > > key="error.unmatched.password.confirm" /> > I'm not s

Need help in Custom tags

2006-12-11 Thread Anil Kumar Pippalapalli
I have to form a custom tag which has the following format. 1999 ...available can have html:option, html:options, html:optionsCollection... 2000 ...selected can have html:option, html:options, html:optionsCollection... Error 500--Interna

Re: Struts 1.3.5 and SSL

2006-12-11 Thread Joseph McGranaghan
Could you be more clear? - Do I start with the default ComposableRequestProcessor? - Do I gut the org.apache.struts.action.SecureTilesRequestProcessor and add it to commands - Do I need to alter the underlying struts chain-config, override it, or just add commands in another chain-config

Struts2 : Codebehind and Zero Configuration

2006-12-11 Thread Ron Chan
I've been trying to get Codebehind http://struts.apache.org/2.x/docs/codebehind-plugin.html and Zero Configuration http://struts.apache.org/2.x/docs/zero-configuration.html to work found that I had to make a couple of changes if (resultsByExtension == null) { resultsByExtension = loadResultT

RE: calling bean reset() in Action class?

2006-12-11 Thread Chandra.Ravinithala
Did you override the reset() method?. Abstract ActionForm has no implementation for reset() method; if you want to set the values to be blank/default values on reset() method call - override reset() method. public abstract class ActionForm implements Serializable { public void rese

calling bean reset() in Action class?

2006-12-11 Thread Mallik
Hi friends i have a form that contain some text fields where user enters data and click save, then i am saving and returning to the same page. here the previous values are redisplaying(which should not) even succefully added to database. for this i feel that by calling reset method of form bean we