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
--- 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
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
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
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
--- 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:
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
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
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
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.
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 :
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
---
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"
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
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
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
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
>
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]
---
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,
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
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
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
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
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
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:
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
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
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:
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
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
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
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
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
-
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
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
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
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
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
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
--- 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
--- 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
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
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
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
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,
>
>
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 =
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
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
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.
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
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
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
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
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
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
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
56 matches
Mail list logo