Re: how to use logical operator in struts logic:equal

2008-07-17 Thread Nuwan Chandrasoma
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 ?�?�?�?

Re: how to use logical operator in struts logic:equal

2008-07-17 Thread hmkmajeed
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 (

Re: Can't access bean from jsp

2008-07-17 Thread holod
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

Re: Can't access bean from jsp

2008-07-17 Thread Lukasz Lenart
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;

[S2-ActionComponent] Action not on the stack while evaluating body

2008-07-17 Thread Kris.BEAUMONT
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

Re: Can't access bean from jsp

2008-07-17 Thread holod
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.

Re: Can't access bean from jsp

2008-07-17 Thread Lukasz Lenart
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,

easy way to keep widget css style at default?

2008-07-17 Thread Giovanni Azua
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

Re: Can't access bean from jsp

2008-07-17 Thread holod
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

Re: easy way to keep widget css style at default?

2008-07-17 Thread Giovanni Azua
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

Re: Can't access bean from jsp

2008-07-17 Thread Lukasz Lenart
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/

Re: Can't access bean from jsp

2008-07-17 Thread holod
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

Checkbox List Problem...

2008-07-17 Thread Narayana S
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*

Weired browser behaviour

2008-07-17 Thread Jan Froehlich
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

Re[7]: autocompleter bug in forefox3 but not in ie6

2008-07-17 Thread Piotr Dzeviarylin
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

Re: Checkbox List Problem...

2008-07-17 Thread Narayana S
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

Re: [S2-ActionComponent] Action not on the stack while evaluating body

2008-07-17 Thread Jeromy Evans
[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

s:div Append Href

2008-07-17 Thread cree
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

Help please TOMCAT 5 + Struts

2008-07-17 Thread STRUTS SL. Mailing List
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

Re: Help please TOMCAT 5 + Struts

2008-07-17 Thread Jorge Martín Cuervo
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;

Re: Help please TOMCAT 5 + Struts

2008-07-17 Thread Jim Kiley
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

RE: ExecAndWait (navigating back to the progress page)

2008-07-17 Thread Karr, David
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

Re: Help please TOMCAT 5 + Struts

2008-07-17 Thread Paolo Niccolò Giubelli
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

Re: s:div Append Href

2008-07-17 Thread cree
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

Re: s:div Append Href

2008-07-17 Thread Musachy Barroso
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

Re: s:div Append Href

2008-07-17 Thread cree
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

Re: [S2] attempts to access www.opensymphony.com on Struts startup???

2008-07-17 Thread Pierre Thibaudeau
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

Re: Help please TOMCAT 5 + Struts

2008-07-17 Thread Jianshuo Niu
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

Action form in session scope

2008-07-17 Thread Zhang, Larry (L.)
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

Help please TOMCAT 5 + Struts

2008-07-17 Thread STRUTS SL. Mailing List
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

Wildcard mappings and Annotations

2008-07-17 Thread Eric Rank
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

Re: Help please TOMCAT 5 + Struts

2008-07-17 Thread Jianshuo Niu
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

RE: [SPAM] Re: Help please TOMCAT 5 + Struts

2008-07-17 Thread STRUTS SL. Mailing List
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

Re: [SPAM] Re: Help please TOMCAT 5 + Struts

2008-07-17 Thread Jim Kiley
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

RE: [SPAM] Re: Help please TOMCAT 5 + Struts

2008-07-17 Thread STRUTS SL. Mailing List
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

Struts2: display int in JSP

2008-07-17 Thread Phan, Hienthuc T
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

RE: Struts2: display int in JSP

2008-07-17 Thread Jishnu Viswanath
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,

RE: Struts2: display int in JSP

2008-07-17 Thread Phan, Hienthuc T
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

RE: Struts2: display int in JSP

2008-07-17 Thread Jishnu Viswanath
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)

Re: ExecAndWait (navigating back to the progress page)

2008-07-17 Thread Chase
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

RE: ExecAndWait (navigating back to the progress page)

2008-07-17 Thread Jishnu Viswanath
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

Re: ExecAndWait (navigating back to the progress page)

2008-07-17 Thread Chase
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

Re: [OT] What slows you down?

2008-07-17 Thread ravi_eze
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

Re: [S2-ActionComponent] Action not on the stack while evaluating body

2008-07-17 Thread beaumkr
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