RE: Struts/Eclipse remote app build

2007-01-16 Thread Stanislav
- Sandeep > > > On 1/16/07, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Why dont you do coding and building on one machine and deploy the app > > in second machine which would action kind of a app server, i dont > > think b

Re: Struts/Eclipse remote app build

2007-01-16 Thread Stanislav
Hi! What do you mena when you say "build server"? Can you give me more information about it? Tnx, Stanislav From: "Sandeep Gupta" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Subject: Re: Struts/Eclipse remote app build Date: Tue, 16 Jan 2007 22

Re: [Struts 2] Database access

2007-01-16 Thread Stanislav
to initialize the 'context' object. > > Thanks > > Philippe > > Le mardi 16 janvier 2007 11:14, Stanislav a écrit : > > in java action class you can also connect through struts db mechanisam: > > DataSource dataSource = (DataSource) > > context.getAttribute(&q

Re: [Struts 2] Database access

2007-01-16 Thread Stanislav
; I'm also looking for the mecanism of accessing the database in the java action > class. > > Thanks > > Philippe > > Le mardi 16 janvier 2007 10:59, Stanislav a écrit : > > in struts-config for sql database. > > > > > > >

re: [Struts 2] Database access

2007-01-16 Thread Stanislav
in struts-config for sql database. From: Philippe Le Gal <[EMAIL PROTECTED]> To: user@struts.apache.org Subject: [Struts 2] Database access Date: Tue, 16 Jan 2007 10:53:12 +0100 - Original Messa

Struts/Eclipse remote app build

2007-01-16 Thread Stanislav
? Both computers are on Win OS (No1: WinXP SP2, No2. Win2003). Tnx, Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: reading data from struts-config.xml

2007-01-12 Thread Stanislav
you can find the properties in that > map. > > Thanks, > > Nuwan > - Original Message - > From: "Stanislav" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Friday, January 12, 2007 10:20 AM > Subject: Re: reading data

Re: reading data from struts-config.xml

2007-01-12 Thread Stanislav
please teset. > > Thanks, > > Nuwan > > > > - Original Message - > From: "Stanislav" <[EMAIL PROTECTED]> > To: ; "Nuwan Chandrasoma" <[EMAIL PROTECTED]> > Sent: Friday, January 12, 2007 9:32 AM > Subject: Re: reading

Re: reading data from struts-config.xml

2007-01-12 Thread Stanislav
ied this property?.. inside in > struts-config.xml or some where else? > > Thanks, > > Nuwan > > - Original Message - > From: "Stanislav" <[EMAIL PROTECTED]> > To: > Sent: Friday, January 12, 2007 9:11 AM > Subject: reading data from

reading data from struts-config.xml

2007-01-12 Thread Stanislav
Hi! In struts-config.xml i defined database connection settings. Partuculary database name. code: Is there any to detect database name in Action class? I want to check db name, and if it's test db to put some information in .jsp. Tnx in advance, Stan

Re: redirect or forward from method

2006-12-15 Thread Stanislav
; Hash: SHA1 > > Stan, > > Stanislav wrote: > > I'm using Strus and this is my problem. I have this method A which > > have input and outpur parameters. There is try/catch block in method > > A that capture Exceptions. I want to redirect or forward to jsp page > &g

redirect or forward from method

2006-12-15 Thread Stanislav
Hi! I'm using Strus and this is my problem. I have this method A which have input and outpur parameters. There is try/catch block in method A that capture Exceptions. I want to redirect or forward to jsp page B from method A when some error is happend and NOT to return to class C from

Re: change date validator-rules

2006-05-25 Thread Stanislav
, and dont know how to do that :-( can you give me some example? Tnx, Stanislav - Original Message Follows - > Write a custom validator rule, check for the field value and if the value is > not #, then set error message. > > HTH, > > > On 5/25/06, Stanislav <[E

change date validator-rules

2006-05-25 Thread Stanislav
Hi! I want to change date validator-rules so ih the input data id equal "#" than return that everything is ok... How can i do that? Tnx, Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

request object in PortalSessionBindingListener class

2006-05-22 Thread Stanislav
just put smo request object i get messaage that this class is not *something* for requst object Tnx, Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

re: reŁş html:options collection design question

2006-05-10 Thread Stanislav
Hi! That is fine if i want to set bgcolor to ALL text, but i want to set different bgcolor for different choices in drop down menu. Tnx, Stanislav - Original Message Follows - > maybe css would be one solution, edit your css class, and use "styleClass" > att

html:options collection design question

2006-05-09 Thread Stanislav
Hi! I want to set background color in drop down menu that is generated with html:options collection. Is there any way to do that? Here is code sample: Tnx, Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Struts filter help

2006-05-07 Thread Stanislav
Thank you very much! This is what i was assking for ! :-))) Stanislav - Original Message Follows - > On Fri, 2006-05-05 at 15:19 +0200, Stanislav wrote: > > Hi! > > > > I want to do some check every time when java file "starts". How can i do > > t

Struts filter help

2006-05-05 Thread Stanislav
Hi! I want to do some check every time when java file "starts". How can i do this? I think that is posible with filter in web.xml, but i dont know how to do this :-( Tnx, Stanislav - To unsubscribe, e-mail: [EMAIL

Class that "listens" is app "alive"

2006-04-20 Thread Stanislav
Hi! I have class that implements HttpSessionBindingListener and that class "listens" all session in app. My question is: is there any way to listen app? I have some thing to do if app is being redeployed? How can i do that? Tnx,

RE: JSP and Struts

2006-02-15 Thread Stanislav
rt where you have input filed else if 1 go to part where you have drop down menu tnx, Stanislav PS: complete code: <% int temp = 0;%> <% String p

JSP and Struts

2006-02-15 Thread Stanislav
Hi! I'm trying to combine jsp & struts code in my jsp pages. Problem is that i don't know how to do this :-( I try to use <% out.println(""); %> but this doesn't work. Is there a way to do this? Tnx, Stanislav -

Re: Session time out

2006-02-06 Thread Stanislav
> Session timeout is specified in web.xml. :-) I can't believe that this is so simple :-))) > You need a session listener. Google should give you a few results. OK, I will. Tnx, Stanislav - To unsubscribe, e-m

Session time out

2006-02-06 Thread Stanislav
session is timed out. Right now i write user into db after logging into system, a delete him from db after user is logged out, but i don't know if user "catch" session time out. Tnx, Stanislav - To unsubscribe, e-mai

Re: ServletContext NullPointerException

2005-12-27 Thread Stanislav
Tnx! It works just fine :-) > Hi Stanislav, > Use these lines to avoid the NullPointerException > > import javax.servlet.ServletContext; > import javax.servlet.http.HttpSession; > > >HttpSession ses = request.getSession(); >ServletContext

ServletContext NullPointerException

2005-12-27 Thread Stanislav
I found out what is wrong :-) In non servlet class you need to pass context from servlet class if you want to have context there :-) Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Fwd: RE: ServletContext NullPointerException

2005-12-27 Thread Stanislav
- Message Forwarded on 27/12/05 10:45 - From: "Stanislav" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: RE: ServletContext NullPointerException Date: Tue, 27 Dec 2005 10:44:00 +0100 I'm sorry :-(( I didn't see you code comments. I changed my code i

RE: ServletContext NullPointerException

2005-12-27 Thread Stanislav
:-)) I presume that my code is wrong, but i don't know what part :-( Can you help me? Tnx, Stanislav > Hi, > Check your code: > > > > Kind regards, > > Rakesh Bhat > PrimeSourcing(tm) > The Global IT Services business from i-flex - "Add Val

ServletContext NullPointerException

2005-12-27 Thread Stanislav
Exception. Why? Tnx, Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: submit double click, js and html:submit

2005-12-19 Thread Stanislav
I work it out :-) code that works for me: var submitcount=0; function checkFields() { if (submitcount == 0) { submitcount++; return true; } else { alert("This form has already been submitted. Thanks!"); return false; } } and... -

Re: submit double click, js and html:submit

2005-12-19 Thread Stanislav
Details: Error: Object doesn't support this property or method - Original Message Follows - > Well, error is "Error on Page" (left bottom corner). Details: something about > wrong method. > > > > "But when i use this code, after clicking on submit button i get error > > on page mess

RE: submit double click, js and html:submit

2005-12-19 Thread Stanislav
Can you give me some code example? - Original Message Follows - > U may have to use validToken method provided by struts > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, December 19, 2005 6:29 PM > To: user@struts.apache.org > Subject: su

Re: submit double click, js and html:submit

2005-12-19 Thread Stanislav
Well, error is "Error on Page" (left bottom corner). Details: something about wrong method. > "But when i use this code, after clicking on submit button i get error > on page message in IE." > > Can you throw us a bone here? What is the error? > > Larry > > > On 12/19/05, Amol Yadwadkar

submit double click, js and html:submit

2005-12-19 Thread Stanislav
I want to prevent user from double submiting data. Searching the internet i found this js code: Because i use html:submit my code is: But when i use this code, after clicking on submit button i get error on page message in IE. my question is: how can i prevent user from double clicking subm

the code of method execute is exceeding the 65535 limit

2005-12-14 Thread Stanislav
I have problem with mention above error message. My action class have over 6k lines of code. Is there anything i can do to "remove" this message without changing code logic? Tnx Stanislav - To unsubscribe, e-ma

RE: problem with checking checkbox before jsp page

2005-12-05 Thread Stanislav
nd or get error or doesnot happend. Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

problem with checking checkbox before jsp page

2005-12-05 Thread Stanislav
Before jsp page i have action that connects to db and gettering some data. On values of this data depends checking checkbox. How can i do this? I dont know how to have jsp page with some of checked checkbox.. Tnx, Stanislav

Re: connecting to mssql from struts

2005-12-02 Thread Stanislav
> > > value="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=WorkFlow" /> > > Your URL does not look like a correct MySQL URL. It should look something > like: > > jdbc:mysql://[host][,failoverhost...][:port]/[database] > > http://dev.mysql.com/doc/refman/5.1/en/cj-configuration

re: connecting to mssql from struts

2005-12-02 Thread Stanislav
> I manage to set up realm inside jboss (tomcat) for mssql, but i have problem > with > inserting/selecting data from db. > ... I figure it out.. Wrong SQL Exceptio, and missing comit(); - To unsubscribe, e-mail: [EMAIL PROTEC

connecting to mssql from struts

2005-12-02 Thread Stanislav
ot; + ")"); rs.close(); stmt.close(); conn.close(); } catch(SQLException e){ throw new SQLException("database error"); } This part of code (in action cl

Re: how to pass value in html:text from action

2005-11-29 Thread Stanislav
r ActionForm object). > by default if you don't specify name, the form in wich current > is included will be used. > So in your case this will work: styleClass="InputTable"/> > Borislav > It didnt work :-( Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to pass value in html:text from action

2005-11-29 Thread Stanislav
e jsp unchanged like: But than i get error. What is wrong? Tnx again. Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

how to pass value in html:text from action

2005-11-29 Thread Stanislav
Tnx, stanislav PS: Sorry for my English :-( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:select and logic:iterate

2005-11-28 Thread Stanislav
- m > l:option> property="user-podatak-2-0" > labelProperty="user-podatak-1-0" /> > > > > Thanks, Kathir. This works beautifuly :-)) Thank you very much! :-) Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:select and logic:iterate

2005-11-28 Thread Stanislav
t; If I do this, than i get several problem :-( id is alvays the same (how to know what is in drop down box), and i still get last value from hmUserPrijenosList after getting validation error. :-( can you give some code example how to do this with collection? Tnx, Stanislav

RE: [Maybe Spam] html:select and logic:iterate

2005-11-28 Thread Stanislav
than this value you can get in application anywhere you want :-) Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [Maybe Spam] html:select and logic:iterate

2005-11-28 Thread Stanislav
> remove logic present. > it works. > > by the way how can you get that list(hmUserPrijenosList) back in action from > the request.i have that problem. > is there any way to get that in the action class. > > cheers. > After removing logic present everything is still the same :-( answer to your

html:select and logic:iterate

2005-11-28 Thread Stanislav
great, but when i get validion error i lose information from drop-down box. What is wrong? Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Inserting special character into MySQL 5 problem

2005-11-28 Thread Stanislav
to & in your code: > > jdbc:mysql://localhost/[EMAIL PROTECTED];characterEncoding=utf-8 > > -- Paul > Yes! You are correct! My webmail doing something with '&' + 'amp;'. Soon i changed this everything works :-))) Tnx again!! Stanislav --

Re: Inserting special character into MySQL 5 problem

2005-11-24 Thread Stanislav
-8 > I still got the same thing, but i surf the Net and find this 5 XML predefined entities. instead '&' i will use '&' + 'amp'. Is this OK? Tnx for your time :-) Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Inserting special character into MySQL 5 problem

2005-11-24 Thread Stanislav
o be escaped as > an XML entity (&). Try: > > jdbc:mysql://localhost/databaseName?useUnicode=true&characterEncoding=utf-8 > > hth, > > Manos Maybe I'm crazy now, but I don't see any changes between yours part of code and the one that make me problem :- Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Inserting special character into MySQL 5 problem

2005-11-23 Thread Stanislav
error Can you send me some part of code, please? Tnx, Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Inserting special character into MySQL 5 problem

2005-11-23 Thread Stanislav
>This isn't a Struts prolem, and it's not a MySQL problem either. As usual, >it's "user error" :-) >These are two things to do: >[1] If you're importing through Java, you need to make sure your file reader >is properly decoding >UTF-8 stings: >http://javaalmanac.com/egs/java.io/ReadFromUTF8.htm

Re: Inserting special character into MySQL 5 problem

2005-11-23 Thread Stanislav
&characterEncoding=UTF-8 > OK. Tnx :-) I let you know does it works. Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Inserting special character into MySQL 5 problem

2005-11-23 Thread Stanislav
er and in the HTML page I see all special character correctly. MySQL 5.0.1 (is this DB worst than 4.1?) is set to utf-8 (DB and table). Where can i put this connestion URL in code? Only url connection I use is in struts-config.xml, but only this part: jdbc:mysql://localhost:3306/db-name. Tnx on

Re: Inserting special character into MySQL 5 problem

2005-11-23 Thread Stanislav
, I thnk.2005/11/23, Stanislav > <[EMAIL PROTECTED]>:> > Hello!>> I'm having very strange problem :-( I'm using > CharacterEncodingFilter set to work with > utf-8> encoding (response and request) and when testing aplication geting:>> > 08:29:42

Inserting special character into MySQL 5 problem

2005-11-22 Thread Stanislav
ly into MySQL query I get everything O.K.? Does anyone knows what seem to be problem? Tnx, Stanislav PS: Using: struts 1.2.7, J2EE 1.4 SDK, JBoss 4.0.1, MySQL 5.0.1. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional