To all,
I get the following error when I try to acces my website which utilizes
Tiles. It was working perfectly on one server and all I did was deploy to a
different server copying the root web server directory(Tomcat), which
contained all the files necessary.
Any help would be appreciated.
ors
suggesting Struts or Tiles failed to start up/initialize properly?
Regards,
David
-Original Message-
From: Jim Douglas [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 3:34 PM
To: user@struts.apache.org
Subject: TILES Exception
To all,
I get the following error when I try to
Hi all,
I am trying to log servlet messages but can't get this code to compile,
package app.web;
import java.io.*;
import java.io.IOException;
import java.util.Hashtable;
import java.util.Locale;
import javax.servlet.*;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
To all,
I have an LoginForm which is working fine. The problem is struts is not
forwarding after form validation. It never gets into the LoginAction class.
This is the output to the log file.
DEBUG - Validating input form properties
INFO - IN LogonForm CLASS: ActionErrors METHOD
INFO - passw
e: Controller Form not forwarding to Action
Date: Thu, 9 Dec 2004 05:23:15 -
Looks like you have a missing ">" in your struts-config after
input="/logon.jsp"
Niall
- Original Message -
From: "Jim Douglas" <[EM
I don't know if this is the best fix for the problem but it worked for me,
I changed
public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
to
public ActionForward execute(ActionMapping mapping,
e
Package specification for LogonAction?
Has the LogonAction class been included in the war?
Martin-
- Original Message -
From: "Jim Douglas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 09, 2004 10:57 AM
Subject: Re: Controller Form not for
ead for your LogonAction so we can see the
Package specification for LogonAction?
Has the LogonAction class been included in the war?
Martin-
- Original Message -
From: "Jim Douglas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 09, 2004 10:57 AM
Sub
ot; <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: getAttribute syntax
Date: Wed, 15 Dec 2004 12:48:50 -0700
> -Original Message-
> From: Jim Douglas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 12:30 PM
> To
To all,
This is my error message in the browser,
javax.servlet.ServletException: Cannot retrieve mapping for action
/SelectUser
The class files are in the right place. This is struts-conf,
Thanks,
Jim
-
Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Mapping issue
Date: Wed, 15 Dec 2004 19:31:14 -0500
Have you checked your application server's log files to see if there were
any Struts startup errors? Where are you putting the "struts-conf" file?
Are you putting it in the f
OTECTED]>
Subject: RE: Mapping issue
Date: Wed, 15 Dec 2004 19:31:14 -0500
Have you checked your application server's log files to see if there were
any Struts startup errors? Where are you putting the "struts-conf" file?
Are you putting it in the file "/WEB-INF/struts-co
lse {
out.println("Forms exists, let's see the data.");
Iterator it = forms.iterator();
while(it.hasNext()) {
out.print("try " + it.next());
}
}
%>
I'm big on echo printing where debugging null pointers are concerned. :)
Regards,
David
lso, using the role attributes won't work unless you are logged in that
way
(the container way). This affects isUserInRole(), getPrincipal,
getRemoteUser(), etc.
Regards,
David
-Original Message-
From: Jim Douglas [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 9:44 PM
To
Couldn't you set an attribute and change the attribute value when you
perform an Action or Submit a screen?
From: "David G. Friedman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Determine the previ
Can anyone tell me the best way to access the currently loggoned on user
when needed in an application.
Is this the best way to go about it?
HttpSession session = request.getSession()
String LogonName = session.getAttribute("userName");
Thanks,
Jim
---
Wed, 15 Dec 2004 19:31:14 -0500
Have you checked your application server's log files to see if there were
any Struts startup errors? Where are you putting the "struts-conf" file?
Are you putting it in the file "/WEB-INF/struts-config.xml"?
Regards,
David
-Original Message
I have problems compiling when I move code from an Action to a Tiles
Controller
The line that won't compile is,
DataSource dataSource = getDataSource(request, "userDB");
..and the error message is
RetrieveFormController.java:110: cannot find symbol
symbol : method getDataSource(javax.serv
My first question is a design one. Is JDNI the best way to access a
database from a Tiles controller? If so, this is the JDNI class problem I
have.
This is the tomcat/conf/catalina/localhost/myapp.xml file,
username
SYSDBA
password
password
driverClassName
do a google for advanced-tiles.pdf and you will find the answer..
Jim
From: icon911 <[EMAIL PROTECTED]>
Reply-To: icon911 <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Tiles, controllerUrl calling multiple actions
Date: Mon, 20 Dec 2004 17:44:11 -0800
Hi,
I have a controllerUrl preparing data
ctice stuff in the Struts' site Resources
section and User Guides. There are Tomcat-specific configuration
guides on the Tomcat site -- JNDI Howtos and, in fact, even DataSource
Howtos. It's really best to go to horse and get things from his
mouth.
Good Luck!
Eddie
On Mon, 20 Dec 2004 18
I set an attribute as follows...
public class AdsRespAction extends Action {
public ActionForward execute(
ActionMapping mapping,
ActionForm Form,
HttpServletRequest request,
HttpServletResponse response)
throws
I used the example that came with tiles to create a site and I keep getting
this error below,
ERROR - Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Error - tag useAttribute : attribute 'list'
not found in context. Check tag syntax
at
org.apache.struts.taglib.
[EMAIL PROTECTED]>
To: Struts Users Mailing List
Subject: Re: Check Tag problem?
Date: Mon, 3 Jan 2005 18:52:21 +0100
It simply says it can't find tile definition referenced by "name" attribute
of
your "useAttribute" tag. Try to check out if your tiles definitions.
Pa
;>
1.2
1.1
tiles
http://struts.apache.org/tags-tiles
Does anyone know where to find info as to what I need to do to updrage to
the latest version tlibversion?
Jim
From: "Jim Douglas" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: [EMAIL PROTECTED], user@struts.
To all,
I have a bean that's present in a JSP, does anyone know how to loop through
a bean and list out the properties available?
Here's the cose I have
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
form.heading
tName() + "=" + fields[i].get(this));
}
sb.append(" }");
str = sb.toString().trim();
} catch (Exception e) { }
return str;
}
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Fri, January 7, 2005 3
I have an LogonForm, LogonAction and when a user successfully logs on, I set
Attributes for "userID" and "userName".
How would be the best way to make this information available to the Web App
regardless of whether I need the data from within a JSP, servlet or class
file(for example, building a
res, and you can get to it from a JSP or servlet.
If you need it available from everything in the web app, you could use
something like a filter in conjunction with ThreadLocal to do
that...but I do not think that is such a great idea. IMO, keeping it
in session, and passing it to your model is a cl
I apologize for the confusion, I was thinking 2 things when I posted.
1 - What was the best design(I'm new to java and struts).
2. How do I solve that specific problem, which may well be a syntax related
issue on the line I specified in the last post.
The web site sets attributes after a user log
on = request.getSession();
String userID = session.getAttribute("userID");
However, really, as you have been told twice, what you want is:
String userID = request.getParameter("userID");
RIght?
Jack
On Sun, 09 Jan 2005 02:44:42 +, Jim Douglas <[EMAIL PROTECTED]> wrote:
>
ist"
To: "Struts Users Mailing List"
Subject: Re: Attributes, Parameter or Class
Date: Sun, 9 Jan 2005 09:20:26 -0700
From: "Jim Douglas" <[EMAIL PROTECTED]>
This line gives me a "cannot find symbol variable request"
String userID = request.getParameter(
k" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: Re: Attributes, Parameter or Class
Date: Sun, 9 Jan 2005 13:14:55 -0700
From: "Jim Douglas" <[EMAIL PROTECTED]>
And then, from your Action, you would u
(thanks for the great responses to my prior post)
Now that my query's all done I want a flexible JSP that can handle the
results. What would be the best approach?
I started sown this path
1 - setAttributes based on the recordset results, like this
String formMessage = rs.getString
To all,
I have a web application that sets a session attribute with userID and a
timeout in the config file that times out after 5 minutes in case the user
walks away.
I am trying to figure out the best strategy to deal with cases where the
user comes back after 5 minutes and clicks on a butto
To all,
I am trying to integrate PHP into a struts/tiles website. The website is
running fine, and has been.
When I put the month.php file in my struts.xml file, like this,
...the php code comes back to the browser. I can deploy PHP pages no
problem but I can't get it working with S
extends="site.index.page.online" >
Does anyone have any ides I as to how to get that PHP page back to the
browser within the body?
Does anyone know of a JAVA bsed web calendar as good as http://www.k5n.us/ ?
Thanks,
Jim
From: "Jim Douglas" <[EMAIL
Has anyone integrated a STRUTS webapp with Lenya?
I am curently working through the least painful way to do it and any input
would be helpful..
Thanks,
Jim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
To all,
I have TOMCAT 5.5 up and running and a webapp in the TOMCAT_HOME/webpps/XYZ
directory
I have an email webapp in TOMCAT_HOME/webapps/email that I want the abilty
to share with all other webapps.
I am having a problem configuring STRUTS, it seems that the
workers.properties file won't
gt;
To: "Struts Users Mailing List"
Sent: Saturday, October 29, 2005 7:47 PM
Subject: Re: PATH
Hi Jim,
You said that you have a struts application in
$TOMCAT_HOME/webapps/STRUTS_APP and you want it to access content in the
$TOMCAT_HOME/webapps/EMAIL_APP.
The following may be he
Has anybody integrated STRUTS with Forrest or know a of any How-Tos?
My STRUTS/Tiles site if working great but I'm afarid to integrate Forrest
without a roadmap and an idea of the time it would take.
Thanks,
Jim
-
To unsubs
I am trying to integrate this great Calendar app into a STRUTS/TILES website
http://www.k5n.us/webcalendar.php
I have this JAVA to PHP bridge up and running,
http://php-java-bridge.sourceforge.net/#mode3
The problem I am having is getting the Calendar page to show in my tiles
layout body.
ay
round:
integration of Java backend classes with the PHP frontend. Am I right?
Martin
> -Ursprüngliche Nachricht-
> Von: Jim Douglas [mailto:[EMAIL PROTECTED]
> Gesendet: Sonntag, 13. November 2005 16:45
> An: user@struts.apache.org
> Betreff: STRUTS PHP
>
>
> I
Thanks for the reply, if I get it working the weekend I post how I did it.
Jim
From: "Martin Kindler" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Subject: [OT]AW: AW: STRUTS PHP
Date: Wed, 16 Nov 2005 16:44:56 +0100
You are right: This is off-topic!
That was so simple there's no need to post.
Thanks,
Jim
From: "Jim Douglas" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: [EMAIL PROTECTED], user@struts.apache.org
Subject: RE: [OT]AW: AW: STRUTS PHP
Date: Thu, 17 Nov 2005 03:08:34 +
Th
Can this be done easily with Tiles?
From: Yujun Liang <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: Struts Users Mailing List
Subject: Re: tabs is struts
Date: Fri, 9 Dec 2005 09:02:42 +1100
On web page, there are two kinds of tabs,
1. Tab-looking pages with the different sty
eeded if
> using Struts-Layout.
>
> On 12/13/05, Jim Douglas <[EMAIL PROTECTED]> wrote:
> >
> > Can this be done easily with Tiles?
> >
> >
> > >From: Yujun Liang <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List"
I couldn't find one, but this PHP based one will integrate with STRUTS,
http://www.k5n.us/webcalendar.php
You can use this PHP - JAVA bridge
http://php-java-bridge.sourceforge.net/
(of course you have to have PHP installed first)
Jim
From: Rafael Taboada <[EMAIL PROTECTED]>
Reply-To: "Struts
48 matches
Mail list logo