Re: Confused about upgrading Apache Struts

2018-04-19 Thread Alex Choi
Hi Sean,

Maybe I can help explain what you're about to undertake from a SysAdmin
prospective.

Upgrading or changing an application framework like Struts is similar to
upgrading or changing a Linus/Unix pplication package or dependancies.  In
Windows, it would be similar to upgrading or changing DLLs.

In those cases, APIs, application  structures, processing flows, and so-on
may have changed.  If any of these items have changed, then the application
may need to change too.

A starting point is the reviewing the framework's documentation, change
logs, applications technical documentation and so-on.  As Dave mention
before, if you need help with understanding these documents you should
consult with the application developers or your application vendor.

I hope this helps.

Alex

On Wed, Apr 11, 2018, 1:25 PM Dave Newton,  wrote:

> On Wed, Apr 11, 2018 at 3:32 PM Sean Son  >
> wrote:
>
> > Is it difficult for a Linux Admin who is a
> > non-developer to upgrade struts by themselves?
> >
> Depends-if you know how to build and deploy Java web apps, and no code
> changes are required, not particularly (assuming it's a Maven/etc project).
>
> Dave
> --
> e: davelnew...@gmail.com
> m: 908-380-8699
> s: davelnewton_skype
> t: @dave_newton 
> b: Bucky Bits 
> g: davelnewton 
> so: Dave Newton 
>


Re: Confused about upgrading Apache Struts

2018-04-11 Thread Dave Newton
On Wed, Apr 11, 2018 at 3:32 PM Sean Son 
wrote:

> Is it difficult for a Linux Admin who is a
> non-developer to upgrade struts by themselves?
>
Depends-if you know how to build and deploy Java web apps, and no code
changes are required, not particularly (assuming it's a Maven/etc project).

Dave
-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton 
b: Bucky Bits 
g: davelnewton 
so: Dave Newton 


Re: Confused about upgrading Apache Struts

2018-04-11 Thread Sean Son
On Wed, Apr 11, 2018 at 3:26 PM, David Greene  wrote:

> Struts is a MVC framework for a web application.  That application needs to
> be modified to use different version of the Struts2 library and depending
> on what version you're currently running, you may have many changes to make
> on the application's end.
>
> If that application is owned by your company, hire a Java dev to do this
> work for you.  Save yourself the headache.
>
> If that application is owned by another company and your company
> bought/contracted/etc that application, contact the vendor and ask them
> about when they'll patch their software appropriately.
>
> Other than that, there's documents here to help:
>
> https://cwiki.apache.org/confluence/display/WW/Migration+Guide
>
>
>
> On Wed, Apr 11, 2018 at 2:11 PM, Sean Son  com>
> wrote:
>
> > Hello everyone
> >
> > I have been tasked with upgrading Apache Struts, running on CentOS 7, to
> > the latest version. I have no idea where to begin. I am not a web
> > developer, I am only a system administrator, so I have no idea where I
> > should even look to figure out how to upgrade this thing.  Any and all
> help
> > will be greatly appreciated!
> >
> >
> > Sincerely
> >
> > n00b needing help
> >
>
>
>
> --
> 
> *David Greene*
> *SecureLink, Inc.*
> Secure networks for remote support
> 
> mobile | (512) 630-2285
> office | (512) 640-1912
> 
> da...@securelink.com
>
> This email may contain private information and is for the intended
> recipient only. If received in error, please notify sender and destroy any
> copies. Unauthorized review, use, or disclosure of the contents herein is
> prohibited
>


Hello David

Thank you for the reply.  Is it difficult for a Linux Admin who is a
non-developer to upgrade struts by themselves?


Re: Confused about upgrading Apache Struts

2018-04-11 Thread David Greene
Struts is a MVC framework for a web application.  That application needs to
be modified to use different version of the Struts2 library and depending
on what version you're currently running, you may have many changes to make
on the application's end.

If that application is owned by your company, hire a Java dev to do this
work for you.  Save yourself the headache.

If that application is owned by another company and your company
bought/contracted/etc that application, contact the vendor and ask them
about when they'll patch their software appropriately.

Other than that, there's documents here to help:

https://cwiki.apache.org/confluence/display/WW/Migration+Guide



On Wed, Apr 11, 2018 at 2:11 PM, Sean Son 
wrote:

> Hello everyone
>
> I have been tasked with upgrading Apache Struts, running on CentOS 7, to
> the latest version. I have no idea where to begin. I am not a web
> developer, I am only a system administrator, so I have no idea where I
> should even look to figure out how to upgrade this thing.  Any and all help
> will be greatly appreciated!
>
>
> Sincerely
>
> n00b needing help
>



-- 

*David Greene*
*SecureLink, Inc.*
Secure networks for remote support

mobile | (512) 630-2285
office | (512) 640-1912

da...@securelink.com

This email may contain private information and is for the intended
recipient only. If received in error, please notify sender and destroy any
copies. Unauthorized review, use, or disclosure of the contents herein is
prohibited


RE: Confused about Drop down lists (database generated)

2009-11-20 Thread Raghuveer.V
You can use org.apache.struts2.util.ListEntry , a default object to hold key
value in Roles list box for JSP page dropdowns.

s:select label=Role: name=roleId list=roles /

Regards,
Raghuveer Vellanki
-Original Message-
From: Sommers, Elizabeth [mailto:somme...@pragmatics.com] 
Sent: Thursday, November 12, 2009 7:32 PM
To: Struts Users Mailing List
Subject: Confused about Drop down lists (database generated)

All the drop down lists in my application need to be generated from the
database.  Some of these lists will be needed for more than one JSP.
So, in order to work with the s:select tag I am building an action for
each list.

I know this has to be wrong.  Especially because some JSP's will need
multiple drop down lists.  What is the best way of doing this in struts
2.1.8?  Here is an example create method that I am using and the JSP
that feeds it.  Should I be using a better way to get to create from a
JSP?  I want to be able to use the roles drop down in multiple JSP's.

public String createUser()
{
User user = new User();
user.setUserName(userName);
user.setPassword(password);
user.setFirstName(firstName);
user.setLastName(lastName);
user.setPhone(phone);
user.setEmail(email);
service.createUser(user);
String userId = service.getUserId(user.getUserName());
roleUser = new RoleUser();
roleUser.setRoleId(roleId);
roleUser.setUserId(userId);
service.createRoleUser(roleUser);
roleUser = null;
user = null;
return SUCCESS;
}

%@ page contentType=text/html; charset=UTF-8%
%@ taglib prefix=s uri=/struts-tags%

html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
s:head /
body
font color=redhtml:errors //font
s:form action=createUserAction
div class=inputs
s:hidden name=id / 
s:textfield label=User Name: name=userName / 
s:password label=Password:
name=password / 
s:password label=Repeat Password
name=password2 //div
s:textfield label=First Name: name=firstName/s:textfield
s:textfield label=Last Name: name=lastName/
s:textfield label=Email: name=email/
s:textfield label=Phone: name=phone/
s:select label=Role: name=roleId list=roles listKey=id
listValue=name/
s:submit/s:submit
/div
/s:form
/body

Elizabeth Sommers
Build and Release Engineer
Pragmatics, Inc.
703.761.4033

www.pragmatics.com 

Practical. Reliable. Secure.

This e-mail message, including any attachments, is intended only for the
identified recipient(s). It may contain proprietary or otherwise legally
protected information of Pragmatics, Inc. Any unauthorized review, use,
copying, disclosure or distribution is strictly prohibited. If you have
received this communication in error and are not the intended recipient,
please immediately notify the sender of this message by reply e-mail and
delete or otherwise destroy the e-mail, attachments, and any copies.

 



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Confused about Drop down lists (database generated)

2009-11-12 Thread Brian Thompson
Just add something like the following to the methods that execute before JSP
processing.

this.roles = service.getRoles();

You might also look into the Preparable interface, depending on application
design.

-Brian




On Thu, Nov 12, 2009 at 8:02 AM, Sommers, Elizabeth somme...@pragmatics.com
 wrote:

 All the drop down lists in my application need to be generated from the
 database.  Some of these lists will be needed for more than one JSP.
 So, in order to work with the s:select tag I am building an action for
 each list.

 I know this has to be wrong.  Especially because some JSP's will need
 multiple drop down lists.  What is the best way of doing this in struts
 2.1.8?  Here is an example create method that I am using and the JSP
 that feeds it.  Should I be using a better way to get to create from a
 JSP?  I want to be able to use the roles drop down in multiple JSP's.

 public String createUser()
{
User user = new User();
user.setUserName(userName);
user.setPassword(password);
user.setFirstName(firstName);
user.setLastName(lastName);
user.setPhone(phone);
user.setEmail(email);
service.createUser(user);
String userId = service.getUserId(user.getUserName());
roleUser = new RoleUser();
roleUser.setRoleId(roleId);
roleUser.setUserId(userId);
service.createRoleUser(roleUser);
roleUser = null;
user = null;
return SUCCESS;
 }

 %@ page contentType=text/html; charset=UTF-8%
 %@ taglib prefix=s uri=/struts-tags%

 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 s:head /
 body
 font color=redhtml:errors //font
 s:form action=createUserAction
div class=inputs
s:hidden name=id /
s:textfield label=User Name: name=userName /
s:password label=Password:
name=password /
s:password label=Repeat Password
name=password2 //div
s:textfield label=First Name: name=firstName/s:textfield
s:textfield label=Last Name: name=lastName/
s:textfield label=Email: name=email/
s:textfield label=Phone: name=phone/
s:select label=Role: name=roleId list=roles listKey=id
 listValue=name/
s:submit/s:submit
/div
 /s:form
 /body

 Elizabeth Sommers
 Build and Release Engineer
 Pragmatics, Inc.
 703.761.4033

 www.pragmatics.com

 Practical. Reliable. Secure.

 This e-mail message, including any attachments, is intended only for the
 identified recipient(s). It may contain proprietary or otherwise legally
 protected information of Pragmatics, Inc. Any unauthorized review, use,
 copying, disclosure or distribution is strictly prohibited. If you have
 received this communication in error and are not the intended recipient,
 please immediately notify the sender of this message by reply e-mail and
 delete or otherwise destroy the e-mail, attachments, and any copies.



 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Confused

2009-09-07 Thread Raj Aaryn
Apache has mentioned Shale as a retired project on its home page.

Thanks,
Raj

On Thu, Sep 3, 2009 at 5:56 PM, C N Davies c...@cndavies.com wrote:

 Ok now I recall it was Shale, which in my understanding is the next
 incarnation of Struts that had the brakes put on. I read it on an article
 Craig wrote regarding selection of JSF/Seam/Struts.


 -Original Message-
 From: Dave Newton [mailto:newton.d...@yahoo.com]
 Sent: Thursday, 3 September 2009 6:31 PM
 To: Struts Users Mailing List
 Subject: Re: Confused

 C N Davies wrote:
  I'm starting a new project and intended to use struts but I read on the
  struts site a few months back that struts was dead and no longer going to
 be
  developed, because Craig Mc. was saying that there are other APIs , like
  Seam and JSF that filled the void already.

 Where on the Struts site does it say that?

  So is struts still being developed going forward or is this the last
 release
  and it'll end up being archived away?

 Struts 2 development moves on apace; Struts 1 somewhat less so.

 Dave


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Confused

2009-09-03 Thread Dave Newton

C N Davies wrote:

I'm starting a new project and intended to use struts but I read on the
struts site a few months back that struts was dead and no longer going to be
developed, because Craig Mc. was saying that there are other APIs , like
Seam and JSF that filled the void already.


Where on the Struts site does it say that?


So is struts still being developed going forward or is this the last release
and it'll end up being archived away?


Struts 2 development moves on apace; Struts 1 somewhat less so.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Confused

2009-09-03 Thread C N Davies
Ok now I recall it was Shale, which in my understanding is the next
incarnation of Struts that had the brakes put on. I read it on an article
Craig wrote regarding selection of JSF/Seam/Struts.


-Original Message-
From: Dave Newton [mailto:newton.d...@yahoo.com] 
Sent: Thursday, 3 September 2009 6:31 PM
To: Struts Users Mailing List
Subject: Re: Confused

C N Davies wrote:
 I'm starting a new project and intended to use struts but I read on the
 struts site a few months back that struts was dead and no longer going to
be
 developed, because Craig Mc. was saying that there are other APIs , like
 Seam and JSF that filled the void already.

Where on the Struts site does it say that?

 So is struts still being developed going forward or is this the last
release
 and it'll end up being archived away?

Struts 2 development moves on apace; Struts 1 somewhat less so.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Confused by Result-generation

2008-10-21 Thread Stephan Schröder

Ok, i found the answer with debugging
DefaultActionInvocation.invoke()-method. It's the first case even if one
interceptor doesn't call actionInvocation.invoke(). In that case the result
is generated surrounded by all of the previous interceptors.

If all (e.g.2) interceptors call actionInvocation.invoke() you get this
call-sequence: 
Interceptor 1- Interceptor 2- Action- Result- Interceptor 2-
Interceptor 1

If one (e.g. the second) interceptor doesn't call actionInvocation.invoke()
you get:
Interceptor 1- Interceptor 2- Result- Interceptor 1

There's some tricky use of recursion.

Regards,
Stephan


Stephan Schröder wrote:
 
 hi,
 
 as far as i understand it, the calling sequenze of an action mapping looks
 like this:
 Interceptor 1- Interceptor 2-...- Action- Result-...- Interceptor
 2- Interceptor 1
 (see http://struts.apache.org/2.0.11.2/docs/big-picture.html)
 
 But what happens when i use this AuthenticationInterceptor:
 
 public class AuthenticationInterceptor extends AbstractInterceptor {
 
   public String intercept( ActionInvocation actionInvocation ) throws
 Exception
   {
 Map session = actionInvocation.getInvocationContext().getSession();
 User user = (User) session.get( Struts2PortfolioConstants.USER );
 if (user == null) {
   return Action.LOGIN;
 }
 else {
   (( UserAwareAction ) actionInvocation.getAction()).setUser(user);
   return actionInvocation.invoke();
 }
   }
 
 }
 This is adapted from Struts 2 in Action and it looks like here the
 calling sequence would be
 Interceptor 1- AuthenticationInterceptor- Interceptor 1- Result
 
 So in the normal case the Result is generated within the Interceptors
 while the second code suggests that the Result is generated aber the last
 Interceptor has returned.
 Or is both true?
 
 Regards,
 Stephan 
 

-- 
View this message in context: 
http://www.nabble.com/Confused-by-Result-generation-tp20067494p20088687.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Confused about s:include

2008-06-12 Thread Jeromy Evans

Jim Kiley wrote:

I guess I could just use s:action, huh?  It's amazing how these insights
reach me five minutes after I send mail to the list.

jk
  
  
The Include tag creates a javax.servlet.RequestDispatcher and performs 
an include operation [1].  The tag attempts to create a reference to the 
resource provided as a parameter based on the current servlet path.  It 
should be able to invoke an action if the Struts2 Filter sees that 
include request. 

The Action tag creates a struts ActionInvocation based on your 
Configuration and invokes it as accessed via the Filter (through all the 
interceptors). It can invoke any action but be wary that the 
ActionContext is stored in a ThreadLocal (not saved and restored after 
an invocation) and not all results can be safely executed within another 
page.


Hope that helps,
Jeromy Evans

[1]http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/RequestDispatcher.html#include(javax.servlet.ServletRequest,%20javax.servlet.ServletResponse)


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



Re: Confused about s:include

2008-06-11 Thread Jim Kiley
I guess I could just use s:action, huh?  It's amazing how these insights
reach me five minutes after I send mail to the list.

jk

On Wed, Jun 11, 2008 at 3:01 PM, Jim Kiley [EMAIL PROTECTED] wrote:

 Hey gang,

 *Struts 2 In Action* suggests that I can use the name of an action in the
 'value' attribute of the s:include tag.  However, when I try s:include
 value=myAction/ or s:include value=myAction.action/ or even
 s:include value=/namespace/myAction.action/ I get bupkus (in fact, the
 including page doesn't even render).  The tag works fine if I feed it a
 JSP's name instead of an action name.

 Can anyone point me in the right direction here?

 --
 Jim Kiley
 Technical Consultant | Summa
 [p] 412.258.3346 [m] 412.445.1729
 http://www.summa-tech.com




-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com


Re: confused about validation

2007-04-01 Thread mansour77

Dave Newton wrote:

--- [EMAIL PROTECTED] wrote:
  

Thank you Dave:
It's working fine now.



Cool...

Always feel free to post with documentation
observations or make a comment directly on the Wiki
page in question; there's a growing body of
documentation editors churning away :)

d.



 


Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 


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


  
Thank you, I really appreciate your help. Definitely there's a lot of 
room for improvement for the documentation, but unfortunately I am still 
not at a point where I can guide others.  :)




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



Re: confused with redirects

2006-11-09 Thread James Mitchell
Please reply with the entire index.jsp content and tell us what  
version of Struts you are using.  I assume 1.2.x, and so I'm not sure  
what html:redirect is.



--
James Mitchell
678.910.8017




On Nov 9, 2006, at 6:36 AM, Rahul Patel wrote:


Hi All,

I have a very confusing issue at hand that I have been trying to  
solve for a

couple of days.

I have a Struts-based application where my index.jsp has only one line
html:redirect forward=welcome/

Further, once the user logs in, he is forwarded to applications  
based on his
feature access. Though, for some reason, when the forward of the  
action is
complete, somehow ( I put a breakpoint in the RedirectTag) control  
goes to
index.jsp (or that's what it seems like) and the whole  
WelcomeAction is
executed on the server side. This happens only on the server side  
i.e. the
browser is still displaying the page the user had requested.  
Though, on the
server side, once the page is displayed, control goes to index.jsp  
as I

said.

The issue is that I perform some session-level initializations at  
start up

and since index.jsp executes all that code on the server side again,
everything is re-initialized clearing up what the current jsp (that  
the user

had requested) did.

Any help or direction is appreciated.

Thanks,


Rahul



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



Re: confused with redirects

2006-11-09 Thread Rahul Patel

I am using Struts 1.1.
Also, I might have typed in the wrong tag - it is supposed to be
logic:redirect

My index.jsp just has the following line (and the declaration for the tag
library)

logic:redirect forward=welcome/

I have a menu containing links to forward the user to. e.g. one link
forwards to an action PopulateUserInfo.do Even though, I am just resetting
the corresponding form's data in this action and then forwarding to
UserInfo.jsp, after the entire UserInfo.jsp is loaded, it somehow seems to
be going to index.jsp. I have this issue for all my *.do actions.

On 11/9/06, James Mitchell [EMAIL PROTECTED] wrote:


Please reply with the entire index.jsp content and tell us what
version of Struts you are using.  I assume 1.2.x, and so I'm not sure
what html:redirect is.


--
James Mitchell
678.910.8017




On Nov 9, 2006, at 6:36 AM, Rahul Patel wrote:

 Hi All,

 I have a very confusing issue at hand that I have been trying to
 solve for a
 couple of days.

 I have a Struts-based application where my index.jsp has only one line
 html:redirect forward=welcome/

 Further, once the user logs in, he is forwarded to applications
 based on his
 feature access. Though, for some reason, when the forward of the
 action is
 complete, somehow ( I put a breakpoint in the RedirectTag) control
 goes to
 index.jsp (or that's what it seems like) and the whole
 WelcomeAction is
 executed on the server side. This happens only on the server side
 i.e. the
 browser is still displaying the page the user had requested.
 Though, on the
 server side, once the page is displayed, control goes to index.jsp
 as I
 said.

 The issue is that I perform some session-level initializations at
 start up
 and since index.jsp executes all that code on the server side again,
 everything is re-initialized clearing up what the current jsp (that
 the user
 had requested) did.

 Any help or direction is appreciated.

 Thanks,


 Rahul


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




Re: confused with redirects

2006-11-09 Thread James Mitchell

;)  I thought so.


So, all the following are true:
 - you are testing this on your local machine (your browser is  
hitting your own machine)
 - you have enabled cookies on your machine (if not, make sure all  
urls are rewritten correctly, before you click on them)

 - you have a global forward named welcome
 - welcome goes to a jsp page with links that, when clicked,
   will take the user to (for instance) /yourapp/PopulateUserInfo.do
 - you know for a fact that this action is being called because you
a) added a few print statements
  or
b) you set a breakpoint and watched the debugger step through it
 - this action returns an ActionForward that will go to UserInfo.jsp
 - you know for a fact that UserInfo.jsp is the path for the  
returned ActionForward because:

a) added a few print statements
  or
b) you set a breakpoint and watched the debugger step through it

If you are not hitting your own machine, make sure there isn't a  
proxy or something that might be rewriting the request headers or  
screwing with the cookies in any way.


If all the above are true, make sure:
 - you do not have any filters or listeners intercepting the request  
and changing/wrapping/hijacking/etc


Sorry for the flood of if/else, but without sitting behind you are  
watching what you are doing, this is the best I can offer.


HTH

--
James Mitchell
678.910.8017




On Nov 9, 2006, at 7:08 AM, Rahul Patel wrote:


I am using Struts 1.1.
Also, I might have typed in the wrong tag - it is supposed to be
logic:redirect

My index.jsp just has the following line (and the declaration for  
the tag

library)

logic:redirect forward=welcome/

I have a menu containing links to forward the user to. e.g. one link
forwards to an action PopulateUserInfo.do Even though, I am just  
resetting

the corresponding form's data in this action and then forwarding to
UserInfo.jsp, after the entire UserInfo.jsp is loaded, it somehow  
seems to

be going to index.jsp. I have this issue for all my *.do actions.

On 11/9/06, James Mitchell [EMAIL PROTECTED] wrote:


Please reply with the entire index.jsp content and tell us what
version of Struts you are using.  I assume 1.2.x, and so I'm not sure
what html:redirect is.


--
James Mitchell
678.910.8017




On Nov 9, 2006, at 6:36 AM, Rahul Patel wrote:

 Hi All,

 I have a very confusing issue at hand that I have been trying to
 solve for a
 couple of days.

 I have a Struts-based application where my index.jsp has only  
one line

 html:redirect forward=welcome/

 Further, once the user logs in, he is forwarded to applications
 based on his
 feature access. Though, for some reason, when the forward of the
 action is
 complete, somehow ( I put a breakpoint in the RedirectTag) control
 goes to
 index.jsp (or that's what it seems like) and the whole
 WelcomeAction is
 executed on the server side. This happens only on the server side
 i.e. the
 browser is still displaying the page the user had requested.
 Though, on the
 server side, once the page is displayed, control goes to index.jsp
 as I
 said.

 The issue is that I perform some session-level initializations at
 start up
 and since index.jsp executes all that code on the server side  
again,

 everything is re-initialized clearing up what the current jsp (that
 the user
 had requested) did.

 Any help or direction is appreciated.

 Thanks,


 Rahul


-
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: Confused by issue with being directed to index.jsp

2006-11-09 Thread Patel, Rahul
Thanks Laurie!

That was it. I had a busy box in a javascript on the page and the src property 
of the images in there was set to '' (i.e. blank).

Thanks a lot.

-Rahul 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Wednesday, November 08, 2006 9:03 PM
To: user@struts.apache.org
Subject: Re: Confused by issue with being directed to index.jsp

Patel, Rahul wrote:
 Hi All,
 
 I have a very confusing issue at hand that I have been trying to solve for a 
 couple of days. 
 
 I have a Struts-based application where my index.jsp has only one line 
 html:redirect forward=welcome/
 
 Further, once the user logs in, he is forwarded to applications based on his 
 feature access. Though, for some reason, when the forward of the action is 
 complete, somehow ( I put a breakpoint in the RedirectTag) control goes to 
 index.jsp (or that's what it seems like) and the whole WelcomeAction is 
 executed on the server side. This happens only on the server side i.e. the 
 browser is still displaying the page the user had requested. Though, on the 
 server side, once the page is displayed, control goes to index.jsp as I said.
 
 The issue is that I perform some session-level initializations at start up 
 and since index.jsp executes all that code on the server side again, 
 everything is re-initialized clearing up what the current jsp (that the user 
 had requested) did. 

I'm not sure I really understand your problem description, but it
*sounds* like the browser is making a request to the application context root 
during rendering of the intended page.

A common cause for that is an img tag's src attribute, or some other URL in 
the page, pointing to '#' or '#something' -- e.g. img src=#/. 
Check your rendered HTML for stray references to resources (images, 
stylesheets, etc).

L.


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


==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==


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



Re: Confused by issue with being directed to index.jsp

2006-11-08 Thread Laurie Harper

Patel, Rahul wrote:

Hi All,

I have a very confusing issue at hand that I have been trying to solve for a couple of days. 

I have a Struts-based application where my index.jsp has only one line html:redirect forward=welcome/ 


Further, once the user logs in, he is forwarded to applications based on his 
feature access. Though, for some reason, when the forward of the action is 
complete, somehow ( I put a breakpoint in the RedirectTag) control goes to 
index.jsp (or that's what it seems like) and the whole WelcomeAction is 
executed on the server side. This happens only on the server side i.e. the 
browser is still displaying the page the user had requested. Though, on the 
server side, once the page is displayed, control goes to index.jsp as I said.

The issue is that I perform some session-level initializations at start up and since index.jsp executes all that code on the server side again, everything is re-initialized clearing up what the current jsp (that the user had requested) did. 


I'm not sure I really understand your problem description, but it 
*sounds* like the browser is making a request to the application context 
root during rendering of the intended page.


A common cause for that is an img tag's src attribute, or some other 
URL in the page, pointing to '#' or '#something' -- e.g. img src=#/. 
Check your rendered HTML for stray references to resources (images, 
stylesheets, etc).


L.


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



RE: [To sum it up] Re: Confused

2005-06-15 Thread Daniel Perry
I took one look at ejbs and ran a mile.

Struts and EJBs seem to be at the opposite end of a scale.
Struts is sensible, nice to work with, efficient, and generally everything
that EJBs arnt!

I personally use it with OJB (made that decision 1.5 yrs ago).  Hibernate
seems to be more popular, and if i was to make the decision now, i'd
probably go with hibernate.  I'm sticking with OJB in the systems i have
because refactoring the whole lot would be such a chore, and OJB works fine
(though i have had to deal with some really annoying intermittent bugs).

Daniel.

 -Original Message-
 From: Pierre Thibault [mailto:[EMAIL PROTECTED]
 Sent: 14 June 2005 19:53
 To: Struts Users Mailing List
 Subject: Re: [To sum it up] Re: Confused


 Le 14 juin 2005 à 04:59, Stéphane Zuckerman a écrit :

 Hello Stéphane,

 
 ...
  Anyway, this little presentation is far from complete, and I
  suggest you read some doc about J2EE applications before going
  further with struts (java.sun.com is a good start).
 
  --
  Stéphane Zuckerman
 

 The difficulty here is that there is lot of pieces that go together.
 There is a lot of choices and it is not clear for the new developers
 which path to fellow. I decided to buy the book 'Struts The Complete
 Reference' and I am only at the beginning. I'll continue to dig on
 the subject. I'm happy to see that there is community here for
 helping me. I fell already a lot more comfortable.

 Thank you.

 A+

 --
 Pierre





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



RE: [To sum it up] Re: Confused / one little question

2005-06-15 Thread Abdullah Jibaly
Spring takes care of all this (http://springframework.org) without the overhead 
of an ejb container.

Acegi is one aspect closely tied to spring that takes care of security 
declaratively.

Regards,
Abdullah

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 15, 2005 5:04 AM
To: 'Struts Users Mailing List'
Subject: RE: [To sum it up] Re: Confused / one little question


Hello all,
Sorry to get into this thread so late...
Since I have same view as Daniel about Hibernate/EJBs, I wanted to ask
one additional
question, since right now I am using EJBs..

Now, EJBs have some features that let the coder concentrate only
On the business logic instead of dealing, for example, with
synchronization, transaction, threading ..and security, meaning that you
can declare in the
Deployment descriptor which roles are allowed to do what with your EJBs.

Where can you do the same with ORM tools?  In the web layer?
Or do you have to have a security framework in place (such as acegi)?

Thanx and regards
Marco




-
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] Re: [To sum it up] Re: Confused / one little question

2005-06-15 Thread Radu Badita


In fact, this thread was really about Struts and how it integrates with 
various J2EE technologies and containers, not about Hibernate/EJBs...
Anyway: I don't think that anyone says that Hibernate is better than EJB 
period; but maybe easier and more flexible to use than Entity EJBs CMP, 
which is just one of the species of EJBs.
It is true that EJB (entity beans or not) has these nice features you 
mention: declarative transactions and declarative security (multi 
threading and synchronization are in fact container and coding 
related, and also implemented by Hibernate), BUT the question is: are 
those really necessary?
Hibernate also supports CMT, and, if facaded by SessionBeans (which is a 
very common scenario and is also recomanded for entity beans), you have 
declarative transactions.
Security is a very nice feature, but in scenarios where you only use a 
web application to access the EJBs, and the EJB container is isolated 
from the rest of the world, it becomes either useless, or a burdain to 
use... And I think that this scenario is the most common (especially 
among the subscribers to a list such as Struts Users :)
It's also true that in some scenarios the Entity Beans might be more 
effective than using an ORM such as Hibernate, but these scenarios are 
extremely rare...
Also, even Hibernate is sometimes regarded as being too complicated and 
too hard to learn by some (it was a very hot discussion about this on 
this list), and in even simpler scenarios are preferred even simpler 
tools such as iBatis, ORB, etc..
In my opinion, a discussion with a subject such as EJB is better than 
Hibernate is completely meaningless... The right tool always depends on 
the job, and the right tool for every imaginable job was just not yet 
invented.  :-)
The answer to your last question IMHO is: yes, you can, if the web layer 
is the only thing accessing your beans. But the subject of security is 
much more complicated in a real-life application than what framework do 
I need to best implement it?


You're welcome,
Radu

Marco Mistroni wrote:


Hello all,
Sorry to get into this thread so late...
Since I have same view as Daniel about Hibernate/EJBs, I wanted to ask
one additional
question, since right now I am using EJBs..

Now, EJBs have some features that let the coder concentrate only
On the business logic instead of dealing, for example, with
synchronization, transaction, threading ..and security, meaning that you
can declare in the
Deployment descriptor which roles are allowed to do what with your EJBs.

Where can you do the same with ORM tools?  In the web layer?
Or do you have to have a security framework in place (such as acegi)?

Thanx and regards
Marco
 



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



RE: Confused

2005-06-14 Thread Daniel Perry
No,
J2EE is a NOT EJBS!
J2EE is a collection of technologies, including servlets, jsp, EJBs, etc.

Tomcat hosts various parts of J2EE - servlets, jsps, etc, but it is not a
full J2EE container - it doesnt host EJBs. But you can use servlets, JSP and
taglibs without using EJBs. I do. I've never used an EJB.

Daniel.

 -Original Message-
 From: Pierre Thibault [mailto:[EMAIL PROTECTED]
 Sent: 14 June 2005 04:51
 To: Struts Users Mailing List
 Subject: Re: Confused


 Yes, I want to use Beans.

 Do you mean that I can use servlets, JSP and taglibs without J2EE?

 Le 13 juin 2005 à 16:42, Dave Newton a écrit :

  Pierre Thibault wrote:
 
 
  There are talking about Tomcat but not about JBoss. I'll continue
  with JBoss because I want to access J2EE.
 
 
  I think you might be confused about what J2EE is. If you need
  EJBs, then yeah, JBoss would be one way to go. If you don't,
  there's a lot of other parts of J2EE, like servlets, JSP, taglibs,
  etc..
 
  Dave
 




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



Re: Confused

2005-06-14 Thread delbd
I could add, use EJBs only if you really can't do without them :D
Things like Hibernate are more flexible an easy to use than EJB 2.0 and i 
heard the EJB 3.0 specs will be very similar to what current ORMapping like 
Hibernate does! 

Le Mardi 14 Juin 2005 10:08, Daniel Perry a écrit :
 No,
 J2EE is a NOT EJBS!
 J2EE is a collection of technologies, including servlets, jsp, EJBs, etc.

 Tomcat hosts various parts of J2EE - servlets, jsps, etc, but it is not a
 full J2EE container - it doesnt host EJBs. But you can use servlets, JSP
 and taglibs without using EJBs. I do. I've never used an EJB.

 Daniel.

  -Original Message-
  From: Pierre Thibault [mailto:[EMAIL PROTECTED]
  Sent: 14 June 2005 04:51
  To: Struts Users Mailing List
  Subject: Re: Confused
 
 
  Yes, I want to use Beans.
 
  Do you mean that I can use servlets, JSP and taglibs without J2EE?
 
  Le 13 juin 2005 à 16:42, Dave Newton a écrit :
   Pierre Thibault wrote:
   There are talking about Tomcat but not about JBoss. I'll continue
   with JBoss because I want to access J2EE.
  
   I think you might be confused about what J2EE is. If you need
   EJBs, then yeah, JBoss would be one way to go. If you don't,
   there's a lot of other parts of J2EE, like servlets, JSP, taglibs,
   etc..
  
   Dave

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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



[To sum it up] Re: Confused

2005-06-14 Thread Stéphane Zuckerman

Hello Pierre,



Struts is just too big a project to stay among its siblings under the 
Jakarta general project, which is why it is on its own.


I have just installed Tomcat 5 for Java WSDP. Do I need this version  to 
make Struts development or can I use the regular 5.5 version too?  I 
have installed both.


If you use JBoss, there is an embedded version of Tomcat 5 with it. You 
don't need anything else.


Also, I would like to know how can I have access to J2EE? I am on Mac  
OS 10.4 and as I know I need JBoss to have access to J2EE. 


If you use JBoss to do your work, that's fine : it works great. Just 
don't forget to put your webapp in the 
$JBOSS_DIR/server/{default,minimal,all}/deploy directory (either as a 
WAR archive, or as a yourapp.war directory).

For instance, I use the default server, that leads to a path like :

C:\jboss\jboss-4.0.1\server\default\deploy\my_webapp.war

(I am currently using MS-Windows for my devs)

I have  
installed JBoss on my machine too. But I don't understand how can I  use 
Tomcat, JBoss and Struts altogether. Can you help me?


Struts is a collection of Java packages that you must embed with your 
web application.


You must understand how a J2EE application is built (which is a bit 
beyond the scope of this mailing list, I think). Basically, this means 
your application will have the following structure :


+---WEB-INF
|  +-classes
|  +-lib
|
|
+---META-INF

WEB-INF contains configuration files (such as web.xml, and 
struts-config.xml), definition files (for instance the taglib definition 
files), etc. ; its subdirectories contain the various compiled classes 
(the classes directory ;-) ), and the various packages you hava to 
embed with your application (for instance, struts.jar ;-) ).


Anyway, this little presentation is far from complete, and I suggest you 
read some doc about J2EE applications before going further with struts 
(java.sun.com is a good start).


--
Stéphane Zuckerman

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



Re: Confused

2005-06-14 Thread Pierre Thibault

Ok, I'll use Hibernate.

Le 14 juin 2005 à 04:31, delbd a écrit :


I could add, use EJBs only if you really can't do without them :D
Things like Hibernate are more flexible an easy to use than EJB 2.0  
and i
heard the EJB 3.0 specs will be very similar to what current  
ORMapping like

Hibernate does!



A+

--
Pierre




Re: [To sum it up] Re: Confused

2005-06-14 Thread Pierre Thibault

Le 14 juin 2005 à 04:59, Stéphane Zuckerman a écrit :

Hello Stéphane,




...
Anyway, this little presentation is far from complete, and I  
suggest you read some doc about J2EE applications before going  
further with struts (java.sun.com is a good start).


--
Stéphane Zuckerman



The difficulty here is that there is lot of pieces that go together.  
There is a lot of choices and it is not clear for the new developers  
which path to fellow. I decided to buy the book 'Struts The Complete  
Reference' and I am only at the beginning. I'll continue to dig on  
the subject. I'm happy to see that there is community here for  
helping me. I fell already a lot more comfortable.


Thank you.

A+

--
Pierre




Re: Confused

2005-06-13 Thread glenn . deschenes
Pierre,

Struts is no longer a sub-project of Jakarta but is now on its own.
Struts is alive and kicking: http://struts.apache.org/

You can look at section 6 [this might help]: 
http://struts.apache.org/userGuide/index.html

As for JBoss... the last time I used it (can't exactly remember when)... 
JBoss has a version that is already bundled with Tomcat.

As for the Mac, I cannot really help.

HTH,
Glenn





Pierre Thibault [EMAIL PROTECTED] 
13/06/2005 12:01 AM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
user@struts.apache.org
cc

Subject
Confused






Hello,

I am new to Struts and I am a bit confused. I would like some light.

I have just installed Tomcat 5 for Java WSDP. Do I need this version 
to make Struts development or can I use the regular 5.5 version too? 
I have installed both.

I also saw that Struts is listed in the Ex-Jakarta section of the 
Jakarta web site. Is this mean that Struts is now replaced by Tapestry?

Also, I would like to know how can I have access to J2EE? I am on Mac 
OS 10.4 and as I know I need JBoss to have access to J2EE. I have 
installed JBoss on my machine too. But I don't understand how can I 
use Tomcat, JBoss and Struts altogether. Can you help me?

Regards.

-
Pierre


Re: Confused

2005-06-13 Thread Pierre Thibault

Le 13 juin 2005 à 08:00, [EMAIL PROTECTED] a écrit :


Pierre,

Struts is no longer a sub-project of Jakarta but is now on its own.
Struts is alive and kicking: http://struts.apache.org/




Happy to hear that.


You can look at section 6 [this might help]:
http://struts.apache.org/userGuide/index.html

As for JBoss... the last time I used it (can't exactly remember  
when)...

JBoss has a version that is already bundled with Tomcat.


There are talking about Tomcat but not about JBoss. I'll continue  
with JBoss because I want to access J2EE.




As for the Mac, I cannot really help.

HTH,
Glenn




Thank you Glenn.


Re: Confused

2005-06-13 Thread Dave Newton

Pierre Thibault wrote:

There are talking about Tomcat but not about JBoss. I'll continue  
with JBoss because I want to access J2EE.


I think you might be confused about what J2EE is. If you need EJBs, 
then yeah, JBoss would be one way to go. If you don't, there's a lot of 
other parts of J2EE, like servlets, JSP, taglibs, etc..


Dave



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



Re: Confused

2005-06-13 Thread Pierre Thibault

Yes, I want to use Beans.

Do you mean that I can use servlets, JSP and taglibs without J2EE?

Le 13 juin 2005 à 16:42, Dave Newton a écrit :


Pierre Thibault wrote:


There are talking about Tomcat but not about JBoss. I'll continue   
with JBoss because I want to access J2EE.




I think you might be confused about what J2EE is. If you need  
EJBs, then yeah, JBoss would be one way to go. If you don't,  
there's a lot of other parts of J2EE, like servlets, JSP, taglibs,  
etc..


Dave





Re: Confused about ActionMessages

2004-07-06 Thread Erik Weber
Thank you Geeta, I will give this a try.
If anyone could shed some light on exactly what these tags are doing 
under the covers (especially what attribute keys are used by default, 
how to change those, when should you, etc.), I would appreciate it. 
Otherwise, I guess I'll get into the source when I have time.

Erik
Geeta Ramani wrote:
Sorry Erik, prematurely hit some contrl key.. 

So, to continue, in your success.jsp add:
logic:messagesPresent message=true
  html:messages id=message message=true
span id=successc:out value=${message}//spanbr
  /html:messages
/logic:messagesPresent
But to display your error, do:
logic:messagesPresent
   span id=errorsHeaderbean:message key=errors.validation.header//span
   html:messages id=error  message=false
 listrutsbean:write name=error //li
   /html:messages
   hr
/logic:messagesPresent
Hth,
Geeta
 

-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 2:45 PM
To: Struts Users Mailing List
Subject: Confused about ActionMessages
Hello all.
I have successfully used ActionErrors in combination with the 
html:errors tag, by adding errors under various keys and then simply 
placing the html:errors/ tag at the top of my JSP.

However, the ActionMessages class doesn't seem to act in 
parallel to the 
ActionErrors class, and neither does the html:messages tag 
seem to act 
just like the html:errors tag (for one, it has a required 
attribute that 
the docs don't explain very well). And I sure don't 
understand all these 
constants (GLOBAL_ERROR, ERROR_KEY, MESSAGE, ACTION_MESSAGE, etc). 
What's for what?

Could someone please give me a quick and dirty example of using 
ActionMessages to present a Your data was saved or similar 
message on 
the success page after a form action is processed?

In other words, could you show me how you are populating the 
ActionMessages instance in your Action class, and then how you are 
displaying the messages on your JSP?

You'll really be helping me out as I'm trying to show my client some 
working pages soon! (I don't wanna cheat if I don't have to).

Thanks,
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]