[S2] IE does not refresh page

2008-02-18 Thread carmi_cd
Hi i have program that when the user input data in the form and clicked the save button, it should display list of records that reflects changes made in the record edited thru the form. In Firefox it works perfectly but in IE the list does not reflect the changes made. It was refreshing the list b

Re: JSP Tree

2008-02-18 Thread naveen k
Thank you friend. It is very helpful for me. Naveen On Feb 18, 2008 6:33 AM, santosh gokak <[EMAIL PROTECTED]> wrote: > Hi Naveen, > > Got this from google.. http://jsptree.sourceforge.net/ > > ~Santosh > > On Feb 16, 2008 8:50 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > > > --- naveen k <[EMAI

Re: [S2] Validation

2008-02-18 Thread carmi_cd
i was able to identify the problem it was only in IE,I put the showLoadingText="false" to my save button then it validates correctly before it wasn't able to get the form values in IE. still thanks newton.date. :-) newton.dave wrote: > > --- carmi_cd <[EMAIL PROTECTED]> wrote: >> Hi I have a

RE: [S2] Fetching request parameters in jsp

2008-02-18 Thread Gaurav Arora
Thanks. As I suspected I was missing something really obvious. -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 4:04 AM To: Struts Users Mailing List Subject: Re: [S2] Fetching request parameters in jsp On top of the OGNL error, your JS

RE: i18N jsp application on linux and windows

2008-02-18 Thread Raghuveer
Hello Lauri, This is with reference.. http://www.mail-archive.com/user@struts.apache.org/msg72782.html Your reply on list is helping me a lot to dig into the problem.Please continue your help . response.getCharacterEncoding()is returning ISO-8859-1. I have set it to charset - ISO-8859

Re: Sitemesh & Struts 2

2008-02-18 Thread Jeromy Evans
On Feb 17, 2008 8:07 PM, Matthew Seaborn <[EMAIL PROTECTED]> wrote: Has anyone had much experience with SiteMesh and Struts 2? Do they 'play' together well? Are there better alternatives when styling/compiling pages? Thanks. As Don stated, SiteMesh plays very well with Struts2 The

Re: Unable to make Type Conversion work in Struts2

2008-02-18 Thread Jeromy Evans
Did you ever resolve this? I always use a Map rather than a List because historically there was a problem accessing Lists via the OGNL implementation. I don't know whether it was fixed ie. Substitute the List with a Map and address the items by the appropriate key instead of the index Movi

Re: Tabbed panel problem

2008-02-18 Thread Jeromy Evans
I don't quite understand what you're asking for, but I suspect: - you're doing the right thing using a remote tab/remote div to load html fragments into your tabs asynchronously, but; - you also want to use the notifyTopics and listenTopics features of these tags to trigger refreshing/reloads

Re: Availability of Struts 2.1.0? ... related to XWork 2.1.0

2008-02-18 Thread Musachy Barroso
If you cant wait for the release and want to build it by yourself this could help: http://struts.apache.org/2.x/docs/building-with-maven.html musachy On Feb 18, 2008 5:06 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Maxx <[EMAIL PROTECTED]> wrote: > > I'm wondering if the version 2.1.0 of St

Re: How to come back to previous action?

2008-02-18 Thread Wes Wannemacher
Eduardo, You might want to take a look at the breadcrumb plugin. It's basic functionality is to create a breadcrumb trail like many popular sites on the 'net. http://cwiki.apache.org/S2PLUGINS/breadcrumbs-plugin.html It may not be exactly what you're looking for, but it will provide a good exam

Re: [S2] Fetching request parameters in jsp

2008-02-18 Thread Wes Wannemacher
On top of the OGNL error, your JSP page is also incorrect. Your taglib declaration points to 's' as the prefix, but you are using ' Oops, and here's the link: > > http://struts.apache.org/2.x/docs/ognl-basics.html > > Laurie Harper wrote: > > Yup; specifically, request attributes are available th

Re: Availability of Struts 2.1.0? ... related to XWork 2.1.0

2008-02-18 Thread Dave Newton
--- Maxx <[EMAIL PROTECTED]> wrote: > I'm wondering if the version 2.1.0 of Struts2 would have to be > released one day as I found it was initially due in late October 2007. While Wendy already answered your question, I'll add that the comment at the bottom of the 2.1.0 release notes states that i

Re: Availability of Struts 2.1.0? ... related to XWork 2.1.0

2008-02-18 Thread Wendy Smoak
On Feb 18, 2008 1:21 PM, Maxx <[EMAIL PROTECTED]> wrote: > I'm wondering if the version 2.1.0 of Struts2 would have to be > released one day as I found it was initially due in late October 2007. > (see links below) > Problem is I currently need a fix/enhancement about Enum native > conversion, whi

Availability of Struts 2.1.0? ... related to XWork 2.1.0

2008-02-18 Thread Maxx
Hello, I'm wondering if the version 2.1.0 of Struts2 would have to be released one day as I found it was initially due in late October 2007. (see links below) Problem is I currently need a fix/enhancement about Enum native conversion, which was already resolved in... XWork 2.1.0 http://jira.open

Re: populating ActionFormBean-s

2008-02-18 Thread auz
yep both ActionFormBeans are java bean compliant here's the code note i didn't copy any irelevevant method (dont have reset() method for any bean) = bean1 == package beans.studyProgram; public class StudyProgram extends org.apache.struts.v

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Chriss Nold
The j2ee preview target runtime was included in order to resolve an issue with eclipse. I had to include it so that eclipse would see my javax classes. It was blowing up anytime HTTPServletRequest, HTTPServletResponse, or PageContext was used. I don't know if this is something specific to the Eu

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Chriss Nold
Dave, Thank you for all of the help, I really appreciate it. I had to go into each project and manually create the classes folders in the WEB-INF folder and point the classpath to them and everything seems to be working correctly now for both projects. It never fails, one little thing and ever

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Musachy Barroso
I think the "preview" thing is the option under "Basic" when you click "Run on Server" and choose to "Manually define a new server". Try running on tomcat instead. In any case what is happening is that struts.xml is not on the classpath and the filter is not finding it musachy On Feb 18, 2008 1:

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Dave Newton
--- Chriss Nold <[EMAIL PROTECTED]> wrote: > I am importing the project into eclipse from the .war file with the j2ee > preview enabled for the target runtime environment. Not sure what all that is. What's in your .classpath file? >Marked as a tomcat project. >Context name: /Blank >

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Chriss Nold
Sorry, Dave, I apparently did not receive your response and thought that may I should resubmit a more detailed description of the problem I was having. I am running TomCat 6.0 and the latest versions of the jre and jdk. I have successfully installed the tomcat plugin and have a tomcat server

Re: radio tag - how to have the items order vertically?

2008-02-18 Thread xianwinwin
THANK YOU Jeromy this solved the question I presented. Jeromy Evans - Blue Sky Minds wrote: > > xianwinwin wrote: >> Thank you Jeramy! >> I tried to use the cssStyle for a while and came up with this: >> >> > name="groupSelect" >> list="groups"/> >> > > Unfortunately the the cssSty

[OT] Re: Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Dave Newton
--- Chriss Nold <[EMAIL PROTECTED]> wrote: > Is there something in the configuration of Eclipse Europa that I need to > change? Everything appears to be present, but the mapping is not being > found. You didn't answer any of the questions I asked regarding various project classpath settings, how

Re: S2 NESTED iterators & FLAT HashMaps:

2008-02-18 Thread Laurie Harper
> fruits KEY Gets the key from the map entry and displays it; OK here. > fruits Val Gets the 'value' property of the iterator status object and uses that as a lookup key in the application's message resources. Umm... First, I'm not sure if the iterator status object has a value property, bu

Action mapping not found - eclipse configuration problem???

2008-02-18 Thread Chriss Nold
Hello all, I have used struts before, but I have never configured it or eclipse before and I am new to Struts2. I am trying to configure that struts-blank project, but I am receiving the following error when I attempt to accept the page: SEVERE: Could not find action or result There is no Act

RE: S2 NESTED iterators & FLAT HashMaps:

2008-02-18 Thread Dave Newton
--- Ravichandra C <[EMAIL PROTECTED]> wrote: > FE and BR are the static text beside which the result would be > displayed. I was using them to recognize the two results differently... > did I answer ur question? No. I asked why you're using the status variable of the inner iterator in the tag:

Tabbed panel problem

2008-02-18 Thread Paranoid_Fabio
Hello. I try to explain the problem as cleary as possible: I want to manage a jsp with two views: mainPage.jsp is a jsp with a tabbed panel. In the tabbed panel I've two tabs. In each tab calls an action and shows the resulting jsp correctly. Here's the code of mainPage.jsp tabbed panel:

Re: How to come back to previous action?

2008-02-18 Thread Chris Pratt
On Feb 18, 2008 7:41 AM, Eduardo Yáñez Parareda <[EMAIL PROTECTED]> wrote: > The solution I'm going for is to implement a Filter or Interceptor which > manages a stack of requests. I'll push the action and the request > attributes > in the stack, so when I have to go back, I can pop from the stack

RE: S2 NESTED iterators & FLAT HashMaps:

2008-02-18 Thread Ravichandra C
Hi, I am trying this way: fruits KEY fruits Val colour The issue is that: Fruits key: is being displayed fine Fruits Val: nothing is being dislayed; infact when I tr

Re: S2 NESTED iterators & FLAT HashMaps:

2008-02-18 Thread Musachy Barroso
When you use the "iterator" tag, the value of the "id" tag becomes the reference to the current object on that iteration(same as "top" on this case). When iterating over a map, the object is a Map.Entry, so you need to access the "key" and "value" properties, like Key: same as Value

RE: S2 NESTED iterators & FLAT HashMaps:

2008-02-18 Thread Ravichandra C
FE and BR are the static text beside which the result would be displayed. I was using them to recognize the two results differently... did I answer ur question? -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, February 18, 2008 10:00 PM To: Struts Users Mailin

Re: S2 NESTED iterators & FLAT HashMaps:

2008-02-18 Thread Dave Newton
--- ravi_eze <[EMAIL PROTECTED]> wrote: > i have 4 hashmaps as follows: > (1). HashMap> treesFruitsMap = new HashMap(); > (2). HashMap> fruitsColourMap = new HashMap(); > (3). HashMap colourVitaminMap = new HashMap(); That's only three. > any idea how to go with this? I tried as follows but its

S2 NESTED iterators & FLAT HashMaps:

2008-02-18 Thread ravi_eze
hi, i have 4 hashmaps as follows: (1). HashMap> treesFruitsMap = new HashMap(); (2). HashMap> fruitsColourMap = new HashMap(); (3). HashMap colourVitaminMap = new HashMap(); i.e. (1) has the mapping btw tree names and the fruits it bears (as a set of strings) (2) has the mapping btw fruit name

Re: How to come back to previous action?

2008-02-18 Thread Eduardo Yáñez Parareda
The solution I'm going for is to implement a Filter or Interceptor which manages a stack of requests. I'll push the action and the request attributes in the stack, so when I have to go back, I can pop from the stack the action and attributes needed to make the same search as before. When user click

Re: How to come back to previous action?

2008-02-18 Thread Laurie Harper
There's nothing specifically built in to handle that, and the exact approach would depend on how your application is structured. However, the general idea would be to record the user's location in the app at the point you want to return them to. If the 'go back' action is meant to take them ba

Re: [S2] Fetching request parameters in jsp

2008-02-18 Thread Laurie Harper
Oops, and here's the link: http://struts.apache.org/2.x/docs/ognl-basics.html Laurie Harper wrote: Yup; specifically, request attributes are available through #request while request parameters are available through #parameters: Nils-Helge Garli Hegvik wrote: Request attributes are not the s

Re: [S2] Fetching request parameters in jsp

2008-02-18 Thread Laurie Harper
Yup; specifically, request attributes are available through #request while request parameters are available through #parameters: Nils-Helge Garli Hegvik wrote: Request attributes are not the same as request parameters. Nils-H On Feb 18, 2008 2:16 PM, Gaurav Arora <[EMAIL PROTECTED]> wrote:

Re: how to access the properties of one action by another action

2008-02-18 Thread Laurie Harper
That wont help across seperate requests, though. L. [EMAIL PROTECTED] wrote: Look at the "chain" result type. On Feb 17, 2008 11:31 PM, Prashant Khanal <[EMAIL PROTECTED]> wrote: Hello all, I am fetching a list of objects in one action and i want to use the same list of objection when i mov

Re: populating ActionFormBean-s

2008-02-18 Thread Laurie Harper
auz wrote: hope some1 can help me out, i have a Struts ActionFormBean who has a complex type as an attribute (also ActionFormBean), the problem is i dont know how to populate it, tryed everything. i presume i have to extend RequestProcessor's populateProcess method or something like that, can an

Re: CharacterEncoding bug in Struts2?

2008-02-18 Thread Laurie Harper
Asgaut wrote: Hi Laurie, And thanks for your quick answer! Here are my comments. I tried that first, changing the default encoding (in struts.xml) to utf-8. That works fine, in java and in our web application. The problem is our Sybase database which is configured to ISO-8859-1. And as our JDBC

Re: How to come back to previous action?

2008-02-18 Thread Eduardo Yáñez Parareda
I forgot to say that what I'm asking for is a Struts2 way to do that, a pattern, or a tool that S2 provides which could help me to do it. On 18/02/2008, Eduardo Yáñez Parareda <[EMAIL PROTECTED]> wrote: > > Hello, > > How could I come back to an action I executed before? > i.e.: > > User is in scr

Re: i18N jsp application on linux and windows

2008-02-18 Thread Laurie Harper
Did you see my previous reply? http://www.nabble.com/i18N--jsp-application-on-linux-and-windows-tp15451735p15467087.html And for the record, your convertTo... method probably isn't doing the right thing. If response.getCharacterEncoding() returns anything other than ISO-8859-2, your code will

[OT] Re: Problems setting up example applications

2008-02-18 Thread Dave Newton
--- Chriss Nold <[EMAIL PROTECTED]> wrote: > First, I open eclipse and import the .war file for the blank project, and > set the Eclipse configuration to add it is a Tomcat project. When I attempt > to access the app, it fails to find the action mappings. It appears to > crash at the following line

Re: [S2] Validation

2008-02-18 Thread Dave Newton
--- carmi_cd <[EMAIL PROTECTED]> wrote: > Hi I have an application in Struts 2, my problem is when > i try to submit the form even if there are values in the > form input box it stills give validation message to the > user to enter values for the required fields. > > here is my form fields. >

Re: i18N jsp application on linux and windows

2008-02-18 Thread Raghuveer
I need an help related to i18n (internationalization),… http://www.mail-archive.com/user@struts.apache.org/msg72581.html I am developing an application an struts application to be used in poland for English,polish language on tomcat. There is scenario to extract SAP messages and show to

How to come back to previous action?

2008-02-18 Thread Eduardo Yáñez Parareda
Hello, How could I come back to an action I executed before? i.e.: User is in screen 1, then click the button search and some results are shown to her. She dbclick in a result item and it's shown the item's detail in screen 2. Then she wants to go back to screen 1 how must I implement the 'g

Re: how to access the properties of one action by another action

2008-02-18 Thread stanlick
Look at the "chain" result type. On Feb 17, 2008 11:31 PM, Prashant Khanal <[EMAIL PROTECTED]> wrote: > Hello all, > > I am fetching a list of objects in one action and i want to use the same > list of objection when i move to another action from that action. How can > i > do that? > Actually i u

Re: [S2] Fetching request parameters in jsp

2008-02-18 Thread Nils-Helge Garli Hegvik
Request attributes are not the same as request parameters. Nils-H On Feb 18, 2008 2:16 PM, Gaurav Arora <[EMAIL PROTECTED]> wrote: > I'm in the process of learning struts and I have a very simple jsp > with a very simple Action behind it (doing no processing, simply > returning SUCCESS). I want t

[S2] Fetching request parameters in jsp

2008-02-18 Thread Gaurav Arora
I'm in the process of learning struts and I have a very simple jsp with a very simple Action behind it (doing no processing, simply returning SUCCESS). I want to access a get parameter in the jsp and print it out. This page : http://struts.apache.org/2.x/docs/accessing-application-session-request-o

Re: how to access the properties of one action by another action

2008-02-18 Thread Jeromy Evans
Placing the object in the session is the least effort approach. Retrieving the objects again is a sensible approach too. Sometimes sending the object to the client and back again is sensible (encoded in some way in a cookie, hidden input or url param) The scope plugin is intended to simplify th

tabbed panel refresh on input

2008-02-18 Thread Paranoid_Fabio
Hi everyone. My problem is that I have a jsp page with a tabbed panel consisting of two tabs. The main action is showUpload that shows upload.jsp. In one of the tab, I've a form that the user should fill and send to the "manualUpload" action. If some required fields are not filled, I should show t

Problems setting up example applications

2008-02-18 Thread Chriss Nold
I am new to both Eclipse and Struts2 and I am having issues with the struts2 examples. First, I open eclipse and import the .war file for the blank project, and set the Eclipse configuration to add it is a Tomcat project. When I attempt to access the app, it fails to find the action mappings. It a

RE: ParametersInterceptor setting values using a String[]

2008-02-18 Thread Matthew Seaborn
Your right: looks like SiteMesh was sending the parameters through to another action. Thanks for the help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14 February 2008 11:17 To: Struts Users Mailing List Subject: Re: ParametersInterceptor setting values usi

Re: [S2] form not retrieving values in IE

2008-02-18 Thread Jeromy Evans
You're using the ajax theme which means it's probably a javascript problem. I can't see a submit button in your code, but a known problem in IE is that if the target div of the form contains the form itself the form's values are lost. ie. In IE, the "Loading..." text is written to the DOM prior

[S2] form not retrieving values in IE

2008-02-18 Thread carmi_cd
I have a form that works find in Firefox but when I tried to run it in Internet Explorer, all the values from the form input box are returned null. I dont know what should I do to fix this problem in IE, here is my form code here is my action class code: public String save() {