Hi,
You have to send some more informative logs with stacktraces and so
on... there is nothing special in what you sent
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
-
To unsubscribe, e-mail: user-
This worked after adding context parameter, DEFINITIONS_CONFIG in web.xml
-Original Message-
From: Raghuveer.V [mailto:raghuve...@infotechsw.com]
Sent: Monday, September 21, 2009 5:18 PM
To: user@struts.apache.org
Subject: RE: Struts2 Tiles - Error -There is no Action mapped for namespac
Hi ,
Is it a best practice to create a connection object in handlers and
sending that object to DB functions that are called from handlers?
Previously I was creating connection object in every DB function and closing
it while coming back. I got some connection issues and now I am creating
Hi there,
my name is Marcelo and I'm new to the list. I use struts for some time
and have some projects in it.
But I'm in a new situation now. My customer have two different
business and he want the same application for both, but detached.
This application was developed with Struts2 and Spring
What does that have to do with method parameters? The ActionInvocation and
any local variables are thread safe. I think the problem we're having in
helping you is none of us understand what you're trying to accomplish? For
instance why would you be trying to refactor away parameters that are
req
Am I right that storing request/session related info as interceptor fields is
NOT safe due to concurrency? Such as interceptors are singletons and shared
across all concurrent requests.
Musachy Barroso wrote:
>
> yes, although I am kind of confused about your first email.
>
> musachy
>
> On Tu
yes, although I am kind of confused about your first email.
musachy
On Tue, Oct 6, 2009 at 7:50 PM, Alex Siman wrote:
>
> Is it safe to get ActionInvocation inside of [Interceptor.intercept()] in
> this way?:
>
> ActionInvocation invocation =
> ActionContext.getContext().getActionInvocation();
>
Is it safe to get ActionInvocation inside of [Interceptor.intercept()] in
this way?:
ActionInvocation invocation =
ActionContext.getContext().getActionInvocation();
Alex Siman wrote:
>
> Is there any way to refactor method [intercept(ActionInvocation)] to
> remove ActionInvocation parameter. It
Is there any way to refactor method [intercept(ActionInvocation)] to remove
ActionInvocation parameter. It is not usable to have this parameter, because
it makes refactoring of method interceptor hard.
Instead of this:
public class SomeInterceptor extends AbstractInterceptor
{
@Override
also, make sure the convention plugin is in the classpath for the tests.
musachy
On Tue, Oct 6, 2009 at 2:22 PM, Alex Siman wrote:
>
>
> dolsen-2 wrote:
>>
>> Does this method work if I declare my actions with annotations instead of
>> declaring them in struts.xml?
>>
> Of course, I also declare
dolsen-2 wrote:
>
> Does this method work if I declare my actions with annotations instead of
> declaring them in struts.xml?
>
Of course, I also declare actions w/ annos.
dolsen-2 wrote:
>
> It looks like from the errors I get that it is trying to read the action
> definitions from the stru
Does this method work if I declare my actions with annotations instead
of declaring them in struts.xml? It looks like from the errors I get
that it is trying to read the action definitions from the struts.xml file.
On 10/5/2009 10:00 PM, Alex Siman wrote:
Look here:
http://struts.apache.org/2.
try to add in the character set you need to MySQL 5.4+
http://dev.mysql.com/doc/refman/5.4/en/adding-collation-unicode-uca.html
if you cant locate the charset this means the characters you are adding are
UTF-16 characters in which case you'll need to configure UTF-16 for both mysql
and your con
I needed to switch some pages in my web application over to HTTPS mode
(login, data entry, etc.) then switch back to HTTP for pages that do not
require it. Using sslext I am able to do that and it works fairly well.
Except...I have run into one problem. My web application also has switching
bet
- Original Message
> From: senderj
> To: user@struts.apache.org
> Sent: Tue, October 6, 2009 3:28:08 AM
> Subject: Struts 1: character encoding
>
>
> The components I use NetBean, Glassfish, Struts 1, EJB, Toplink, jdbc, MySQL.
> Basically what I want is to extract info from a web site
That is exactly what i need,it works!!!
Musachy Barroso wrote:
>
> html gets escaped by the 'property' tag. hint: read my other hint.
>
> On Tue, Oct 6, 2009 at 10:05 AM, samsun wrote:
>>
>> value on value stack are, i think, changed when retreiving
>> from valuestack thru ,the problem i have
html gets escaped by the 'property' tag. hint: read my other hint.
On Tue, Oct 6, 2009 at 10:05 AM, samsun wrote:
>
> value on value stack are, i think, changed when retreiving
> from valuestack thru ,the problem i have is
> value with html tag around it is not interpreted properly
> by browser,
value on value stack are, i think, changed when retreiving
from valuestack thru ,the problem i have is
value with html tag around it is not interpreted properly
by browser, like bold java, i think struts2 tag's internal
freemarker template do some transformation and its output
feed to the browse
If you put "java" onto the value stack, and it
remains unchanged when you retrieve it from the
value stack, that's expected. If you want java
in bold tags, put it in bold tags.
Regarding the normal JSP behavior you cited:
that's a mystery. Scripting variables don't
magically just decide to
i got
< b > java < / b>
back
samsun wrote:
>
> I would like put my question simply like this:
>
> in jsp,
>
> <%! String test="java"; %>
> <%=test%>
> i got bold Java
>
> try to have same thing from struts2
>
>
> i got
> java back,which is not what i want
>
>
>
>
>
>
>
>
I would like put my question simply like this:
in jsp,
<%! String test="java"; %>
<%=test%>
i got bold Java
try to have same thing from struts2
i got
java
back,which is not what i want. here the actual
value is sitting from valuestack.
--
View this message in context:
http://ww
hint: check the documentation of the "property" tag
On Tue, Oct 6, 2009 at 7:12 AM, samsun wrote:
>
> I have to iterate thru a list of strings, some of the string element include
> html tag
> like Copmany Names: it print out litterlly like this
> Copmany Names:, not the bolded word Comp
I would like put my question simply like this:
in jsp,
<%! String test="java"; %>
<%=test%>
i got bold Java
try to have same thing from struts2
i got
java back,which is not what i want
samsun wrote:
>
>
>
> samsun wrote:
>>
>> I have to iterate thru a list of string
Thanks Wes! That's exactly what I needed to get started.
M.
>-Original Message-
>From: Wes Wannemacher [mailto:w...@wantii.com]
>Sent: Tuesday, October 06, 2009 11:33 AM
>To: Struts Users Mailing List
>Subject: Re: Custom Property Tag
>
>I did something similar, but I used s:if as an exa
I did something similar, but I used s:if as an example. Rather than
show or not show in a s:property tag-like setup, i felt like s:if did
the job much better. If you want an example, check out
core/src/main/java/org/apache/struts2/views/jsp/IfTag.java
core/src/main/java/org/apache/struts2/views/fr
Hi folks!!!
i've deployed my application in tomcat via eclipse, but i'm facing some
errors displayed below when i'm starting my tomcat server to run my
application due to that i'm unable to run my app..
Oct 6, 2009 8:33:00 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The
SanJ,
Don't worry about performance. You can't program advanced features by
writing nothing. You'll have to do the check.
>> I have the same idea in mind but how would I know tab being saved is 'A'?
The tab last selected is the tab being saved. As I said, use a hidden
field to tell you.
Paul
On
Or
I can compare at server side, the values of fields in tabs.
If value
SanJ.SANJAY wrote:
>
> Thanks Paul, appreciate that.
>
> I have the same idea in mind but how would I know tab being saved is
> 'A'? I can only detect if the tab is 'clicked or selected' not if the data
> in
I need to show certain fields to certain users based on permissions
(per-user). I was going to create a custom s:property tag, which would
access an IUser object on the value stack. In the tag, it will do:
If (getUser().canAccess('property_name'))
Then
Render the tag/value
Else
Render nothing
I
Thanks Paul, appreciate that.
I have the same idea in mind but how would I know tab being saved is
'A'? I can only detect if the tab is 'clicked or selected' not if the data
in tab is 'changed'.Hmmm ...interesting :-).
I have three tabs in JSP with one form and only one save button fo
samsun wrote:
>
> I have to iterate thru a list of strings, some of the string element
> include html tag
> like Copmany Names: it print out litterlly like this
> Copmany Names:, not the bolded word Company Names:
>
> here is what the iterate tag look like
>
>
>
>
I have to iterate thru a list of strings, some of the string element include
html tag
like Copmany Names: it print out litterlly like this
Copmany Names:, not the bolded word Company Names:
here is what the iterate tag look like
btw, the CompanyNa
SanJ,
This is where you have to modify your code :-) You'll have to take
into account which tab was saved, and only save that tab's data. As
you said yourself, you can't just take the entire ActionForm data.
public void execute(...) {
if (tab being saved is 'A') {
saveTabA();
} else if (t
>From the Archives:
http://article.gmane.org/gmane.comp.jakarta.struts.user/165150
This is probably the same problem. How is this handled? A constant
was mentioned but it must be something in the Struts 2 code because it
doesn't seem to fit anywhere I put it:
...anyway, if this was implemente
Pawel,
You are right, but, the data that I have in tab 1 contains lot of
fields and is kind of different set of data. So if I just change the Tab 2
data and click save, I am unnecessarily re-saving the data of tab1 (which
means firing big queries to Database) when all I need is just save
The components I use NetBean, Glassfish, Struts 1, EJB, Toplink, jdbc, MySQL.
Basically what I want is to extract info from a web site (utf8 encoded
Chinese), store the info in MySQL, retrieve the info and display on my web
site for user to update/change it. But I got problem on the character
enco
Hi all,
consider a story like this:
lets say i'm the user, i'm loading this page,
then i select tab1 and look at the data,
then i select tab2 and change the data tab2_d1,
then i select tab1 and change the data tab1_d1,
then again select tab2 and change data tab2_d1 to it's original value,
and i cli
Problem solved already...i need to set the option to be selected as below
Testing
Sorry for my stupid question>"<
--
View this message in context:
http://www.nabble.com/Struts2-and-html-select-tag-problem-tp25763661p25764804.html
Sent from the Struts - User mailing list archive at Nabble.com.
38 matches
Mail list logo