Mauricio,
I think this is what you'd be looking for:
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
c:set var=users value=${pageContext.users} /
c:set var=user value=${users[0]} /
I'm pretty sure that arraylists (being that they are collections) in the c: taglib
will take brackets...
Client (see org.apache.commons.httpclient.*
packages) makes it pretty easy to make HTTP requests and get the response
back as a String.
-Original Message-
From: Jacob Wilson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 4:28 PM
To: [EMAIL PROTECTED]
Subject: Convert JSP to static
Hi All...
I have a specific requirement in my project... I want to convert the JSP pages to
static html pages and save them in a local directory... How do I achieve this
functionality??? Any suggestions appreciated.
Thanks much.
-Jacob
-
Do you Yahoo!?
Hi All...
I have a specific requirement in my project... I want to convert the JSP pages to
static html pages and save them in a local directory... How do I achieve this
functionality??? Any suggestions appreciated.
Thanks much.
-Jacob
-
Do you Yahoo!?
- Original Message -
From: Jacob Wilson
To: Struts Users Mailing List
Sent: Friday, January 23, 2004 12:30 PM
Subject: JSP to static html...
Hi All...
I have a specific requirement in my project... I want to convert the JSP
pages to static html pages and save them in a local directory
Thanks Max. This sounds very good. Your saying that automatically creating an html
when the jsp is rendered sounds good. This should solve my problem. We are using
websphere 5.0. We are not using ant though...
If you can give me little more details on the configuration stuff and how to
Richard,
It seems to me that this would be useful for run-time decisions about where to send
the form data. Perhaps if a low-level user and an admin should see the same html
form, but the ActionForm that handles the admin's work should be different. i.e.:
c:choose
c:when test=${userIsAdmin}
Hello Everybody...
I have got this generic question... I wan't to use the onLoad event of the javascript
function to pre-populate values.For certain reasons, I cannot use the onLoad in the
body tag... Hence, I am using the onLoad in an img tag (just created a spacer image
specfically for
Hi...
I would appreciate if someone out there helps me with these basic JSTL questions...
1. In c:foreach how do I check whether the collection contains values??? When it has
values, it iterates a loop fine... Now, if I want to specify 'No records' how do I do
that???
2. How do I check
Hi Folks...
One more javascript question...
I have a page that consists of date fields as select boxes... say optionDay,
optionMonth, optionYear... I fill the selectboxes calling a javascript function...
Now if I have values of day, month, year executing an action. How can I default those
html tags to display the select boxes and populate the options lists
from collections. You can then set attributes in your form bean and have
these fields be defaulted automatically.
-Richard
-Original Message-
From: Jacob Wilson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 4
Richard...
I find this list to be more user friendly in terms of responding to questions... Also,
not that I do not use Struts at all... for this particular requirement of an old
project under maintenance, I am trying to do this... I consider this to be very much
knowledge sharing list and
('' + i + '');
You should put double quotes around the value parameter - its cleaner HTML:
document.write('' + i + '');
You might have to escape those - I'm not sure.
-Original Message-
From: Jacob Wilson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 5:00 PM
To: Struts Users
Vinitha,
Assume 'Tomcat\webapps\root' is your project folder...
Create separate folders of images, js, html, styles etc. and place the respective
files in the respective folders...
Place all your jsps in the root directly...
the web-inf should be in your root...
in the web-inf place
Hi...
Is it possible to send a value of a form element from the parent window to the child
window like this???
script
function go() {
var namVal = document.fm1.txtName.value;
var newwin=window.open(a.html?Name=namVal);
}
/script
form name=fm1 onSubmit=go()
input type=text name=txtName
Thanks Narayanan -- I tried this b4, but this will throw an error... Actually, you
need to pass a total string into the open method
Prashanth Narayanan [EMAIL PROTECTED] wrote:try
var newwin=window.open(a.html?Name=+namVal);
-Original Message-
From: Jacob Wilson [mailto:[EMAIL
-Original Message-
From: Jacob Wilson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 3:37 PM
To: [EMAIL PROTECTED]
Subject: javascript question...
Hi...
Is it possible to send a value of a form element from the
parent window to the child window like this???
function go
Im sorry guys... this way works...
var newwin=window.open(a.html?Name=+namVal);
Rabago, Hubert [EMAIL PROTECTED] wrote:
What error were you getting here?
-Original Message-
From: Jacob Wilson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 3:44 PM
To: Struts Users
Thanks Matt... It sure helped...
Actually, now, I tried to put it as a common function like...
function getValue(optionName, hiddenValue) {
var s = document.forms[0].optionName;
for (var i=0; is.options.length; i++) {
if ( s.options[i].value == hiddenValue ) {
s.options.length;i++) {
if(s.options[i].value == hiddenValue) {
s.options[i].selected = true;
break;
}
}
}
onsomeformevent=getValue(this.form,'foo','bar')
Cheers Mark
On Monday, October 20, 2003, at 07:55 AM, Jacob Wilson wrote:
Thanks Matt... It sure helped...
Actually, now, I tried to put
= form.optionName;
if 'optionName' was a valid name for a form element.
HTH,
-jeff
On Monday, October 20, 2003, at 08:55 AM, Jacob Wilson wrote:
Thanks for the help Mark... when I do this, it says
elements.optionName is not null or an object... Any clue??? Thanks!
Mark Lowe wrote:Those
things being like that.
I'd just pass the value of the element as an argument But my apologies
from not reading the question properly in the first place.
Cheers Mark
On Monday, October 20, 2003, at 03:38 PM, Jacob Wilson wrote:
I get that error when I pass the element name only !!
function
Hi...
This is a basic question... Can I find the index of a select box, if I have the value
or the text ???
select
option value=A selectedA/option
option value=BB/option
option value=CC/option
/select
If I have the value A or B or C -- Will it be possible for me to do something
like
Hi...
Is there any tld that is available to handle my input type=image apart from the
struts html tld???
I need to make the image disabled or enabled based on the security level that I will
be getting from DB...
I know we can do this thru the struts html tag lib werein we can set the
Hi,
I have a question regarding JSTL. Is there anyway to do sorting of the colums on a
table using JSTL.
I know there is one table tag that does sorting... But, does it sort all the values
that is present in the collection or does it do just page level sorting???
Is there any other tag libr
ary
Hi...
I am using Struts in my application. In one of my pages I am using core JSTL tag to
iterate a set of collection object (2 rows displayed per page) along
with next and previous links so that the other results could be viewed on the click of
next... The code is as follows...
c:set
Post your use of the bean:message tag. Could be a syntax problem.
-Original Message-
From: Tim Clotworthy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:14 PM
To: Struts Users Mailing List
Subject: According to TLD, tag bean:message must be empty, but is not'
Can someone
Hello,
I have an urgent need to find a resolve to this problem.
First off, I sent a post about this the other day, but noone has yet to reply, so I
figure it could be either how I worded the question, or noone has encountered the
problem.
To describe the problem, I'll first start out by
://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx
- Original Message -
From: Lloyd Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 12:06 PM
Subject: Multiple Application Modules
Hello,
I have an urgent need to find a resolve to this problem.
First off, I sent
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 12:42 PM
Subject: Re: Multiple Application Modules
- Original Message -
From: Lloyd Wilson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 12
and for module b you have defined
that its key=test?
I think that this is a yes.
sandeep
--- Lloyd Wilson [EMAIL PROTECTED] wrote:
How would I retrieve values from my message resource
bundle without a key??
Currently, I use the following to access a message
resource bundle for a given JSP page
I am using the 1.1 version of struts and was wondering if there is a way that you can
define message resource bundles for a given struts config module other than default?
Presently, I have the following setup in the web.xml:
config
config/module1
config/module2
I have 3 separate struts config
I've had a similar problem and the only way i've been able to resolve it is to do
something like the following:
tiles:useAttribute name=browserSubtitle /
bean:message key=% browserSubtitle.toString () % /
That should work as i'm doing something very similar.
HTH,
Cheers,
Lloyd Wilson
Hi,
Can somebody pls tell me why the following validation is not firing?
(see xml snippet below)
contact.phoneBHVisible and contact.phoneBHRequired are booleans.
Essentially, what I want to do is that validate only when
contact.phoneBHVisible == true contact.phoneBHRequired == true
Other
Using struts 1.1 with SQL2000 Database.
Defined two data sources in my strust-conf.xml:
data-sources
data-source
set-property property=key value=one /
...
...
/data-source
data-source
set-property property=key value=two /
...
...
Check out http://jsptags.com - there is a pager taglib there that should do
what you do.
Les
-Original Message-
From: Brian.O'[EMAIL PROTECTED]
[mailto:Brian.O'[EMAIL PROTECTED]]
Sent: 22 January 2003 11:54
To: [EMAIL PROTECTED]
Subject: Is there a List navigater Tag to use with struts
Hi,
If you don't need the href, you can use the div tag to do the same
div id=link3
onClick=whatever;return false;
title=Simple Text Tooltip displayed on mouseover
class=normal
Text Here
/div
Les
-Original Message-
From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
We use this on the body tag of our pages and it works fine.
body class=content onload=setTopFrameText('bean:message
key=page.accountDetail.subtitle/');
Les
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2003 13:54
To: Struts Users Mailing List;
%/a
% } %
/pg:pages
pg:next
a class=pager href=%= pageUrl %[Next ]/a
/pg:next
/pg:index
/pg:pager
Les Wilson
Shell Finance Services
Shell International Limited, Shell Centre, London SE1 7NA, United Kingdom
Email: [EMAIL PROTECTED]
Internet: http://www.shell.com
to determine more about the
error. This seems to occur if someone tries to access my system after it
has not been accessed for a while (say 1-2 days). However, the question is
where is the struts log located and do I need include something in
struts-config.xml to enable it?
Thanks in advance
Wilson
this helps a little.
Wilson
-Original Message-
From: Brian Hickey [mailto:[EMAIL PROTECTED]]
Sent: 03 December 2002 13:50
To: Struts Users Mailing List
Subject: Re: Struts Log
Wilson,
Logging is dependent on many things. Which version of Struts? What JSP
container? (i.e. Tomcat 4.1.X
I'm getting a lot of these when I redeploy applications (on JBoss 3.0 with
Tomcat 4.0.3, Struts 1.1 beta):
java.lang.LinkageError: loader constraints violated when linking
org/apache/commons/logging/Log class
at org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at
Servlet filter?
-Original Message-
From: Hoang, Hai [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2002 16:27
To: 'struts-user'
Subject: [OT] How to capture the html output?
The application I am working on has a weird requirement that I don't know
how to do. It required me to capture the
Does anyone have an example of receiving tabular data from a form, where you
don't know how many rows of data are going to be in the form beforehand?
-Original Message-
From: Colin Wilson-Salt [mailto:[EMAIL PROTECTED]]
Sent: 23 July 2002 09:36
To: Struts Users Mailing List
Subject
Hi everyone. I've looked through the archives for this and the commons list,
without finding an answer to my problems with receiving indexed properties
from a form.
I've tried with both 1.1 beta and a nightly build from a couple of nights
ago. I'm not sure if my problem is with Struts, Commons /
- from clicking
the link, invoking the action (which is fairly complex) and displaying the
page.
The users have never complained about performance.
We are running on Silverstream Application Server and using version 1 of
struts in production.
Les Wilson
Shell Finance Services
Shell International
.
Les Wilson
Shell Finance Services
Shell International Limited, Shell Centre, London SE1 7NA, United Kingdom
Email: [EMAIL PROTECTED]
Internet: http://www.shell.com
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: 21 May 2002 15:59
To: Struts (E-mail)
Subject
() % /
/td
/tr
/strutslogic:iterate
Les Wilson
Shell Finance Services
Shell International Limited, Shell Centre, London SE1 7NA, United Kingdom
Tel: +44 20 7934 6463 Other Tel: +44 7974 948877
Email: [EMAIL PROTECTED]
Internet: http://www.shell.com
-Original
We do this by wrapping the int value in a getWhateverDisplay method that
returns a string - we test if the int value is 0 then return an empty string
- the form field then refers to the whateverDisplay attribute. The set
method (setWhateverDisplay) then converts the entered value back to the
I guess not realising it was a joke could be worse ;)
Les
-Original Message-
From: Robert Williams [mailto:[EMAIL PROTECTED]]
Sent: 03 May 2002 14:43
To: Struts Users Mailing List
Subject: Re: *** URGENT Help needed
Oh no, here we go again! And it's Friday and 6:30AM, what
Hi Jane,
I've done something similar, but use a form with hidden fields that gets
created at application initialisation and stored in the servletcontext.
I use the following to include the form in a jsp
strutsbean:write name=%= Constants.PRODUCT_LINE_FORM %
scope=application
Apologies if anyone had problems with the last version I sent - it had a
zipped attachement of an html file that was blocked by a few servers.
Les
-Original Message-
From: Wilson, Les J SI-FSIA
Sent: 26 April 2002 14:25
To: Struts Users Mailing List
Subject: RE: java script question
access to the log4j Category instance?? since we can
always get to ActionServlet in EVERY model components that extends Action
class..???
Thanks!
Wilson, Les J SI-FSIA [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
Hi,
Sounds like you are creating a new instance of the logger each
Hi,
Sounds like you are creating a new instance of the logger each time instead
of using the same one.
We use an initialisation servlet to set up log4j and then do a
Category.getInstance in our classes to get an instance of the logger to log
against. We are not using the latest version of
Hi,
Looks like you need to close your bean:define tag.
Les.
-Original Message-
From: Peter Cnops [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2002 16:27
To: [EMAIL PROTECTED]
Subject: conditional iterate (2)
Hi,
This is a better representation of the problem that I have posted
Hi,
I tried the code below and it generated a date of 21-Sep-2001 (if thats the
wrong date, I wouldn't bother reading any further!!)
long secs = 1001091454;
Calendar dtDate = Calendar.getInstance();
dtDate.setTime (new Date(secs*1000));
java.sql.Date newDate = new
Hi,
try this
total += parseFloat(x);
Les
-Original Message-
From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2002 15:00
To: [EMAIL PROTECTED]
Subject: Re: Indexed Tag and JavaScript Problem
Now I have another problem.
In JavaScirpt I have;
var total=0.0;
var x;
for
Have you tried ./logon.do?
-Original Message-
From: Henrik Chua [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2002 19:16
To: 'Struts Users Mailing List'
Subject: RE: action configuration
even if i have the html:base / tag, the link i get is still the same.
http://logon.do
thanx.
of Tomcat.
Can anyone throw any light on this?
Wilson
Wilson
Try setting the buffer size for the page - default is 8k.
%@ page buffer=25kb autoFlush=false %
Dunno if this will help.
Scott
- Original Message -
From: Lai Kok Cheong [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 09, 2001 3:22 AM
Subject:
and was looking at struts to get some examples.
one other question... are the ServletContext set/getAtribute calls
thread safe, or must i sync when i use them?
could craig or any other thread-safe aware developers out there speak to
these issues?
cheers,
chris
| chris wilson || web dev ||| [EMAIL
in 1.1) or a workaround for 1.0
to allow multiple controller servlets in a web app?
warm regards,
chris
| chris wilson || web dev ||| [EMAIL PROTECTED] || |
www.wondergeek.com | |
ted,
does the fact that no one is working on it mean that it will not be in a
1.1 release (i think craig hinted at this begin solved in 1.1 around the
time 1.0 was released) or just that it hasn't been addressed yet?
thanks,
chris
| chris wilson || web dev ||| [EMAIL PROTECTED
container needs configuring. Here's a Tomcat example:-
#
# The following line prohibits users from directly accessing WEB-INF
#
Location /myApp/WEB-INF/
AllowOverride None
deny from all
/Location
Scott Wilson-Billing
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: [EMAIL
I should have mentioned that the actual configuration goes in the web server
conf (apache in the example I gave).
Scott
- Original Message -
From: Scott Wilson-Billing [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 10:29 PM
Subject: Re: Place all Java ServerPages
I should have read this one first. I think the problem is that you have the
jar in the uncompressed war lib directory. I don't think iPlanet will
automatically add these to the classpath. However, I think it will add any
jars it expands during deployment with iasdeploy.
Scott Wilson-Billing
WAS 4.0 so far is no different, you will get the same error.
The problem was fixed, by changing the code in
org.apache.struts.taglib.html.FormTag per this solution posted a while ago:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html
There is another FormTag class,
on my personal FTP space and anyone
who
wants it can download it from there! :)
Struts.jar with Form tag modifications:
http://www.enfused.com/struts.jar
-Original Message-
From: Mark Wilson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 1:07 PM
To: '[EMAIL PROTECTED
.
any idea as to what might be going on?
thanks for any help.
cheers,
chris
| chris wilson || web dev ||| [EMAIL PROTECTED] || | www.wondergeek.com | |
Hi,
Would
you mind sharing a copy of your Resin config file on Linux? It's putting up a
hell of a fight working with Struts in my config.
Thanks!
Chris
-Original Message-From: Mindaugas
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 07, 2001 11:58
PMTo: [EMAIL
see my comments below...
| chris wilson || web dev ||| [EMAIL PROTECTED] || | www.wondergeek.com |
|
-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 11:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Can I use a Map.Entry as a bean
ntage of some tomcat "magic" that seems to be
affecting their portability?
forgive me if this topic has been discussed before, i forgot where the
archive was, and wasn't able to search for this issue.
thanks for any insight.
cheerio,
chris
| chris wilson || web dev ||| [EMAIL PROTECTED] || | www.wondergeek.com |
|
yeah, i tried that too. no difference...
thanks though,
chris
| chris wilson || web dev ||| [EMAIL PROTECTED] || | www.wondergeek.com |
|
-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 1:16 AM
To: [EMAIL PROTECTED]
Subject: Re
o the above two lines right? --
%= ((java.util.Map.Entry)pageContext.getAttribute("entry")).getKey() % -
%= ((java.util.Map.Entry)pageContext.getAttribute("entry")).getValue()
%br
/logic:iterate
/body
/html
## End display.jsp ##
| chris wilson || web dev ||| [EMAIL PROTEC
see my comments below...
| chris wilson || web dev ||| [EMAIL PROTECTED] || | www.wondergeek.com |
|
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 09, 2001 3:32 PM
To: [EMAIL PROTECTED]
Subject: Re: Can I use a Map.Entry as a bean
using the problem?
what am i missing? thanks for any help!
cheerio,
chris
| chris wilson || web dev ||| [EMAIL PROTECTED] || | www.wondergeek.com |
|
with an IllegalAccessException...
((java.util.Map.Entry)pageContext.getAttribute("subjectEntry)).getValue() //
this works!
if i use my own bean in the write tag, everything is dandy. it's just the
dang Map.Entry!
| chris wilson || web dev ||| [EMAIL PROTECTED] || | www.wondergeek.com |
|
-Orig
be solved, but i'd like to use only taglibs if possible and it seems
to me that the bean:write tag should do the same thing...
what am i missing? thanks for any help!
cheerio,
chris
| chris wilson || web dev ||| [EMAIL PROTECTED] || | www.wondergeek.com |
|
i believe that the first scope defines where the subjects beans is (in this
case, an attribute of the request) and the second one defines where the
subjectEntry bean is (created by the iterate tag, so it should only be page
scope)... right?
cheers,
chris
| chris wilson || web dev ||| [EMAIL
There's probably no reason for a list like this this to allow
attachments. I personally don't care about viruses (and I won't, until
someone writes an emailable virus that attacks Solaris machines), but
can we consider having the list dissallow attachments? After all, we all
work on the
lly played with it? i'm interested in your thoughts if
you've seen it. how does it compare?
cheerio,
chris
| chris wilson || web dev ||| www.wondergeek.com || |
82 matches
Mail list logo