I have a question regarding the use of XML/XSLT. Please correct me if I am
wrong, but it is my understanding that XML does not directly support
graphics. Apparently, a new XML standard called SVG is currently being
reviewed by w3 for approval (hasn't been adopted yet) which uses scalable
I was just thinking about how the Struts-way is to have everything go
through an Action class first and then redirect to a jsp.
If you do this, then the following problem could occur:
If you are on Page A which contains a list of users and one of the columns
is Gender for example, and you leave
Does anyone know of a solution to this problem?
- Original Message -
From: Spencer Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 11:30 AM
Subject: The Struts-way Problem..
I was just thinking about how the Struts-way is to have everything go
through
Have any of you ever seen anything like this before? I think that compiled
code for this JSP got too big.
Error: 500
Location: /eCMS/CareManager/PfPatientSummaryBody.jsp
Internal Servlet Error:
javax.servlet.ServletException: (class:
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
*make sure above line is in your jsp page
html:link page=/test.do target=_topClick Here/html:link
*in order for above line to work you need to set up an action in
struts-config.xml
ie:
!-- Handle actions for /Test --
action
// Submit the form.
a href=javascript:
parent.window.content.document.forms[0].submit()Submit/a
We use this bit of code to trigger the submit button in the body from the
top frame.
- Original Message -
From: Norman Timmler [EMAIL PROTECTED]
To: Michelle Popovits [EMAIL PROTECTED];
Sure. Just use something like this:
SELECT * FROM (Select * from sometable
Order by sortcolumn)
WHERE rownum=1 and rownum=10
This would return the first 1-10th rows of the query (sorted properly)
If you were not interested in sorting properly, you could just
This occurs when a very large query is performed. Anyone know of a way
around this?
Weblogic Output:
; nested exception is:
java.lang.OutOfMemoryError:
Start server side stack trace:
java.lang.OutOfMemoryError
Title: RE: Can anyone help with solving the "BACK" button problem, in th e browser?
That won't work. I solved the problem using
javascript. Javascript doesn't cache like JSP pages does, so you can get
around this problem using javascript.
If you want, I can send you the code I
use.
-
Anyone know how to precompile the JSP pages?
Definately need more info--Thanks!. Once you have all the jsp files
compiled into classes, do you
1 delete all the jsp files (and tomcat will automatically use these)
OR
2 is there a setting in tomcat to not auto-recompile the jsp files?
Also, what is the command line for Ant to do
That is because you do not have a "return"
specified on the javascript line.
- Original Message -
From:
Steven Leija
To: Struts
Sent: Thursday, May 31, 2001 8:46
PM
Subject: Using Javascript to cancel
submit?
Hello All,
Currently I'm working on a form,
This email list server is kind of weak in terms of threads and discussion.
Should be moved over to a Forums. I built a really good robust one. If I
get some requests, I can implement it and host it for free.
Anyone interested in moving this over to a Forums?
Is there a known bug with Struts 3.2? Is there a known fix for this
problem? HELP!
I am having a major problem in my application using Struts 3.2.
The problem occurs intermittantly when calling a findForward() from my
Action class.
About every 5th time I call the Action which calls the Form
Title: Does anyone have a example to generate a drop down list?
IN FORM:
// Get allxxx Values for
DropDown.xxxDropDown[] results =
profileSession.getxxxValues();//
Create the arrays for the labels and values.xxxLabels =
new ArrayList();xxxValues = new
ArrayList();// For each value
%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %
Did you include the HTML tag library file in your
JSP page?
- Original Message -
From:
Tong, Tom
To: '[EMAIL PROTECTED]'
Sent: Monday, May 14, 2001 2:24 PM
Subject: RE: a small problem
Yes, I
I know. Struts doesn't handle unchecked boxes very well. In fact, it
doesn't understand them at all.
What you do is grab the current value from the DB display it, and then
manually set the value to false from either a Reset() action in your FORM or
directly from your JSP.
If you don't
All you really have to do is to manually set the checkbox value to false
after you display the current value:
ie:
html:checkbox property=mycheckbox / // notice that no value is set
% MyForm.setMycheckbox(false) %// do this after you display the
above line in same JSP
where:
Don't I wish!
- Original Message -
From: "Marty Fisher" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 09, 2001 12:36 PM
Subject: Strut Books
Hello,
Are there any decent books on the market now that give you a detailed
account of how to modify/extend/use the strut
Help! Unable to send back muliple select options.
// Define the Array
protected String[] geography;
// Get the Array
public String[] getGeography() {
return (geography);
}
// Set the Array
public void setGeography(String[] geography) {
{ this.geography = geography; }
}
I'm not sure about fixing that server side, but here is some javascript to
stop people from doing this:
Double Posting Fix:
script language="JavaScript"
!--
numberoftimes = 0;
function checkform(){
numberoftimes += 1;
if (numberoftimes 1)
var themessage = "Please be
How can I make a Action object that forwards to 1
of 2 pages based upon success or failure of the validation rules.
Ex.
If validation for *this Form fails, stay on Page
2.
or
if validation is successful, save data and forward
to Page 1.
Has anyone sucessfully implemented the multiple="true" using
struts?
html:select multiple="true" property="fieldName"/
I read the Struts docs and it says to make the getter
and setter an Array
ex.
protected String[] fieldName;
The problem is that I don't know the size of the
Array because
That's a good question. If you guys find out
let me know and I will do the same. I actually have to deal with that
today in a multi-part form. I am not sure, but I think the answer is by
adding struts hidden form fields. I'll let you know later
today.
- Original Message -
This is how we do it...(I think the work simple
should be ommitted)
Get the content at the top of the JSP
page.
%pageContext.setAttribute("nameSuffixTypes",
getServletContext().getAttribute("nameSuffixTypes"));%
Place this where you want the Drop Down List on the
JSP page.
html:select
ions could reference the collection where it is in the
servlet context, without copying the reference to the page context.
Hal
-Original Message-----
From: Spencer Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 11:39 AM
To: [EMAIL PROTECTED]
Subject
...
and make sure the corresponding property in your form bean is an array of
values.
See the docs for more details:
http://jakarta.apache.org/struts/struts-html.html#select
Hope this helps.
--
Martin Cooper
Tumbleweed Communications
At 11:44 AM 3/1/01 -0800, Spencer Smith wrote:
Do you guy
Provide Name(s)nbsp;
html:select property="providerName" multiple="true" size="2"
html:options collection="cmProviderTypes" property="value"
labelProperty="label" /
/html:select
Like this, correct?
- Original Message -
eter
type in setProviderName should be String[].
I don't know for sure though.
-Original Message-----
From: Spencer Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 13:02
To: [EMAIL PROTECTED]
Subject: Re: Drop-down list
Trying to use Multiple="true" attribute fo
Help!
Question:
Is there a simple way to set an index for an error message so that I can
vary it's placement on my JSP Page?
// In Action
// old code
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("caremanager.mp.error.phoneFormat"));
// new code (preferredDayPhone is my field name)
I have a lot of experience using validation. I am of the opinion that if
possible validation should be done client-side using javascript. Is there a
way to implement this by extending Struts? If so, I would be very
interested in helping. Currently, I am working on expanding Struts Custom
Tag
31 matches
Mail list logo