RE: [S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-17 Thread Jason Wyatt
Marco Musachy, I tried adding includeParams=all, as suggested, but this just included the params that were used to hit the page in the first place. I managed to get something almost working now... The submit button causes the form to be posted to the action and refreshes the tab correctly. The

Re: [OT]Re: Session Expires too early! Help!

2007-05-17 Thread vikas rao
Yes, This is what is happening, I seperated out the condition for userType from getSession and it turns out that it is the userType and not the session which is showing NULL and hence logs out. The user type becomes null when the screen refreshes, so its a problem with the refresh, this is what i

Re: [OT]Re: Session Expires too early! Help!

2007-05-17 Thread Nuwan Chandrasoma
Hi, what i think is, when your page refresh an action is called, in that action you may be resetting or removeing this attribute or there must be some kind of code that is resetting this, as of i know there is no setting in web.xml or struts-config where you can set refresh settings.

Re: Struts 2 migration ISSUES- missing properties in ...

2007-05-17 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/textfield.html you must be looking at the wrong , tag Thanks, Nuwan - Original Message - From: tom tom [EMAIL PROTECTED] To: struts 2.0 forum users user@struts.apache.org Sent: Thursday, May 17, 2007 1:30 AM Subject: Struts 2 migration ISSUES-

Re: RE Displaytag

2007-05-17 Thread Nuwan Chandrasoma
Hi, They are inside the .jar files that comes with the struts dist, Thanks, Nuwan - Original Message - From: vikas rao [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, May 17, 2007 2:04 AM Subject: Re: RE Displaytag Where does one download

Re: checkboxlist formatted vertically?

2007-05-17 Thread Nuwan Chandrasoma
Hi, Is this struts 2 or 1.x? in struts 2., we can create a theme , i think this may help you, but i am not sure this is the best solution for your problem http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme Thanks, Nuwan - Original Message - From: Allen Gilliland

Re: Displaytag

2007-05-17 Thread Balazs Michnay
Thanks for all the replies. If I place the tld file, I get no errors when inserting the %@ taglib uri=/WEB-INF/displaytag-el-12.tld prefix=display % line in the jsp. And the code completion features also works when I start writing display:table..., but the IDE (NetBeans 5.5) still gives an

Re: s:select .../

2007-05-17 Thread Laurie Harper
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: Say, if I want to display an item's value from the map, what is the syntax? I tried this, but obviously this was too intuitive. s:property value=someMap[someKey] / That's what I do. With names changed to protect the innocent, here's one of my

Re: forwarding to another action passing parameters

2007-05-17 Thread Gena Batsyan
Dale Newfield wrote: Gena Batsyan wrote: As I said, if using chain, the whole load of parameters is applied to the second action, which I want to avoid, I want it to get nothing except of what I'm explicitly define. It sounds like you're trying to use the wrong tools. You're looking for a

newline being ignored

2007-05-17 Thread David Harland
I have an object with String variable body. In the body is a newline character then some text. When this is being posted the newline seems to be being trimmed is there any way to stop this please? __ Ufi Limited Registered in

Re: newline being ignored

2007-05-17 Thread Antonio Petrelli
2007/5/17, David Harland [EMAIL PROTECTED]: I have an object with String variable body. In the body is a newline character then some text. When this is being posted the newline seems to be being trimmed is there any way to stop this please? Posted? Where? And what are you using? Struts 1 or

RE: newline being ignored

2007-05-17 Thread David Harland
I am using struts 2. I have the following class code public class test1 { private String body; public void setBody(String body){ this.body = body; } public String getBody(){ return body; } } /code I have a jsp with a textarea whose name is body. The text contained in body is

Re: newline being ignored

2007-05-17 Thread Antonio Petrelli
2007/5/17, David Harland [EMAIL PROTECTED]: I have a jsp with a textarea whose name is body. The text contained in body is newline then some text. The form is then posted to an action that then writes it away to the database. If I then go back to view the same page the newlline character has

RE: newline being ignored

2007-05-17 Thread David Harland
I am doing the following validation. Middle newlines and newlines at the end are preserved but newlines at the beginning are vanishing. I can see the newline at the beginning being returned from the db and hibernate but they disappear when displayed in the jsp. field-validator

Re: newline being ignored

2007-05-17 Thread Antonio Petrelli
2007/5/17, David Harland [EMAIL PROTECTED]: I am doing the following validation. Middle newlines and newlines at the end are preserved but newlines at the beginning are vanishing. I can see the newline at the beginning being returned from the db and hibernate but they disappear when displayed

RE: checkboxlist formatted vertically?

2007-05-17 Thread Al Sutton
If you want to stay with checkboxlist you'll need to define your own theme with a template for checkboxes separated by br/s. You can find information on how to do it at; http://cwiki.apache.org/WW/themes-and-templates.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Init methods in Struts

2007-05-17 Thread newtostruts struts
I want to initialize torque in Struts2. I've got the code to initialize torque and it works fine. The problem is where do I put that code. Is there a place like an init method which is called just once? Thx all for your help. Vinod -

When validation fails, how to add beans back to the value stack

2007-05-17 Thread Struts2 Fan
Hi all, I have this problem since I started using struts 2 and I still cannot find the solution. Please help me. :) Note : I didn't write all the codes. I have a form. s:form %-- order is a property in orderItem bean--% s:set name=order value=orderItem.order/ s:label

[s2] unexpected Tomcat shutdown everyday

2007-05-17 Thread walidito
Hi all, I have a a very strange and critical pb with my struts 2.0.1 application that makes my tomcat server shutdown everyday between 5:40pm and 6:30pm approx. I'm sure that this come from my application since the pb does not occur when I remove it. tomcat is a 5.5.20, my jdk is 1.5-009. When my

Re: When validation fails, how to add beans back to the value stack

2007-05-17 Thread Struts2 Fan
I forgot to mention something. I implemented Preparable interface. And in prepare method I can get the order.id from request. But I don't want to get the value from getRequest().getParameter(order.id) to create the bean and put it again on the value stack. I expect it to populate order bean again

Re: s:select .../

2007-05-17 Thread stanlick
Here are the details: My jsp is iterating over a list of Beans. Each bean contains a Map of key/value pairs both Strings, and a property that reflects the item chosen previously from the Map the key. On my list page, I want to display the values that correspond to the keys selected. Here is

Re: [s2] unexpected Tomcat shutdown everyday

2007-05-17 Thread MK Tan
Hi, Do you have any classes which invoke System.exit()? or do u have any spring scheduler which will terminate tomcat? or any error occurred before tomcat shutdown? Best regards, MK Tan On 5/17/07, walidito [EMAIL PROTECTED] wrote: Hi all, I have a a very strange and critical pb with my

Re: [s2] unexpected Tomcat shutdown everyday

2007-05-17 Thread Skip Hollowell
Off the top of my head, this smells a lot like a supporting app is unavailable at this time, causing the crash of Struts. All signs point to your Database being down. Is this the time of day your DB is being backed up? Skip Hollowell walidito wrote: Hi all, I have a a very strange and

[S2] Freemarker vs struts taglibs

2007-05-17 Thread Jordi Rubio Moreno
Hi, I'm a bit confused. I need to decide if I'll use Freemarker or Struts taglibs, and I don't know the differences between both. E.g. what's the difference between s:iterator and @s.iterator, s:url and @s.url, etc etc... I have seen all the tutorials and examples I have found working with

Re: Struts 2 and Validation Testing

2007-05-17 Thread Ben Morgan
k hall wrote: I really like Struts 2 but has anyone had any success in testing Struts 2's action validation logic? I also really like Struts2 and have been suffering the same irritation with testing validation logic. Having spent a while stepping through the code, it appears that the

Re: [S2] Freemarker vs struts taglibs

2007-05-17 Thread Musachy Barroso
FreeMarker is a template engine, with it's own syntax. JSP tags can be used in FreeMarker, adding some configuration. In the case of Struts tags, no configuration is required, and you can use them like you would in JSP except a few differences, see this for details:

sub-Menu in struts

2007-05-17 Thread Viplav Kallepu
Hi, I am using struts 1.3.8. I have menu buttons on the left side of the page. What I have to is when I click the menu a submenu should open below it. Can anyone please help me how to do this in struts without refreshing page. Any help is appreciated. Thanks and Regards Viplav Kallepu

Exceptions thrown in prepare() method ignored

2007-05-17 Thread Richard Wallace
Hello, I have an action with a prepare method. The prepare method loads some objects to operate on for the editing, so I have the interceptor stack setup with the params, prepare, params interceptors. My prepare method is public void prepareCreate () { if (m_projectId == null) {

Tiles Interceptor Stack

2007-05-17 Thread stanlick
What is a typical interceptor-stack for a Tiles app? I'm extending tiles-default now and things work okay. However, it seems awful slow! How much of this performance problem might have to do with struts.devMode = true? -- Scott [EMAIL PROTECTED]

Re: Init methods in Struts

2007-05-17 Thread newtostruts struts
Anyone please... newtostruts struts [EMAIL PROTECTED] wrote: I want to initialize torque in Struts2. I've got the code to initialize torque and it works fine. The problem is where do I put that code. Is there a place like an init method which is called just once? Thx all for your help.

Re: checkboxlist formatted vertically?

2007-05-17 Thread Allen Gilliland
yeah, this is for struts2. that's a shame, hacking my own theme just so that my list gets formatted vertically seems overkill :( -- Allen Nuwan Chandrasoma wrote: Hi, Is this struts 2 or 1.x? in struts 2., we can create a theme , i think this may help you, but i am not sure this is the

RE: Init methods in Struts

2007-05-17 Thread Zhang, Larry \(L.\)
Try this: in struts-config.xml put this plug-in className=comYourPlugin /plug-in And then define YourPlugin as: ... import org.apache.struts.action.PlugIn; public class YourPlugin implements PlugIn { public void destroy() { // holder for things to do

Re: Init methods in Struts

2007-05-17 Thread Dave Newton
--- newtostruts struts [EMAIL PROTECTED] wrote: newtostruts struts [EMAIL PROTECTED] wrote: I want to initialize torque in Struts2. I've got the code to initialize torque and it works fine. The problem is where do I put that code. Is there a place like an init method which is called just

Re: checkboxlist formatted vertically?

2007-05-17 Thread Josh Vickery
I agree! I would use checkboxes instead of a checkboxlist rather than write my own theme. I did something like that recently: ul s:iterator value=questions li s:checkbox name=assignedQuestionIdMap[%{id}]/jsp:include page=/web/includes/question.jsp/ /li /s:iterator /ul On

RE: Init methods in Struts

2007-05-17 Thread newtostruts struts
Larry thanks for the reply. I'm in Struts2 mode and I don't see a PlugIn interface anywhere. Also, I read this on apache site ' Struts 1 provides a plugin class that provides listener-like capabilities. The Struts 2 plugins are like Eclipse or FireFox plugins, and not at all like

Re: Init methods in Struts

2007-05-17 Thread newtostruts struts
Dave, I don't really have any preferrence at this time, I'll use anything that'll work :o) Could you please explain the ' context listener ' method you follow. Thx Dave Newton [EMAIL PROTECTED] wrote: --- newtostruts struts wrote: newtostruts struts wrote: I want to initialize

Request parameters appended to urls that don't need them.

2007-05-17 Thread Will Smith
Hi, I'm new to struts and liking what I've seen so far. I'm building a toy application to learn the framework (A simple blogging app). I have an action with a view() method that returns the string view. What happens is that a link is clicked to view details about a particular blog, and a request

RE: Init methods in Struts

2007-05-17 Thread Zhang, Larry \(L.\)
Then I have no clue other than newton.dave's approach ... -Original Message- From: newtostruts struts [mailto:[EMAIL PROTECTED] Sent: Thursday, May 17, 2007 2:46 PM To: Struts Users Mailing List Subject: RE: Init methods in Struts Larry thanks for the reply. I'm in Struts2 mode

Re: Init methods in Struts

2007-05-17 Thread Dave Newton
--- newtostruts struts [EMAIL PROTECTED] wrote: Could you please explain the ' context listener ' method you follow. First one I found: http://www.stardeveloper.com/articles/display.html?article=200901page=1 (Also has stuff about session listeners, but you can ignore that.) d.

Re: Request parameters appended to urls that don't need them.

2007-05-17 Thread Dave Newton
--- Will Smith [EMAIL PROTECTED] wrote: Everything works as expected, but I noticed that when the Blog_view view is rendered, my navigation links now have that request parameter appended to them when the don't need it. http://struts.apache.org/2.x/docs/url.html See the includeParams

Re: forwarding to another action passing parameters

2007-05-17 Thread Dale Newfield
Gena Batsyan wrote: Why not, we have two actions with absolutely distinct purposes, one for entry creation and another for entity listing, but the listing has a little feature to display messages. If you have two actions you want to expose to your users, then by all means they should both be

Re: Init methods in Struts

2007-05-17 Thread newtostruts struts
Dave, That works great. Thank you so much. Dave Newton [EMAIL PROTECTED] wrote: --- newtostruts struts wrote: Could you please explain the ' context listener ' method you follow. First one I found: http://www.stardeveloper.com/articles/display.html?article=200901page=1

problems with file upload parameters and custom interceptor stack

2007-05-17 Thread Allen Gilliland
i am having a strange problem with doing file uploads using a custom interceptor stack. basically, if my custom interceptor stack does not directly reference the defaultStack then i am not getting request parameters from my multipart requests. the easiest way to describe it is by showing.

Simple AJAX combo box select = update a few controls

2007-05-17 Thread stanlick
I would like to see an example of using S2 tags to populate a few controls once an item is selected from a combo box. Does someone have a cookbook for this without giving me a bloody nose? -- Scott [EMAIL PROTECTED]

[S2] HTTP Status 404 - result 'null' not found

2007-05-17 Thread sr
It must be some configuration issue. My simple application works fine in Windows environment, but we get this error on Sun Solaris. We use Sun App Server 8.2 and 8.1 accordingly. I failed to reproduce the problem on Windows, so this can be just Solaris issue. I am sure that I reach the struts.xml

Re: Request parameters appended to urls that don't need them.

2007-05-17 Thread Will Smith
On 5/17/07, Dave Newton [EMAIL PROTECTED] wrote: --- Will Smith [EMAIL PROTECTED] wrote: Everything works as expected, but I noticed that when the Blog_view view is rendered, my navigation links now have that request parameter appended to them when the don't need it.

Re: Session Expires too early! Help!

2007-05-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vikas, vikas rao wrote: Hi, I am working on a bug in my application, the problem is, the session expires every 2 minutes or so and I have to log back in to continue, this is very frustrating. Do you have cookies enabled or are you using URL

Re: [S2] HTTP Status 404 - result 'null' not found

2007-05-17 Thread Laurie Harper
You need to check the Sun App Server logs to see if there is any more specific error detail there. If that doesn't give you enough information to resolve the problem, you may need to configure Log4j in your webapp to get Struts logging output. L. sr wrote: It must be some configuration

Re: Request parameters appended to urls that don't need them.

2007-05-17 Thread Dave Newton
--- Will Smith [EMAIL PROTECTED] wrote: Is this something that is commonly needed? Actually, I don't really know... Personally I think defaulting to *not* including params would make more sense as that is expected behavior. *shrug* d.

Re: s:select .../

2007-05-17 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Here are the details: My jsp is iterating over a list of Beans. Each bean contains a Map of key/value pairs both Strings, and a property that reflects the item chosen previously from the Map the key. On my list page, I want to display the values that correspond to

Re: struts2 vs jsf?

2007-05-17 Thread Laurie Harper
אלחנן מעין wrote: first of all , i know it's not all or nothing, i know that struts2 has a plug-in for jsf, my question ism why? what does JSF connection to struts2 gives me? i know that struts2 tags give me automatic validation messages atttached to each control, automatic layout (too

Re: When validation fails, how to add beans back to the value stack

2007-05-17 Thread Laurie Harper
You could point your input result to the same action you use to populate the form in the first place. That way you can do the same data pre-fetching on validation failure as you do on first displaying the form. The other alternative would be to make sure all data you want to have available is

Re: When validation fails, how to add beans back to the value stack

2007-05-17 Thread Guillaume Carré
2007/5/18, Laurie Harper [EMAIL PROTECTED]: You could point your input result to the same action you use to populate the form in the first place. That way you can do the same data pre-fetching on validation failure as you do on first displaying the form. how do you point to the previous action

Help with No action instance for path could be created problem

2007-05-17 Thread Daniel.Rodriguez
Hello guys, I'm getting this problem (an old problem I haven't seen since my first days with Struts). The problem occurs during my Maven2 Test Goals. (I'm using StrutsTestCase). Right now I've been going on for the entire afternoon and I don't find my problem. Here is my checklist for this

[S2] Is there a way to turn of formatting of controls with ajax theme?

2007-05-17 Thread Jason Wyatt
I want to use ajax submit buttons to refresh tabs, but when ajax theme is set, the buttons are wrapped in additional tr and td tags. This is doing interesting and unhelpful things to our page layout. This submit tag: s:submit name=save value=Save formId=stcSearchForm

Action redirect passing object

2007-05-17 Thread Mansour
I need away to redirect to Action1 parameters and after processing and creating an object, I need to pass this object to Action2 for further processing. That's what I am doing: action name=getAccount class=action.AccountAction method=getAccountById result name=success

Re: [S2] Is there a way to turn of formatting of controls with ajax theme?

2007-05-17 Thread Martin Gainty
1)first instinct says to change the 'theme' as soap themes typically interact with div tag OR http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/JspContext.html 2)override the setContext with a new context (JspContext) where the JspContext you are creating has the selected attributes

Re: Action redirect passing object

2007-05-17 Thread Mansour
It's working now. I just changed the redirect-action to chain. I don't know what's the difference, but it's working. Mansour wrote: I need away to redirect to Action1 parameters and after processing and creating an object, I need to pass this object to Action2 for further processing.

Re: [S2] Is there a way to turn of formatting of controls with ajax theme?

2007-05-17 Thread Dave Newton
--- Martin Gainty [EMAIL PROTECTED] wrote: 1)first instinct says to change the 'theme' as soap themes typically interact with div tag I think he means ajax. I don't know which bits of the ajax are rendered by the tag template. The idea is correct; if you don't want the extra decorations you'll

Re: Action redirect passing object

2007-05-17 Thread Dave Newton
--- Mansour [EMAIL PROTECTED] wrote: It's working now. I just changed the redirect-action to chain. I don't know what's the difference, but it's working. I'd recommend exploring the differences a bit more; there might be some important things to learn about how HTTP works, the nature of

formatKey negative numbers

2007-05-17 Thread chamal desilva
Hi, I am using bean:write tag to display properties (return type Double) of my form bean. I am also using formatKey attribute to format the output. This is the format key I have mentioned in ApplicationResources.properties file. display.currency=#,## 0.00 Formatting works fine. But negative

Re: Session Expires too early! Help!

2007-05-17 Thread vikas rao
No, I didnt use URL rewriting or cookies, session.setAttribute() was used, but that wasnt the problem, i figured it out, the problem was that there was somehow there was this : window.event.clientx and clienty rules in the jsp page which, if true, would take the control to the log out page and

Re: showcase file download in jetty server

2007-05-17 Thread Pedro Herrera
I have the same problem using jboss, how is your action writed ? Herrera sudeepj2ee wrote: HI I am using jetty server and the zip file download part of showcase is not working in the jetty its giving the following error-: java.lang.IllegalArgumentException: Can not find a

Re: Session Expires too early! Help!

2007-05-17 Thread Nuwan Chandrasoma
i warned you about this :) - Original Message - From: vikas rao [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, May 18, 2007 2:59 AM Subject: Re: Session Expires too early! Help! No, I didnt use URL rewriting or cookies, session.setAttribute()

Re: formatKey negative numbers

2007-05-17 Thread Nuwan Chandrasoma
Hi, the bean:write is using the http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html to format number, you can get a idea from this page how to format numbers, Thanks, Nuwan - Original Message - From: chamal desilva [EMAIL PROTECTED] To: user@struts.apache.org