Re: HELP!!

2007-04-30 Thread Craig McClanahan
On 4/30/07, nagesh.kumar <[EMAIL PROTECTED]> wrote: /WEB-INF/tlds/struts-html.tld Please remove " " blank space after .tld in the above line it should be like /WEB-INF/tlds/struts-html.tld The following advice presumes that you are using Struts 1.1 or later, on a Servlet 2.4 or later servle

RE: HELP!!

2007-04-30 Thread nagesh.kumar
/WEB-INF/tlds/struts-html.tld Please remove " " blank space after .tld in the above line it should be like /WEB-INF/tlds/struts-html.tld Thanks & Regards Nagesh Reddy -Original Message- From: vikas rao [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 10:10 AM To: Struts Users M

HELP!!

2007-04-30 Thread vikas rao
Hi, I am getting this exception: org.apache.jasper.JasperException: /index.jsp(9,0) No tag "" defined in tag library imported with prefix "html" My index.jsp file code starts like this: <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> so what is the problem? I have added this in

Re: [s2] is there an equivalent for the old html:multibox tag?

2007-04-30 Thread Dave Newton
--- Allen Gilliland <[EMAIL PROTECTED]> wrote: > Is there a direct equivalent struts2 tag to the > struts1 html:multibox tag? I am looking at some old > code being migrated and i'm not sure how > best to accomplish the same thing in struts2 ... Does not work for you? http://struts.apache.org/

First problem!

2007-04-30 Thread vikas rao
Hi, This is my first post, just started working with struts, and have run into problems! i have an "index.jsp" page: <%@ taglib uri="\WEB-INF\struts-html.tld" prefix="s" %> and when i try to access this page: http://localhost:8080/Mystruts/index.jsp i'm getting the exception : org.apache.jasper.

[s2] Dreamweaver plugin for Struts 2?

2007-04-30 Thread Jason Wyatt
I'm hoping to use Dreamweaver for complex JSP layouts with Struts 2 tags. I have a Dreamweaver plugin for Struts 1.x but there doesn't seem to be one for Struts 2 yet. There seems to be a Dreamweaver plugin for WebWorks and was thinking the Struts 2 tags might be close enough to WebWorks for the

Re: 2 questions

2007-04-30 Thread Laurie Harper
puchacz wrote: Hi I have 2 questions: 1. If there are some big companies (like IBM or sth.) which help to build up Struts 1 ? Depends on what you mean by 'help' ;-) Struts is developed entirely by volunteers. As far as I know, there are no developers whose work on Struts is directly s

[s2] is there an equivalent for the old html:multibox tag?

2007-04-30 Thread Allen Gilliland
Is there a direct equivalent struts2 tag to the struts1 html:multibox tag? I am looking at some old code being migrated and i'm not sure how best to accomplish the same thing in struts2 ... that code iterates over a collection of foo objects and the multibox makes checkboxes for

Re: When will Struts 2.1 be released?

2007-04-30 Thread Musachy Barroso
That issue was fixed on 2.1 only (like must of the ajax issues). A lot of changes and bug fixes have been made to the ajax theme (there is no more ajax theme to start with, there is a plugin instead) for 2.1. There will be a 2.1, we just don't know when :) regards musachy On 4/30/07, Minerva CC

Re: Struts Tags Include?

2007-04-30 Thread Martin Gainty
this is good information Thanks Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telepho

Re: When will Struts 2.1 be released?

2007-04-30 Thread Minerva CC
I refered to the problem with treenode. The previous emails are included here. I thought there would be a new release called 2.1. When will we be able to see 2.0.8? Does it work with new Dojo API or the problem is fixed? Thanks, Willa --- This was fixed on trunk, w

Re: When will Struts 2.1 be released?

2007-04-30 Thread Musachy Barroso
You should probably use 2.0.6, as there is no date set for 2.1 (has ever been a date?). What problems are you referring to? There is a 2.0.8 release coming up. musachy On 4/30/07, Minerva CC <[EMAIL PROTECTED]> wrote: Hi, I plan to use Struts 2 to build a demo by the end of May. Is there any

specifying timezone in date tag

2007-04-30 Thread Rohit Dewan
Is there a way to specify timezone in the date tag? The current behavior defaults to the timezone of the server. Regards, Rohit

When will Struts 2.1 be released?

2007-04-30 Thread Minerva CC
Hi, I plan to use Struts 2 to build a demo by the end of May. Is there any release date has been set? Should I wait for the new release or work around with the problems that the current version has? Thanks, Willa __ Do You Yahoo!? Tired of spam?

Re: Struts Tags Include?

2007-04-30 Thread Eric Rank
It looks like the only required attribute is the "name" for the tag. Somthing to note, as Dave Newton alluded to, is that if you omit the "executeResult" attribute, you will have passively chosen to make that attribute 'false'. When this happens, the action you specified in the "name" at

Re: Struts Tags Include?

2007-04-30 Thread Martin Gainty
should the jasper compiler throw an exception when this required attribute is missing? Thanks Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email me

Re: Ajax can't receive Chinese code from action of struts2

2007-04-30 Thread David Conrad
On 4/28/07, red phoenix <[EMAIL PROTECTED]> wrote: when ajax receive information which include Chinese code from action of Struts2,ajax will show chinese code into confusion code,but if ajax receive information which include Chinese code from jsp, ajax will show correct Chinese code.I don't know

Re: action forward to servlet

2007-04-30 Thread Chris Pat
Hi Laurie I had used Request.dispatcher before but only in servlet code; didnt know/realize I could do it in an Action. I see the key is to make that one of the states that will always be called and just trick Struts with the return of the null. I assume the technology is orthogonal enough tha

Re: action forward to servlet

2007-04-30 Thread Chris Pat
Hi Felipe Thanks, that I got. My conceptual difficulty is I dont see how to define a global forwards for the servlet and call it in my request.mapping.FindForward("forwardToServlet"), or maybe it is brain-fade Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Preserver de session? Session is already

2 questions

2007-04-30 Thread puchacz
Hi I have 2 questions: 1. If there are some big companies (like IBM or sth.) which help to build up Struts 1 ? 2. If this forum is the main one concern Struts 1 ? Thanx -- View this message in context: http://www.nabble.com/2-questions-tf3671924.html#a10260488 Sent from the Struts - Us

RE: Struts Tags Include?

2007-04-30 Thread Paul
Erik, Cheers! Works flawlessly now. Regards, Paul -Original Message- From: Eric Rank [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 3:35 PM To: Struts Users Mailing List Subject: Re: Struts Tags Include? I have to admit, I haven't used the tag, but I think it might do what you

accessing ognl from jsp 2.0 el?

2007-04-30 Thread John M Flinchbaugh
In webwork, I had become accustomed to having a getXyz() method on an action, and being able to just access it in jsp as ${xyz}. The ability was just built in, per: http://wiki.opensymphony.com/display/WW/Using+WebWork+and+XWork+with+JSP+2.0+and+JSTL+1.1 Struts 2 has this same page without the no

Re: Struts Tags Include?

2007-04-30 Thread Dave Newton
--- Eric Rank <[EMAIL PROTECTED]> wrote: > + executeResult="true" d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -

Re: Struts Tags Include?

2007-04-30 Thread Eric Rank
I have to admit, I haven't used the tag, but I think it might do what you want. instead of : try this: More info: http://struts.apache.org/2.x/docs/action.html --- Eric Rank On Apr 30, 2007, at 12:47 PM, Paul wrote: Hey Dave, Yup just realized that. Thanks. I

Re: Ajax

2007-04-30 Thread Stelios Togias
great, thanks for the help guys On 30/04/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: yes, that should work. musachy On 4/30/07, Stelios Togias <[EMAIL PROTECTED]> wrote: > > yes but I can call an action that has as a result another jsp page, so I > can > use the iterator in that page and t

Re: Ajax

2007-04-30 Thread Musachy Barroso
yes, that should work. musachy On 4/30/07, Stelios Togias <[EMAIL PROTECTED]> wrote: yes but I can call an action that has as a result another jsp page, so I can use the iterator in that page and then fetch back the results and input them in the initial page(where the ajax call has been done f

Re: Ajax

2007-04-30 Thread Stelios Togias
yes but I can call an action that has as a result another jsp page, so I can use the iterator in that page and then fetch back the results and input them in the initial page(where the ajax call has been done from). At least thats what I'm trying now and it works, not exactly as I want yet but it s

Re: Ajax

2007-04-30 Thread Musachy Barroso
I thought so too. In any case, you can use any Struts 2 on you JSP pages, even if it is an ajax call, it doesn't matter to Struts. If what you are trying to use is the iterator tag on you javascript code, then no, the tags get executed when your page is rendered, on the *server*, while the respons

RE: Struts Tags Include?

2007-04-30 Thread Paul
Hey Dave, Yup just realized that. Thanks. I changed it to the following: I no longer have the double {project}s but unfortunately still have the same error with the include: "The requested resource (/{project}/listUserAction.do) is not available." Regards, Paul -Original Message- Fro

Re: Struts Tags Include?

2007-04-30 Thread Martin Gainty
Good Afternoon Paul servlet-mapping is mapping to /project/project/listUserAction.do instead of /project/listUserAction.do here is a working example from strutsMenu action *.do (notice there is no /project/ anywhere in this mapping) HTH/ Martin This email message and any files transmi

Re: Struts Tags Include?

2007-04-30 Thread Dave Newton
--- Paul <[EMAIL PROTECTED]> wrote: > In one of my JSPs I declare: action="listUserAction" id="userlist"/> > > Shouldn't I then be able to include the output from > the above via: > > ? > > It keeps dumping "requested resource > (/{project}/{project}/listUserAction.do) is not > available". I

Re: Ajax

2007-04-30 Thread Dave Newton
--- Stelios Togias <[EMAIL PROTECTED]> wrote: >> You could make your Ajax call to a Struts Action and >> return the results of *that* if you wanted. > Can you elaborate a bit more on this? The ajax call > is calling a struts action already so I'm not sure I > understand you... Oh. Hrm. I guess I

Struts Tags Include?

2007-04-30 Thread Paul
Hi all, I'm having a bit of an issue with the struts tags. In one of my JSPs I declare: Shouldn't I then be able to include the output from the above via: ? It keeps dumping "requested resource (/{project}/{project}/listUserAction.do) is not available". If I manually attempt to access /{pr

Re: Ajax

2007-04-30 Thread Stelios Togias
wow! that was quick! You could make your Ajax call to a Struts Action and return the results of *that* if you wanted. Can you elaborate a bit more on this? The ajax call is calling a struts action already so I'm not sure I understand you... thanks stelios On 30/04/07, Dave Newton <[EMAIL

Re: Ajax

2007-04-30 Thread Dave Newton
--- Stelios Togias <[EMAIL PROTECTED]> wrote: > My problem is that I want to use the > tag in order to iterate through the returned values. > Is this possible or I can't do it because is used to render the page and its not available on > the ajax call? If you are getting back text or JavaScript

Ajax

2007-04-30 Thread Stelios Togias
Hi, In the following code the children(${id}) function is called when you click on the children button. Now ajax works ok and I get the correct results back(I'm using prototype.js). My problem is that I want to use the Id First Name Last Name

Re: action forward to servlet

2007-04-30 Thread Laurie Harper
The first question should be, do you really need the servlet? You could generate the full response from the action. If you still need to keep the servlet around for other uses, perhaps you can refactor the bulk of its work into a service class that both the servlet and the action can use to gen

Re: [S2] Newbie Passing S2 variables to javascript functions

2007-04-30 Thread Laurie Harper
Again, though, bear in mind that the tag will be evaluated on the server during page generation whereas the Javascript will be executed later, on the client, after the page is delivered. There's no way to 'interact with the action stack in Javascript', since the action stack only exists durin

Re: [s2] use remoteUser with struts tags

2007-04-30 Thread Laurie Harper
OGNL in Struts provides access to these scopes via named attributes on the stack (e.g. %{#session.attribute}). It seams quite reasonable to me to want to limit pages to using a single expression language. I don't know if this use case is viable, but it's reasonable to want it :-) To the OP: wh

Re: resetting form when refreshed

2007-04-30 Thread Martin Gainty
do you mean session.invalidate() ? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephon

Tiles / OGNL

2007-04-30 Thread stanlick
I realize that S2 places the Action class on the root of the OGNL tree, but what about Tiles Controllers? I am having a heck of a time trying to figure out what is available within the ViewPreparer and also how I can make objects available to tiles JSP pages from the Tiles Controller. I'd like t

Re: ClassCast Exception for ExcelFile Upload

2007-04-30 Thread Lance
If you need a fileInputStream... all I can suggest is that you read from formFile.getInputStream() into a file Get a fileInputStream to the file Call RcsaPOIEventListner.readExcelStream(fin); Delete the file I'd be surprised if you couldn't use RcsaPOIEventListner.readExcelStream(formFile.getInp

Re: TabbedPanel layout mess in Firefox

2007-04-30 Thread Ravi Mangalagiri
" type="text/css"/> "> "> " media="print"> "> dojo.event.connect(window, "onload", function() { if (!NiftyCheck()) return; Rounded("li.tab_selected", "top", "white", "transparent", "border #ffS"); Rounded("li.tab_unselected", "top", "white", "tran

Re: resetting form when refreshed

2007-04-30 Thread Felipe Rodrigues
You can find it at http://struts.apache.org/2.x/docs/home.html Look for notifytopics and listentopics. You'll have to use an ajax behavior, so would be nice to read all the ajax stuff there. There are lots of examples there. Regards, Felipe sudeepj2ee wrote: > > Hi could you send me a way ou

Re: action forward to servlet

2007-04-30 Thread Felipe Rodrigues
Preserver de session? Session is already preserved. Did you try that? To get values from session in your servlet you must use Session ses = request.getSession(). Than you have your session object. Parameters from request? You should use request.getParameters(). To get Action fields, well I'm not s

Re: ClassCast Exception for ExcelFile Upload

2007-04-30 Thread Martin Gainty
Lance saw this on nabble.. ExcelFileUploadForm excelForm = (ExcelFileUploadForm) form; FormFile formFile = excelForm.getExcelFile(); InputStream in = (InputStream) formFile.getInputStream(); FileInputStream fin = new (FileInputStream( in ) ); Does this help? M-- This email message and any files

Re: Dynamic back button

2007-04-30 Thread Felipe Rodrigues
Send the url to get back as a parameter. So you can just use EL in your link or javascript. Regards, Felipe David Harland wrote: > > Hi, > > I have a page that can be reached from various other pages. On this page > is a button that will send them back to the page they came from via the > a

Re: [s2] use remoteUser with struts tags

2007-04-30 Thread Felipe Rodrigues
Why did you disabled EL and how did you do that? You can use EL with OGNL. OGNL works only with things in its stack, and I'm not sure about how get things from outside its stack, e.g. Session, Request, Context or even Page. To get these values, the best way is use EL. I can't see any reason to don

Re: TabbedPanel layout mess in Firefox

2007-04-30 Thread Felipe Rodrigues
Actually, what is shown is not the Loading... text, but the real remote content. In my case it shows the page, with forms and all my data. But we don't see the tabs, only the content. Regards, Felipe Musachy Barroso wrote: > > But you can delay the content update until the last minute > (sho

Re: Dynamic back button

2007-04-30 Thread Lance
There are a couple of tricks 1. The referring page can be found in request.getHeader("referer")... the referring page's request parameters can not be found though so this will probably not work. 2. You can implement a javax.servlet.Filter This pushes and pops pages (and their parameters) to a

Re: ClassCast Exception for ExcelFile Upload

2007-04-30 Thread Lance
I think this is your problem... FileInputStream fin = (FileInputStream) in; Do you need to do this? Can you do RcsaPOIEventListner.readExcelStream(in); The input stream is coming from the request which is not necessarily saved to disk / read from a FileInputStream. Kirthi wrote: I am havin

Re: [S2] Newbie Passing S2 variables to javascript functions

2007-04-30 Thread Musachy Barroso
// call the function passing the index myFunction( ) just make sure the "indexValue" is available when you use it. musachy On 4/30/07, Roger Varley <[EMAIL PROTECTED]> wrote: > Without seeing the error and the JSP code that generated it, it's hard > to

Re: [S2] Newbie Passing S2 variables to javascript functions

2007-04-30 Thread Roger Varley
Without seeing the error and the JSP code that generated it, it's hard to tell you what's wrong. However, remember that Javascript runs on the client, after the page has been generated. View the page source to see what the syntax error is. In this case, it's probably the lack of quotes around the

Re: [S2] Problem with Form Tag

2007-04-30 Thread Roger Varley
Did you tried set readOnly? Are you using ajax theme? If yes, maybe this is the problem. Try the others theme. In the most of cases, this won't affect the ajax behavior of application, once submit has its theme setted to ajax. I'm using the simple theme. I've now also found that specifying the

Dynamic back button

2007-04-30 Thread David Harland
Hi, I have a page that can be reached from various other pages. On this page is a button that will send them back to the page they came from via the action for that page. Is there a clever way of doing this with struts 2 other than putting a hidden variable in the page to check. Thanks Dave.

action forward to servlet

2007-04-30 Thread Chris Pat
Hello Is/how it possible to forward from a action to a servlet at another url and preserve the parameters and session objects? I am doing all the processing in the Action and just simply need to send a data stream back. I can do it with servlets, but cant seem to do it with an action and a ser