Hi All,
This is regarding dir attribute is Struts HTML tag library. The HTML taglib
contains tags used to create Struts input forms, as well as other tags
generally useful in the creation of HTML-based user interfaces. The output is
HTML 4.01 compliant or XHTML 1.0 when in XHTML mode.
I need to retain the selections a user has made using a multi-select on one
page by using hidden fields on the next page.
On the first page I have a
html:select multiple=true property=multiSelectProp ...
...
/html:select
multi-select which is populating a String[] property of a form bean, and
On 9/22/05, James Mitchell [EMAIL PROTECTED] wrote:
I still don't see where I can get the source.
If this were in CVS on sf.net, anyone could see it,
browse it, make comments and suggestions, you know, like a good
community is supposed to do.
CVS repository:
I created runnable J2EE Mailreader WAR file too.
On 9/23/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
CVS repository:
http://cvs.sourceforge.net/viewcvs.py/struts/dialogs/
ZIP with source code as well as precompiled library (no compiled examples):
Hi,
I want to do sth like the following:
When a user clicks the link:
http://myhost:8080/myapp/server.do/chapter1/images/1.jpg I want to get the
/chapter1/images/1.jpg part of the request and then serve the requested
file. server.do is a downloadaction.
As Laurie Harper stated in one of his
If you use the same form bean for the second page and if you do not
initialize the String[] property in your form bean reset method, the form
bean values are available to the second page also.
Vijaya
-Original Message-
From: Tim Dudgeon [mailto:[EMAIL PROTECTED]
Sent: Friday, September
This is probably a newbie question..
From the examples i studied, it looks like most applications store a
reference to a database in servlet context.. If i figured it out the
right way, this means all clients using the webapplication, share this
same reference?
Would it be a good idea to store
Yes, to me too, getting datasource and then connection and passing this
connection object to the service layer does not seem to be a good pattern. I
said, by storing the datasource and servletcontext statically in the service
layer may make life easier.
I want to know various opinions about this
This is probably a newbie question..
From the examples i studied, it looks like most applications store a
reference to a database in servlet context.. If i figured it out the
right way, this means all clients using the webapplication, share this
same reference?
Would it be a good idea to store
Hello everyone.
I'm looking for an interface opinion here. I'm working on a master detail
issue here, and I don't know how I should organize it on the web page.
I have Order and Items. Order has many items. So, when the user's adding an
Order, I want him to enter all order data and then, in the
Sorry, but I don't think that you've understand my question. I wan to get
the full URL of the request in my action class. None of the examples in the
wiki page you posted addresses this issue.
On 9/23/05, Murray Collingwood [EMAIL PROTECTED] wrote:
Same questions same answers...
Try creating a new context with the blank struts application,which you said
is working fine, and run the jsp there. Something seems to be missing or not
properly configured ,I had a similar problem last year when I accidently
mixed the config files of version 1.1 and 1.2
Deepesh Nandal.
Koen Jans wrote:
This is probably a newbie question..
From the examples i studied, it looks like most applications store a
reference to a database in servlet context..
AFAIK most people talk to databases via a datasource provided by the
container through JNDI.
Manos
Emmanouil-
I found a link with some great examples for implementing Struts DataSource
Manager via javax.sql.DataSource
http://struts.apache.org/faqs/database.html
HTH,
Martin-
- Original Message -
From: Emmanouil Batsis [EMAIL PROTECTED]
To: Struts Users Mailing List
No problem.
I don't want to pass the filename as a request parameter as you suggested
since this way my server cannot serve html file properly. Say I have two
files: 1.html and 1.jpg and assume that 1.jpg is used within 1.html
When I request 1.html using your suggested method, the image 1.jpg
On 9/22/05, Wiebe de Jong [EMAIL PROTECTED] wrote:
Hey Ted,
What would be an appropriate tool for creating the UML diagrams for
MailReader? I use Rose for my work, but I think documentation for open
source projects needs to be readable by everyone.
I found this recent article, but it
I guess I didn't include all from struts-config.xml that I needed to
include.
Here is the full portion of the configuration for all the actions relating
to the MappingElement
They all have the name=MappingElement
action name=MappingElement path=/EditMappingElement
Maybe the best thing would be to pursue a MailReader portal that
provided system documentation, a test suite, and links to the various
implemenations. I'll continue work on this idea at
* http://opensource2.atlassian.com/confluence/oss/display/STRUTS/MailReader
for now. (Watch the space if you
Hi,
I am posting from roomity. Somehow my origainal post was truncated. Here is my
question.
I have several buttons in my form.
1. html:submit property=submitAction value=Save
This is fine, I get submitAction=Save when action is invoked.
2. html:button property=submitAction value=Delete
From: Wiebe de Jong [EMAIL PROTECTED]
What would be an appropriate tool for creating the UML diagrams for
MailReader? I use Rose for my work, but I think documentation for open
source projects needs to be readable by everyone.
I found Visual Paradigm recently when looking for something that
One of my clients uses SnipSnap for their wiki.
Check out what you can do with simple text markup...
http://www.snipsnap.org/space/SnipGraph
...and here's an example...
http://www.snipsnap.org/space/SnipGraph/UML+Example
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting
Also, this one is free for open source:
http://www.visual-paradigm.com/product/sde/ec/index.jsp
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM: jmitchtx
Yahoo: jmitchtx
MSN:
Hello
If I understand you want to have multiple submit buttons?
I would suggest to look at Dmitri Vladin's solution at
http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg03458.html
More specifically take a look at mapping.findForwards()
match the individual 'forward' to the 'request
Vijaya,
I am sorry. I did not understand the hint.
Kam
Struts Users Mailing List user@struts.apache.org wrote:
Hi Vijaya,
It turn out that I did not put the jbossall-client.jar in the lib/
directory of myApplication. After I put the jbossall-client.jar in the
lib/ directory,
emre akbas wrote:
Sorry, but I don't think that you've understand my question. I wan to get
the full URL of the request in my action class. None of the examples in the
wiki page you posted addresses this issue.
The URL of the request is available from the HttpServletRequest object.
See the
On 9/23/05, Letícia Álvares Barbalho [EMAIL PROTECTED] wrote:
Hello everyone.
I'm looking for an interface opinion here. I'm working on a master detail
issue here, and I don't know how I should organize it on the web page.
I have Order and Items. Order has many items. So, when the user's
Letícia,
Are you saying that on a single page you want them to enter the order
details, and then enter X number of item numbers that are tied to that
order? Before I offer a suggestion I'd like to make sure that
understanding is accurate...
Frank
Michael Jouravlev wrote:
On 9/23/05,
I was wondering whether there is a way to instruct clay to ignore some tags
and just render them the way they are.
For example, I am using FORM based authentication. I dont want clay to
change anything in my login.html. What I did is I changed login.html to
login.htm and by passed Clay. It worked
I want to use jakarta cactus for testing struts
action classes.
I am using websphere RAD , struts 1.2.6
,jakarta-cactus-12-1.7.1 and websphere 5.1
This is catcus.properties file
# Configuration file for Cactus.
# Each project using Cactus need to have such a file
put in the
Hi,
We have an application that does the following ( we use struts 1.2.4,
tomcat 5.0.28, jdk 1.4.2)
a) user requests /x/y/action.do?x=1
b) the action executes then JSP forwards (via ActionForward) to
/x/y/somefile.jsp
c) the resulting JSP page calls request.getRequestURL(). It returns
Are you sure you did not put redirect=true in your forward
elements? What does the address bar say?
Michael.
On 9/23/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
We have an application that does the following ( we use struts 1.2.4,
tomcat 5.0.28, jdk 1.4.2)
a) user requests
1. At most one submit element is submitted in a form.
2. If you submit form without activating a particular submit element,
a form may be submitted with no submit elements sent to server.
3. If you do default submit, some browsers send submit element which
was defined first.
3. I don't know what
I was wondering whether there is a way to instruct clay to ignore some tags
and just render them the way they are.
The comment !-- -- block is the only way to do this currently.
I think this would be a good feature. I'll try to get it in soon.
For example, I am using FORM based
Gary thanks for ur reply.
The problem is I want LoginForm action to be j_acegi_security_check
form action=j_acegi_security_check method=POST
/form
The only I could make it render this way is my bypassing clay. But for my
logout button,
input type=submit value=logout jsfid=mybutton / I need to go
On 9/23/05, emre akbas [EMAIL PROTECTED] wrote:
Yes, to me too, getting datasource and then connection and passing this
connection object to the service layer does not seem to be a good pattern.
I
said, by storing the datasource and servletcontext statically in the
service
layer may make
is there a way to change the query parm in the request before forward it?
In my struts config file, I've a initialization action. If say the order item
sequence# is missing in the query parm, I need to change it to default to the
next item sequence # before it forward to the actual form.
You could try using a Filter. I'm sure there are many tutorials and examples
out there. Here is an example:
Web.xml
filter
filter-nameMyFilter/filter-name
filter-classcom.wss.util.MyFilter/filter-class
descriptionSome description.
Where are you forwarding from and where are you forwarding to? If you
are forwarding to JSP from action, just update needed attribute in
request scope.
Michael
On 9/23/05, Lim Hock-Chai [EMAIL PROTECTED] wrote:
is there a way to change the query parm in the request before forward it?
In my
Sorry, I meant a distribution of the current sources rather than sources
for the last release. Try here:
http://svn.apache.org/builds/struts/maven/trunk/nightly/struts-taglib/
I don't know what's in the taglibs project will help you, but it does
use Cactus so it might at least get you
Thanks for your thoughts!
Let me recap what I would like to achive. For one scenario, I would like to
submit my form based on the result of a javascript function. If it fails I
don't want to submit the form, otherwise go ahead and submit it. When in the
success case, I need to include the
Catherine wrote:
Hi,
I am posting from roomity. Somehow my origainal post was truncated. Here is my
question.
I have several buttons in my form.
1. html:submit property=submitAction value=Save
This is fine, I get submitAction=Save when action is invoked.
2. html:button
I'm packaging my WEB-INF directory, so that when the war is expanded,
it's opening up the WEB-INF directory.
On 9/22/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
init-param
param-nameconfig/param-name
param-value/struts-config.xml/param-value == is this correct?
/init-param
Tim Dudgeon wrote:
I need to retain the selections a user has made using a multi-select on one
page by using hidden fields on the next page.
On the first page I have a
html:select multiple=true property=multiSelectProp ...
...
/html:select
multi-select which is populating a String[] property
Gary thanks for ur reply.
The problem is I want LoginForm action to be j_acegi_security_check
form action=j_acegi_security_check method=POST
/form
The only I could make it render this way is my bypassing clay. But for my
logout button,
input type=submit value=logout jsfid=mybutton / I need to go
From: Lim Hock-Chai [EMAIL PROTECTED]
In my struts config file, I've a initialization action. If say the order
item
sequence# is missing in the query parm, I need to change it to default to
the next item sequence # before it forward to the actual form.
In your initialization Action, set
Laurie Harper wrote:
Catherine wrote:
3. html:button property=submitAction value=Add Property
onclick=javascript:checkProp()
This is my real problem. I have a single selection dropdown menu
which contains the allowed properties of the object. When user selects
a property and clicks the
T West wrote:
I'm packaging my WEB-INF directory, so that when the war is expanded,
it's opening up the WEB-INF directory.
Huh?
So, where is your struts file? Michael's saying that you probably don't
have it in the right place, namely, under WEB-INF. The WEB-INF must be
part of the
temp temp wrote:
This is catcus.properties file
# Configuration file for Cactus.
...
cactus.servletRedirectorURL =
http://localhost:9080/PAC_WEB/ServletRedirector
cactus.jspRedirectorURL =
http://localhost:9080/PAC_WEB/JspRedirector
Missing Cactus property [cactus.contextURL]
You can
My app uses order item seq# in the query parm to add/update the shopping cart.
If there is no order item seq#, I simply do add. However, the problem occur
when user uses the browser back button and press submit again, this cause my
app to add again. I prefer it to do update.
using
Thank you so much! Now I know the rules.
Cheers,
Catherine
-
a href=http://Struts_User_List.roomity.com;roomity.com/a
roomity.com is broadband internet. ~~1127505775361~~
-
Struts has built in token functionality to prevent the submit button
pressed twice problem.
In action class add(), edit(), and delete() methods, or any method that is
preparing to send user to a form for subsequent submittal, add this:
saveToken(request). It's a member of Action.
In jsp
Actually, you don't need to do anything in the jsp pages, my bad. See here:
http://forum.java.sun.com/thread.jspa?threadID=656481messageID=3858400#3858
400
Or just google for savetoken struts for more info.
-Original Message-
From: Barnett, Brian W.
Sent: Friday, September 23, 2005
I'm not sure if I explained myself correctly, but when I make my war
file, I'm inside of the WEB-INF directory, so that everything that is
packaged is the WEB-INF directory. When I open up the war, it's just
all the files and directories that were in the WEB-INF directory.
On 9/23/05, Dave Newton
The answer to you problem is simple: there is no problem. If a user
wants to go back and to add another item, let him do it. Maybe he is
doing this intentionally. I hate too-smart webapps that think they
know better what I want to do.
Michael
On 9/23/05, Lim Hock-Chai [EMAIL PROTECTED] wrote:
T West wrote:
I'm not sure if I explained myself correctly, but when I make my war
file, I'm inside of the WEB-INF directory, so that everything that is
packaged is the WEB-INF directory. When I open up the war, it's just
all the files and directories that were in the WEB-INF directory.
On
It is not important where you are. Your WAR file structure is
important, though.
If you cannot explain where your struts-config.xml file is located,
then maybe you would prefer to search the net first. Look for
something like (Java OR J2EE OR Struts) web application (directory OR
file) (packaging
I am sorry for this a little long question, but you will be finding it
interesting... Simply put, I have (1),(2) and (3), then we I run struts
testing, I got error described as (4)
(1) item in struts-config.xml
action path=/MyAction
type=my.actions.myAction
name=myForm
Dave, of course I know the URL is avaliable from HttpServletRequest. I think
you didn't read my previous e-mails on the topic.
I couldn't find a way to get the remaining part of the URL after the
action's name. That is, to get /chapter1/1.html in
http://localhost:8080/action.do/chapter1/1.html
Okay, thanks to everyone for all of their help. My problem was my
directory structure. I googled around to find some examples, and found
this page: http://www.jguru.com/faq/view.jsp?EID=531027
I had my JSP pages in the same directory as my struts-config.xml file.
So, I made a DatabaseRetrieval
Thanx Gary for your help.
Yah bypass or clayignore block will be useful feature. Thanx for taking
the initiative.
About your other solution, I will try it tonite and let you know how it
goes.
On 9/23/05, Gary VanMatre [EMAIL PROTECTED] wrote:
Gary thanks for ur reply.
The problem is I
emre akbas wrote:
Dave, of course I know the URL is avaliable from HttpServletRequest. I think
you didn't read my previous e-mails on the topic.
I couldn't find a way to get the remaining part of the URL after the
action's name. That is, to get /chapter1/1.html in
Hi Michael
Okay, I'm starting to understand the problem let's look back at the JSP
html:form action=SaveMappingElement
Disclaimer: I know there are lots of variations in how you can use Struts, so
some of
what I'm saying is from my app that works and how the coding differs from
yours.
I want to populate a select element with items from a database. The items
can be retrieved by making calls to an API that retrieves data from the
database. These API methods may throw exceptions if the database is
inaccessible, or if the user is not logged in. The items only need to be
retrieved
From: Rob Turknett [EMAIL PROTECTED]
I want to populate a select element with items from a database. The items
can be retrieved by making calls to an API that retrieves data from the
database. These API methods may throw exceptions if the database is
inaccessible, or if the user is not logged
Sorry, but this just isn't true... At least when there's no Javascript
involved, a button acts just like a 'submit'-type input: clicking it
submits the form, and a request parameter is submitted corresponding to
the button that was clicked (and only the one that was clicked).
Buttons may
Rob Turknett wrote:
I want to populate a select element with items from a database. The items
can be retrieved by making calls to an API that retrieves data from the
database. These API methods may throw exceptions if the database is
inaccessible, or if the user is not logged in. The items only
I am having a problem with the tile definitions and the paths contain
therein.
My dev directory is setup:
web \
+ WEB-INF \
| \ tiles-def.xml
+ _common \
| + layouts \
| \ mainLayout.jsp
| + tiles \
|
You almost had me convinced Laurie :)
html
head
/head
body
form name=f action=http://www.google.com/search;
input type=hidden value=en name=hl
input name=q
input type=button value=I'm Feeling Lucky name=btnI
/form
/html
Clicking on the button DOES NOT submit the form. Interestingly though,
Another suggestion is to use the DependencyFilter in Java Web Parts:
http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/DependencyFilter.html
(I seem to be offering this suggestion a lot lately!)
With the DependencyFilter, you could define in an XML file what is
essentially a
That's a great idea, let me know if you need any help.
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM: jmitchtx
Yahoo: jmitchtx
MSN: [EMAIL PROTECTED]
Skype: callto://jmitchtx
No, *I* confused us both I think... I was talking about the HTML
button element, not the input type=button element... Seems odd
they wouldn't be equivalent, but still!
L.
Frank W. Zammetti wrote:
You almost had me convinced Laurie :)
html
head
/head
body
form name=f
On Sep 23, 2005, at 9:17 PM, Graham Reeds wrote:
Now nothing appears when I try to open Test.jsp from a page that
has uses the tiles:insert method
I'm not quite following what you mean there. Are you saying you have
a page with the following?
tiles:insert path=pages/Test.jsp/
and you
Ah, gotcha :) No worries... I agree, I would have expected them to be
equivalent too. I frankly have never used the button element, so I
guess it never came up. Not sure why, just have always done it the
other way out of habit. Oh well, just one of a million details to keep
straight!
Graham Reeds wrote:
I am having a problem with the tile definitions and the paths contain
therein.
My dev directory is setup:
web \
+ WEB-INF \
| \ tiles-def.xml
+ _common \
| + layouts \
| \ mainLayout.jsp
| +
In the header.jsp, I try to add something like About Us, Contact Us.
Make them align to the right.
But it does not work.
I spread across the header section.
I do this in the header.jsp (and use classLayout.jsp).
tr
span style= float;right; /
td
logic:iterate ..
/logic:iterate
/td
Thanks for the help. Are you suggesting, in other words, to have a separate
Action that retrieves the data to populate the select box, that is executed
prior to the ActionForm?
Rob
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Friday,
76 matches
Mail list logo