manage refresh action

2009-05-13 Thread elyes sallem
Hello, i have a list of entrees that i display from database for each entree , it is possible de make a modification and a validation of data once the user make a modification, and after , try make a refresh , i want to avoid calling twice the modification action i wanna call the refresh action a

Re: bull info in a disbled submit button

2009-04-28 Thread elyes sallem
it is a ToolTip Regards Elyes 2009/4/28 Dave Newton > elyes sallem wrote: > >> i wanna display a bull info once the user put the cursor on the button >> here is the button declaration >> valider >> any one has an idea? >> > > I'm not sure w

bull info in a disbled submit button

2009-04-28 Thread elyes sallem
Hello, i wanna display a bull info once the user put the cursor on the button here is the button declaration valider any one has an idea? Thanks Regards

Re: how remain in the same page

2009-04-21 Thread elyes sallem
i send a mail where i explained what he should use in this case (realm) here is the mail content ah , no , if you wanna make a test of user privilige , u can use in this case realm u defines roles and u can protect same page by security-constraint tag , u defines differents roles , here is an ex

Re: how remain in the same page

2009-04-21 Thread elyes sallem
dave , read this mail before !!! 2009/4/21 elyes sallem > ah , no , if you wanna make a test of user privilige , u can use in this > case realm > u defines roles > and u can protect same page by > security-constraint tag , u defines differents roles , here is an example &g

Re: how remain in the same page

2009-04-21 Thread elyes sallem
totally hackable client code? Really? > > On Tue, Apr 21, 2009 at 10:43 AM, elyes sallem >wrote: > > > of course u make the test , in a javascript function, in your jsp > > > > Elyes > > > > 2009/4/21 elyes sallem > > > > > hi Stefano , &g

Re: how remain in the same page

2009-04-21 Thread elyes sallem
of course u make the test , in a javascript function, in your jsp Elyes 2009/4/21 elyes sallem > hi Stefano , > in fact , i choosed to back to one page in every case, that's ok for me > if u wanna remain in the same page > u can declare a getter for a member in the form

Re: how remain in the same page

2009-04-21 Thread elyes sallem
e same issues to do. > > > On Mon, Apr 20, 2009 at 16:29, elyes sallem > wrote: > > > 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 acce

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

problem on the launch of the application

2009-04-16 Thread elyes sallem
Hello, i was launching tomcat and i got this error, any one has an idea about the cause? java.lang.NullPointerException org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:428) org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:311) org.apache.struts.

Fwd: event onclick of nested:checkbox

2009-04-09 Thread elyes sallem
if i check it, i expected it takes "R" as value, but its takes the old value "" any one has an idea how to solve this problem? Regards Sallemel -- Forwarded message -- From: elyes sallem Date: 2009/4/8 Subject: event onclick of nested:checkbox To: Struts User

Fwd: event onclick of nested:checkbox

2009-04-08 Thread elyes sallem
it's ok now here how to give the param onclick='<%="verifierReversible("+Integer.parseInt(numLigne)+" )"%>' > Regards Elyes ------ Forwarded message -- From: elyes sallem Date: 2009/4/8 Subject: Fwd: event onclick of nested:checkbox

Fwd: event onclick of nested:checkbox

2009-04-08 Thread elyes sallem
here is the generated html code Regards Sallemel -- Forwarded message -- From: elyes sallem Date: 2009/4/8 Subject: event onclick of nested:checkbox To: Struts Users Mailing List Hello, i have a checkbox to which i associated an event

event onclick of nested:checkbox

2009-04-08 Thread elyes sallem
Hello, i have a checkbox to which i associated an event onclick for this, i call a javascript function verifierReversible here is the component call an here is the javascript function function verifierReversible(i){ if (document.forms[0].elements["ajustContrat["+i+"].CAjustTypeAjust"].checked==tru

Re: No getter method available for property

2009-04-03 Thread elyes sallem
the message is clear, it didn't find a getter for the TVShowSelect property just one remark, u should choose a name of property begining with lowercase (for example tvShowSelect). and if u have a getter named getTvShowSelect() in your form, u won't have this error Regards Elyes 2009/4/3 NR031

Re: display Bigdecimal with 3 number after the ,

2009-04-02 Thread elyes sallem
yes i viewed , this is for struts 2 but i work with struts 1.2 Regards Elyes 2009/4/2 Lukasz Lenart > 2009/4/2 elyes sallem : > > Hello, > > i work with struts 1.2 and i wanna display in the jsp page Bigdecimal > number > > with 3 number after the comma > >

display Bigdecimal with 3 number after the ,

2009-04-02 Thread elyes sallem
Hello, i work with struts 1.2 and i wanna display in the jsp page Bigdecimal number with 3 number after the comma any one know how can i do that? by default, it is displayed 1 comma after the comma Thanks Regards Elyes.

Re: if nested property is null

2009-03-31 Thread elyes sallem
che.org/1.3.10/struts-taglib/tagreference.html#logic:present > > Nils-H > > On Tue, Mar 31, 2009 at 9:09 AM, elyes sallem > wrote: > > Hello, > > i have a nested property that i display in the jsp page : > > > > > > > >

if nested property is null

2009-03-31 Thread elyes sallem
Hello, i have a nested property that i display in the jsp page : but , i can have a null value of iee property how can i implement this to avoid an exception such as this one in the jsp page : javax.servlet.j

Re: send data

2009-03-13 Thread elyes sallem
i don't use struts 2.0 (i use struts 1.2) so with this version, u can get a text value or a password through the actionform u define a class which extends from actionform and u add the property u want (u generate for this properties a getter and setter method) and u get them whith a cast of the for

Re: send data

2009-03-13 Thread elyes sallem
Hello, you can send them by the actionForm that u define 2009/3/13 PEGASUS84 > > good evening; > does someone know how can I send data from a jsp page to an Action? > -- > View this message in context: > http://www.nabble.com/send-data-tp22498337p22498337.html > Sent from the Struts - User mai

select problem

2009-03-11 Thread elyes sallem
Hello, i have a select component associated with a property selectedProject the problem is after calling the action (with an onchange event), in the action i get the correct project id , but i lost the project label so , after the action call, it displays the wrong project (as i said but the projec

problem when make change on the select

2009-03-02 Thread elyes sallem
hello, i have a select element where i display prjLib as label here is the code part of this component : the problem is when ,in the list of project , i have several elements

Re: exception in jsp file

2009-02-19 Thread elyes sallem
gt; - Original Message - From: "elyes sallem" > To: "Struts Users Mailing List" > Sent: Wednesday, February 18, 2009 7:41 AM > Subject: exception in jsp file > > > > Hello, >> i m developping a web application with struts framework >&

"Cannot find bean in any scope" error

2009-02-19 Thread elyes sallem
Hello, i have a jsp in which i there is a loop with nested:iterate: <% int indexeOr=indexOr; OrdreRegrpmt or = ((AjustCPEGroupedByOr) ajustCpeGroupByOr)

exception in jsp file

2009-02-18 Thread elyes sallem
Hello, i m developping a web application with struts framework i got this error,which indicates that there a null pointer exception but nothing else any one know how can i find the null variable ... here is the exception java.lang.NullPointerException at org.apache.jsp.pages.CPFA_005fMensuel.

Re: getter for a property problem

2009-02-06 Thread elyes sallem
in fact, CAjustComment can be null (the null problem i got it only with nested property, does this cause an exception with string property) Regards Elyes 2009/2/6 mitch gorman > elyes sallem wrote: > > Hello, > > i use a property in a jsp , "shortcomment"

getter for a property problem

2009-02-06 Thread elyes sallem
Hello, i use a property in a jsp , "shortcomment" , which depend of another property, "CAjustComment": public String getShortcomment() { if (CAjustComment.length()>15) return CAjustComment.substring(0,14); else return CAjustComment; } but i

property in the parent level

2009-02-04 Thread elyes sallem
hello, i wanna call a javacsript function only if a property in th form is equal to a value so , in th form, i have these properties , ajustContrat, currentPeriod any one know how can i access the currentPeriod inside the nested:iterate,i.e: how get a property in the parent level ? here is the ne

nested property

2009-02-04 Thread elyes sallem
Hello, i have a form, in which a i wanna set a readonly property of a textarea, depending on contratAjustEditMode's value (a member of ajustContratModifie) here is a part of the form , like this the test (contratAjustEditMode==0) doesn't work, it can not recognize contratAjustEditMode: Rega

[Off-topic,javascript]

2009-01-28 Thread elyes sallem
Hello, i'm looking for a javascript user list,any one has an adress? Thanks Regards Elyes.

Radio button

2009-01-27 Thread elyes sallem
Hello, i display a liste of row that i get back from a database among the attribute, there one that i wanna display in a radio button if it is checked , i wanna save one value "PERM", else, i.e unchecked, an other value "revers" -- other attributes   in this case , if i check it one time,

pop up window to save message

2009-01-23 Thread elyes sallem
Hello, i have a list of row to dispaly, in each row, there is an attribute comment that i dispplay only a first part of this message and if the user want to see or change all message, if he clicks on this attribute, it opens a popup window in which he can modify this message and save it any one ha

html:img inside html:button

2009-01-21 Thread elyes sallem
i wanna use html:img inside html:button here is the example : " src="img/modif.jpg" height="15px" style="vertical-align: bottom"/> but i get this error , any one has an idea equal symbol expected (in front of alt , i

nested:nest, null property

2009-01-20 Thread elyes sallem
Hello, i have a nested property that i use in the jsp : but the iee can be null, so if i let it null, it return an error javax.servlet.ServletException: Invalid argument looking up

configuration information from hibernate.cfg.xml

2009-01-06 Thread elyes sallem
Hello, it is an out uncommon question any one know how get back hibernate configuration information from hibernate.cfg.xml, like the bd server, schema ... Regards Elyes.

list inside nested iterate, but in the same level as list1

2009-01-05 Thread elyes sallem
Hello i have an anction form , where i declared two liste list1 and list2 to loop through liste1 , i used nested:iterate inside this iterate, i wanna have an access to list2 which is not inside list1, but in the same level as list 1 any one has an idea how can i do this? if i use nested, it would a

Re: Struts2 with JDK1.4.2_19 & Tomcat 5.0.2

2008-12-23 Thread elyes sallem
see Platform Requirements : http://struts.apache.org/2.x/index.html Regards Elyes 2008/12/23 rorostar > > Hi, > > Has anyone had any success trying to use struts2 on java4 environment? > My server is using java 1.4.2, and they would not upgrade. > > I've read the tutorial on how to use retrotr

Re: Eclipse plugin for Struts2

2008-12-23 Thread elyes sallem
know the procedure involved. > > vasan > > On Tue, Dec 23, 2008 at 4:39 PM, elyes sallem >wrote: > > > you can import the struts blank projet, with struts-config,web.xml ... > > > > Elyes > > > > 2008/12/23 Srinivasan KS > > > > > Hi,

Re: Eclipse plugin for Struts2

2008-12-23 Thread elyes sallem
you can import the struts blank projet, with struts-config,web.xml ... Elyes 2008/12/23 Srinivasan KS > Hi, > If I create a new Struts project in eclipse, it has to create all basic > necessary configuration files(like struts.xml,web.xml) etc. > > For that, what plug-in i need to confiugre with

Re: call javascript from an action class

2008-12-18 Thread elyes sallem
my question was : >i wanna call javascript from an action class, >any one has an example? so if an action is a html for you, sorry, but now i'm too busy to explain to you the difference have a nice day ... Elyes 2008/12/18 Antonio > 2008/12/18 elyes sallem : > > thos

Fwd: call javascript from an action class

2008-12-18 Thread elyes sallem
-- Forwarded message -- From: elyes sallem Date: 2008/12/18 Subject: Fwd: call javascript from an action class To: Struts Users Mailing List those who are interested : example to call javascript via java : http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting

Fwd: call javascript from an action class

2008-12-18 Thread elyes sallem
those who are interested : example to call javascript via java : http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ Regards Elyes -- Forwarded message -- From: elyes sallem Date: 2008/12/18 Subject: call javascript from an action class To: Struts Users

Re: call javascript from an action class

2008-12-18 Thread elyes sallem
i'm not sure Elyes 2008/12/18 Nils-Helge Garli Hegvik > On Thu, Dec 18, 2008 at 5:04 PM, elyes sallem > wrote: > > dou you understand my question first?, > > Yes. > > Nils-H > > - >

Re: call javascript from an action class

2008-12-18 Thread elyes sallem
/search?q=javascript+popup > > Nils-H > > On Thu, Dec 18, 2008 at 4:40 PM, elyes sallem > wrote: > > i wanna display a pop up information > > > > 2008/12/18 Nils-Helge Garli Hegvik > > > >> I would be a lot easier to help if you gave some examples

Re: call javascript from an action class

2008-12-18 Thread elyes sallem
t; Nils-H > > On Thu, Dec 18, 2008 at 4:27 PM, elyes sallem > wrote: > > Hello, > > i wanna call javascript from an action class, > > any one has an example? > > > > Thanks > > Regards > > Elyes. > > > > -

Re: call javascript from an action class

2008-12-18 Thread elyes sallem
in fact , i wanna display a message from an action i won't use joptionPane is there an alternative, for a web application 2008/12/18 Lukasz Lenart > 2008/12/18 elyes sallem : > > Hello, > > i wanna call javascript from an action class, > > any one has an example? &g

call javascript from an action class

2008-12-18 Thread elyes sallem
Hello, i wanna call javascript from an action class, any one has an example? Thanks Regards Elyes.

type mysmatch

2008-12-17 Thread elyes sallem
hello, i have a property whith date type and i have a text field in jsp , in witch a put the date value when i submit, i get an error, type mysmatch have you an idea about this pb? thanks Elyes.

Re: JDK Requirements for Struts 1.2 and 2.x

2008-12-17 Thread elyes sallem
http://struts.apache.org/1.2.x/userGuide/installation.html 2008/12/17 Chris_W > > Hey, > > I failed to find the JDK requirements for struts 1.2 and 2.x. > > Is JDK 1.6 supported for both Struts versions? > > Thanks for your help!!! > Christian > -- > View this message in context: > http://www.na

Re: JDK Requirements for Struts 1.2 and 2.x

2008-12-17 Thread elyes sallem
here for struts 2.x http://struts.apache.org/2.x/index.html,you have juste to look for in google, and you find the answer 2008/12/17 elyes sallem > http://struts.apache.org/1.2.x/userGuide/installation.html > > 2008/12/17 Chris_W > > >> Hey, >> >> I failed

Re: Fwd: export file data using formFile

2008-12-17 Thread elyes sallem
response.setContentLength((int) file.length()); response.setHeader("Content-Disposition", "attachment; filename=\"" + filePath.replaceAll("/", "//") + "\""); Regards Elyes 2008/12/17 Robert Graf-Waczenski > elyes s

.properties variable from action class

2008-12-16 Thread elyes sallem
Hello, i wanna know how get back a property variable defined in ".properties" file from an exceute method, in the action class Regards Elyes.

Re: Fwd: export file data using formFile

2008-12-16 Thread elyes sallem
// 8 KB > byte[] buffer = new byte[bufferLen]; > while (true) { > int max = buffer.length; > int len = fileStream.read(buffer, 0, max); > if (len > 0) > out.write(buffer, 0, len); > else > break; &

Re: get file path from FormFile

2008-12-16 Thread elyes sallem
h, save the file as a temp file > locally on the server. > If 2) The solution has been provided to you in your previous thread: > Stream the file content to the browser. > If 3) See 1) and 2) > > Nils-H > > On Tue, Dec 16, 2008 at 2:09 PM, elyes sallem > wrote: > > t

Re: Fwd: export file data using formFile

2008-12-16 Thread elyes sallem
er("content-encoding", "binary"); > resp.setHeader("Content-Disposition", "attachment; > filename=myfile.pdf"); > data.writePDFDataToOutputStream(resp.getOutputStream()); > > } > } > > > elyes sallem wrote: > >> ok, do you hav

Re: get file path from FormFile

2008-12-16 Thread elyes sallem
yes 2008/12/16 Dave Newton > --- On Tue, 12/16/08, elyes sallem wrote: > > this library, take as input a file and depending on this > > file's metadata generates tables in a database and make trt > > after this (so as a constraint, i can't modify the class in >

error and messages in jsp page

2008-12-16 Thread elyes sallem
Hello, i want to display some message and some errors, if there is an exception but the problem is that , in the jsp page, i get only the first line of the error message here is the code : ActionMessage message = new ActionMessage("error.fichierEntree.chargement",e.getCause().getMessage());

Re: get file path from FormFile

2008-12-16 Thread elyes sallem
e user. > > Nils-H > > On Tue, Dec 16, 2008 at 12:24 PM, elyes sallem > wrote: > > Hello, > > after publishing this question, i conclude that it is not possible de get > > back the absolute path from FormFile > > but the problem is that i import a jar file, in

get file path from FormFile

2008-12-16 Thread elyes sallem
Hello, after publishing this question, i conclude that it is not possible de get back the absolute path from FormFile but the problem is that i import a jar file, in which i call a method that accept only path of file so what do you propose, i get the inputstream , then i create temporarly a file a

Re: Fwd: export file data using formFile

2008-12-15 Thread elyes sallem
2008/12/15 Dave Newton > *boggled* > > --- On Mon, 12/15/08, elyes sallem wrote: > > i used a filechooser class (swing), if any one have an > > others solution, i'm interested here is the code : > > > > String wd = System.getProperty("user.dir&q

Re: Fwd: export file data using formFile

2008-12-15 Thread elyes sallem
Regards Sallemel 2008/12/15 elyes sallem > in fact, i will not do it in a servlet, but in an action (execute method) > > Regards > Elyes > > > 2008/12/15 Robert Graf-Waczenski > >> Here's an example: >> >> >> public class Do

Re: Fwd: export file data using formFile

2008-12-15 Thread elyes sallem
ader("content-type", "application/pdf"); > resp.setHeader("content-encoding", "binary"); > resp.setHeader("Content-Disposition", "attachment; > filename=myfile.pdf"); > data.writePDFDataToOutputStream(resp.getOutputStream());

Re: Fwd: export file data using formFile

2008-12-15 Thread elyes sallem
the data will be generated dynamically , depending on others selected fields and based on a select to a database table, i will generate a csv file 2008/12/15 Robert Graf-Waczenski > Hm. Sounds more like a download, not like an upload. Is that what you're > after? > > Robert &

Re: Fwd: export file data using formFile

2008-12-15 Thread elyes sallem
ok, do you have an example? Thanks Regards Elyes 2008/12/15 Dave Newton > --- On Mon, 12/15/08, elyes sallem wrote: > > the problem is that with the html:file you must browse to an > > existant file, but in my case, i wanna browse to a new file, > > and then in the ac

Re: Fwd: export file data using formFile

2008-12-15 Thread elyes sallem
the problem is that with the html:file you must browse to an existant file, but in my case, i wanna browse to a new file, and then in the action i will make some treatment, generate data and export them to this file 2008/12/15 Dave Newton > --- On Mon, 12/15/08, elyes sallem wrote: > &

Re: Fwd: export file data using formFile

2008-12-15 Thread elyes sallem
it is not to export the file content , i want juste get back in the action, the *selected file path* 2008/12/15 Dave Newton > --- On Mon, 12/15/08, elyes sallem wrote: > > all i want, is what is the struts tag to export file [...] > > There is no tag to export a

Fwd: export file data using formFile

2008-12-15 Thread elyes sallem
Regards Elyes -- Forwarded message ------ From: elyes sallem Date: 2008/12/15 Subject: export file data using formFile To: Struts Users Mailing List Hello, i want to use a formfile in jsp page, where once i browse to file , i want to laucnh directly the action, export data to this file (without

export file data using formFile

2008-12-15 Thread elyes sallem
Hello, i want to use a formfile in jsp page, where once i browse to file , i want to laucnh directly the action, export data to this file (without a submit button near the fromfile) how can i make it? Regards Elyes.

Re: compatibility between struts and java versions

2008-12-11 Thread elyes sallem
i recommend you the 1.5 version Regards Elyes 2008/12/11 pierre betz <[EMAIL PROTECTED]> > Hi everybody, > I'm new to the struts community, and today I've a project to develop using > struts. > > As I have to use the jave *jre 1.3.1_02* , > > I would like to know if the version* 1.3.8 * of stru

Re: initialise a form file

2008-12-11 Thread elyes sallem
e a readonly display of the file name and other > statistics plus a link that reads "upload new file" (or something similar). > This link opens our upload page which the user can then use to upload the > file. Then the system goes back to the original page with the new file'

initialise a form file

2008-12-11 Thread elyes sallem
Hello, in a form, a define a

Re: html:select for a string list

2008-12-10 Thread elyes sallem
Thanks a lot Mark, It works like this Best Regards Elyes 2008/12/10 Mark Shifman <[EMAIL PROTECTED]> > Try using html:options instead of optionsCollection. > > elyes sallem wrote: > > Hello, > > i have a html:select in a html:form > > this select is build

html:select for a string list

2008-12-10 Thread elyes sallem
Hello, i have a html:select in a html:form this select is build from a List valLis, defined in an actionForm i used the html:select in a list of object , it work but now it is a list of string, so i have not value and label i need just to recuperate the value and set the list of string what must i

Fwd: populate pb of the selected Item

2008-12-03 Thread elyes sallem
just for infomation, the struts version i use is 1.2 Regards Elyes -- Forwarded message -- From: elyes sallem <[EMAIL PROTECTED]> Date: 2008/12/2 Subject: populate pb of the selected Item To: Struts Users Mailing List Hello, i have a page, in which there is two fo

populate pb of the selected Item

2008-12-02 Thread elyes sallem
Hello, i have a page, in which there is two form the second form contains 2 pair of 2 select the first pair add an OR to shortlist when we click on sumbit button (this submit works ), the second pair is to delete an or from a shortlist so when i select a shortlist, the list of OR in second select w