Hi,
Why dont you give a try with JSTL c:if tag. it has more control over
the logic you want to check.
Thanks,
Nuwan
hmkmajeed wrote:
Hi All,
I need to translate:
if ( a == 'option1' || a == 'option2' )
to struts code
I don't know how to put || or in logic:equal ?�?�?�?
Thanks for the info Nuwan,
but is there anyway to do without using JSTL?..
nuwan chandrasoma-2 wrote:
Hi,
Why dont you give a try with JSTL c:if tag. it has more control over
the logic you want to check.
Thanks,
Nuwan
hmkmajeed wrote:
Hi All,
I need to translate:
if (
My struts.xml:
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;#60;action name=StoreLawDraft
class=lol.action.admin.StoreLawAction#62;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; #60;result
name=success#62;/admin/processlaw.jsp#60;/result#62;
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;#60;result
Sorry, but I can't read it, could you just send it as simple text?
Regards
--
Lukasz
http://www.lenart.org.pl/
2008/7/17 holod [EMAIL PROTECTED]:
My struts.xml:
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;#60;action name=StoreLawDraft
class=lol.action.admin.StoreLawAction#62;
Hello,
I think I found a problem in struts 2.1.1 (or misunderstood the documentation).
I have an action that can search for persons (querystring for name, list of
persons retreived).
I wanted to reuse that functionality for a form where a user has to be picked
(to be added to a group of
Stacktrace:
[17.07.08 11:20:18:239 MSD] 0066 SystemOut O #PrepareLawDraftAction
RESULT = success
[17.07.08 11:20:18:255 MSD] 0066 ServletWrappe E SRVE0068E:
Необрабатываемая исключительная ситуация сгенерирована в одном из служебных
методов сервлета: /admin/processlaw2.jsp.
name of the action in struts.xml, so you should put # in there.
It should be:
you shouldn't put # in there.
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
hi,
Is there any easy way to have a widget like e.g. dojo's datetimepicker
to keep its original style despite applying any global css?
TIA,
regards,
Giovanni
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Lukasz Lenart wrote:
name of the action in struts.xml, so you should put # in there.
It should be:
you shouldn't put # in there.
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL
Resolved!
Looking around a bit found couple of JIRA tickets about introducing the
datetimepicker parameter templateCssPath. Also found the offending
entries in the global css theme. So what I did was to experiment and
create a new css file called datetimepickerfix.css that would resolve
the
I've fixed that already, the same exception. Seems like i've understood the
problem: I don't have jars which work with struts tags.
That it looks like, missing constructor
HttpRequestParametersHashModel(HttpServletRequest)
Regards
--
Lukasz
http://www.lenart.org.pl/
Finally, I found a error.
I've got freemaker.jar and freemaker-2.x.x.jar in classpath.
freemaker.jar is used by other app, freemaker-2.x.x is used by struts2 app.
So, the first freemaker.jar was on duty to provide classes.
Now, I've removed ald version of freemaker, and this terrible exception
Hi,
In my form I have employee number, name, and roles, here employee number
and name are text fields and roles is a checkboxlist, to generate the list
boxes i had a map called rolesMap in my action class, as well i have a set
called userRoles that specifies the items to be selected.
*jsp*
Hi list...
I got a page that has got a sx:div loading its content from an action
(result is search.jsp) and a div that is loaded via
divDisplay.innerHTML=data; and topic.subscribe after I clicked on a
button in search.jsp that publishes the necessary topic.
The publish topic is called from a js
I've checked the request and those values from hidden input fields
(name, nameKey) are not there.
I noticed that but I don't think id is a mandatory field... id is
give for users to do manipulation on the widget, other wise it would be
mandatory field.
Any way did you check what is the
Hi,
Please discard this email. as my action mapping is wrong it is behaving
like this, now i could fix the issue.
Sorry.
On Thu, Jul 17, 2008 at 4:03 PM, Narayana S [EMAIL PROTECTED] wrote:
Hi,
In my form I have employee number, name, and roles, here employee
number and name are text
[EMAIL PROTECTED] wrote:
Hello,
I think I found a problem in struts 2.1.1 (or misunderstood the documentation).
I have an action that can search for persons (querystring for name, list of
persons retreived).
I wanted to reuse that functionality for a form where a user has to be picked
(to be
Hello All,
I am trying to use an s:div tag but need to update the href dynamically.
To give an idea I have a s:div listenTopic=/refresh id=updateDiv
href=testAction.action? theme=ajax/. I would like to on some user
event to either in javascript or any other way allow the href to append
Hello for everybody;
We have a big trouble with our Web Application. Our Tomcat 5.5 Server is
working properly, as we can see. The problem is concerning to the Web Project.
It’s frizzing randomly. It doesn’t matter how many time was reloaded. From this
moment never user can get in the Web
Hi Cristian,
it looks like a out of memory problem, try to assign more memory to you
JVM with:
export JAVA_OPTS='-Xmx756m -server -XX:MaxPermSize=256m'
export CATALINA_OPTS='-Djava.awt.headless=true'
El jue, 17-07-2008 a las 18:05 +0200, STRUTS SL. Mailing List escribió:
Hello for everybody;
All that is obvious from those errors is that the Tomcat application server
has run out of memory and has halted as a result. It is not obvious why
this would happen; there are many reasons it could happen.
Also, my own app does not have a copy of servlet.jar inside its WAR file and
I do not
I'm guessing the operation you're waiting for can take quite a while to
complete. Otherwise modifying the architecture of this probably
wouldn't be worth it.
You might consider the flow of the original action to simply report a
simple submitted and processing result, and then implement an
Maybe you got some memory leak in your code. Use a memory-inspecting
tool and check for static objects.
If you check your memory usage, maybe you'll find that you eat all the
memory available, so you should tune your tomcat server changing the
memory parameters.
Regards,
Paolo Niccolò Giubelli
So I was able to achieve what I wanted to by setting separateScripts=false
, I did read that somewhere but I was setting the separateScripts=false in
the wrong div (using a div to load another div). Now even after changing
the href to something completely different then publishing to the div to
what you are looking for is the formId attribute. You can specify
the id of a form, and the fields of the form will be submitted when
the request is made. Check showcase for examples.
musachy
On Thu, Jul 17, 2008 at 11:38 AM, cree [EMAIL PROTECTED] wrote:
Hello All,
I am trying to use an
That's exactly what I am looking for thank you very much! You hit it right
on the nail.
Musachy Barroso wrote:
what you are looking for is the formId attribute. You can specify
the id of a form, and the fields of the form will be submitted when
the request is made. Check showcase for
apache.org is currently down.
Big deal!, you might say... Well with my recurring problem of Struts2.1.2
always trying to access that website on startup, I cannot restart my local
server This is very infuriating!
Are we agreed that Struts should not be attempting to access any remote
server
It looks like that something wrong in your code/archtechture. Was it slow
right after you deployed the app, or gettting slower during the operation?
On Thu, Jul 17, 2008 at 12:45 PM, Paolo Niccolò Giubelli
[EMAIL PROTECTED] wrote:
Maybe you got some memory leak in your code. Use a
Hello, which is a prefered way to add actionform into session scope or
in the request scope? Is that true that putting actionForm into the
session is a bad idea? Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
The application is started well and after a few hours or minutes that stays
frozen. without accepting more users.
thanks to all are very helpful
De: Jianshuo Niu [mailto:[EMAIL PROTECTED]
Enviado el: jue 17/07/2008 19:41
Para: Struts Users Mailing List
Hi Struts Users,
Is it possible to define wildcard mappings with an annotated action?
I'm using struts 2.0.11 and I'd like to do some wildcard mapping with a
zero-config and annotations paradigm.
For example, I'd like to have a way to have http://site.com/page/variable go
to an action annotated
I would take a look at the code first to see if there is any unclosed
connection, loops, etc. Then, check the jdk version and tomcat config files.
On Thu, Jul 17, 2008 at 4:10 PM, STRUTS SL. Mailing List
[EMAIL PROTECTED] wrote:
The application is started well and after a few hours or minutes
I know of tools that help test my application, for which I have looked and
looked again the code. Or some techniques to help me refine ...
thanks
De: Jianshuo Niu [mailto:[EMAIL PROTECTED]
Enviado el: jue 17/07/2008 22:22
Para: Struts Users Mailing List
I haven't used this, but thirty seconds' search on tomcat memory leak
tools led me to this: http://java-source.net/open-source/profilers/jmemprof
jk
On Thu, Jul 17, 2008 at 4:34 PM, STRUTS SL. Mailing List
[EMAIL PROTECTED] wrote:
I know of tools that help test my application, for which I
thousand thanks attempts with what I spend. if you miss one you the idea
agradecere.
De: Jim Kiley [mailto:[EMAIL PROTECTED]
Enviado el: jue 17/07/2008 22:41
Para: Struts Users Mailing List
Asunto: Re: [SPAM] Re: Help please TOMCAT 5 + Struts
I haven't used
Hi,
In my action, I have several variables of type int. When the variable
is not initialized, it's displayed as 0 in the JSP. I would like
un-initialized variable of type int to be display as blank/empty. What
is the best way to accomplish this? Thanks.
Public class XXAction extends
Use Integer instead of int
Regards,
Jishnu Viswanath
Software Engineer
*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
Tavant Technologies Inc.,
www.tavant.com
PEOPLE :: PASSION :: EXCELLENCE
-Original Message-
From: Phan, Hienthuc T [mailto:[EMAIL PROTECTED]
Sent: Friday,
That works. Thanks. I'm migrating from Struts 1 was hoping not have
to change the data type.
-Original Message-
From: Jishnu Viswanath [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2008 2:24 PM
To: Struts Users Mailing List
Subject: RE: Struts2: display int in JSP
Use
Its not because of struts, int can not contain null, so nearest possible
brother is 0 so they put 0.
Ok, if you still want to use int, then put getter setter as String and
parse the input and output to integer and string.
int age = -1;
public String getAge(){
if(age0)
In my case it is a very long running action but even in the case of
short running actions I would think users would want to be able to
navigate away from the progress page and return. I thought maybe I
just didn't know how to configure the actions correctly
EDIT: So while writing the above
Hey in your case for the input field not null any such silly thing you
can actually write validation xml.
That will actually take care of returning back to the page with input
error.
Regarding the long time to take thingy, I don't know how the return
SUCCESS is going to help the client, the
On Thu, Jul 17, 2008 at 7:58 PM, Jishnu Viswanath
[EMAIL PROTECTED] wrote:
Hey in your case for the input field not null any such silly thing you
can actually write validation xml.
That will actually take care of returning back to the page with input
error.
Actually I can't. In my real code
S2 is awesome by the way it modularises the things.
But to me writing a valid ognl in jsp,validation layer, using value stack
and debugging it is extremely difficult. The only way i do it is re-jaring,
redeploying and restarting the tomcat. Moreover most of the times i do'nt
understand why
thanks for the reply,
I created https://issues.apache.org/struts/browse/WW-2724
and started changing my code to using AJAX for the form...but I'd prefer
this solution...
best regards,
Kris
Jeromy Evans - Blue Sky Minds wrote:
Thorough analysis! I cringe thinking of how much time it's
44 matches
Mail list logo