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
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 .
s:url id=url value=www.something.com
s:param name=ab/s:param
/s:url
if you use the struts anchor tag it
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 is
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 March
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
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
Hello,
I want to use the s:select tag rendering a dropdown list of objects:
s:select list=ticketstates listKey=id listValue=state
/s:select
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
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.
action
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
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:
---
p
s:iterator status=stat value={1,2,3,4,5}
#stat.index = s:property
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,
I tried to
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
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
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 helps
--- 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-mail:
--- 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 want
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.
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%
html
head
titleSMIG Import/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body
s:form action=SMIGImport method=POST
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
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
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
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
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 top
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
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
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
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.
Ive been using
input type=radio name=s:property value='group' /_s:property
value='question' /
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:
Could any expert tell me why?
bean:write name='myselection' property='agent'/ has the value of illinois
.
but, the following code do not set value=illinois', still literal string of
bean:write name='myselection' property='agent'/, or this is the limition of
Struts 1.x?
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-
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:
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
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:
%@
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
I found the solution. For anyone finding this thread through a search engine,
just do this in struts.xml:
action name=SomeActionNme class=org.MyActionClass
result type=freemarker
application/xhtml+xml
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
Could any expert tell me why?
bean:write name='myselection' property='agent'/ has the value of illinois .
but, the following code do not set value=illinois', still literal string of
bean:write name='myselection' property='agent'/, or this is the limition of
Struts 1.x?
html:select
html:option value=bean:write name='myselection'
property='agent'/
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:
html-el:option value=${myselection.agent}/
Or is it agent.myselection?
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
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
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.
bean:define name=myForm id=myForm scope=session/ ). However Struts
2 seems to have merged the action class with the action form so I am not
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
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
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
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 :
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,
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
john lee wrote:
Could any expert tell me why?
bean:write name='myselection' property='agent'/ has the value of illinois .
but, the following code do not set value=illinois', still literal string of bean:write name='myselection' property='agent'/, or this is the limition of Struts
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
--- 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:
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
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.
Ive been using
input type=radio name=s:property value='group' /_s:property
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
--- 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? The
Does Struts 1.x support html:select onChange=showme(this.form) ?
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
56 matches
Mail list logo