SV: Tiles/Frames & Urls with Parameters

2004-07-05 Thread hermod . opstvedt
Hi

Its the & sign in your URL - You have to escape it. This has to do with
the XML digester and not with Struts it self

Hermod

-Opprinnelig melding-
Fra: Pat Quinn [mailto:[EMAIL PROTECTED]
Sendt: 5. juli 2004 17:46
Til: [EMAIL PROTECTED]
Emne: Tiles/Frames & Urls with Parameters


Hi Guys,
 
I'm using tiles and frames together but when i try to pass a url value
with
parameters struts fails during startup with the following error:
 
ERROR org.apache.commons.digester.Digester - Parse Fatal Error at line
109
column -1: Next character must be ";" terminating reference to entity
"viewMode".
org.xml.sax.SAXParseException: Next character must be ";" terminating
reference to entity "viewMode".
 
 
 


.
   
 
 
 


  " >
  
">
 ">
  

 
Any Ideas?
 


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ClassCastException when usig multiple web applications

2004-07-05 Thread Mathew Joseph
Hi

The context name of my  application is "am" .

Here is the sample code of action class, struts-config, tiles-def & web.xml ...


 ACTION CLASS  ***
//--- servlet ---
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;

//--- struts ---
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.actions.DispatchAction;


public final class ClassifiersAction extends DispatchAction
{
public static final String SOURCEREFID = "$Name: $; $Id: 
ClassifiersAction.java,v 1.0 2004/06/30 12:12:12 mathew Exp $";

private Vector messageVector;

/**
* Initial method for redirecting and loading Add,Search pages
*/
public ActionForward generalView(ActionMapping mapping,
 ActionForm 
form,
 
HttpServletRequest request,
 
HttpServletResponse response)
throws Exception
{
 String sOpr = (String)request.getParameter("qOpr");

if (sOpr != null)
{
if (sOpr.equals("add")) {
return mapping.findForward("addPage");
}
}
return mapping.findForward("defaultPage");
}
.
}


**struts-config.xml *


 

 
.



***tiles-defs.xml***


 
 






 

 
 
'

 
.



***web.xml*

  
action

  org.apache.struts.action.ActionServlet


  config
  /WEB-INF/config/struts-config.xml





Thanks 
Mathew






-Original Message-
From: McCormack, Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, July 05, 2004 7:38 PM
To: Struts Users Mailing List
Subject: RE: ClassCastException when usig multiple web applications


Please paste in a sample action and a sample tile-def. The more info the easier it is 
to help you out. Also the name of your deployed app (context name).

Chris McCormack

-Original Message-
From: Mathew Joseph [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 15:07
To: [EMAIL PROTECTED]
Subject: ClassCastException when usig multiple web applications


Hi,

We have deployed a ROOT application and another application called 'AM' in Tomcat 
4.1.30. Both applications use struts. In struts config file as well as tiles 
definition files we have given all paths relative to context. Following exception is 
thrown, when action class is accessed.


java.lang.ClassCastException
at 
org.apache.struts.tiles.TilesRequestProcessor.initDefinitionsMapping(TilesRequestProcessor.java:126)
at 
org.apache.struts.tiles.TilesRequestProcessor.init(TilesRequestProcessor.java:116)
at 
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:872)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.cor

RE: Authorization and Authentication in Struts

2004-07-05 Thread ravi.vedala
Just FYI :
JGuard is an open source JAAS implementation.

Regds
r-a-v-i

-Original Message-
From: Shilpa Vaidya [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 06, 2004 9:50 AM
To: 'Struts Users Mailing List'
Cc: [EMAIL PROTECTED]
Subject: RE: Authorization and Authentication in Struts

Hi ,
On these lines you can do Authorization and Authentication in Struts.
But it calls the tomcat 404 page, I am still doubtful as how to call a
customised page in this regards.
Can anyone help.
The below portion of code i believe should help in the given context.
Shilpa




private boolean _403 (  HttpServletRequest request, HttpServletResponse
response, ActionMapping mapping ) throws IOException
{
response.sendError ( HttpServletResponse.SC_FORBIDDEN, "No Access"
);

return false;
}


 public boolean allowAccess(String sRequestURL, ArrayList arrActions)
{
boolean bAllowAccess = false;
String tempURL="";
StringTokenizer stTok= new StringTokenizer(sRequestURL,".");
String beforeTemp =stTok.nextToken();
tempURL=beforeTemp.concat(".do");

if() {
  //Compare or do all ur security checks in this function

bAllowAccess =true
}
}
}

return bAllowAccess;
}

protected boolean processRoles ( HttpServletRequest request,
HttpServletResponse response, ActionMapping mapping) throws IOException,
ServletException
{
if ( request.getSession ( false ) == null ) return _403 ( request,
response, mapping );


Roles objRoles = new Roles();
HashMap ht_roles;

//Another condition
if ( isWhiteSpace ( mapping.getRoles() ))
return true;

String sUrl = request.getServletPath();

ServletContext ctx =getServletContext();
HashMap hmRightsMap = (HashMap)ctx.getAttribute("rightsMap");

try
{

RightsReader rightreader = new RightsReader( );
ArrayList arrFinal=
rightreader.FilterRights(hmRightsMap,arrObtainrights);

//last security check
if(allowAccess(sUrl,arrFinal)==true)
 return true;


}catch(Exception e)
{
e.printStackTrace();
}

//call the _403 method
return _403 ( request, response, mapping );

}
}

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Hal Klimer
Sent: Tuesday, July 06, 2004 12:22 AM
To: [EMAIL PROTECTED]
Subject: Authorization and Authentication in Struts


I have a question on how to implement authorization and authentication
with
the
Struts framework. In several DB tables we have users, groups,
permissions,
acls, etc where the security information is stored. We would like to
integrate
this information, in the best possible way with Struts. From what I have
read
so far it's seems that best place, perhaps, is to place this request
validation
code is in the processPreprocess() or the processRoles() of a user
extended
version of the RequestProcessor class. That way one could "look" at the
request
first, validate it against the logged user and his ACL and decide to let
him
pass or not. If this is the case how do I generate a "redirect" to a
"not
allowed/no security" action (possibly by overriding the
processActionPerform()
method) or just throw a NotAuthorizedException and let a global
exception
handler in Struts take care of it?
Is this a correct path of action? Please excuse me if this has been
already
talked about, maybe someone could lead me to previous discussions about
how
to
do this. Thanks in advance.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 


"This e-mail message may contain confidential, proprietary or legally
privileged information. It 
should not be used by anyone who is not the original intended recipient.
If you have erroneously 
received this message, please delete it immediately and notify the
sender. The recipient 
acknowledges that ICICI Bank or its subsidiaries and associated
companies,  (collectively "ICICI 
Group"), are unable to exercise control or ensure or guarantee the
integrity of/over the contents of the information contained in e-mail
transmissions and further acknowledges that any views 
expressed in this message are those of the individual sender and no
binding nature of the message shall be implied or assumed unless the
sender does so expressly with due authority of ICICI Group.Before
opening any attachments please check them for viruses and defects." 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Authorization and Authentication in Struts

2004-07-05 Thread Shilpa Vaidya
Hi ,
On these lines you can do Authorization and Authentication in Struts.
But it calls the tomcat 404 page, I am still doubtful as how to call a
customised page in this regards.
Can anyone help.
The below portion of code i believe should help in the given context.
Shilpa




private boolean _403 (  HttpServletRequest request, HttpServletResponse
response, ActionMapping mapping ) throws IOException
{
response.sendError ( HttpServletResponse.SC_FORBIDDEN, "No Access" );

return false;
}


 public boolean allowAccess(String sRequestURL, ArrayList arrActions)
{
boolean bAllowAccess = false;
String tempURL="";
StringTokenizer stTok= new StringTokenizer(sRequestURL,".");
String beforeTemp =stTok.nextToken();
tempURL=beforeTemp.concat(".do");

if() {
  //Compare or do all ur security checks in this function

bAllowAccess =true
}
}
}

return bAllowAccess;
}

protected boolean processRoles ( HttpServletRequest request,
HttpServletResponse response, ActionMapping mapping) throws IOException,
ServletException
{
if ( request.getSession ( false ) == null ) return _403 ( request,
response, mapping );


Roles objRoles = new Roles();
HashMap ht_roles;

//Another condition
if ( isWhiteSpace ( mapping.getRoles() ))
return true;

String sUrl = request.getServletPath();

ServletContext ctx =getServletContext();
HashMap hmRightsMap = (HashMap)ctx.getAttribute("rightsMap");

try
{

RightsReader rightreader = new RightsReader( );
ArrayList arrFinal=
rightreader.FilterRights(hmRightsMap,arrObtainrights);

//last security check
if(allowAccess(sUrl,arrFinal)==true)
 return true;


}catch(Exception e)
{
e.printStackTrace();
}

//call the _403 method
return _403 ( request, response, mapping );

}
}

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Hal Klimer
Sent: Tuesday, July 06, 2004 12:22 AM
To: [EMAIL PROTECTED]
Subject: Authorization and Authentication in Struts


I have a question on how to implement authorization and authentication with
the
Struts framework. In several DB tables we have users, groups, permissions,
acls, etc where the security information is stored. We would like to
integrate
this information, in the best possible way with Struts. From what I have
read
so far it's seems that best place, perhaps, is to place this request
validation
code is in the processPreprocess() or the processRoles() of a user extended
version of the RequestProcessor class. That way one could "look" at the
request
first, validate it against the logged user and his ACL and decide to let him
pass or not. If this is the case how do I generate a "redirect" to a "not
allowed/no security" action (possibly by overriding the
processActionPerform()
method) or just throw a NotAuthorizedException and let a global exception
handler in Struts take care of it?
Is this a correct path of action? Please excuse me if this has been already
talked about, maybe someone could lead me to previous discussions about how
to
do this. Thanks in advance.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 


"This e-mail message may contain confidential, proprietary or legally privileged 
information. It 
should not be used by anyone who is not the original intended recipient. If you have 
erroneously 
received this message, please delete it immediately and notify the sender. The 
recipient 
acknowledges that ICICI Bank or its subsidiaries and associated companies,  
(collectively "ICICI 
Group"), are unable to exercise control or ensure or guarantee the integrity of/over 
the contents of the information contained in e-mail transmissions and further 
acknowledges that any views 
expressed in this message are those of the individual sender and no binding nature of 
the message shall be implied or assumed unless the sender does so expressly with due 
authority of ICICI Group.Before opening any attachments please check them for viruses 
and defects." 




Re: Form tag problem - Another newbie tip

2004-07-05 Thread jthompson





Speaking of newbie tips, I've been banging my head with struts/JSTL for the
past two weeks and discovered this gem today.



<% if (image.trim().length()>0) { %>
...


This lets me grab an object out of a form bean and switch to JSP script
mode so that I can use the full force of Java rather than figure out how to
do everything with JSTL or struts tags.
Bad form I know, but it helps get the job done while I get a grip on using
tags at a saner pace.


Regards,
John






>Well I have found the answer to the relative URI problem with the
>html:img, html:rewrite and html:link tags. Now those are quite useful!
>Unfortunately, the O'Reilly Struts book was of no help to me with any of
>these matters. If any newbie reads this and wants to get up to speed
>quickly, I found this site to be helpful:

>http://www.reumann.net/do/struts/main

>I may not have ever noticed the html:rewrite tag without it.

>Thanks again for your help.

>Erik





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form tag problem

2004-07-05 Thread Erik Weber
Well I have found the answer to the relative URI problem with the 
html:img, html:rewrite and html:link tags. Now those are quite useful! 
Unfortunately, the O'Reilly Struts book was of no help to me with any of 
these matters. If any newbie reads this and wants to get up to speed 
quickly, I found this site to be helpful:

http://www.reumann.net/do/struts/main
I may not have ever noticed the html:rewrite tag without it.
Thanks again for your help.
Erik

Erik Weber wrote:
I finally figured it out, thanks to your help.
I was trying to match what the controller servlet was mapped to in my 
action parameter to the html:form tag, when in reality, I should have 
been doing the opposite. The html:form tag apparently prefixes the 
controller path token to whatever action you specify.

So if you use this in web.xml:
/do/*
Then you name your action something like "/login". Then you specify 
action="/login" as the html:form tag attribute. When the page gets 
rendered, the form tag shows this:


which is correct.
The docs need some help on this subject! I was, in ignorance, trying 
to make sure "/do" was in the path of my action, when in reality, it 
needed to be generated, not placed by me. That was the problem.

Thanks again for your help.
Now of course the new problem is that relative image URIs don't work 
when a forward has occurred and the request URI is inconsistent with 
what the page expects . . . Any advice on this challenge would again 
be appreciated.

Erik

atta-ur rehman wrote:
okay, before i leave for the day, for path based mapping, you need 
something like:


controller
/do/

then all your urls must be like:
localhost/app/do/login
that's how i understand it. you may wanna have look at struts docos 
for this parameter.

ATTA
On Jul 5, 2004, at 4:57 PM, Erik Weber wrote:
Thanks for helping.
I assume you mean this part:

controller
/

The above code works (hooray), but if I try to change the url 
pattern to anything more specific (such as /login, or /login*, or 
/login/*) I get the wrong action parameter value . . .


atta-ur rehman wrote:
Okay, now you need to show your web.xml!
struts-config.xml looks fine. I'd suggest you try it with .do 
extension first and then try path mapping in web.xml

ATTA
On Jul 5, 2004, at 4:40 PM, Erik Weber wrote:















I have tried mapping the controller servlet to all kinds of path 
prefixes including "/login" and "/login/*" and "/". None of them 
result in the correct action parameter in the form. I don't want 
to use extension mapping. I want to use path mapping. Is this 
where the problem is?


atta-ur rehman wrote:
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag 
to ignore the value I specify to the action parameter, and 
instead, rewrite the action parameter value to be equal to the 
context root of the application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But 
the struts tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely 
frustrating. Any help would be appreciated.

Erik
--- 
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form tag problem

2004-07-05 Thread Erik Weber
I finally figured it out, thanks to your help.
I was trying to match what the controller servlet was mapped to in my 
action parameter to the html:form tag, when in reality, I should have 
been doing the opposite. The html:form tag apparently prefixes the 
controller path token to whatever action you specify.

So if you use this in web.xml:
/do/*
Then you name your action something like "/login". Then you specify 
action="/login" as the html:form tag attribute. When the page gets 
rendered, the form tag shows this:


which is correct.
The docs need some help on this subject! I was, in ignorance, trying to 
make sure "/do" was in the path of my action, when in reality, it needed 
to be generated, not placed by me. That was the problem.

Thanks again for your help.
Now of course the new problem is that relative image URIs don't work 
when a forward has occurred and the request URI is inconsistent with 
what the page expects . . . Any advice on this challenge would again be 
appreciated.

Erik

atta-ur rehman wrote:
okay, before i leave for the day, for path based mapping, you need 
something like:


controller
/do/

then all your urls must be like:
localhost/app/do/login
that's how i understand it. you may wanna have look at struts docos 
for this parameter.

ATTA
On Jul 5, 2004, at 4:57 PM, Erik Weber wrote:
Thanks for helping.
I assume you mean this part:

controller
/

The above code works (hooray), but if I try to change the url pattern 
to anything more specific (such as /login, or /login*, or /login/*) I 
get the wrong action parameter value . . .


atta-ur rehman wrote:
Okay, now you need to show your web.xml!
struts-config.xml looks fine. I'd suggest you try it with .do 
extension first and then try path mapping in web.xml

ATTA
On Jul 5, 2004, at 4:40 PM, Erik Weber wrote:















I have tried mapping the controller servlet to all kinds of path 
prefixes including "/login" and "/login/*" and "/". None of them 
result in the correct action parameter in the form. I don't want to 
use extension mapping. I want to use path mapping. Is this where 
the problem is?


atta-ur rehman wrote:
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag 
to ignore the value I specify to the action parameter, and 
instead, rewrite the action parameter value to be equal to the 
context root of the application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But the 
struts tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely 
frustrating. Any help would be appreciated.

Erik
--- 
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form tag problem

2004-07-05 Thread atta-ur rehman
okay, before i leave for the day, for path based mapping, you need  
something like:


controller
/do/

then all your urls must be like:
localhost/app/do/login
that's how i understand it. you may wanna have look at struts docos for  
this parameter.

ATTA
On Jul 5, 2004, at 4:57 PM, Erik Weber wrote:
Thanks for helping.
I assume you mean this part:

controller
/

The above code works (hooray), but if I try to change the url pattern  
to anything more specific (such as /login, or /login*, or /login/*) I  
get the wrong action parameter value . . .


atta-ur rehman wrote:
Okay, now you need to show your web.xml!
struts-config.xml looks fine. I'd suggest you try it with .do  
extension first and then try path mapping in web.xml

ATTA
On Jul 5, 2004, at 4:40 PM, Erik Weber wrote:















I have tried mapping the controller servlet to all kinds of path  
prefixes including "/login" and "/login/*" and "/". None of them  
result in the correct action parameter in the form. I don't want to  
use extension mapping. I want to use path mapping. Is this where the  
problem is?


atta-ur rehman wrote:
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag to  
ignore the value I specify to the action parameter, and instead,  
rewrite the action parameter value to be equal to the context root  
of the application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But the  
struts tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely  
frustrating. Any help would be appreciated.

Erik
--- 
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form tag problem

2004-07-05 Thread Erik Weber
Thanks for helping.
I assume you mean this part:

controller
/

The above code works (hooray), but if I try to change the url pattern to 
anything more specific (such as /login, or /login*, or /login/*) I get 
the wrong action parameter value . . .


atta-ur rehman wrote:
Okay, now you need to show your web.xml!
struts-config.xml looks fine. I'd suggest you try it with .do 
extension first and then try path mapping in web.xml

ATTA
On Jul 5, 2004, at 4:40 PM, Erik Weber wrote:















I have tried mapping the controller servlet to all kinds of path 
prefixes including "/login" and "/login/*" and "/". None of them 
result in the correct action parameter in the form. I don't want to 
use extension mapping. I want to use path mapping. Is this where the 
problem is?


atta-ur rehman wrote:
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag to 
ignore the value I specify to the action parameter, and instead, 
rewrite the action parameter value to be equal to the context root 
of the application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But the 
struts tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely 
frustrating. Any help would be appreciated.

Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form tag problem

2004-07-05 Thread atta-ur rehman
Okay. this all i have in my web.xml and it works:

action
 
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2

2
  

  
  
action
*.do
  
hope this helps.
ATTA
On Jul 5, 2004, at 4:46 PM, Erik Weber wrote:
I should make one more correction. Actually when I mapped the  
controller Servlet to "/", the correct action parameter did show up in  
the form, and things worked correctly. However, I don't want to use  
"/" as my controller mapping -- I would rather do something more  
specific. But "/login" and "/login/*" for example don't work.

So again, I guess my question is still the same. Could someone explain  
how the action attribute relates to the controller Servlet mapping,  
and how I should use the  section to make this work  
correctly?

Thanks,
Erik

Erik Weber wrote:















I have tried mapping the controller servlet to all kinds of path  
prefixes including "/login" and "/login/*" and "/". None of them  
result in the correct action parameter in the form. I don't want to  
use extension mapping. I want to use path mapping. Is this where the  
problem is?


atta-ur rehman wrote:
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag to  
ignore the value I specify to the action parameter, and instead,  
rewrite the action parameter value to be equal to the context root  
of the application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But the  
struts tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely  
frustrating. Any help would be appreciated.

Erik
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form tag problem

2004-07-05 Thread Erik Weber
I should make one more correction. Actually when I mapped the controller 
Servlet to "/", the correct action parameter did show up in the form, 
and things worked correctly. However, I don't want to use "/" as my 
controller mapping -- I would rather do something more specific. But 
"/login" and "/login/*" for example don't work.

So again, I guess my question is still the same. Could someone explain 
how the action attribute relates to the controller Servlet mapping, and 
how I should use the  section to make this work correctly?

Thanks,
Erik

Erik Weber wrote:















I have tried mapping the controller servlet to all kinds of path 
prefixes including "/login" and "/login/*" and "/". None of them 
result in the correct action parameter in the form. I don't want to 
use extension mapping. I want to use path mapping. Is this where the 
problem is?


atta-ur rehman wrote:
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag to 
ignore the value I specify to the action parameter, and instead, 
rewrite the action parameter value to be equal to the context root 
of the application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But the 
struts tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely 
frustrating. Any help would be appreciated.

Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form tag problem

2004-07-05 Thread atta-ur rehman
Okay, now you need to show your web.xml!
struts-config.xml looks fine. I'd suggest you try it with .do extension 
first and then try path mapping in web.xml

ATTA
On Jul 5, 2004, at 4:40 PM, Erik Weber wrote:















I have tried mapping the controller servlet to all kinds of path 
prefixes including "/login" and "/login/*" and "/". None of them 
result in the correct action parameter in the form. I don't want to 
use extension mapping. I want to use path mapping. Is this where the 
problem is?


atta-ur rehman wrote:
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag to 
ignore the value I specify to the action parameter, and instead, 
rewrite the action parameter value to be equal to the context root 
of the application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But the 
struts tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely 
frustrating. Any help would be appreciated.

Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form tag problem

2004-07-05 Thread Erik Weber















I have tried mapping the controller servlet to all kinds of path 
prefixes including "/login" and "/login/*" and "/". None of them result 
in the correct action parameter in the form. I don't want to use 
extension mapping. I want to use path mapping. Is this where the problem is?


atta-ur rehman wrote:
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag to 
ignore the value I specify to the action parameter, and instead, 
rewrite the action parameter value to be equal to the context root of 
the application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But the 
struts tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely 
frustrating. Any help would be appreciated.

Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form tag problem

2004-07-05 Thread Erik Weber
1) Typo: I meant that my login page is:
http://localhost:8080/Test/login.jsp, not index.jsp.
2) I am finding that playing around with the servlet mappings in web.xml 
is having an effect on what is rendered as the value of the action 
parameter, but I still cannot make any sense of it.

If anyone could explain how this works I would appreciate it. I don't 
want to download 10MB of source code just to look at one file.

Erik

Erik Weber wrote:
Could someone please tell me what would cause the html:form tag to 
ignore the value I specify to the action parameter, and instead, 
rewrite the action parameter value to be equal to the context root of 
the application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But the 
struts tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely 
frustrating. Any help would be appreciated.

Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form tag problem

2004-07-05 Thread atta-ur rehman
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag to 
ignore the value I specify to the action parameter, and instead, 
rewrite the action parameter value to be equal to the context root of 
the application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But the 
struts tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely 
frustrating. Any help would be appreciated.

Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Form tag problem

2004-07-05 Thread Erik Weber
Could someone please tell me what would cause the html:form tag to 
ignore the value I specify to the action parameter, and instead, rewrite 
the action parameter value to be equal to the context root of the 
application?

For example, my web app login page is:
http://localhost:8080/Test/index.jsp
In login.jsp, I have this opening form tag:

I have a matching action configured in struts-config.xml. But the struts 
tag is rendering the form tag like this:


No matter what I try this does not change. This is extremely 
frustrating. Any help would be appreciated.

Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Proper way to mark initial page load as such?

2004-07-05 Thread Timothy . H . Bessie
At work we have a situation where we have a common
action delegating to some sub-actions.  The delegating
action sets up some parameters, and the child action
ALSO sets up some parameters specific to itself that
are required for the initial page display.

However, there are other things done in the child action --
for example, performing a search, doing 2nd-level input
validation, etc.  The problem is, I don't want these more
complex tasks done on the initial page load.

What would be a "standard" way to avoid this kind of thing?
Should I add a "marker" request parameter to the initial
call to the child action?  Should I use field(s) that *should*
have been checked in the form validation (i.e. set the initial
page validation value to "false", and check for a supposedly-validated
field, and if it's not set, validation was never called, so
it's the initial page load)?  This second method was something
suggested by a co-worker, but I think it's pretty sketchy.

Opinions?

- Tim


 DISCLAIMER 

"This message may contain confidential and/or privileged information.  If
you are not the addressee or authorized to receive this for the addressee,
you must not use, copy, disclose, or take any action based on this message
or any information herein.  If you have received this message in error,
please advise the sender immediately by reply e-mail and delete this
message.  Thank you for your cooperation."

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Authorization and Authentication in Struts

2004-07-05 Thread Hal Klimer
I have a question on how to implement authorization and authentication with the 
Struts framework. In several DB tables we have users, groups, permissions, 
acls, etc where the security information is stored. We would like to integrate 
this information, in the best possible way with Struts. From what I have read 
so far it's seems that best place, perhaps, is to place this request validation 
code is in the processPreprocess() or the processRoles() of a user extended 
version of the RequestProcessor class. That way one could "look" at the request 
first, validate it against the logged user and his ACL and decide to let him 
pass or not. If this is the case how do I generate a "redirect" to a "not 
allowed/no security" action (possibly by overriding the processActionPerform() 
method) or just throw a NotAuthorizedException and let a global exception 
handler in Struts take care of it?
Is this a correct path of action? Please excuse me if this has been already 
talked about, maybe someone could lead me to previous discussions about how to 
do this. Thanks in advance. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread James Holmes
Oops...I left off the link.

Here it is:

http://forum.java.sun.com/thread.jsp?forum=427&thread=503652

-James
JSF Resources and JSF Console GUI Tool
http://www.jamesholmes.com/JavaServerFaces/

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 05, 2004 1:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

Yes, the problem is a bug with Weblogic 8.1.  Weblogic is not properly
implementing the servlet 2.3 spec.  To fix this you will need to use the
"hack servlet".  Following is a link to a thread on the JSF forum that
explains what you must do to get JSF apps working under WebLogic.


-Original Message-
From: Albrecht, Michael [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 05, 2004 10:45 AM
To: 'Struts Users Mailing List'
Subject: AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

Hi @all!

There`s still a problem with the struts-faces.war example.

The hint of Matthias was correct and very helpful: The BEA Weblogic 8.1 is a
J2EE 1.3 compliant app server and so the jstl.jar has to be another one.

There`s also a problem with the ServletContextListener. This listener has to
be initialized before JSF-Servlet init-methods are called, but BEA won`t do
this. So you have to force it to by programming a Servlet which is running
before all JSF-Servlets.

After all these improvements I`ve got the following exception:

javax.faces.FacesException: javax.servlet.ServletException:
javax/servlet/jsp/el/ELException
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
327)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.doForward(Fac
esTilesRequestProcessor.java:148)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
questProcessor.java:254)
at
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(
TilesRequestProcessor.java:341)
at
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.ja
va:582)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.processForwar
d(FacesTilesRequestProcessor.java:245)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:286)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:151)
at jsp_servlet.__index._jspService(__index.java:127)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:431)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: javax.servlet.ServletException: javax/servlet/jsp/el/ELException
at
weblogic.servlet.internal.Reques

RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread James Holmes
Yes, the problem is a bug with Weblogic 8.1.  Weblogic is not properly
implementing the servlet 2.3 spec.  To fix this you will need to use the
"hack servlet".  Following is a link to a thread on the JSF forum that
explains what you must do to get JSF apps working under WebLogic.


-Original Message-
From: Albrecht, Michael [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 05, 2004 10:45 AM
To: 'Struts Users Mailing List'
Subject: AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

Hi @all!

There`s still a problem with the struts-faces.war example.

The hint of Matthias was correct and very helpful: The BEA Weblogic 8.1 is a
J2EE 1.3 compliant app server and so the jstl.jar has to be another one.

There`s also a problem with the ServletContextListener. This listener has to
be initialized before JSF-Servlet init-methods are called, but BEA won`t do
this. So you have to force it to by programming a Servlet which is running
before all JSF-Servlets.

After all these improvements I`ve got the following exception:

javax.faces.FacesException: javax.servlet.ServletException:
javax/servlet/jsp/el/ELException
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
327)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.doForward(Fac
esTilesRequestProcessor.java:148)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
questProcessor.java:254)
at
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(
TilesRequestProcessor.java:341)
at
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.ja
va:582)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.processForwar
d(FacesTilesRequestProcessor.java:245)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:286)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:151)
at jsp_servlet.__index._jspService(__index.java:127)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:431)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: javax.servlet.ServletException: javax/servlet/jsp/el/ELException
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:307)
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
322)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.j

Re: Message Resources Confusion

2004-07-05 Thread Henrique VIECILI

The answer is, (someone correct me if i am wrong!)

No, Globals.MESSAGES_KEY key only holds the default MessageResources. If you look you 
will find an attribute named 'systemErrors' wich contains the MessageResources object 
of app.resources.SystemErrors

And if you use this bundle for error messages, notice the use of bundle in 




Henrique Viecili

- Original Message - 
  From: [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  Sent: Monday, July 05, 2004 12:23 PM
  Subject: Message Resources Confusion


  Greetings,

  I am somewhat unclear with the Message Resources.

  I have defined in my struts-config:
  
  

  In my Action class I have the following code:
  if (getSPName() == null) {
  MessageResources errorMessages = (MessageResources) 
  request.getAttribute(Globals.MESSAGES_KEY);
  String errorMessage = 
  errorMessages.getMessage("errors.invalid.SPName");

  logger.error(errorMessage);

  errors.add(ActionErrors.GLOBAL_MESSAGE, new 
  ActionMessage("errors.9000"));
  saveErrors(request, errors);
  return 
  mapping.findForward(errorMessages.getMessage("forward.systemError"));
  }

  Question 1:
  Does the request.getAttribute(Globals.MESSAGES_KEY) load the keys of both 
  resources found in the struts-config?
  The message with the key ("errors.invalid.SPName") returns a null.

  Question 2:
  If I code it this way the message found.
  MessageResources errorMessages = this.getResources(request, 
  "systemErrors");


  Any help explaining this is appreciated.

  TIA,
  Glenn

Form submits but not 'data' when using bean as form property

2004-07-05 Thread Richard Aukland
Hi,

As a relative newbie to struts I have managed to get a long way using
the info on here, but am now stuck;

I have a large form which has a collection of beans as one of its
properties. In one of my JSP files I wish to expose one of the beans
in this collection. I identify the bean by iterating through the
collection to find the correct one and then display it thus;




...
SHOW PROPERTIES HERE, e.g 
...
 
 
 
 

   



Now all this works fine, I see the bean that I want and the form
submits. However, when the form submits none of the changes I make
are detected.

Is it not possible to nest in this way?

Should I redesign and use a seperate ActionForm and therefore never
nest beans that I wish to expose as Forms?

Many thanks for any input

Richard



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Matthias Wessendorf
Michael,

on my website, there is an hello-world
with tiles, struts, jsf

www.wessendorf.net

(follow the link of "java forum stuttgart")

if there are any problems in it, please let me know...

i run it in tomcat4.1.X which is a j2ee-1.3-webcontainer
as well

Cheers,
 
> Because the EL-package is introduced in JSP 2.0 (J2EE 1.4) I 
> think it fails because of lack of EL-classes, doesn't it?!
> 
> I packed the commons-el.jar additionally to the WEB-INF\lib - 
> directory but nothing has been changed.
> 
> I`m not sure if anybody has ever achieved a running 
> JSF-Tiles-Struts - example. If it is so, please contact me.
> 
> Thanks in advance,
> Michael
> http://www.struts-it.de
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using struts-nested tags

2004-07-05 Thread Rick Reumann
Paride Perazzolo wrote:
Hi folks,
I'm new to the list, so forgive me if I'm not respecting Netiquette or
asking off-topics.
Welcome to the list. Not off topic. Comments inline.
I'm trying to render pieces of html using the following syntax:
from struts-config.xml the definition of the form follows:
   

into the jsp I wrote (MyBeanContainer has the method getListaDanneggiati()
which returns a ArrayList of beans):

scope="session">  
You shouldn't need the above on the page. You should set MyBeanContainer 
with the id "beanContainer" into session or request scope in the Action 
you are in "BEFORE" you get to this JSP page. The page will have it. No 
need to use the useBean stuff.

  action="/canalizzazione_cld.do">   
  
  
  
      
      
   
   


The html I actually get is:
...
                  
                  ...
which is nice but not satisfying. I'd like to get something like:

I don't sew why you would want this? The form bean property is the 
ArrayList listaDanneggiati so that's what will get set when you submit 
the form. Your form bean doesn't have a bean property "beanContainer" so 
you wouldn't even want that trying to be added.. you'd get a "no 
property 'beanContainer" found in form.." error.

where the name property of the input text includes the root name, ie
"beanContainer".
I need this to manage the interactivity correctly. Infact what I actually
get when I submit the form is the following:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:298)
at

org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:474)
at

org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:428)
at
What scope is your canalizzazioneCLDForm given in the ActionMapping. The 
 quick way to avoid this problem is to make sure it has Session scope. 
If you don't give it session scope you'll have to do some other things 
to make sure their are the proper number of fields available to set in 
your nested arrays (annoying I know, but this comes up a lot on the list 
so search the archives some or in the mean time just use Session scope 
for your form to get it working).

--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
Hi @all!

There`s still a problem with the struts-faces.war example.

The hint of Matthias was correct and very helpful: The BEA Weblogic 8.1 is a
J2EE 1.3 compliant app server and so the jstl.jar has to be another one.

There`s also a problem with the ServletContextListener. This listener has to
be initialized before JSF-Servlet init-methods are called, but BEA won`t do
this. So you have to force it to by programming a Servlet which is running
before all JSF-Servlets.

After all these improvements I`ve got the following exception:

javax.faces.FacesException: javax.servlet.ServletException:
javax/servlet/jsp/el/ELException
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
327)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.doForward(Fac
esTilesRequestProcessor.java:148)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
questProcessor.java:254)
at
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(
TilesRequestProcessor.java:341)
at
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.ja
va:582)
at
org.apache.struts.faces.application.FacesTilesRequestProcessor.processForwar
d(FacesTilesRequestProcessor.java:245)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:286)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:151)
at jsp_servlet.__index._jspService(__index.java:127)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:431)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: javax.servlet.ServletException: javax/servlet/jsp/el/ELException
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:307)
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
322)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.R

Tiles/Frames & Urls with Parameters

2004-07-05 Thread Pat Quinn
Hi Guys,
 
I'm using tiles and frames together but when i try to pass a url value with
parameters struts fails during startup with the following error:
 
ERROR org.apache.commons.digester.Digester - Parse Fatal Error at line 109
column -1: Next character must be ";" terminating reference to entity
"viewMode".
org.xml.sax.SAXParseException: Next character must be ";" terminating
reference to entity "viewMode".
 
 
 


.
   
 
 
 


  " >
  
">
 ">
  

 
Any Ideas?
 


Message Resources Confusion

2004-07-05 Thread gdeschen
Greetings,

I am somewhat unclear with the Message Resources.

I have defined in my struts-config:



In my Action class I have the following code:
if (getSPName() == null) {
MessageResources errorMessages = (MessageResources) 
request.getAttribute(Globals.MESSAGES_KEY);
String errorMessage = 
errorMessages.getMessage("errors.invalid.SPName");

logger.error(errorMessage);

errors.add(ActionErrors.GLOBAL_MESSAGE, new 
ActionMessage("errors.9000"));
saveErrors(request, errors);
return 
mapping.findForward(errorMessages.getMessage("forward.systemError"));
}

Question 1:
Does the request.getAttribute(Globals.MESSAGES_KEY) load the keys of both 
resources found in the struts-config?
The message with the key ("errors.invalid.SPName") returns a null.

Question 2:
If I code it this way the message found.
MessageResources errorMessages = this.getResources(request, 
"systemErrors");


Any help explaining this is appreciated.

TIA,
Glenn

Re: why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-07-05 Thread Bryan Hunt
Ganesh,
After looking on google for aprox 60 seconds I found this page
http://jakarta.apache.org/tomcat/faq/connectors.html
Check on google first in future and stop expecting us to do your job for 
you.

This list is run by volunteers, not by your personal assistants.
--b
McCormack, Chris wrote:
This is the third time this has been posted isn't it ? 
IIRC it was answered quite well the second time it was asked. Look in to modjk and read the tomcat faq/manual.

Chris McCormack
-Original Message-
From: ganesh gadi [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 15:20
To: [EMAIL PROTECTED]
Cc: user
Subject: why do we need to integrate tomcat with apache webserver and
how.pls urgent
Hi List.
I've small doubt why we need to configure tomcat with apache  
webserver. 

what is the neccessity of integration tomcat with apache web server.
and also pls give me the steps to integrate it in details.
I am using 

OS :: windows 2000 Server
Apache HTTP Server v2.0.49
tomcat 5.0.16
JBuilder x Enterprise..
Please tell me neccesary steps to configure
awaiting ur reply
Ganesh


-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] SecurityFilter: Custom Authenticator

2004-07-05 Thread Guillermo Meyer
Hi:
I want to use SecurityFilter and I need to implement my own
Authenticator, because neither FormAuthenticator nor BasicAuthenticator
fits my needs.
The current scenario is that I will receive a post with a digital
signature and all the information authenticated from other site (as a
login service) and i need to validate the digital signature, populate a
Principal and an Acl.

I think that the right place to perform this validation is in the
Authenticator.processLogin() method (am i right??).

I found that SecurityFilter creates the authenticator in the init(),
using an AuthenticatorFactory.
But AuthenticatorFactory creates either FormAuthenticator or
BasicAuthenticator, and I have no chance to define my custom
Authenticator.

Is there any way to do it without overriding SecurityFilter.init()
method?

All Authenticator implementations delegates in a
realm.authenticate(username, password), but I don't need this, because I
wont have a username nor a password, just all authenticated information
plus a digital signature.

Thanks in advance.

Guillermo Meyer
System Engineer
EDS Argentina - Proyecto X71 Interbanking.
54.11.4322-1307

NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las 
personas direccionadas en el mail y puede contener informacion (i)de propiedad 
exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier 
opinion en el contenido, es exclusiva de su autor y no representa necesariamente la 
opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion 
esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna 
por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha 
recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo 
inmediatamente junto con todas las copias del mismo, notificando al remitente. No 
debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus 
partes si usted no es el destinatario. Muchas gracias.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-07-05 Thread McCormack, Chris
This is the third time this has been posted isn't it ? 
IIRC it was answered quite well the second time it was asked. Look in to modjk and 
read the tomcat faq/manual.

Chris McCormack

-Original Message-
From: ganesh gadi [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 15:20
To: [EMAIL PROTECTED]
Cc: user
Subject: why do we need to integrate tomcat with apache webserver and
how.pls urgent


Hi List.

I've small doubt why we need to configure tomcat with apache  
webserver. 

 what is the neccessity of integration tomcat with apache web server.

 and also pls give me the steps to integrate it in details.
 
I am using 
 
OS :: windows 2000 Server
Apache HTTP Server v2.0.49
tomcat 5.0.16
JBuilder x Enterprise..
 
Please tell me neccesary steps to configure

awaiting ur reply
Ganesh





-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-07-05 Thread ganesh gadi
Hi List.

I've small doubt why we need to configure tomcat with apache  
webserver. 

 what is the neccessity of integration tomcat with apache web server.

 and also pls give me the steps to integrate it in details.
 
I am using 
 
OS :: windows 2000 Server
Apache HTTP Server v2.0.49
tomcat 5.0.16
JBuilder x Enterprise..
 
Please tell me neccesary steps to configure

awaiting ur reply
Ganesh





-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

RE: ClassCastException when usig multiple web applications

2004-07-05 Thread McCormack, Chris
Please paste in a sample action and a sample tile-def. The more info the easier it is 
to help you out. Also the name of your deployed app (context name).

Chris McCormack

-Original Message-
From: Mathew Joseph [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 15:07
To: [EMAIL PROTECTED]
Subject: ClassCastException when usig multiple web applications


Hi,

We have deployed a ROOT application and another application called 'AM' in Tomcat 
4.1.30. Both applications use struts. In struts config file as well as tiles 
definition files we have given all paths relative to context. Following exception is 
thrown, when action class is accessed.


java.lang.ClassCastException
at 
org.apache.struts.tiles.TilesRequestProcessor.initDefinitionsMapping(TilesRequestProcessor.java:126)
at 
org.apache.struts.tiles.TilesRequestProcessor.init(TilesRequestProcessor.java:116)
at 
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:872)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)

Please help us in solving this issue.

Thanks & Regards,
Mathew Joseph

Alopa Networks
#50 , Vanivilas Road
Basavanagudi
Bangalore - 560004

Phone : 6618004  (204)
Fax : 6618057



***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ClassCastException when usig multiple web applications

2004-07-05 Thread Mathew Joseph
Hi,

We have deployed a ROOT application and another application called 'AM' in Tomcat 
4.1.30. Both applications use struts. In struts config file as well as tiles 
definition files we have given all paths relative to context. Following exception is 
thrown, when action class is accessed.


java.lang.ClassCastException
at 
org.apache.struts.tiles.TilesRequestProcessor.initDefinitionsMapping(TilesRequestProcessor.java:126)
at 
org.apache.struts.tiles.TilesRequestProcessor.init(TilesRequestProcessor.java:116)
at 
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:872)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)

Please help us in solving this issue.

Thanks & Regards,
Mathew Joseph

Alopa Networks
#50 , Vanivilas Road
Basavanagudi
Bangalore - 560004

Phone : 6618004  (204)
Fax : 6618057




Using struts-nested tags

2004-07-05 Thread Paride Perazzolo
Hi folks,
I'm new to the list, so forgive me if I'm not respecting Netiquette or
asking off-topics.

I'm trying to render pieces of html using the following syntax:

from struts-config.xml the definition of the form follows:


   



into the jsp I wrote (MyBeanContainer has the method getListaDanneggiati()
which returns a ArrayList of beans):

   
  
  
  
   
   
      
   
   




The html I actually get is:


...
                  
                  ...

which is nice but not satisfying. I'd like to get something like:




where the name property of the input text includes the root name, ie
"beanContainer".

I need this to manage the interactivity correctly. Infact what I actually
get when I submit the form is the following:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:298)
at

org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:474)
at

org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:428)
at



Thank you in advance...



-- 
Paride Perazzolo
[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Matthias Wessendorf
> Yes, I`ve done this. Not directly, but I`ve unzipped the 
> war-file and zipped after copying the three-jsf-jars into 
> (jsf-api.jar, jsf-impl.jar, jstl.jar). Though it`s not running.
Hi

i guess you need standard.jar too
see jsf-deployment-guide:
http://java.sun.com/j2ee/javaserverfaces/docs/Deployment_Guide.html


> If I`m debugging the first call of the example app, the 
> LifeCycleFactory returns null in the RequestProcessor and so 
> nothing can go on.

a side effect?
btw. there is an issue with bea weblogic and jsf

a *hack*-servlet is available in jsf-forum.

Matthias

> Other hints?
> 
> Michael
> http://www.struts-it.de
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem using Commons Validator. please Help

2004-07-05 Thread Alvin Antony
Hi,
thank you for the reply. That with the webserver is a good idea, i am gonna try it 
out.  I also wondor that,  why the struts-config and tiles-config is working.  just  
for a try i removed the network cable and this time it throws exception only from 
validator module ie. struts and tiles are not require any internet connection at all. 
as you reqested i am adding the config files.
<-config file-->


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>
  



















  
  

   
..
...

<--end-->

thanks in advance,

Alvin


Alvin Antony
Software Engineer

Ludwig-Maximilians-Universitaet München
Zentrale Universitaetsverwaltung
Referat IIIA 3 (Anwendungs Entwicklung)
Theresienstr. 37 / 2. Stock  Zi. 249
80333 Muenchen

phone  +49 (089) 2180 - 4005

mail  [EMAIL PROTECTED] 
web http://informationstechnik.verwaltung.uni-muenchen.de 

>>> [EMAIL PROTECTED] 07/05/04 12:16 PM >>>
You could always put the DTD on a webserver your machine actually can
get to and avoid the pathname issue that way.

But if the choice is between deploying your project with the same DTD
that is in the Struts build, or the project requiring a modification to
(and then having to maintain) a custom "non-validating against the
validator dtd" incarnation of struts, I wouldn't even have to think
twice on it.

Anyway, the DOCTYPE's in the Struts config and validation xml files
point to the same host name (jakarta.apache.org). Since you say you only
get the error on the validator, I'm wondering if maybe you have a typo
in your validation.xml's DOCTYPE declaration.

Mind posting it's contents?

HTH,

-Joe


> -Original Message-
> From: Alvin Antony [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 05, 2004 5:14 AM
> To: [EMAIL PROTECTED]
> Subject: problem using Commons Validator. please Help
> 
> 
> Hi friends,
> 
> I am running out of ideas. I already ask about this here  but 
> with out success. I tried it also on  mailing list for 
> jakarta-commons but got rdirected to again here.  I repeat 
> the problem once again , when I starts the application 
> everythings works fine except the validator, it sucks with an 
> error socketException connection refused (a detiled error 
> massage given below). I replace now the references to online 
> DTDs with a local one inside WEB-INF folder.  this works but 
> i am not an absolute fan of absolute paths on a  config 
> file(or can i use relative path there?).  
> what makes me unhappy with this is, i couldn't figure out the 
> actual problem, i tried to dig into the src code for 
> validator but with out success. 
> 
> if the problem is unknown :'), how i can turn off validating 
> the xml files against DTD?  i set on the struts-config  init 
> property validate--> false. but didn't work. 
> 
> thanks a lot,
> alvin
> 
>  
> 
> >>> [EMAIL PROTECTED] 07/02/04 7:35 PM >>>
> Alvin Antony wrote:
>   > Thank you for your response. yes the problem is on my workstation 
> and  has an Internet access,
> > through a proxy server indeed. The same setup loads without 
> problems 
> > on the server.How can i
>  > configure the parser not to validate for schema any 
> otherway to push 
> this error back. I also have
>  > Tiles definitions and they get loaded normaly.
> 
> You probably should try the Struts mailing list with this one.   From 
> what I can see, Struts uses Validator,
> which uses Digester, so I'm unsure at which level this 
> setting must be 
> added.
> 
> 
> 
> 
> [EMAIL PROTECTED] 01.07.04 18.29 >>>
> > 
> > It looks like an XML parser is trying to load a DTD, and failing.  
> > Does
> > your Tomcat server have outside internet access?
> > 
> > 
> > 
> > 
> > Alvin Antony wrote:
> > 
> >>Hi Friends,
> >>  i get a connecton error when i start the struts 
> >>application which uses validation module . The error 
> message which i 
> >>get is given below.
> >>
> >>ERROR org.apache.struts.validator.ValidatorPlugIn  - 
> Connection reset 
> >>by peer: connect
> >>java.net.SocketException: Connection reset by peer: connect
> >>at java.net.PlainSocketImpl.socketConnect(Native Method)
> >>
> >>at java.net.URL.openStream(Unknown Source)
> >>at 
> org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
> >>Source)
> >>
> >>at 
> org.apache.commons.digester.Digester.parse(Digester.java:1562)
> >>at 
> org.apache.commons.validator.ValidatorResourcesInitializer.ini
> tialize(ValidatorResourcesInitializer.java:256)
> >>at 
> org.apache.struts.validator.Vali

AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
Hi James!

Did you copy the JSF jar files into the directory where the
struts-faces*.war files are expanded to?  The JSF jars are not packaged
inside the .war files.

Yes, I`ve done this. Not directly, but I`ve unzipped the war-file and zipped
after copying the three-jsf-jars into (jsf-api.jar, jsf-impl.jar, jstl.jar).
Though it`s not running.

If I`m debugging the first call of the example app, the LifeCycleFactory
returns null in the RequestProcessor and so nothing can go on.

Other hints?

Michael
http://www.struts-it.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread James Holmes
Did you copy the JSF jar files into the directory where the
struts-faces*.war files are expanded to?  The JSF jars are not packaged
inside the .war files.

-James
http://www.jamesholmes.com/JavaServerFaces/
http://www.jamesholmes.com/struts/


-Original Message-
From: Albrecht, Michael [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 05, 2004 6:29 AM
To: 'Struts Users Mailing List'
Subject: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

Hi @all!

The example struts-faces2.war (and the other example struts-faces.war)
doesn't run on my BEA weblogic 8.1 SP1.

During startup of the server the following exception is thrown:

<05.07.2004 12.19 Uhr CEST> 

Is there anybody having the same problem or better knowing the solution? ;-)

Thanks in advance for help.

Michael


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
Hi @all!

The example struts-faces2.war (and the other example struts-faces.war)
doesn't run on my BEA weblogic 8.1 SP1.

During startup of the server the following exception is thrown:

<05.07.2004 12.19 Uhr CEST> 

Is there anybody having the same problem or better knowing the solution? ;-)

Thanks in advance for help.

Michael


RE: problem using Commons Validator. please Help

2004-07-05 Thread Joe Hertz
You could always put the DTD on a webserver your machine actually can
get to and avoid the pathname issue that way.

But if the choice is between deploying your project with the same DTD
that is in the Struts build, or the project requiring a modification to
(and then having to maintain) a custom "non-validating against the
validator dtd" incarnation of struts, I wouldn't even have to think
twice on it.

Anyway, the DOCTYPE's in the Struts config and validation xml files
point to the same host name (jakarta.apache.org). Since you say you only
get the error on the validator, I'm wondering if maybe you have a typo
in your validation.xml's DOCTYPE declaration.

Mind posting it's contents?

HTH,

-Joe


> -Original Message-
> From: Alvin Antony [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 05, 2004 5:14 AM
> To: [EMAIL PROTECTED]
> Subject: problem using Commons Validator. please Help
> 
> 
> Hi friends,
> 
> I am running out of ideas. I already ask about this here  but 
> with out success. I tried it also on  mailing list for 
> jakarta-commons but got rdirected to again here.  I repeat 
> the problem once again , when I starts the application 
> everythings works fine except the validator, it sucks with an 
> error socketException connection refused (a detiled error 
> massage given below). I replace now the references to online 
> DTDs with a local one inside WEB-INF folder.  this works but 
> i am not an absolute fan of absolute paths on a  config 
> file(or can i use relative path there?).  
> what makes me unhappy with this is, i couldn't figure out the 
> actual problem, i tried to dig into the src code for 
> validator but with out success. 
> 
> if the problem is unknown :'), how i can turn off validating 
> the xml files against DTD?  i set on the struts-config  init 
> property validate--> false. but didn't work. 
> 
> thanks a lot,
> alvin
> 
>  
> 
> >>> [EMAIL PROTECTED] 07/02/04 7:35 PM >>>
> Alvin Antony wrote:
>   > Thank you for your response. yes the problem is on my workstation 
> and  has an Internet access,
> > through a proxy server indeed. The same setup loads without 
> problems 
> > on the server.How can i
>  > configure the parser not to validate for schema any 
> otherway to push 
> this error back. I also have
>  > Tiles definitions and they get loaded normaly.
> 
> You probably should try the Struts mailing list with this one.   From 
> what I can see, Struts uses Validator,
> which uses Digester, so I'm unsure at which level this 
> setting must be 
> added.
> 
> 
> 
> 
> [EMAIL PROTECTED] 01.07.04 18.29 >>>
> > 
> > It looks like an XML parser is trying to load a DTD, and failing.  
> > Does
> > your Tomcat server have outside internet access?
> > 
> > 
> > 
> > 
> > Alvin Antony wrote:
> > 
> >>Hi Friends,
> >>  i get a connecton error when i start the struts 
> >>application which uses validation module . The error 
> message which i 
> >>get is given below.
> >>
> >>ERROR org.apache.struts.validator.ValidatorPlugIn  - 
> Connection reset 
> >>by peer: connect
> >>java.net.SocketException: Connection reset by peer: connect
> >>at java.net.PlainSocketImpl.socketConnect(Native Method)
> >>
> >>at java.net.URL.openStream(Unknown Source)
> >>at 
> org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
> >>Source)
> >>
> >>at 
> org.apache.commons.digester.Digester.parse(Digester.java:1562)
> >>at 
> org.apache.commons.validator.ValidatorResourcesInitializer.ini
> tialize(ValidatorResourcesInitializer.java:256)
> >>at 
> org.apache.struts.validator.ValidatorPlugIn.initResources(Vali
> datorPlugIn.java:224)
> >>at 
> org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlug
> In.java:167)
> >>at 
> org.apache.struts.action.ActionServlet.initModulePlugIns(Actio
> nServlet.java:1105)
> >>at 
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:481)
> >>at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >>at 
> >>org.apache.catalina.core.StandardWrapper.loadServlet(Standar
> dWrapper.j
> >>ava:935)
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> Alvin Antony
> Software Engineer
> 
> Ludwig-Maximilians-Universitaet München
> Zentrale Universitaetsverwaltung
> Referat IIIA 3 (Anwendungs Entwicklung)
> Theresienstr. 37 / 2. Stock  Zi. 249
> 80333 Muenchen
> 
> phone  +49 (089) 2180 - 4005
> 
> mail  [EMAIL PROTECTED] 
> web http://informationstechnik.verwaltung.uni-muenchen.de 
> 
> 
> -
> To unsubscribe, e-ma

Re: struts turkish character problem

2004-07-05 Thread Selim Hendrickson
Merhaba Eyup Bey,
We experienced a similar problem about a year ago. Below is the code we 
used for solving the issue. Hope it works for you too.
I belive there is a problem with the ActionForms with different 
encodings, therefore we wrote this small request preprocessor.
You could also use a ServletFilter if you want.

Selamlar,
Selim YORGANCIOGLU
IZTEK Consulting Services
Software Engineer
selimhendrickson [at] iyte.edu.tr
0232 750 6557
/*/
package iyte.oi.struts.control;
import iyte.oi.util.tracer.Debug;
import iyte.oi.web.util.SessionParameters;
import java.io.UnsupportedEncodingException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.RequestProcessor;
public class RequestProcessorOI extends RequestProcessor {
   /**
* Constructor for RequestProcessorOI
*/
   public RequestProcessorOI() {
   super();
   }
  
   protected boolean processPreprocess(HttpServletRequest request, 
HttpServletResponse response) {   
   boolean returnVal = super.processPreprocess(request, response);
   try {
   request.setCharacterEncoding("ISO-8859-9");
   } catch(UnsupportedEncodingException uee) {
   Debug.println("Unsupported Encoding: ISO-8859-9");
   }
   if(!returnVal) return returnVal;   
   SessionParameters.addParameters(request);
   return true;
   }

}
//
Eyup TEKIN wrote:
hi
there is a webapp including oracledatabase(datas are hold with turkish
character) ejbs on borlandapplicationserver ,tomcat,struts and jsps.
i can write turkish character in jsp page side.but dynaaction form creates a
selection list.and that list cant show turkish character.in tomcat's
catalina.sh file there is a "-Dfile encoding=1254" parameter.and i wrote in
the struts part below convertion
"
byte[] s0_byte = satirArray[0].getBytes("Cp1254");
satirArray [1]= new String(s1_byte, "Cp1252");
"
i solved problem but how can i solve this problem in another way? maybe
general solution will be beter.
sincerely
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


problem using Commons Validator. please Help

2004-07-05 Thread Alvin Antony
Hi friends,

I am running out of ideas. I already ask about this here  but with out success. I 
tried it also on  mailing list for jakarta-commons but got rdirected to again here.  I 
repeat the problem once again , when I starts the application everythings works fine 
except the validator, it sucks with an error socketException connection refused (a 
detiled error massage given below). I replace now the references to online DTDs with a 
local one inside WEB-INF folder.  this works but i am not an absolute fan of absolute 
paths on a  config file(or can i use relative path there?).  
what makes me unhappy with this is, i couldn't figure out the actual problem, i tried 
to dig into the src code for validator but with out success. 

if the problem is unknown :'), how i can turn off validating the xml files against 
DTD?  i set on the struts-config  init property validate--> false. but didn't work. 

thanks a lot,
alvin

 

>>> [EMAIL PROTECTED] 07/02/04 7:35 PM >>>
Alvin Antony wrote:
  > Thank you for your response. yes the problem is on my workstation 
and  has an Internet access,
> through a proxy server indeed. The same setup loads without problems on the 
> server.How can i 
 > configure the parser not to validate for schema any otherway to push 
this error back. I also have
 > Tiles definitions and they get loaded normaly.

You probably should try the Struts mailing list with this one.   From 
what I can see, Struts uses Validator,
which uses Digester, so I'm unsure at which level this setting must be 
added.




[EMAIL PROTECTED] 01.07.04 18.29 >>>
> 
> It looks like an XML parser is trying to load a DTD, and failing.  Does 
> your Tomcat server have outside internet access?
> 
> 
> 
> 
> Alvin Antony wrote:
> 
>>Hi Friends,
>>  i get a connecton error when i start the struts application which uses 
>> validation module . The error message which i get is given below.
>>
>>ERROR org.apache.struts.validator.ValidatorPlugIn  - Connection reset by peer: 
>>connect
>>java.net.SocketException: Connection reset by peer: connect
>>  at java.net.PlainSocketImpl.socketConnect(Native Method)
>>
>>  at java.net.URL.openStream(Unknown Source)
>>  at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
>>
>>  at org.apache.commons.digester.Digester.parse(Digester.java:1562)
>>  at 
>> org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:256)
>>  at 
>> org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:224)
>>  at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167)
>>  at 
>> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
>>  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:481)
>>  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>>  at 
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Alvin Antony
Software Engineer

Ludwig-Maximilians-Universitaet München
Zentrale Universitaetsverwaltung
Referat IIIA 3 (Anwendungs Entwicklung)
Theresienstr. 37 / 2. Stock  Zi. 249
80333 Muenchen

phone  +49 (089) 2180 - 4005

mail  [EMAIL PROTECTED] 
web http://informationstechnik.verwaltung.uni-muenchen.de 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Issue related to Form tag's action attribute value

2004-07-05 Thread Gopinath
Hi All,

I have an application which is using Struts and is deployed on weblogic
server say myApp. The application is working fine for a client directly
hitting the weblogic server. But we have an application environment wherein
the iPlanet web server(redirectServer) is providing virtual directory to the
application (myApp).


The application is deployed in the context myApp and alias name provided by
iPlanet is /RedirectTo/myApp.
In this scenario my form inside the jsp is not working.
The description is as follows:
--

Actual Weblogic url:
http://192.168.1.2:7001/myApp/index.jsp

and the alias created for this app by iPlanet server is :
http://redirectServer/redirectTo/myApp/index.jsp

My index.jsp has form with following snippet inside it :







But when JSP tanslated by server this snippet becomes







User has to get this page by hitting the url
http://redirectServer/redirectTo/myApp/index.jsp but when submitted Goes to
http://redirectServer/myApp/saveInfo.do but it has to go to
http://redirectServer/redirectTo/myApp/saveInfo.do , due to which the
subsequent pages are not coming up.

Required help on
-
1) Anybody please sugggest me a solution on this issue.
I already tried giving different values to the attributes of Controller tag
of the struts-config.xml file, but did not work for me.

2) I was thinking of solution of inheritting the RequestProcessor class and
overriding the related processXXX() method. In this case like to whether
this is a feasible solution and if yes, which process method is to be
overridden.

Thnaks and Regards.
Gopinath Radhakrishnan.




Disclaimer: This e-mail message along with attachment, contain Patni GE Confidential, 
proprietary & legally privileged information for the sole use of the person or entity 
to whom this message was originally addressed. Any review, e-transmission 
dissemination or other use of or taking of any action in reliance upon this 
information by persons or entities other than the intended recipient is prohibited. If 
you have received this e-mail in error kindly delete this e-mail from your records. If 
it appears that this mail has been forwarded to you without proper authority, please 
notify the sender and delete this mail. This email (in whole or in part) is not to be 
reproduced or furnished to third parties or made public without the prior express 
written permission of the sender.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: exception when I run struts application on JBoss

2004-07-05 Thread Matthias Wessendorf
look in your web.xml

struts need this:
/WEB-INF/struts-config.xml



 
  action 
  org.apache.struts.action.ActionServlet 
 
  config 
  /WEB-INF/struts-config.xml 
  
...
> -Original Message-
> From: Asim Ghosh [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 05, 2004 9:25 AM
> To: [EMAIL PROTECTED]
> Subject: exception when I run struts application on JBoss
> 
> 
> hello everybody,
>  
> i m running a code packed in .ear file. When i try to 
> copy the .ear file in $JBOSS_HOME/server/default/deploy 
>  
> in receive this expection :
>  
> 11:23:03,125 INFO  [Server] JBoss (MX MicroKernel) [3.2.4 
> (build: CVSTag=JBoss_3 _2_4 date=200406040847)] Started in 
> 17s:485ms 11:23:03,125 INFO  [Tomcat5] Saw 
> org.jboss.system.server.started notification, s tarting 
> connectors 11:23:03,187 INFO  [Http11Protocol] Starting 
> Coyote HTTP/1.1 on http-0.0.0.0-808 0 11:23:03,328 INFO  
> [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009 
> 11:23:03,328 INFO  [JkMain] Jk running ID=0 time=0/32  
> config=null 12:20:23,093 INFO  [EARDeployer] Init J2EE 
> application: file:/D:/jboss3.2.4/jbos 
> s-3.2.4/server/default/deploy/vim.ear
> 12:20:36,375 WARN  [DeploymentInfo] Only the root deployment 
> can set the loader repository, ingoring config=null 
> 12:20:38,062 WARN  [DeploymentInfo] Only the root deployment 
> can set the loader repository, ingoring config=null 
> 12:20:38,109 INFO  [TomcatDeployer] deploy, ctxPath=, 
> warUrl=file:/D:/jboss3.2.4 
> /jboss-3.2.4/server/default/tmp/deploy/tmp49721vim.ear-content
> s/iris.war/
> 12:20:38,312 INFO  [PropertyMessageResources] Initializing, 
> config='org.apache.s truts.util.LocalStrings', 
> returnNull=true 12:20:38,312 INFO  [PropertyMessageResources] 
> Initializing, config='org.apache.s 
> truts.action.ActionResources', returnNull=true 12:20:38,375 
> ERROR [ActionServlet] Parsing error processing resource path
> java.net.MalformedURLException: Path 
> WEB-INF\struts-config.xml does not start wi th a "/" character
> at 
> org.apache.catalina.core.ApplicationContext.getResource(ApplicationCo
> ntext.java:469)
> at 
> org.apache.catalina.core.ApplicationContextFacade.getResource(Applica
> tionContextFacade.java:176)
> at 
> org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
> rvlet.java:1002)
>  
> bye
> Asim 
> 
> 
>   
> -
>  ALL-NEW Yahoo! Messenger - so many all-new ways to 
> express yourself 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to de-reference bean name using java method?

2004-07-05 Thread jthompson





Thanks Erez, great answer.

Regards,
John

[EMAIL PROTECTED]
Ph (09) 372-5010


|-+>
| |   Erez Efrati  |
| |   <[EMAIL PROTECTED]|
| |   et.il>   |
| ||
| |   05/07/2004 07:44 |
| |   PM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>--|
  |
  |
  |   To:   'Struts Users Mailing List' <[EMAIL PROTECTED]>
 |
  |   cc:  
  |
  |   Subject:  RE: how to de-reference bean name using java method?   
  |
  
>--|




To make the following line work


You must store an instance of a class under the token name of
"Constants" in the session context and better yet in the servlet-context
so every page in your application would have access to it. Putting it in
the request or page context is useless in this case, cause you would
have to repeat this on every request.

As fas as I know, you cannot access a static member method from JSTL, so
you need to do something like: (put this line in your application
startup code).

ServletCtx.putAttribute (Constants.getInstance(), "Constants");

After this you can freely write 

Assuming that the class has something like this:

Class Constants {

 public static final string HOME_DIR = "...";


 private static Constants m_instance == null;

 public String getHomeDir () {

  return HOME_DIR;
 }

 public Constants getInstance () {
  if (m_instance == null)
   m_instance = new Constants ();

  return m_instance;
 }
}


Hope this helps,

Erez

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 05, 2004 2:24 AM
To: Struts Users Mailing List
Subject: how to de-reference bean name using java method?






I'd like to be able to code the following line:




where Constants.HOME_DIR_KEY is a java method that returns the name of
bean
"home_directory".

The following two lines work:
<%= Constants.HOME_DIR_KEY %>// returns the
value
"home_directory"


I suppose it doesn't work because Constants.HOME_DIR_KEY isn't a bean.
Any ideas on how to de-reference Constants.HOME_DIR_KEY for  ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



exception when I run struts application on JBoss

2004-07-05 Thread Asim Ghosh
hello everybody,
 
i m running a code packed in .ear file. When i try to copy the .ear file in 
$JBOSS_HOME/server/default/deploy 
 
in receive this expection :
 
11:23:03,125 INFO  [Server] JBoss (MX MicroKernel) [3.2.4 (build: CVSTag=JBoss_3
_2_4 date=200406040847)] Started in 17s:485ms
11:23:03,125 INFO  [Tomcat5] Saw org.jboss.system.server.started notification, s
tarting connectors
11:23:03,187 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-808
0
11:23:03,328 INFO  [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
11:23:03,328 INFO  [JkMain] Jk running ID=0 time=0/32  config=null
12:20:23,093 INFO  [EARDeployer] Init J2EE application: file:/D:/jboss3.2.4/jbos
s-3.2.4/server/default/deploy/vim.ear
12:20:36,375 WARN  [DeploymentInfo] Only the root deployment can set the loader
repository, ingoring config=null
12:20:38,062 WARN  [DeploymentInfo] Only the root deployment can set the loader
repository, ingoring config=null
12:20:38,109 INFO  [TomcatDeployer] deploy, ctxPath=, warUrl=file:/D:/jboss3.2.4
/jboss-3.2.4/server/default/tmp/deploy/tmp49721vim.ear-contents/iris.war/
12:20:38,312 INFO  [PropertyMessageResources] Initializing, config='org.apache.s
truts.util.LocalStrings', returnNull=true
12:20:38,312 INFO  [PropertyMessageResources] Initializing, config='org.apache.s
truts.action.ActionResources', returnNull=true
12:20:38,375 ERROR [ActionServlet] Parsing error processing resource path
java.net.MalformedURLException: Path WEB-INF\struts-config.xml does not start wi
th a "/" character
at org.apache.catalina.core.ApplicationContext.getResource(ApplicationCo
ntext.java:469)
at org.apache.catalina.core.ApplicationContextFacade.getResource(Applica
tionContextFacade.java:176)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:1002)
 
bye
Asim 



-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself