struts 1,x

2007-09-14 Thread john lee
Does Struts 1.x support ? if so, why the execution/logs report the following: Attribute onChange invalid for tag selection according to TLD any input? tks in advance john - Got a little couch potato? Check out fun summ

Re: file upload exception

2007-09-14 Thread Dave Newton
--- Session A Mwamufiya wrote: > I check whether the uploaded file exists (also it's > name and size) in my getters and setters. Is it the *correct* size? Have you looked at the FileUploadInterceptor code to see how it behaves or looked at the log file to see what information it might provide? Th

Re: file upload exception

2007-09-14 Thread Session A Mwamufiya
The action context cleaner is the first filter in my web.xml. Yes, I get the temp file name. I had code to read in the data from the file, but I commented it out for now, all I want to do is be able to have the file appear on my server. I check whether the uploaded file exists (also it's name

Re: Avoiding OGNL, or getting fancier with it.

2007-09-14 Thread Laurie Harper
Lally Singh wrote: Hey all, I've got a 2-layer hierarchy of data to put in through a form, and it's getting messy. I've got a set of groups, each with a set of questions within. Each are indexed with simple integers. I"ve been using And wanted to pull the values out of the request, but sudd

Re: problem with

2007-09-14 Thread Laurie Harper
msg2ajay wrote: hi, Yaa i have done mistake. I have placed my ActionForm Name insted of Confingfile form name. But the problem still there i am not able to get the form (setLableParam())value to my jsp. I have created an object in my jsp and tried to print the object, but it is returning null

Re: Upgrade issue with getting the Http Request from an action

2007-09-14 Thread Dave Newton
--- Session A Mwamufiya wrote: > Any work around to access the request object? Yes, implement ServletRequestAware. http://struts.apache.org/2.0.9/docs/how-can-we-access-the-httpservletrequest.html d. - To unsubscribe, e-mail:

Re: file upload exception

2007-09-14 Thread Dave Newton
I would suggest isolating the smallest example with which you cannot upload a file: I have yet to have any issues with it after adding the cleanup filter. Did you put the filter in the correct place in the web.xml? It needs to be executed before the S2 filter. My sample code is doing an Ajax subm

Re: struts 1.x / html:select option value=

2007-09-14 Thread Laurie Harper
john lee wrote: Could any expert tell me why? has the value of "illinois" . but, the following code do not set value="illinois', still literal string of "", or this is the limition of Struts 1.x? no matte

Upgrade issue with getting the Http Request from an action

2007-09-14 Thread Session A Mwamufiya
Hi, I recently upgraded from struts 2.0.6 to 2.0.9. I'm now getting a null exception when attempting to retried the session object from the request object associate with an action. In the following code, the second line throws the exception, meaning that the first line returned null: 1 reques

struts 1.3.8 / el tag install/configure?

2007-09-14 Thread john lee
if i want to use el tag for struts 1.3.8, need to do extra configuration or is default already? tks john - Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV.

Re: Easier/simplier way to do read-only versions of pages?

2007-09-14 Thread Angelo zerr
Hi, You could use Formview Taglib. See at http://formview.sourceforge.net/ With Formview you can manage any fields mode (READONLY, READWRITE, INVISIBLE...) on server side. With Formview you must not use javascript or not use a lot of logic:equal. For instance of you have JSP, like this :

Re: Using JFace with Struts 2

2007-09-14 Thread Laurie Harper
Session A Mwamufiya wrote: Hi, Is it at all possible to integrate the JFace treeviewer with struts 2? Are there examples out there? Thanks, Session Huh? You mean this [1] JFace? That's an SWT toolkit, not a Web-based technology... L. [1] http://wiki.eclipse.org/index.php/JFace ---

RE: bugs? or limition of struts 1.x? html:select html:option value=

2007-09-14 Thread john lee
Tim, tks for your input, but after i change to html-el:option, it show "null" in the list box on screen, after i change html:select to html-el:select, the value just show on screen, but the list box is gone. do u know why? tks u so much john "Slattery, Tim - BLS"

Re: file upload exception

2007-09-14 Thread Session A Mwamufiya
We don't get a FormFile in struts 2, it's an actual File. But mine is junk. Can someone send me the jsp, struts.xml, and action java code for a working example of file upload. I put up everything I had in this thread, and nobody found anything wrong with it; at this point, I'll have to use som

Re: Proper way to access action from JSP

2007-09-14 Thread Laurie Harper
kkjacks wrote: I am teaching myself Struts 2 after using Struts 1. In Struts 1 I would access data from the action form in my jsp using the bean tag (ex. ). However Struts 2 seems to have merged the action class with the action form so I am not sure how to access this now. I know there is the

Configure Default Object Wrapper?

2007-09-14 Thread Kenton
I'm want to configure Freemarker to support direct property access without requiring geetter methods. Someone on the Freemarker list http://www.nabble.com/FreeMarker-EL-And-Object-Member-Variables--tf4433530.html said : you have to tell your app to use BeansWrapper as opposed to the > default

Re: Based on struts 1.3.8 , now adding 2.0.9 jar to use funcs from 2.x

2007-09-14 Thread Laurie Harper
Er, depends what you mean by compatible... Yes, you can run Struts1 and Struts2 side-by-side in the same web app. However, mixing tags from both on the same page will not generally work. You can either route a request through Struts1 to a page using Struts1 tags, or route a request through Stru

RE: bugs? or limition of struts 1.x? html:select html:option value=

2007-09-14 Thread Slattery, Tim - BLS
> You can't nest tags in this way. It's not a Struts limitation, it's an XML thing. You can makme it work by using the EL version of the html tags: Or is it agent.myselection? I'm not terribly familiar with the bean tags. -- Tim Slattery [EMAIL PROTECTED] ---

bugs? or limition of struts 1.x? html:select html:option value=

2007-09-14 Thread john lee
Could any expert tell me why? has the value of "illinois" . but, the following code do not set value="illinois', still literal string of "", or this is the limition of Struts 1.x? no matter i use single quote or double quote around,

Re: Cannot find tag library descriptor for /struts-tags

2007-09-14 Thread Session A Mwamufiya
Please disregard this, it's not a problem; just that eclipse refused to refresh properly for some weird reason. Sorry > Hi, > > I tried upgrading to struts 2.0.9 from 2.0.6, and replaced my > struts2-core.jar and xwork.jar files with those in the 2.0.9 > distribution. Now I get the following

Cannot find tag library descriptor for /struts-tags

2007-09-14 Thread Session A Mwamufiya
Hi, I tried upgrading to struts 2.0.9 from 2.0.6, and replaced my struts2-core.jar and xwork.jar files with those in the 2.0.9 distribution. Now I get the following error in all of my jsp pages at the first line: Cannot find tag library descriptor for /struts-tags The first lines are: <%@ tag

Re: How do I set MIME type with FreeMarker Templates?

2007-09-14 Thread Kenton
I found the solution. For anyone finding this thread through a search engine, just do this in struts.xml: application/xhtml+xml /page.ftl I also tri

RE: file upload exception

2007-09-14 Thread Session A Mwamufiya
I tried the work around in 2.0.6, but it didn't work for me, still same temp file with the name of the button as the only text in it. The interesting thing though is that depending on the file that I upload, the File.length() actually changes; so something must be working semi-right. I'll try

Re: [FRIDAY] JPA War Stories?

2007-09-14 Thread Jim Cushing
I've been using JPA annotations with Hibernate for a while, but still using the Hibernate API (SessionFactory, etc.). Those are great, and I felt right at home with them after using XDoclet to set up Hibernate mappings for about two years before that. I'm just getting started using the Pers

Easier/simplier way to do read-only versions of pages?

2007-09-14 Thread Geoffrey Gallaway
Hello, I've been looking for a solution that allows me to create form and read-only versions of the same page. Each page will have a version where a logged-in user can enter the data and a version where a non logged in user will only be able to view the data. This is my current solution:

RE: file upload exception

2007-09-14 Thread John Krueger
The work around (adding the context cleanup filter) that Dave mentioned worked for us in 2.0.6. Once we upgraded to 2.0.9, the filter was not necessary anymore because of the patch for the following issue. https://issues.apache.org/struts/browse/WW-1816 John > -Original Message- > Fr

struts 1.x / html:select option value=

2007-09-14 Thread john lee
Could any expert tell me why? has the value of "illinois" . but, the following code do not set value="illinois', still literal string of "", or this is the limition of Struts 1.x? no matter i use single q

Re: [struts] file upload exception

2007-09-14 Thread Session A Mwamufiya
The upload is named "upload", and the button is "importButton". I'm not sure why there's a conflict there. I added the action context cleanup filter in my web.xml file, but that didn't change anything. One thing I see in my server log is the FileUploadInterceptor that removes the file: 15:08:

Avoiding OGNL, or getting fancier with it.

2007-09-14 Thread Lally Singh
Hey all, I've got a 2-layer hierarchy of data to put in through a form, and it's getting messy. I've got a set of groups, each with a set of questions within. Each are indexed with simple integers. I"ve been using And wanted to pull the values out of the request, but suddenly I've got this ba

Re: [FRIDAY] JPA War Stories?

2007-09-14 Thread Musachy Barroso
I'm using it, and I love it, the only problem I've found so far is that errors and exceptions do not help at all, like this one I get from time to time (got it 2 minutes ago): javax.servlet.ServletException: java.lang.IllegalStateException: Attempting to execute an operation on a closed EntityMana

[FRIDAY] JPA War Stories?

2007-09-14 Thread Ted Husted
Since we've had the Struts2 Spring-JPA tutorial up for a while, I was wondering if many Struts developers were using a Java Persistence API implementation nowadays, whether the experience has been positive, and which implementation folks are using (Hibernate, TopLink, OpenJPA). So, any JPA war sto

Re: file upload exception

2007-09-14 Thread abhiram
hi!! i dont know about struts 2, but i tried uploading images to the server using Struts 1.2,and it works just fine..i dont think we get the uploaded file as it is.. wat u said is true.. we get a temp file at different locations for each web container...basically watever files are uploaded, are

Re: [struts] file upload exception

2007-09-14 Thread Dale Newfield
Session A Mwamufiya wrote: You're right about the button, that's what gets put in the file. Could it be that you've named the upload the same as the button, so there are two parameters sent up with the same name, one of which masks the other? -Dale -

Whats the harm in creating a Servlet Dispatcher?

2007-09-14 Thread Shepherd, Darren S
All, This is regarding Struts 2.0. I've just ran into what I believe is a bug in WebSphere 6.0 and 6.1 where the filter chain does not get hit on certain RequestDispatcher includes. So I have two options here: 1. Get IBM to fix the bug 2. Rewrite the Filter Dispatcher as a

Problem with stripping the .jsp part from the forward

2007-09-14 Thread Asthana, Rahul
Hi All, I am using struts 1.3.4 with tiles. Facing a weird issue.Forward to abc.jsp removes the ".jsp" part and says that "abc" not found and gives a path validation error. This is happening with the introduction of a new jsp.The old app is working fine. IF anyone can think of anything from on t

Re: file upload exception

2007-09-14 Thread Session A Mwamufiya
You're right about the button, that's what gets put in the file. I'll check on how to add the action context cleanup filter. Hopefully that will clear up things. Thanks, Session > I'd add the action context cleanup filter; it may be cargo-cult > programming at this point but in the past it se

Re: file upload exception

2007-09-14 Thread Dave Newton
I'd add the action context cleanup filter; it may be cargo-cult programming at this point but in the past it seemed necessary for file uploads to work. The discussions regarding it are in the archives. Other than that, I'm not sure what else to tell you w/o seeing the code. Is the button label "Im

Re: file upload exception

2007-09-14 Thread Session A Mwamufiya
I never set a filter (not sure how to either), I just copied what the showcase example had. Here's my JSP: <%@ taglib prefix="s" uri="/struts-tags"%> SMIG Import My action has a series of getters/setters for the following: private String fileName; private String cont

HDIV 2.0 adds support for Struts 1.3.8 and Struts 2.0.9

2007-09-14 Thread Gorka Vicente
Hi all, HDIV is an open-source Java web application security framework which aims to prevent most of the common types of web application vulnerabilities, such as SQL injection, cross-site scripting, and parameter tampering. HDIV 2.0 new release supports Struts 2.0.9 and Struts 1.3.8 versions. Yo

Re: file upload exception

2007-09-14 Thread Dave Newton
--- Session A Mwamufiya wrote: > Do people need more information in order to answer > this thread? Please let me know. I've been stuck > for 2 days now, trying to upload a file on my > server. I've had no issues uploading files; it drops it in the temp directory and I copy it to where I really w

Re: 'root' is not allowed as status in s:iterator?

2007-09-14 Thread Dave Newton
--- Alex Funk <[EMAIL PROTECTED]> wrote: > Is this a bug or a feature? "root" may refer to the root of the OGNL stack, but I can't verify that at the moment. You could probably test that theory, though. d. - To unsubscribe, e-m

Re: Unable to read TLD "META-INF/taglib.tld"

2007-09-14 Thread abhiram
directory's structure in the jar might be like /META-INF /classes/org/... /javax/... edit the file and move the org and javax directories to the root of the jar aarthy <[EMAIL PROTECTED]> wrote: >hi!! i usually place all the tlds in the WEB-INF folder..may be this hel

Re: Unable to read TLD "META-INF/taglib.tld"

2007-09-14 Thread abhiram
looks like the server is unable to find the path.. i think the following should word.. extract the jar, and modify such that the tlds u require are in the root of the jar. this should work.. aarthy <[EMAIL PROTECTED]> wrote: Hi, I tried to implement struts in my project using guidelines from

Re: [S2] Ajax performance optimisation

2007-09-14 Thread bartlebooth
Maybe too late, but I found that you have to do the following : - create a directory struts under your Webroot directory - copy all contents from the static directory into this struts directory - copy the entire contents of template directory into this same struts directory, without the template

Re: Unable to read TLD "META-INF/taglib.tld"

2007-09-14 Thread aarthy
abhiram wrote: > > hi!! i usually place all the tlds in the WEB-INF folder..may be this helps > if it is the problem... > > The tlds are inside the jar file jcaptcha-all-1.0-RC2.0.1.jar.I place this > jar file in the WEB-INF\lib directory > > > aarthy <[EMAIL PROTECTED]> wrote: > Hi, > >

'root' is not allowed as status in s:iterator?

2007-09-14 Thread Alex Funk
Hi, after some debugging I found that I can't use any identifier starting with 'root' as status in s:iterator. The following code in my jsp: --- #stat.index = #root.index = #rootAtTheBeginOfIdentifier.index =

Re: Joining list with OGNL

2007-09-14 Thread cilquirm
I don't believe OGNL supports concatenation of lists, but such functionality could be achieved using chained subexpressions : ( ticketStates.add(0,new MyObject(-1,"All")), ticketStates ) which would insert the new object into the head of the list, and then return the ticketStates object as the r

Re: file upload exception

2007-09-14 Thread Session A Mwamufiya
Do people need more information in order to answer this thread? Please let me know. I've been stuck for 2 days now, trying to upload a file on my server. Thanks, > I guess I'll address my question to newbies: have any of you successfully > implemented the fileUpload from the showcase? Please

[s2] Possible Crud Bug

2007-09-14 Thread David Harland
Hi, I think I may have found a bug. We are using the crud stack and are setting the excudeParams for a parameter. It appears that because the params interceptor is called twice only one of the instances of the params interceptor is actually having the excludeParams variable set.

Joining list with OGNL

2007-09-14 Thread Jan Röhrich
Hello, I want to use the tag rendering a dropdown list of objects: This works but now I need an additional option displayed which is not in the "ticketstates" list. It should be a mapping of "-1" -> "all" which semantically means "all options a once". Is there a way to add a list entry us

Re: Problem with multiple associatons between 2 classes

2007-09-14 Thread Antonio Petrelli
2007/9/14, JCO <[EMAIL PROTECTED]>: > > Please, can anyone help me? I think that Hibernate guys and gals can help you better that us: http://www.hibernate.org/20.html Antonio

Problem with multiple associatons between 2 classes

2007-09-14 Thread JCO
I've got a class Aplicacion: public class Aplicacion { private Integer id; private String nombre; private Usuario funcional = new Usuario(); private Usuario tecnico = new Usuario(); ... public Integer getId() { return id; } public void setId(Integer

Re: [ANN] Struts Downloads Skyrocket in 2007

2007-09-14 Thread summit
thank you Ted Husted wrote: > > [Apache Struts Group] Since its release in June 2001, Apache Struts > (struts.apache.org) has become the most popular web framework for > Java. Six years later, by any objective measure, Struts is still > Java's most popular web framework. > > In February and Mar

RE: Set the tree node to a given value

2007-09-14 Thread GEDA
Its true, I saw the example but is useless in my case because all the page is dynamic and not specific to a single user for example. Anyway, keep writing those articles ... they are really useful. Good luck. Manu Mahajan-2 wrote: > > You are right there is no way to expand the parents. That i

RE: Struts anchor question

2007-09-14 Thread TonyD
Yes that code runs correctly! Try to build the url link with a struts URL tag and use the struts param tag to set the "a" parameter . b if you use the struts anchor tag it works: Test link and if you print the url value yuo have a doub

RE: Set the tree node to a given value

2007-09-14 Thread Manu Mahajan
You are right there is no way to expand the parents. That is why in my example every time a node is selected I am storing the state in a cookie and then restoring the tree to the same state before selecting. -Original Message- From: GEDA [mailto:[EMAIL PROTECTED] Sent: Friday, September 1