- 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
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
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
; 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.
> >
> >
> >
>
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
?
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]
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
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
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
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
; 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
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
, 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
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
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]
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
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
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
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
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,
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
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
-
> 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 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
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
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
- 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
:-))
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
Exception. Why?
Tnx,
Stanislav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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...
-
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
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
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
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
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
nd or get error or doesnot happend.
Stanislav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
> > > 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
> 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
ot; + ")");
rs.close();
stmt.close();
conn.close();
}
catch(SQLException e){
throw new SQLException("database error");
}
This part of code (in action cl
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]
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]
Tnx,
stanislav
PS: Sorry for my English :-(
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- 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]
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
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]
> 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
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]
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
--
-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]
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]
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]
>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
&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]
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
, 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
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
57 matches
Mail list logo