snipThe modification clause is why many businesses do not use GPL
software. They can't modify the source, even for internal use, without
their own work being encumbered by the GPL.
/snip
The GPL only kicks in when you are distributing. You can freely modify
GPL'd software for your own use, even
I have there only these examples:
* Taglib Test Pages
* Upload examples
* Validator and Localization examples
there is nothing about authentication...
Peter
Thursday, April 14, 2005, 4:43:42 PM, you wrote:
There are examples in the Struts shipment.
On 4/14/05, Peter
Hi Néstor Boscán,
You can use multiple struts-config.xml files.
for that you have modify web.xml file
steps
1. in ActionServlet init params u can pass all the struts-config.xml
file(s) as a values.
servlet
servlet-nameaction/servlet-name
When inserting a tile into my jsp I am receiving an error after migrating to
struts.1.2.4
org.apache.struts.taglib.tiles.InsertTag TRAS0014I: The following exception
was logged
com.ibm.ws.webcontainer.servlet.exception.UncaughtServletException: Server
caught unhandled exception from servlet
Hmm? Well, try any of the Struts books and go online and get their
sample code. That always has the username/password logon stuff.
Jack
On 4/14/05, Peter Laufer [EMAIL PROTECTED] wrote:
I have there only these examples:
* Taglib Test Pages
* Upload examples
* Validator and
Maybe you need set the filter attribute of html:text
On 4/15/05, Pham Anh Tuan [EMAIL PROTECTED] wrote:
Hi all,
I got a problem, again :)
when I input special characters like japanese or vietnamese character into
html:text, html:text automatically encodes that characters Decimal NCRs
but there's no Filter attribute in html:text :|
- Original Message -
From: yue pengfei [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, April 15, 2005 3:33 PM
Subject: Re: [HELP] html:text encodes special characters automatically?
Maybe you need
Hallo,
I have fllowing problem with my Struts app on Jboss. Here is my filter
String defaultEncode = UTF-8;
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse res = (HttpServletResponse) response;
req.setCharacterEncoding(defaultEncode);
The standard examples work fine in Struts applications, such as
* http://www.onjava.com/pub/a/onjava/2001/08/06/webform.html?page=last
In the form, just be sure to name the attributes j_username and
j_password. The container does the rest. (But some of the
configuration details vary between
OK, once more, with feeling :)
For the record, so that there is no mistake, the PMC did decide that
Struts Shale is *not* Struts.Next. Today, the only Struts.Next is
Struts 1.3.
Craig McClanahan and David Geary will be speaking at Java One this
year. The title of the talk is Shale: The Next
If you are distributing a product to others that includes GPL
software, and you don't want to put your own work under the GPL, the
end-user has to download the GPL package separately (e.g. MySQL) and
then plug it in. (And you also have to be careful about how the
plugging in process works.)
Hond4 wrote:
I have fllowing problem with my Struts app on Jboss. Here is my filter
String defaultEncode = UTF-8;
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse res = (HttpServletResponse) response;
I assume you mean you input japanese character but the form bean gets a messed
result. If you have a multi-part/formdata encoding for form (used for file
uploads) keep in ming there are problem detecting at the character encoding
used by submitter. Browser is supposed to send the data in the
All
I have a large page with a form on it that I need to submit to
diffferent actions depending on that the user clicks.
For example, I have on this page
0. a list of items the user can select 1--n of (using checkboxes)
1. a list of graph types, with a graph chosen now button (user
chooses
Hi : I have following code for automatic ssl-forwarding filter:
public void doFilter(ServletRequest servletrequest, ServletResponse
servletresponse, FilterChain filterchain)
throws IOException, ServletException
{
String s = servletrequest.getScheme();
if(
In the past, I've used DispatchAction to accomplish this:
http://husted.com/struts/tips/002.html
I'm not sure if there is a newer/better way.
Dennis
David Johnson [EMAIL PROTECTED]
04/15/2005 09:37 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users
Hi. U can use DispatchAction class to have different methods for each
function u have in ur form.
For different buttons, there is a possibility to use
LookupDispatchAction class. Don't forget to map the keys.
On 4/15/05, David Johnson [EMAIL PROTECTED] wrote:
All
I have a large page with a
GREAT solution!!! Thank you both very much, and of course thanks to
Ted H as well!
-D
On 4/15/05, Rafael Taboada [EMAIL PROTECTED] wrote:
Hi. U can use DispatchAction class to have different methods for each
function u have in ur form.
For different buttons, there is a possibility to use
Hi all,
I am kindaa new to Struts and taglibraries world. I am using struts-bridge
with Jetspeed 2 for my web portal, and have a problem.
In a JavaScript function, I want to rewrite a URL. But when I rewrite that
URL, I want that all my form parameters should be appended to that URL with
the
Hi all,
Sorry to bring this issue again. Just read this, and I have the exactly same
problem. But the thing is I can't submit the form due to some restrictions.
So is there a way this can be done, or I will have to submit the form? ..
Thanks,
Amit
try{
File file = new File(text.txt);
FileReader in = new FileReader(file);
FileWriter out = new FileWriter(file);
}
catch (IOException ex) -- could be wrong about the Excpetion here..
{
}
Sun has a bunch of tutorials on this, also check out the API listings
on Java's website. Best
Were you intending to retrieve a file from within a WAR or just a
random file on the web server box? The first case is much more
interesting than just opening streams.
-ed
On 4/15/05, Andrew Thorell [EMAIL PROTECTED] wrote:
try{
File file = new File(text.txt);
FileReader in = new
question:
Does this tip apply to the latest version of Struts? I'm using V1.2.4
and I notived this tip references the perform() method which as far
as I know is deprecated.
I implemented this as it recommends, setting parameter=dispatch in
the ActionMapping, but the methods I've created (with
DispatchAction sounds like the right answer here, but remember that good
design generally dictates that the shorted a class is, the better.
Therefore, you most likely want to have your DispatchAction do not much
more than make use of some helper class to do the actual functionality.
Aside from
On 4/15/05, edward griebel [EMAIL PROTECTED] wrote:
Were you intending to retrieve a file from within a WAR or just a
random file on the web server box? The first case is much more
interesting than just opening streams.
If the file in question is inside your webapp, the servlet API lets
you
If you are a struts or sports lover or both, you're welcome to take a look at
www.sportslovers.net which is a yellow page of sports lovers and built based on
Struts.
Sorry if this post bothers you.
T.T.
-
Do you Yahoo!?
Yahoo! Small Business
Hello,
I am confused on setting up a data source using dbcp with struts.
I am referencing this web-site:
http://linux.com.hk/docs/struts/faqs/database.html
I am using mysql and struts 1.2. The problem I have is two-fold. First I
remember hearing something about the data-sources being
Hi all
I have the following, with the goal being to allow the user to select
multiple portfolios, which I can then access in the action class.
JSP:
c:forEach var=portfolio items=${userPortfolios}
html:multibox value= c:out value='${portfolio.portfolioName}'/
property=userPortfolio /
c:out
Finally, I got an error to show up. Here are the jars in the WEB-INF\lib
commons-collections.jar
mm.mysql-2.0.7-bin.jar
commons-pool-1.2.jar
commons-dbcp-1.2.1.jar
and of course the struts jars.
Any ideas?
message
description The server encountered an internal error () that prevented it from
Hi. u missed to call the data-source key u specified in ur struts-config.xml
In ur struts-config.xml:
U have: data-source type=org.apache.commons.dbcp.BasicDataSource
It must be: data-source key=myDB
type=org.apache.commons.dbcp.BasicDataSource
In ur action class:
U have: dataSource =
why don't use mysql-connector-java-3.1.7-bin??.. Download from www.mysql.com
--
Rafael Taboada
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
David,
Sounds like the same thing I was having fun with yesterday.
I'm just back into the code... seems like the best would be Struts-EL
tags.
I have not looked into how to use them in the current environment
(WebSphere Studio Application Developer).
- Glenn
David Johnson [EMAIL
Are there any resources you can point me to?
On 4/15/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
David,
Sounds like the same thing I was having fun with yesterday.
I'm just back into the code... seems like the best would be Struts-EL
tags.
I have not looked into how to use them in the
Here is what I know:
http://struts.apache.org/faqs/struts-el.html
http://struts.apache.org/userGuide/building_view.html section 3.4.6.
HTH,
Glenn
David Johnson [EMAIL PROTECTED]
15/04/2005 12:52 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List
Nope, that still gives me the error. I have grepped thriough the classes
looking for java.lang.NoClassDefFoundError:
org/apache/struts/legacy/GenericDataSource
??? any ideas
-Original Message-
From: Rafael Taboada [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 11:47 AM
To:
This looks like exactly what I need. I cant seem to find the proper
home page for the struts-el subproject however. I assume I need
struts-bean-el.tld
struts-html-el.tld
struts-logic-el.tld
struts-el.jar
Anyone using this that can give me a starting point?
On 4/15/05, [EMAIL PROTECTED] [EMAIL
Also
if I'm using the Struts-EL version of the tags do I simply REMOVE the
references to the old struts tags, or is it proper for them to
coexist? I assume they ca coexist since not all of them have been
ported.
-D
On 4/15/05, David Johnson [EMAIL PROTECTED] wrote:
This looks like exactly what
This looks like exactly what I need. I cant seem to find the
proper home page for the struts-el subproject however. I assume I need
struts-bean-el.tld
struts-html-el.tld
struts-logic-el.tld
struts-el.jar
Anyone using this that can give me a starting point?
I have those, plus the
if I'm using the Struts-EL version of the tags do I simply
REMOVE the references to the old struts tags, or is it proper
for them to coexist? I assume they ca coexist since not all
of them have been ported.
They can co-exist, as long the prefix attribute in the taglib directive is
Where do you get all the struts-el stuff? dos it come bundles with Struts 1.2.4?
On 4/15/05, Slattery, Tim - BLS [EMAIL PROTECTED] wrote:
if I'm using the Struts-EL version of the tags do I simply
REMOVE the references to the old struts tags, or is it proper
for them to coexist? I assume
OH
MY
GOD
IT
WORKS
For Future Reference:
OLD:
c:forEach var=refPortfolio items=${refPortfolios}
html:multibox value= c:out value='${portfolio.portfolioName}'/
property=userPortfolio /
/c:forEach
NEW:
c:forEach var=refPortfolio items=${refPortfolios}
html:multibox
I am now mixing JSTL, Struts-EL and Struts (garden variety)
tags. Does this eem strange or like S.O.P?
I use JSTL and struts-el tags together all the time. Of course, most of my
struts tags don't use EL, so they look like original Struts stuff. That way,
if I need EL in a tag, I just put it
Hi there
I thought I'd break this into its own thread. I'm trying to implement
a DispatchAction as discussed by Ted Husted here --
http://husted.com/struts/tips/002.html
I have done the following
1. changed the html:submit to the following (along with the necassary
javascript)
html:submit
David Johnson wrote:
My Action class still extends Action should it inherit
DispatchAction instead? What am I missing?
If it doesn't extend DispatchAction how would it know to dispatch?
Dave
-
To unsubscribe, e-mail: [EMAIL
I saw that after I sent it. I have changed it to inherit from
org.apache.struts.actions.DispatchAction (actually my BaseAction
inherits from DispatchAction) but the methods still arent being
called.
strange right?
On 4/15/05, Dave Newton [EMAIL PROTECTED] wrote:
David Johnson wrote:
My
David Johnson wrote the following on 4/15/2005 3:21 PM:
I saw that after I sent it. I have changed it to inherit from
org.apache.struts.actions.DispatchAction (actually my BaseAction
inherits from DispatchAction) but the methods still arent being
called.
You sure you have the parameter property in
I have had some issues this past week, trying to come up with a way to cleanly
connect to my, MySQL database. I know this is not necessarily a struts issue,
but I am betting that there is no one on this list who is not using some type
of database in the back-end.
Now I have the O'Reilly book
Hi all,
What is the difference between the html-el and html tags, and which ones comes
with Struts? I was looking at the TLD with 1.2.4 and only saw the html tld. How
do I get the html-el version?
Thanks,
Abdullah
-
To
JNDI *is* the way to go. See the Tomcat doc on configuring a DataSource
(cited below). I use Tomcat 5.0, but I will not buy it that the examples
don't work because I have followed the Tomcat documentation many times
with success (including MySQL).
Then write a simple Java class that acts as a
html-el gives you the ability to process expression language (EL) within
the tag attributes. Look at the JSTL docs to see the definition for EL.
Look in the contrib directory of the struts release to see the TLDs
and JARs for html-el.
- Dan
-Original Message-
From: Abdullah Jibaly
Thank to delbd for ur reply,
I tried to use acceptCharset attribute in html:form tag, but MyEclipse
report something like there's no attribute called acceptCharset for
html:form ?
I only submit a normal form, with text field, not submit for uploading file.
Can you show me in details about ur
Just try URLEncoder class of Java.
by the way, would you mind telling me the way u use
String defaultEncode = UTF-8;
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse res = (HttpServletResponse) response;
req.setCharacterEncoding(defaultEncode);
Hi guys,
I am using Struts for three years, but only now decided to join the
user group. About the web flow: would you like to take a look at
approach, alternative to Spring Web Flow? I started thinking on flow
engines when IBM's Servlet Manager still was around, but only lately I
came up with
I have a situation where i need to have a multi screen form, lets say 3
steps. On \
the successfull validation of the 3rd step. I want to save the data into the
DB. \
This data would have been collected starting on step one, through step 3 and \
ecapsulated in 1 or more objects.
My
I prefer to store everything on the server. It gives better control
over data and application state.
Brian
I vote for storing information in session variables for
the simple reason most Admins do not allow Browsers
writing cookies on the hard drive for fear of introducing
viruses to the
On 4/15/05, Michael J. [EMAIL PROTECTED] wrote:
I prefer to store everything on the server. It gives better control
over data and application state.
Brian
I vote for storing information in session variables for
the simple reason most Admins do not allow Browsers
writing cookies on
I've committed a plugin code-named Clay, contributed by Gary
VanMatre, that takes a very interesting twist on reusing subtrees of
JSF components, complete with on-the-fly customization of each
individual use, plus the ability to recognize templates stored in a
manner very similar to what Tapestry
Try setting the following 2 response header
response.setHeader(Pragma, public);
response.setHeader(Cache-Control, max-age=0);
- Jim
-Original Message-
From: sudip shrestha [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 9:54 PM
To: Struts Users Mailing List;
58 matches
Mail list logo