RE: ClassPath Problem

2004-03-14 Thread Nick Faiz
Prakasan,
You can put the classes on the server's classpath but this is only
advisable for libraries the server, not your application, will depend upon.
You should probably read up on the servlet spec. at sun. 

Nick

-Original Message-
From: Prakasan OK [mailto:[EMAIL PROTECTED] 
Sent: Monday, 15 March 2004 5:21 PM
To: Struts Users Mailing List
Subject: Re: ClassPath Problem


If I place my classes in WEB-INF\classes folder it works fine..
My question is whether it is possible to put the classes in some other
folder and give classpath to that folder?

I have tried this and Tomcat takes the classes from the given classpath
except for the Action classes and Action Form class...Any idea why this
happens?

On Mon, 15 Mar 2004 yoge wrote :
Place your classes in WEB-INF\classes folder.

Prakasan OK wrote:

Hi,

I am a new bie to struts..I have a problem with my classpath.
Instead of putting my ActionForm and Action class in the classes
folder of my web application I am getting 'ClassnotFoundError'.
I have put the required clases in a folder and edited the setclasspath.bat
to put the class path to this folder. I am using Tomcat 4.1. I am getting
all the other classes that is in the folder except the struts related
classes like
the Action class and ActionForm class created by me..

can any one help me to sort out this..


Thanks in advance
Prakasan
  



-
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: How to create a No Action ActionForward

2004-02-23 Thread Nick Faiz
Guys,
I'm at this point, myself, with an application sitting on the
back-burner. I've thought about an approach, which is slightly different to
yours. 

I agree that declarative security in J2EE, for Servlets and JSP.s,
does not really seem to go far enough, at first glance.

On the other hand, it has considerable benefits (the mappings of
roles, relying upon app. server controlled ACLs, etc.).

Why not allow declarative security to do its work, then build the
user information in the session, based upon whether or not the user is in
the correct role, etc.? This is what I plan to do - I'm using the OSUser
API. I'll build its information, partly, by querying roles using the
request, and relying upon WebLogic's internal LDAP server. 

Declarative security is passive; it actively doesn't `do' stuff but
only waits for someone to pass through something it secures. Users make
requests to post, which can be mapped to an Action class. I don't see how
they are at odds.

Nick Faiz.



-Original Message-
From: Jacqueline Gomes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 24 February 2004 11:38 AM
To: Struts Users Mailing List
Subject: RE: How to create a No Action ActionForward

Neither can I. There was no way with j_security_check that I could post to
an Action class. So I implemented JAAS and in the module I interact with a
Domain Facade that does the check with the database for a valid user.  I
then construct a User object and put that in the session. Each of my jsp's
has a check (done using an include) for the user object and if it does not
exist then it redirects to the login page.

If anyone wants any code, let me know!!

Jackie.

-Original Message-
From: Carl [mailto:[EMAIL PROTECTED]
Sent: Monday, 23 February 2004 5:01 PM
To: Struts Users Mailing List
Subject: Re: How to create a No Action ActionForward


By integarting with struts, I mean to have a loginAction witch fill the 
session with data about the logged user.

I can't see how to manage that with classic j_security_check.

regards,

Carl

Adam Hardy wrote:

 Not having any roles effectively means from the container managed 
 security point of view that you have only one role.
 
 What problems did you have 'integrating' the container security? As far 
 as your app is concerned, j_security_check is not something that is 
 relevant. The whole login should be transparent to your app. As long as 
 you map the security constraints correctly, the user will never see a 
 protected page unless they login.
 
 Adam
 
 On 02/23/2004 08:54 AM Carl wrote:
 
 I've faced the same issue too. (using tomcat)
 To solve it I've found 2 options :
 - implement a filter witch intercept each request an redirect if 
 needed to the struts login action. It allow a good interaction with 
 struts but no securty by container.
 - use the container : I do that by adding a CUSTOM login scheme along 
 BASIC  FORM in org.apache.catalina.startup.Authenticators.properties. 
 It's like the filter solution but use roles and the security is 
 managed by the security constrains defined in web.xml. For now my 
 CUSTUM login is similar to the FORM login, so it's not intergrated 
 with struts, but I've planned to modify it soon.
 This second solution need too to define a Realm in Context :
 Realm className=org.apache.catalina.realm.JAASRealm
 appName=catalogue
 userClassNames=com.asserina.atypone.catalogue.impl.ClientImpl
 roleClassNames=com.asserina.atypone.catalogue.Role /

 (I'm using JAAS)

 To conclude I would say that the second option is far more powerfull 
 and addaptable to specific needs however you have too look close to :
 JAAS, custom Realm, Authenticators.properties and is tide to your 
 container (for me Tomcat)

 Let me know if you find quiker or simpler solutions,

 Regards,

 Carl



 Jacqueline Gomes wrote:

 Hi James,

 I was also trying to do the same thing, however, we are using JRun 
 and we don't have any user 'roles'. Specifically, I wanted the 
 container to do the authorisation i.e if a user tried to access any 
 pages after blah blah/admin/* then they would be redirected to the 
 login page if they have not logged in.  However, the application does 
 not have any 'roles' as such. The user is authenticated by calling a 
 stored procedure in the dbase.

 I tried to implement the j_security_check also but was having a tough 
 time integrating it with the actionform etc.
 Do you have any ideas as to how I would do this given that I don't 
 have any user roles in the application?  I was going to add a 'user' 
 object in the session and check on each page if it exists. If it 
 doesn't then redirect the user back to the login page.  I have set 
 the session.setMaxInactiveInterval(72000);

 Any help would be appreciated.

 Thanks, Jackie.

 -Original Message-
 From: James Adams [mailto:[EMAIL PROTECTED]
 Sent: Monday, 23 February 2004 4:43 AM
 To: Struts Mailing List
 Subject: Re: How

RE: html:link passing multiple parameters

2004-02-15 Thread Nick Faiz
I did something along those lines using Struts-EL.

c:set var=concernType value=${project.progressConcernType}
scope=request/

jsp:useBean id=paramMap class=java.util.HashMap /

c:set target=${paramMap} property=projectIdentifier 
value=${project.projectIdentifier} /

c:set target=${paramMap} property=concern 
value=${concernType} /



html-el:link action=advanceProjectConcern.do
name=paramMap 

/html-el:link


Why bother with bean:write when you can use c:set ?

Nick Faiz

-Original Message-
From: phortonpeg [mailto:[EMAIL PROTECTED] 
Sent: Monday, 16 February 2004 9:34 AM
To: [EMAIL PROTECTED]
Subject: html:link passing multiple parameters

Hi,
I have a situation where I need to pass several parameters in an 
html:link tag.  From what I've read, I know that I must use a HashMap 
to send as a param which would contain the values I want to send to 
the URL.  I first display the values in a table using logic:iterate 
and an arrayList onto the screen.  The user should then be able to 
select a row and send that row's parameters to an action class that 
produces a pdf.  
 
My problem is how to extract the values from bean:write properties 
and load them into a hashMap.  What would be the correct syntax to do 
this something like this? I've tried several ways to do something 
like the following without any luck : 
 
% String docNumber = bean:write name=task 
property=documentNumber/ ; %
 
Here is a portion of the jsp that I am working with:
 
  logic:iterate id=task  name=productionQcForm 
property=documents 
td class=databean:write name=task 
property=docGid/nbsp;/td
td class=databean:write name=task 
property=revision/nbsp;/td
td class=databean:write name=task 
property=pgCount/nbsp;/td
td class=databean:write name=task 
property=statDate/nbsp;/td
td class=databean:write name=task 
property=itemVkey/nbsp;/td
td class=databean:write name=task 
property=title/nbsp;/td
td class=databean:write name=task 
property=autoReject/nbsp;/td
html:hidden name=task property=altGid /
html:hidden name=task property=supplement /
html:hidden name=task property=chgType /
html:hidden name=task property=society /
html:hidden name=task property=documentNumber 
html:hidden name=task property=order /
 %
 java.util.HashMap myMap = new java.util.HashMap();
 
 myMap.put(docGid, How do I get the value of the property docGid 
from the list above???);
 myMap.put (docNumber, documentNumber);
 myMap.put (order, order);
 myMap.put (society, society);
 myMap.put (statDate, statDate);
 myMap.put (vKey, itemVkey);
 myMap.put (supp, supplemenat);
 myMap.put (chgType, chgType);
 myMap.put (revision, revision);
 pageContext.setAttribute(map, myMap);
 
%
td class=data align=center
   html:link page=/showScannerPdf.do name=map 
   html:img src=images/EditBCard.gif 
altKey=action.properties
  width=20 height=20 border=0/
   /html:link
   /td

 
Any ideas or suggestions would be very appreciated!
Thanks for you help!
 
Peggy
 
 


-
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: html:link passing multiple parameters

2004-02-15 Thread Nick Faiz
Thanks Adam - that's good to know.

-Original Message-
From: Adam L [mailto:[EMAIL PROTECTED] 
Sent: Monday, 16 February 2004 2:10 PM
To: Struts Users Mailing List
Subject: Re: html:link passing multiple parameters

There's also the use of c:url.  The catch there is that if you incude the
resulting url in a html:link, it will be double contexted, which means you
should use a standard href tag and use a c:out to spit out the final url.


- Original Message -
From: Nick Faiz [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Sunday, February 15, 2004 4:39 PM
Subject: RE: html:link passing multiple parameters


 I did something along those lines using Struts-EL.

 c:set var=concernType value=${project.progressConcernType}
 scope=request/

 jsp:useBean id=paramMap class=java.util.HashMap /

 c:set target=${paramMap} property=projectIdentifier
 value=${project.projectIdentifier} /

 c:set target=${paramMap} property=concern
 value=${concernType} /



 html-el:link action=advanceProjectConcern.do
 name=paramMap 
 
 /html-el:link


 Why bother with bean:write when you can use c:set ?

 Nick Faiz

 -Original Message-
 From: phortonpeg [mailto:[EMAIL PROTECTED]
 Sent: Monday, 16 February 2004 9:34 AM
 To: [EMAIL PROTECTED]
 Subject: html:link passing multiple parameters

 Hi,
 I have a situation where I need to pass several parameters in an
 html:link tag.  From what I've read, I know that I must use a HashMap
 to send as a param which would contain the values I want to send to
 the URL.  I first display the values in a table using logic:iterate
 and an arrayList onto the screen.  The user should then be able to
 select a row and send that row's parameters to an action class that
 produces a pdf.

 My problem is how to extract the values from bean:write properties
 and load them into a hashMap.  What would be the correct syntax to do
 this something like this? I've tried several ways to do something
 like the following without any luck :

 % String docNumber = bean:write name=task
 property=documentNumber/ ; %

 Here is a portion of the jsp that I am working with:

   logic:iterate id=task  name=productionQcForm
 property=documents 
 td class=databean:write name=task
 property=docGid/nbsp;/td
 td class=databean:write name=task
 property=revision/nbsp;/td
 td class=databean:write name=task
 property=pgCount/nbsp;/td
 td class=databean:write name=task
 property=statDate/nbsp;/td
 td class=databean:write name=task
 property=itemVkey/nbsp;/td
 td class=databean:write name=task
 property=title/nbsp;/td
 td class=databean:write name=task
 property=autoReject/nbsp;/td
 html:hidden name=task property=altGid /
 html:hidden name=task property=supplement /
 html:hidden name=task property=chgType /
 html:hidden name=task property=society /
 html:hidden name=task property=documentNumber 
 html:hidden name=task property=order /
  %
  java.util.HashMap myMap = new java.util.HashMap();

  myMap.put(docGid, How do I get the value of the property docGid
 from the list above???);
  myMap.put (docNumber, documentNumber);
  myMap.put (order, order);
  myMap.put (society, society);
  myMap.put (statDate, statDate);
  myMap.put (vKey, itemVkey);
  myMap.put (supp, supplemenat);
  myMap.put (chgType, chgType);
  myMap.put (revision, revision);
  pageContext.setAttribute(map, myMap);

 %
 td class=data align=center
html:link page=/showScannerPdf.do name=map 
html:img src=images/EditBCard.gif
 altKey=action.properties
   width=20 height=20 border=0/
/html:link
/td


 Any ideas or suggestions would be very appreciated!
 Thanks for you help!

 Peggy




 -
 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: .NET: We are just like Struts... only better.

2003-12-28 Thread Nick Faiz
but still, I'm not dragging and 

dropping html form controls (or struts-html.tld taglib controls) to a 

designer screen, linking code and compiling.

 

I believe that various IDEs are beginning to allow this. I saw a
demonstration of a Sun's Forte at a Java User Group, a while ago, and they
were dropping and dragging JATO taglibs. WebLogic Workshop can apparently
allow this using Struts.

 

I don't know if any of this qualifies as decent programming, however. 

 

Nick

 

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED] 
Sent: Monday, 29 December 2003 12:33 PM
To: [EMAIL PROTECTED]
Subject: Re: .NET: We are just like Struts... only better.

 

It's kind of a catch .22, I use struts on projects that make money for me.  

If someone started taking my projects and replicating them for free, I would


probably have a problem with it :)  Although in this case, MS did not have a


Struts to begin with.  ASP.net is sweet, but only because the development 

environent makes it sweet.  If we can get the same RAD functionality out of 

Eclipse w/ JSF and perhaps Flex, then we'll really be cooking.

 

Although Struts is a wonderful thing, I still look at web development with 

J2EE as a bit of a tedious thing.  Well, actually now that I have a pretty 

robust taglib built, not so tedious, but still, I'm not dragging and 

dropping html form controls (or struts-html.tld taglib controls) to a 

designer screen, linking code and compiling.  I have to do it all by hand :(


  Let's hope Eclipse VE adopts a JSF designer!

 

Craig W. Tataryn

 

From: Frans Thamura, Intercitra [EMAIL PROTECTED]

Reply-To: Struts Users Mailing List [EMAIL PROTECTED]

To: Struts Users Mailing List [EMAIL PROTECTED]

Subject: Re: .NET: We are just like Struts... only better.

Date: Sat, 27 Dec 2003 23:57:08 -0500



I think this article will explain that Microsoft is not support Open Source


community, M$ only support people that want to support money, :)



Our War Money Chest is bigger than all of you all the Java guys (including 

the Open Source).



[EMAIL PROTECTED] how can M$ have that money?



So, this mean we all must wake up, :) to make our product more user 

friendly, and make everyone can learn it, update it, and make it perfect.



ASP.net is a product based, Struts is a spiritual lovely project. They 

cannot compare it.



But if ASP.net can be compare with MVC not with Struts. :) sad to hear that


if we port Struts to .NET, Microsoft wont support it, because they said, we


include it in ASP.net already.



What do you think?



Frans



-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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



 

_

MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  

http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin
.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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



WebLogic 7.2 classpath issues when loading the ActionServlet

2003-12-28 Thread Nick Faiz
Hi,
I'm hitting a classpath issue with WebLogic 7.2 when deploying a
Struts 1.1 application.

My web app deploys without error when I use an unpacked version.
When I use a .war, which I need to use, the deployment routine cannot
resolve the various taglibs and finally reports an error when trying to load
the ActionServlet during start up.

The WebLogic support forums show a lot of similar issues but none
precisely matching what I'm seeing. Have any WebLogic 7.2 users seen
something along these lines?

Regards,
Nick Faiz
B2B Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]

 


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



RE: WebLogic 7.2 classpath issues when loading the ActionServlet

2003-12-28 Thread Nick Faiz
I thought I'd reply to my own post - in case anyone else runs into this
problem.

It was in my build.xml, running on Windows. I ended up having to unzip my
.war and use a jar command manually to reassemble it. See the excerpt below
from the Ant manual:

The content of WEB-INF/web.xml is identical to src/metadata/myapp.xml. We
regulary receive bug reports that this task is creating the WEB-INF
directory, and thus it is our fault your webapp doesn't work. The cause of
these complaints lies in WinZip, which turns an all upper-case directory
into an all lower case one in a fit of helpfulness. Please check that jar
xvf yourwebapp.war shows the same behaviour before filing another report.


I don't know a workaround for a Windows build yet.

Nick

-Original Message-
From: Nick Faiz [mailto:[EMAIL PROTECTED] 
Sent: Monday, 29 December 2003 2:42 PM
To: Struts Users Mailing List
Subject: WebLogic 7.2 classpath issues when loading the ActionServlet

Hi,
I'm hitting a classpath issue with WebLogic 7.2 when deploying a
Struts 1.1 application.

My web app deploys without error when I use an unpacked version.
When I use a .war, which I need to use, the deployment routine cannot
resolve the various taglibs and finally reports an error when trying to load
the ActionServlet during start up.

The WebLogic support forums show a lot of similar issues but none
precisely matching what I'm seeing. Have any WebLogic 7.2 users seen
something along these lines?

Regards,
Nick Faiz
B2B Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]

 


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


RE: Struts + Weblogic - JSP/Servlet Reloading (Hot Deploy)??

2003-12-15 Thread Nick Faiz
Hi Herry,
The list has recently this topic. :)

For my own part, I can hot deploy any other J2EE app. on WebLogic
7.2 (search through the archives), but my Struts app. is having an issue
with taglib references whenever I zip it up in a .war; otherwise the taglibs
work well if I deploy in exploded form. The app. is still in dev. and I
haven't had time to look at this problem, but I have to work out the issue
some time this week.

When that's done, I'll be hot deploying a Struts app. in WebLogic
7.2. 

Nick Faiz

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 16 December 2003 12:34 AM
To: [EMAIL PROTECTED]
Subject: Struts + Weblogic - JSP/Servlet Reloading (Hot Deploy)??

Hi guys,
 
Any good Samaritan out there that knows how can we enable JSP/Servlet
reloading (Hot Deploy) for Struts application? especially for Weblogic
server. It's kind of tiring to restart the web application for every
change that you make.
 
It looks like a pretty common issue. But can't seem to be able to find
the best approach of doing that. Anyone has any idea on how to do that?
Greatly appreciated.
 
Thx and Cheers,
 
Herry
 

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



RE: [OT] I didn't know Struts was an antipattern

2003-12-15 Thread Nick Faiz
I think he made some excellent points.



-Original Message-
From: Gus Heck [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 16 December 2003 9:02 AM
To: Struts Users Mailing List
Subject: Re: [OT] I didn't know Struts was an antipattern

Interesting, I'm not sure I agree, but the patch that he complains about 
not being added sounds useful...

Robert Taylor wrote:

A coworker sent me this link and said it was an interesting read.

http://today.java.net/pub/a/today/2003/12/11/mvc.html?page=1

Personally I don't think the author put much research into Struts or
Java Server Faces (which he doesn't mention at all) before writing
this article which has some interesting points and history about MVC, but
basically
is written to support his new ground breaking Shocks Servlet Framework.


robert



-
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: Drop Down - Code and Description

2003-12-11 Thread Nick Faiz
Please stop sending emails marked with High Importance in Outlook?

Nick

-Original Message-
From: Rama, Shreekanth (K.) [mailto:[EMAIL PROTECTED] 
Sent: Friday, 12 December 2003 8:49 AM
To: Struts Users Mailing List
Subject: RE: Drop Down - Code and Description
Importance: High

Wit, 

My baseAbstractVO Class has only setter  getter methods. 
The baseAbstractVO.vehicleLineList is an arrayList which contains
code and Description in the form of an temp Object.

if (rs.getString(1) != null) {

commonVO.setCode(rs.getString(1).trim());
} else {
commonVO.setCode();
}

if (rs.getString(2) != null) {

commonVO.setDescription(rs.getString(2).trim());
} else {
commonVO.setDescription();
}
arrayList.add(commonVO);



The arrayList is the vehicleLineList... 

Warm Regards
Shreekanth


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 4:42 PM
To: Struts Users Mailing List
Subject: Re: Drop Down - Code and Description


Dear Shree:

Can you copy-and-paste the code for the JavaBean that was referred by 
request (or session).getAttribute(baseAbstractVO)?

wit






Rama, Shreekanth (K.) [EMAIL PROTECTED]
12/11/2003 04:33 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:Drop Down - Code and Description


Hi ALL, 

 I have a problem in the drop down in the application..
 
 html:select 
property=baseAbstractVO.vehLineCode size=1
 html:optionsCollection
property=baseAbstractVO.vehicleLineList value =code
label=description/
 /html:select
 

 I want to have both code and description of the selected 
item from
the drop down box. 

Any Help Pls ?? 

Regards
Shreekanth 

-
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: Is it required to restart weblogic everytime after compiling ?? ? Need help Desperately .. :-(

2003-12-07 Thread Nick Faiz
Shakti,

I suggest you visit http://support.bea.com
http://support.bea.com/  and do a search, use google.com, or buy the BEA
WebLogic Server Bible. Perhaps javaranch.com could be helpful here. 

You have all the information you need to get it working, at the
moment, with the links I sent you. This isn't really a Struts orientated
topic so I won't reply to anymore of these posts.


Best of luck,

Nick

 

-Original Message-
From: Shakti [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 6 December 2003 3:51 AM
To: Nick Faiz; Struts Users Mailing List
Subject: Re: Is it required to restart weblogic everytime after compiling ??
? Need help Desperately .. :-(

 

Hi Nick,

Sorry buddy i was busy with other stuff so cudn't reply to ur
mails ... boss i am still facing the same problem .. i checked the logs even
its showing that my new application is being activated .. but stil i can't
see the changes getting reflected .. ?? but once i retstart i can see the
changes .. :-(

My Questions are :

1 ) Is there any sort of cache that Weblogic maintains .. .. becuz of which
new changed are not reflected .. 

2) if u can just mail me ur startweblogic.cmd file .. 

 

thanks buddy ..
Shakti

 

- Original Message - 

From: Nick Faiz mailto:[EMAIL PROTECTED]  

To: 'Shakti' mailto:[EMAIL PROTECTED]  ; Struts Users Mailing
List mailto:[EMAIL PROTECTED]  ; [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  

Sent: Wednesday, December 03, 2003 1:12 PM

Subject: RE: Is it required to restart weblogic everytime after compiling ??
? Need help Desperately .. :-(

 

Shakti,

Ok. Find, in attachment, a log of my starting WebLogic 7.2 up with a
cepts.war file present within my applications directory. A servlet called
ProjectStartUp runs and queries a database, following the directions of my
web.xml:

servlet

servlet-nameprojectStartUp/servlet-name

 
servlet-classau.com.ce.cepts.project.ProjectStartUp/servlet-class

load-on-startup3/load-on-startup

/servlet

Glance at the log, look for bold, and see the statement:

au.com.ce.cepts.project.ProjectStartUp:57: done...: 9 

Then, I go to my source, find the log statement at line 57 of the
ProjectStartUp servlet and change it from:

logger.debug(done...:  + ProjectFacade.getCache().size() +  \n\n\n\n);



to:

logger.debug(it's possible Shakti: :  + ProjectFacade.getCache().size() +
 \n);

Then I recompile and drop my new cepts.war into the applications
directory. WebLogic, which is checking the app. dir each 3 seconds for a new
deployment, notices this and takes the new binary and redeploys it instead
of the old:

03/12/2003 18:35:456 DEBUG ExecuteThread: '11' for queue: 'default'
au.com.ce.cepts.project.P

rojectStartUp:57: it's possible Shakti: : 9



3/12/2003 18:35:37 Info Deployer 149033 activated application
_appsdir_cepts_war on devServ

er

3/12/2003 18:35:37 Info Deployer 149074 Successfully completed
deployment task: Activate ap

plication _appsdir_cepts_war on devServer

3/12/2003 18:35:38 Notice Application Poller 149404 Activate
application _appsdir_cepts_war

 on devServer - Completed

The above can is because I set the server in dev. mode.

What problems are you having? Are you not seeing a new activation
take place when you drop the new .war in?

Nick

P.S. Ignore the error relating to the Action servlet. It doesn't like being
included in a war, under my test configuration, and I've not had time to
work out why yet. shakti_log.doc 

 

-Original Message-
From: Shakti [mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ]
Sent: Wednesday, 3 December 2003 4:39 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Is it required to restart weblogic everytime after compiling ??
? Need help Desperately .. :-(

Hey Nick,

I read thru all the docs and all the links that u gave me .

i cudn't find anything more that changing the boolean param , while i start

the weblogic i am getting

-Dweblogic.ProductionModeEnabled=false it means it is in development mode

. wht are the other changes that i will have to make so that my java file

changes are reflelected in the application after recompiling , without

restarting the weblogic server .

waiting for ur reply boss ...

Thanks in advance .

shakti

- Original Message -

From: Nick Faiz [EMAIL PROTECTED]

To: 'Struts Users Mailing List' [EMAIL PROTECTED]

Sent: Wednesday, December 03, 2003 4:02 AM

Subject: RE: Is it required to restart weblogic everytime after compiling ??

? Need help Desperately .. :-(

 

 Sure, but that isn't the same as redeploying a war or ear without

 restarting.



 Nick



 -Original Message-

 From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ]

 Sent: Tuesday, 2 December 2003 6:14 PM

 To: Struts Users Mailing List

 Subject: RE: Is it required to restart weblogic everytime after compiling

RE: [OT] Exception handling in a J2EE project.

2003-12-07 Thread Nick Faiz
Good question, I'm thinking about the same sort of thing myself.

I usually find it easier to give each server side component its own
exception, and to throw all exceptions up to the client side with an
appropriate message or error code. Obviously, exceptions fatal to the system
have to be sent to an administrator - usually through an appropriate log
comment or email.

If you try to put in too many layers between your exceptions and client view
it can be murder, down the line, when bug tracking and extending the
application.

Perhaps having a common exception class, from which all component exceptions
extend, is a nice idea, but I think it invites needless complexity.

Nick Faiz

-Original Message-
From: Prasenjit Narwade [mailto:[EMAIL PROTECTED] 
Sent: Monday, 8 December 2003 4:31 PM
To: Struts Users Mailing List (E-mail)
Subject: [OT] Exception handling in a J2EE project.

Hi All,
  What is the best Hierarcy (framework) for handling exceptions in a
J2EE project.

  I am thinking of some roughly the following Hierarcy consisting
broadly of three categories :   



  +  MyApplicationException extends Exception  ( For handling bussiness
exceptions.)
 - InsufficientBalanceException
 - InvalidPasswordException
 - etc.

  +  MySystemException extends RuntimeException (Non bussiness
exception, exception due to System problems)


  +  MyEJBException extends EJBException  (Not too sure if this is
required)



My question is :

1.  Is this approach correct ?

2.  My application flow consists of  
ActionClass calls BussinessDelegate calls SessionBean calls
DAO  and
ActionClass calls BussinessDelegate calls SessionBean calls
EntityBeans 

How should the exception for take place. Should it be something
like this:

DAO throws some ApplicationException ... 
caught by SessionBean thrown as some EJBException .. 
caught by BussinessDelegate and do some handling



Regards,
Prasenjit.

-
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: Log4j with Struts

2003-12-05 Thread Nick Faiz
Hey Rahul,
Ensure that log4j is included on the classpath of your server. 
If you get stuck, simply punch ` java.lang.NoClassDefFoundError:
org/apache/log4j/Logger' into a google search or read through the doc.s. 

Nick.

-Original Message-
From: Rahul Mohan [mailto:[EMAIL PROTECTED] 
Sent: Friday, 5 December 2003 5:57 PM
To: Struts Users Mailing List
Subject: Re: Log4j with Struts

hi nick,

thanks for responding...its the logger class thats missing ithink...
this is the exception i get when i try to view the page:

java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at app.LogonAction.perform(Unknown Source)


what could be the problem? please excuse my novice level...

thanks again..


- Original Message -
From: Nick Faiz [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, December 05, 2003 12:22 PM
Subject: RE: Log4j with Struts


 Well, what class can't it find, the Logger or the LogonAction.class ?

 I use it with Struts, without a hassle, on WebLogic 7.2.

 Nick

 -Original Message-
 From: Rahul Mohan [mailto:[EMAIL PROTECTED]
 Sent: Friday, 5 December 2003 5:46 PM
 To: struts
 Subject: Log4j with Struts

 Hi,

 has anybody tried using Log4j with struts? I tried the following code
 and its giving a ClassDefNotFoundException during runtime..

 this is inside the perform method:
  String str = new String(LogonAction.class.getName()); //LogonAction
is
 an Action Class
  logger = Logger.getLogger(str); //this line is throwing the
exception -
 apparently str is not having a classdef

 somebody please help me with this.or is there any other method to
 perform logging?

 i am using tomcat4.1 ...

 Thanks in advance.

 Rahul Mohan
 ~~~
 MasterCraft Group
 Tata Consultancy Services
 Tata Research Development and Design Center
 54B, Hadapsar Industrial Estate
 Pune - 411 013
 Phone: +91 4042333 or 4031122 Extn 2556
 +91 20 31544082 ( Mobile )
 Fax: +91 20 4042399
 email : [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: Disadvantages of Struts

2003-12-04 Thread Nick Faiz
Well,
I'm thinking of looking into WebWork, to try a Pull MVC, rather than
the Push MVC of Struts.
I'm also looking for a simplicity of taglibs and close integration
with JSTL (I know, I could use Struts-EL). 
Struts works and is being adopted widely but I'm still up for
performing a comparison with another MVC framework.

Nick Faiz

-Original Message-
From: Ajay Patil [mailto:[EMAIL PROTECTED] 
Sent: Friday, 5 December 2003 1:28 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Disadvantages of Struts

Hi,

Has anyone compared the configuration of JSF vs Struts ?

Struts has a good mechanism to specify the forwards for each Action.

JSF has a different approach. 
In faces-config.xml, you can specify navigation rules. 

You can specify something a navigation rules like..

  navigation-rule
from-tree-id/demo/login.jsp/from-tree-id
navigation-case
  from-outcomefail/from-outcome
  to-tree-id/demo/error.jsp/to-tree-id
/navigation-case
navigation-case
  from-outcomesuccess/from-outcome
  to-tree-id/demo/welcome.jsp/to-tree-id
/navigation-case
  /navigation-rule

I find this better, because you can specify both the FROM webpage 
and the TO webpage in the navigation rule.

Also event-handling is nice in JSF. For example, you can implement 
a web-screen as one Java class and specify event-handling methods to 
each submit button.

So far, I have really liked JSF.

Ajay

 I think an action's mapping is a decision by the action itself. 
 Like I said earlier, when an application development finishes, that 
 decision will become static. At that point, when an Action's mapping 
 changes, its code will have to change too (unless the new mapping is 
 kind of a synonym to the old mapping, which doesn't bear any shift in 
 the semantics). As such, there is almost no point in keeping the 
 decision and the code separate (i.e. making the decision's 
 configuration a loose end of the code). Or at least,
 configuration shouldn't be the only way to add or modify an Action.

 Even though each Action's configuration may be small, the 
 configurations for all the Actions need to be kept track of and 
 maintained (for integrity). That may be a significant but unnecessary 
 side work. To view the mappings, there can be a tool to traverse the 
 structure by api calls and display it. That can be done after the 
 fact and doesn't have to be before it. In addition to that, when the 
 decision (or configuration if any) goes where the code lives, 
 modularity increases.

 IMHO,

 - Robert.


-
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: Disadvantages of Struts

2003-12-04 Thread Nick Faiz
Thanks Sandra,
Good to see that such information exists. 

Nick

-Original Message-
From: Sandra Cann [mailto:[EMAIL PROTECTED] 
Sent: Friday, 5 December 2003 3:59 PM
To: 'Struts Users Mailing List'
Subject: RE: Disadvantages of Struts

You can see a spreadsheet comparison of some mvc2 frameworks at
mvc2frameworks.org. Its was last updated for J1 and will need to be updated
again but should give a decent idea. 

snip
 I'm still 
 up for performing a comparison with another MVC framework.


-
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: Log4j with Struts

2003-12-04 Thread Nick Faiz
Well, what class can't it find, the Logger or the LogonAction.class ?

I use it with Struts, without a hassle, on WebLogic 7.2.

Nick

-Original Message-
From: Rahul Mohan [mailto:[EMAIL PROTECTED] 
Sent: Friday, 5 December 2003 5:46 PM
To: struts
Subject: Log4j with Struts

Hi,

has anybody tried using Log4j with struts? I tried the following code
and its giving a ClassDefNotFoundException during runtime..

this is inside the perform method:
 String str = new String(LogonAction.class.getName()); //LogonAction is
an Action Class
 logger = Logger.getLogger(str); //this line is throwing the exception -
apparently str is not having a classdef

somebody please help me with this.or is there any other method to
perform logging? 

i am using tomcat4.1 ...

Thanks in advance.

Rahul Mohan
~~~
MasterCraft Group
Tata Consultancy Services
Tata Research Development and Design Center
54B, Hadapsar Industrial Estate
Pune - 411 013
Phone: +91 4042333 or 4031122 Extn 2556
+91 20 31544082 ( Mobile )
Fax: +91 20 4042399
email : [EMAIL PROTECTED]
~~~

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



RE: Is it required to restart weblogic everytime after compiling ?? ? Need help Desperately .. :-(

2003-12-02 Thread Nick Faiz
Check this out:
http://e-docs.bea.com/wls/docs70/programming/deploying.html#1125125

Also see,
http://e-docs.bea.com/wls/docs70/faq/deploy.html#740987

Hunt down the mode var. in your startWebLogic.cmd script that specifies
production mode and set it to false.

Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]


-Original Message-
From: Shakti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 2 December 2003 4:00 PM
To: Struts Users Mailing List
Subject: Is it required to restart weblogic everytime after compiling ???
Need help Desperately .. :-(


Hi,
 I am using Struts  weblogic , My Question is each time i do some
changes in my .java files the changes dont' get reflected immediately. Each
time after compiling i have to restart weblogic :-( .. which is taking a
hell lot of my time .. Can anyone suggest some weblogic setting thru which i
dont' have to restart the sever again  again to reflect my changes made on
an already deployed application on weblogic .

Thanks  Regards,
Shakti.
P.S : I am getting frustrated while debugging my code after each and every
minute change i have to restart it which is taking most of my development
time :-(
I am using weblogic 72

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



RE: Is it required to restart weblogic everytime after compiling ?? ? Need help Desperately .. :-(

2003-12-02 Thread Nick Faiz
Sure, but that isn't the same as redeploying a war or ear without
restarting.

Nick

-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 2 December 2003 6:14 PM
To: Struts Users Mailing List
Subject: RE: Is it required to restart weblogic everytime after compiling ??
? Need help Desperately .. :-(

IMO Reloading is not possible for the classes in server classpath. eg beans
and other utility classes used by servlets or ejbs.




-Original Message-
From: Nick Faiz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 12:31 PM
To: 'Struts Users Mailing List'
Subject: RE: Is it required to restart weblogic everytime after
compiling ?? ? Need help Desperately .. :-(


Check this out:
http://e-docs.bea.com/wls/docs70/programming/deploying.html#1125125

Also see,
http://e-docs.bea.com/wls/docs70/faq/deploy.html#740987

Hunt down the mode var. in your startWebLogic.cmd script that specifies
production mode and set it to false.

Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]


-Original Message-
From: Shakti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 2 December 2003 4:00 PM
To: Struts Users Mailing List
Subject: Is it required to restart weblogic everytime after 
compiling ???
Need help Desperately .. :-(


Hi,
 I am using Struts  weblogic , My Question is each time i do some
changes in my .java files the changes dont' get reflected 
immediately. Each
time after compiling i have to restart weblogic :-( .. which 
is taking a
hell lot of my time .. Can anyone suggest some weblogic 
setting thru which i
dont' have to restart the sever again  again to reflect my 
changes made on
an already deployed application on weblogic .

Thanks  Regards,
Shakti.
P.S : I am getting frustrated while debugging my code after 
each and every
minute change i have to restart it which is taking most of my 
development
time :-(
I am using weblogic 72

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



This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst  Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

-
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: Is it required to restart weblogic everytime after compiling ???

2003-11-27 Thread Nick Faiz
Actually, you can simply drop your new .war into the staging directory,
without restarting the server.

I don't do that currently at work, but I've used WebLogic 7.0 to the above
at home.

You need to configure the server to do this, I'll try to bring in my config.
details from home for you after the weekend.

Nick Faiz.

-Original Message-
From: Srivastava, Ravi Prakash [mailto:[EMAIL PROTECTED] 
Sent: Friday, 28 November 2003 4:46 PM
To: 'Struts Users Mailing List'
Subject: RE: Is it required to restart weblogic everytime after compiling
???

Hi Shakti,

For weblogic you need to restart again and again if you are changing into
java files.
For jsp there is no need to restart. 


Thanx 
Ravi 

-Original Message-
From: Shakti [mailto:[EMAIL PROTECTED]
Sent: Friday, November 28, 2003 11:11 AM
To: Struts Users Mailing List
Subject: Is it required to restart weblogic everytime after compiling
???


Hi,
 I am using Struts  weblogic , My Question is each time i do some
changes in my .java files the changes dont' get reflected immediately. Each
time after compiling i have to restart weblogic :-( .. which is taking a
hell lot of my time .. Can anyone suggest some weblogic setting thru which i
dont' have to restart the sever again  again to reflect my changes made on
an already deployed application on weblogic .

Thanks  Regards,
Shakti.

DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.

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



anyone using jstl side by side with the strut taglibs?

2003-11-18 Thread Nick Faiz
Hi,
I'm nearing the end of a prototype for my first Struts application.
At first, I used JSTL to handle most of my iteration, declarations,
and conditional operations. Then, as I learnt more about the Struts taglibs,
I decided to simply use the Struts libraries, for the sake of consistency
with the framework.
Does anyone regularly combine JSTL and Struts taglib usage? I'm
curious as to whether or not it's an effective approach; I think it could
perhaps lead to confusion when developers first begin working on an
application using both libraries.

Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]

 


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



RE: anyone using jstl side by side with the strut taglibs?

2003-11-18 Thread Nick Faiz
Thanks Brice,
I just checked out Struts-EL. I think I'll begin using it with JSTL.

Nick

-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 19 November 2003 12:36 PM
To: Struts Users Mailing List
Subject: Re: anyone using jstl side by side with the strut taglibs?

Once you use EL, you don't have much of a choice than to use them 
side-by-side.

Nick Faiz wrote:

Hi,
   I'm nearing the end of a prototype for my first Struts application.
   At first, I used JSTL to handle most of my iteration, declarations,
and conditional operations. Then, as I learnt more about the Struts
taglibs,
I decided to simply use the Struts libraries, for the sake of consistency
with the framework.
   Does anyone regularly combine JSTL and Struts taglib usage? I'm
curious as to whether or not it's an effective approach; I think it could
perhaps lead to confusion when developers first begin working on an
application using both libraries.

Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]

 


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

  


-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



-
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: anyone using jstl side by side with the strut taglibs?

2003-11-18 Thread Nick Faiz
Gus,
http://jakarta.apache.org/struts/userGuide/building_view.html#struts-el

EL is an acronym for `Expression Language'.

Nick

-Original Message-
From: Gus Heck [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 19 November 2003 12:37 PM
To: Struts Users Mailing List
Subject: Re: anyone using jstl side by side with the strut taglibs?

Brice Ruth wrote:

 Once you use EL, you don't have much of a choice than to use them 
 side-by-side.


For the benefit of us noobs... what is EL?

-Gus


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



iterating through an arraylist

2003-11-11 Thread Nick Faiz
Can anyone point me to some sample code for handling an object which
consists of a couple of ArrayLists in an ActionForm?

I'm trying to do two things:

1. take a url var and select an ActionForm from a hashmap (cache) sitting in
application scope.

2. use that ActionForm in a struts form.

Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]

 


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



RE: Planning Struts Application Development

2003-10-28 Thread Nick Faiz
Lauri,
I'm still learning Struts myself, so I won't comment on its
scalability or give an opinion of it.
WebWork at OpenSymphony.com is an alternative MVC to consider.

Nick Faiz

-Original Message-
From: Lauri Jutila [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 29 October 2003 10:04 AM
To: [EMAIL PROTECTED]
Subject: Planning Struts Application Development

Hello folks,

I'm engaging in a web development project and my team is looking at
Struts as a primary framework candidate for the application. Before we
make final decision, I'd be glad to hear some commentary and experiences
from real-world Struts users.

Our project goal is to create an application which is leaning a little
towards web-based group-ware applications in terms of feature set. No,
we are not creating e-mail/calendar/task-list/foobar portal, but our app
will include some of the basic group-ware app features and share quite
many characteristics (different types of calendars come to mind).

We would like our application to support at least hundreds of concurrent
users. What kind of issues does this arise in terms of hardware and
software/application configurations? How many users per app server would
be feasible and how to handle multi-server environment gracefully? How
is caching supported or implemented in Struts?

What do you think are the fundamental issues to focus on design 
development? And if you think, based on my very poor description of
requirements, that Struts may not be the right framework, what are the
alternatives?

Best regards,

--
Lauri Jutila
[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]



ActionForm with a collection property or resizing array

2003-10-20 Thread Nick Faiz
Hi,
I want to extend an ActionForm so that it can hold a collection or
an array of another object. One of my views will change this data and
possibly add elements to the collection (or increase the size of the
underlying array).

I'm looking into a couple of ways to do it, can anyone suggest a
typical approach for Struts 1.1? 



Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]

 


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



tag help - wanting to represent a table with a scrollbar, a grid, etc.

2003-10-19 Thread Nick Faiz
Hi,
Is anyone aware of a tag library which can provide me with a table
within a table, which has a scroll bar?
I'm trying to represent a varying collection of reports within a
nested html table.
I thought I'd see if there was a common, tag orientated solution to
this before I started hunting for my own.

Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]

 


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



RE: Struts security

2003-10-09 Thread Nick Faiz
Is there a reason not to use declarative security in the deployment
descriptor for role based authorisation for each resource? 

I'll be heading down this track soon and that's what I had wanted to do.

Nick Faiz

-Original Message-
From: muzammil shahbaz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 9 October 2003 6:11 PM
To: zzStruts Users Mailing List
Subject: RE: Struts security

Exactly!!!

U got the point. That's what I use to handle security issues.

Keep it up :-)

--
From:  Stefan Trcko [SMTP:[EMAIL PROTECTED]
Sent:  Thursday, October 09, 2003 12:57 PM
To:  [EMAIL PROTECTED]
Cc:  Struts Users Mailing List
Subject:  Re: Struts security

File: ATT6.txt

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



having trouble loading ActionServlet on startup

2003-10-08 Thread Nick Faiz
Hi,
This is my first post to this list and I'm hoping it will have a
quick answer for the problem I'm encountering. I've googled on this issue
quite a bit and know I am not the first to encounter it. I can't seem to
find a direct suggestion of how to solve the problem, however.

My application can't load the ActionServlet on startup. I'm coding
this for WebLogic 7.0 at the moment, and will consider using Tomcat or JBoss
(with Tomcat) as an alternative target to test out these issues.

I've checked that struts.jar is within WEB-INF/lib. 

I'm probably seeing a configuration problem as I can successfully
deploy and click through the struts-blank.war example.

I'm working through various Struts tutorials and using a base
configuration. Here's a copy of the relevant section from my web.xml:

  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet

I'm seeing the following exception when deploying the application:

8/10/2003 17:54:17 Error HTTP 101216 Servlet: action failed to
preload on startup in weba
pp: cepts
javax.servlet.UnavailableException: Parsing error processing resource path
at
org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.j
ava:1035)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.j
ava:1014)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
55)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)

Any help is appreciated.

Lastly, could anyone recommend a good Struts book or favourite
tutorial? The O'Reilly publication is what I'm opting towards now.

Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]

 


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



RE: having trouble loading ActionServlet on startup

2003-10-08 Thread Nick Faiz
Fran,
Thanks for your reply.

Yes, it was a messy struts-config file. I had two input attributes
within the one action. :)

Thanks,
Nick



-Original Message-
From: Hesser, Fran X [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 9 October 2003 12:02 AM
To: [EMAIL PROTECTED]
Subject: RE: having trouble loading ActionServlet on startup

We had a similar issue.  The problem was our struts config.xml file was
not getting parsed correctly.  For some reason, the top three header
lines all wound up being on the same line (when viewed in note pad).  We
went in a placed hard returns to break up the lines (max length 80), and
that resolved the problem.

-Original Message-
From: Nick Faiz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 08, 2003 3:29 AM
To: '[EMAIL PROTECTED]'
Subject: having trouble loading ActionServlet on startup


Hi,
This is my first post to this list and I'm hoping it will have a
quick answer for the problem I'm encountering. I've googled on this
issue quite a bit and know I am not the first to encounter it. I can't
seem to find a direct suggestion of how to solve the problem, however.

My application can't load the ActionServlet on startup. I'm
coding this for WebLogic 7.0 at the moment, and will consider using
Tomcat or JBoss (with Tomcat) as an alternative target to test out these
issues.

I've checked that struts.jar is within WEB-INF/lib. 

I'm probably seeing a configuration problem as I can
successfully deploy and click through the struts-blank.war example.

I'm working through various Struts tutorials and using a base
configuration. Here's a copy of the relevant section from my web.xml:

  servlet
servlet-nameaction/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet

I'm seeing the following exception when deploying the
application:

8/10/2003 17:54:17 Error HTTP 101216 Servlet: action failed
to preload on startup in weba
pp: cepts
javax.servlet.UnavailableException: Parsing error processing resource
path
at
org.apache.struts.action.ActionServlet.handleConfigException(ActionServl
et.j
ava:1035)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.j
ava:1014)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:9
55)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)

Any help is appreciated.

Lastly, could anyone recommend a good Struts book or favourite
tutorial? The O'Reilly publication is what I'm opting towards now.

Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [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: What Is Wrong With My web.xml File (Struts)

2003-10-08 Thread Nick Faiz
Hi Caroline,
Check out the DTD - 
!ELEMENT security-role (description?, role-name) .

Try having one role-name per security-role.

Also, ensure that your security role is positioned in the right
place in your web.xml (again, look at the DTD).

Nick Faiz.

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 9 October 2003 1:53 PM
To: [EMAIL PROTECTED]
Subject: What Is Wrong With My web.xml File (Struts)

My Struts application worked well until I added
security in the web.xml file.  I got the error message
shown below and I cannot spot any mistake with my
eyes:

[QUOTE]
2003-10-08 23:33:25 Exception initializing
TldLocationsCache: XML parsing error on file
/WEB-INF/web.xml: (line 137, col 19): The content of
element type security-role must match
(description?,role-name).
[/QUOTE]

and my web.xml file is:
[CODE]
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app

  !-- Configuring Artimus --
  servlet
servlet-nameartimus/servlet-name
   
servlet-classorg.apache.artimus.http.ArtimusServlet/servlet-class
!-- Our application properties --
init-param
  param-namedefault/param-name
 
param-valueresources/artimus.properties/param-value
/init-param
!-- Our connection adaptor --
init-param
  param-nameadaptor/param-name
 
param-valueorg.apache.commons.scaffold.sql.PoolmanAdaptor/param-value
/init-param
init-param
  param-nameadaptor.key/param-name
  param-valuejdbc-artimus/param-value
/init-param
!-- Alternate adaptors
init-param
  param-nameadaptor/param-name
 
param-valueorg.apache.commons.scaffold.sql.ServletAdaptor/param-value
/init-param
init-param
  param-nameadaptor.key/param-name
 
param-valueorg.apache.struts.action.DATA_SOURCE/param-value
/init-param
init-param
  param-nameadaptor/param-name
 
param-valueorg.apache.commons.scaffold.sql.ConnectionAdaptor/param-value
/init-param
init-param
  param-nameadaptor.key/param-name
  param-valuejdbc/artimus/param-value
/init-param
--
!-- Our startup priority --
load-on-startup1/load-on-startup
  /servlet

  !-- Standard Struts configuration --
  servlet
servlet-nameaction/servlet-name
!--
org.apache.struts.tiles.ActionComponentServlet --
   
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
 
param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
init-param
  param-namenull/param-name
  param-valuefalse/param-value
/init-param
  !-- Startup priority --
load-on-startup2/load-on-startup
  /servlet

  !-- servlet-mappings, welcome-file-list --
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern/do/*/url-pattern
  /servlet-mapping
  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list

  !-- taglibs --
  taglib
taglib-uri/tags/struts-bean/taglib-uri
   
taglib-location/WEB-INF/lib/struts-bean.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/struts-html/taglib-uri
   
taglib-location/WEB-INF/lib/struts-html.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/struts-logic/taglib-uri
   
taglib-location/WEB-INF/lib/struts-logic.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/tiles/taglib-uri
   
taglib-location/WEB-INF/lib/struts-tiles.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/request/taglib-uri
   
taglib-location/WEB-INF/lib/request.tld/taglib-location
  /taglib

  !-- Our secuity settings --
  security-constraint
web-resource-collection
 
web-resource-nameAdministrative/web-resource-name
!-- The URLs to protect --
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  !-- The authorized users --
  role-nameadministrator/role-name
  role-nameadvisor/role-name
  role-nameeditor/role-name
  role-namecontributor/role-name
/auth-constraint
user-data-constraint
  transport-guaranteeNONE/transport-guarantee
/user-data-constraint
  /security-constraint

  login-config
auth-methodFORM/auth-method 
form-login-config 
 
form-login-page/signin/logon.jsp/form-login-page  
 
form-error-page/signin/logon.jsp?error=true/form-error-page
/form-login-config  
  /login-config 

  !-- Our authentification strategy --
  security-role
descriptionRegistered Members/description
role-nameadministrator/role-name
role-nameadvisor/role-name
role-nameeditor/role-name
role-namecontributor/role-name
  /security-role   // line 137 is here

/web-app
[/CODE

advice on using a pre-existing bean with an actionform

2003-10-08 Thread Nick Faiz
Hi,
I'm trying to achieve something like the below using Struts' form
tags:

project name: html:text property=name value=%=
newProject.getName() %/

I'd like to do this for a list of form fields with the pre-existing
bean, newProject. It's for a confirmation form before writing to a database.

Regards,
Nick Faiz
B2B e-Commerce Developer
Corporate Express Australia Ltd.

Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]

 


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