PROBLEM SOLVED - Re: problem with showing ActionMessages

2007-06-20 Thread Aleksandar Matijaca

First of all, thank you all for replying.  Jeff you are right, invalid.login
was put into the WRONG PROPERTIES file.  I moved the projects
around, and a new Properties file was created, however, the
struts-config.xml
was not updated with the location of the new properties file, instead,
the old one was being used.  How did I find this out?  I decided to
try the latest 1.x struts - the 1.3.8 - and, 1.3.8 does NOT terminate
ungracefully like 1.2 - it actually said in the rendered message that
I am missing a property..

Once again, thanks to everyone that helped...

Cheers, Alex.


On 6/20/07, Jeff Amiel [EMAIL PROTECTED] wrote:


On 6/19/07, Aleksandar Matijaca [EMAIL PROTECTED] wrote:


 All resources keys are available etc...

The code looks rightare you sure that the key invalid.login is
available?
I'm pretty sure that the results would be as you see if it was not.
Try  bean:message key=invalid.login/  somewhere in your jsp.

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




problem with showing ActionMessages

2007-06-19 Thread Aleksandar Matijaca

Hi there,

I am having some really stupid issues -- I am using Struts 1.2, and I have
an action
that does the following:

   public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception {

   ActionMessages messages = new ActionMessages();
   messages.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage(
invalid.login));
   saveMessages(request, messages);

   return mapping.findForward(failure);

   }


The relevant JSP section looks like this:


logic:messagesPresent message=true 


   tr
   td colspan=2font color=redbean:message key=errorTitle
//font
   /td
   /tr
   html:messages message=true id=my_messages   

   tr
   tdnbsp;nbsp;/td
   tdfont color=redbean:write name=my_messages
//font/td
   /tr
   /html:messages


/logic:messagesPresent

All resources keys are available etc...  When the Action executes, I get the
following:

2007-06-20 00:06:52.051::WARN:  Nested in javax.servlet.ServletException:
javax.servlet.jsp.JspException: Cannot find bean my_messages in any scope:
javax.servlet.jsp.JspException: Cannot find bean my_messages in any scope
   at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:934)
   at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:225)

The error appears to be around the bean:write name=my_messages / tag.
If I replace the bean:message tag with just a XX string,
the XX appears, and there are no exceptions...

So, WHAT GIVES??  I have tried just about everything at this point, and am
getting desperate...

Thanks, Alex.


how to enable/disable validation

2006-12-28 Thread Aleksandar Matijaca

Hi there,

I would like to be able to programatically control weather I am doing
validation or not.
For example, I have validate=true in my struts-config file, but, I would
like to be
able to decide myself in code (in a Filter, or controller??) if  the
validation should
actually be done..  How can this be done??

Thanks, alex.


Re: question: how to support both MVC and Struts?

2006-01-30 Thread Aleksandar Matijaca
I believe that it must have some sort of an extension,
so as to accomodate the processing by the Action servlet.
It does not have to be a .do, but it must have some sort
of an extension -- this get set-up in the web.xml file in the
WEB-INF directory...

Cheers, a.m.

(currently doing a project in JSF (IBM) and not liking it one bit)...



2006/1/29, Sun Shine [EMAIL PROTECTED]:

 Hi,
 I'm rewriting an existing MVC project into Struts. I
 have to keep the existing servlet name e.g.
 'fooServlet' available for 30 days. How can I support
 the new 'fooServlet.do' code and also support the old
 MVC code 'fooServlet'? (btw, I have to keep the
 fooServlet name for the rewrite).

 In Struts, do I have to use the *.do??

 Appreciate any help!
 Thanks.

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

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




Re: validation question...

2005-07-22 Thread Aleksandar Matijaca
I like the CSS 'trick' -- I will try it tonight !

Thanks again Wendy,

Regards, Alex.


On 7/22/05, Wendy Smoak [EMAIL PROTECTED] wrote:
 
 From: Aleksandar Matijaca [EMAIL PROTECTED]
  I would like
  to automatically place a little red * right beside the input field.
  For my password confirmation field, wnen I put
  html:errors property=confirm_password/
  beside the text field, I get the WHOLE STRING for the 'required'
  validation,
  instead, I would like to display only a *.
 
 The logic:messagesPresent tag might help...
 http://struts.apache.org/userGuide/struts-logic.html#messagesPresent
 
 There are also 'errorStyle' and 'errorStyleClass' on the html:* tags. If
 you can do it in CSS, you can apply it to the form element _only_ when 
 there
 is an error for that property.
 
 --
 Wendy Smoak
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



validation question...

2005-07-21 Thread Aleksandar Matijaca
Hi there,
I am currently using the struts validator, and it is working pretty good.
My basic error block looks like this:


logic:messagesPresent


table
tr
td colspan=2font color=redbean:message key=errorTitle 
//font/td
/tr
html:messages id=error

tr
tdnbsp;nbsp;/td
tdfont color=redbean:write name=error //font/td
/tr
/html:messages
/table

/logic:messagesPresent
 
As I said, it loks fairly simple and it works. HOWEVER, I would like
to automatically place a little red * right beside the input field.
For my password confirmation field, wnen I put

html:errors property=confirm_password/

beside the text field, I get the WHOLE STRING for the 'required' validation,
instead, I would like to display only a *. I tried
 html:errors property=confirm_password*/html:errors
 But that does not work, because html:errors tag does not take a body...
 Any ideas?
 Thanks, Alex.


Re: validation question...

2005-07-21 Thread Aleksandar Matijaca
Thanks Laurie, I will try it !!
 Cheers, Alex.


 On 7/21/05, Laurie Harper [EMAIL PROTECTED] wrote: 
 
 You could add errorClassId on the input element and use CSS to insert an
 image of a little red *... :-) I can't think of a clean way to find out if
 an error exists for a particular property though. This might work (haven't
 tried it):
 
 c:if test=${not empty messages.message['property']}*/c:if
 
 L.
 
 Aleksandar Matijaca wrote:
 
  Hi there,
  I am currently using the struts validator, and it is working pretty 
 good.
  My basic error block looks like this:
 
 
  logic:messagesPresent
 
 
  table
  tr
  td colspan=2font color=redbean:message key=errorTitle
  //font/td
  /tr
  html:messages id=error
 
  tr
  tdnbsp;nbsp;/td
  tdfont color=redbean:write name=error //font/td
  /tr
  /html:messages
  /table
 
  /logic:messagesPresent
 
  As I said, it loks fairly simple and it works. HOWEVER, I would like
  to automatically place a little red * right beside the input field.
  For my password confirmation field, wnen I put
 
  html:errors property=confirm_password/
 
  beside the text field, I get the WHOLE STRING for the 'required' 
 validation,
  instead, I would like to display only a *. I tried
  html:errors property=confirm_password*/html:errors
  But that does not work, because html:errors tag does not take a body...
  Any ideas?
  Thanks, Alex.
 
 
 
 --
 Laurie, Open Source advocate, Java geek and novice blogger:
 http://www.holoweb.net/laurie
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: validation question...

2005-07-21 Thread Aleksandar Matijaca
It didn't work, but thanks for the effort Laurie...
 Regards, Alex.


 On 7/21/05, Laurie Harper [EMAIL PROTECTED] wrote: 
 
 You could add errorClassId on the input element and use CSS to insert an
 image of a little red *... :-) I can't think of a clean way to find out if
 an error exists for a particular property though. This might work (haven't
 tried it):
 
 c:if test=${not empty messages.message['property']}*/c:if
 
 L.
 
 Aleksandar Matijaca wrote:
 
  Hi there,
  I am currently using the struts validator, and it is working pretty 
 good.
  My basic error block looks like this:
 
 
  logic:messagesPresent
 
 
  table
  tr
  td colspan=2font color=redbean:message key=errorTitle
  //font/td
  /tr
  html:messages id=error
 
  tr
  tdnbsp;nbsp;/td
  tdfont color=redbean:write name=error //font/td
  /tr
  /html:messages
  /table
 
  /logic:messagesPresent
 
  As I said, it loks fairly simple and it works. HOWEVER, I would like
  to automatically place a little red * right beside the input field.
  For my password confirmation field, wnen I put
 
  html:errors property=confirm_password/
 
  beside the text field, I get the WHOLE STRING for the 'required' 
 validation,
  instead, I would like to display only a *. I tried
  html:errors property=confirm_password*/html:errors
  But that does not work, because html:errors tag does not take a body...
  Any ideas?
  Thanks, Alex.
 
 
 
 --
 Laurie, Open Source advocate, Java geek and novice blogger:
 http://www.holoweb.net/laurie
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: how forward to servlets?

2005-07-19 Thread Aleksandar Matijaca
How about:

response.sendRedirect(/yourcontext/YourServlet);

inside of your code??

Regards, Alex.


On 7/19/05, Dave Newton [EMAIL PROTECTED] wrote:
 
 Jane Eisenstein wrote:
 
  servlet
  servlet-nameLogonServlet/servlet-name
  display-nameLogonServlet/display-name
  servlet-classcom.med.servlet.cp.LogonServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-nameLogonServlet/servlet-name
  url-pattern/servlet/com.med.servlet.cp.LogonServlet/url-pattern
  /servlet-mapping
 
 Its struts-config.xml contains
 global-forwards
 forward name=logonServlet
 path=/servlet/com.med.servlet.cp.LogonServlet/
 /global-forwards
 
 When I try to load this servlet via this code:
 
 frame name=main
  src=logonServlet.dotargetAction=displayLogonPage
  scrolling=auto
  marginwidth=0
  noresize
  marginheight=0
 
 the request reaches the ActionServlet but results in this error being
 logged:
 RequestProces E org.apache.struts.action.RequestProcessor Invalid path
 /logonServlet was requested
 
 What am I doing wrong?
 
 
 Mixing Struts and servlets ;)
 
 Creating a forward doesn't create an action--what is logonServlet.do? If
 it isn't an action, then why would it have a .do extension? When the
 request processor sees a .do (if you're set up to do extension-based
 struts mappings) it'll try to fire an Action.
 
 Also, you can't use a forward definition in a non-struts anything,
 because only struts knows about forwards.
 
 If you are just using a servlet as the contents of a frame then you
 don't need to interact with struts at all.
 
 Dave
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: how forward to servlets?

2005-07-19 Thread Aleksandar Matijaca
I don't think so, but there may be somebody more experienced that can tell 
you better...

a.m.



On 7/19/05, Jane Eisenstein [EMAIL PROTECTED] wrote:
 
 I would like to be able to forward to the existing servlets from Struts
 code in a manner that will not need to change when a servlet is replaced
 by an equivalent action. Could I use a ForwardAction action to forward
 to the servlets?
 
 -Original Message-
 From: Dave Newton [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 19, 2005 3:32 PM
 To: Struts Users Mailing List
 Subject: Re: how forward to servlets?
 
 Jane Eisenstein wrote:
 
 ...
 
 What am I doing wrong?
 
 
 Mixing Struts and servlets ;)
 
 Creating a forward doesn't create an action--what is logonServlet.do? If
 it isn't an action, then why would it have a .do extension? When the
 request processor sees a .do (if you're set up to do extension-based
 struts mappings) it'll try to fire an Action.
 
 Also, you can't use a forward definition in a non-struts anything,
 because only struts knows about forwards.
 
 If you are just using a servlet as the contents of a frame then you
 don't need to interact with struts at all.
 
 Dave
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: struts and multi-level access - please give me your ideas how to restructure..

2005-07-15 Thread Aleksandar Matijaca
Hi Wendy,

these roles you mention, are these JAAS roles? I think that JAAS
roles would be way too much of an overkill for me...

Cheers, Alex.


On 7/15/05, Wendy Smoak [EMAIL PROTECTED] wrote:
 
 From: Aleksandar Matijaca [EMAIL PROTECTED]
  I have an application that I am working on that requires two different
  role levels (administrator and user).
  The administrator, will have some extra links visible to them. I want to
  use only one struts-config file.
 
 Have you looked at Struts Menu? I'm currently using a tabbed menu that's
 based on roles.
 http://struts-menu.sourceforge.net/
 
 --
 Wendy Smoak
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: struts and multi-level access - please give me your ideas how to restructure..

2005-07-15 Thread Aleksandar Matijaca
Thanks Wendy, I realy appreciate the effort you put in to
explain these things.

Cheers, Alex.


On 7/15/05, Wendy Smoak [EMAIL PROTECTED] wrote:
 
 From: Aleksandar Matijaca [EMAIL PROTECTED]
 
  these roles you mention, are these JAAS roles? I think that JAAS
  roles would be way too much of an overkill for me...
 
 Definitely not JAAS. And in my case, not even Container-Managed Security
 (though it pretends to be). :)
 
 I have Struts Menu configured to use the result of calling
 request.isUserInRole() to decide whether to display a menu item. This is 
 as
 simple as using the magic value 'rolesAdapter' in the tag, which causes 
 it
 to use its RolesPermissionsAdapter:
 
 menu:useMenuDisplayer name=TabbedMenu
 bundle=org.apache.struts.action.MESSAGE
 permissions=rolesAdapter ...
 
 I didn't look closely, but I'm fairly sure you can plug in a different
 PermissionsAdapter if you need to.
 
 In my case, authorization info is stored in a database [that does not 
 easily
 speak JDBC] underneath a 3rd party telnet app. I have a Filter in front of
 the webapp that gets the authorization info out of the database, places a
 'User' object in the session, and then wraps the request and overrides
 isUserInRole().
 
 To do this right you'd probably want to override getUserPrincipal as
 well-- in fact if you can wait a bit, I *think* Frank has in mind to add a
 generic, configurable version of this idea to his Java Web Parts project.
 
 --
 Wendy Smoak
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



html:link quesiton

2005-07-15 Thread Aleksandar Matijaca
Hi there,

I am trying to use html:link tag, and I have no problem just doing a plain 
html:link, however, I would
like to have it render the html:link into something like -- a 
href=/myapp/[EMAIL PROTECTED] /a

That is, I am not sure how to specify the html:link so that it takes par1 
and [EMAIL PROTECTED] If you have a nice
example, I would appreciate it.

Cheers, Alex.


struts and multi-level access - please give me your ideas how to restructure..

2005-07-14 Thread Aleksandar Matijaca
Hi there,

I have an application that I am working on that requires two different role 
levels (administrator and user).
The administrator, will have some extra links visible to them. I want to use 
only one struts-config file.
I am currently running into a scalability issue -- here is what I mean:



action path=/someAction ... 

forward name=a_success path=someAdministratorPath.def !-- I am using 
tiles --
forward name=u_success path=someUserPath.def !-- I am using tiles --

/aciton

The someAdministratorPath.def has a jsp with different kind of a menu 
structure - for administrators only,
and someUserPath.def has a jsp with a subset of different menu structures -- 
the only real difference between
the two .def files is a single jsp.

Somehow the above seems awkward and unscalable to me, and I am afraid I will 
run into a problem later. 
I know that I can probably put in some c:if statements in one of the JSPs, 
and there discriminate between
a User and Administrator, but somehow, that seems like a band-aid solution.

If you have any idea on how to restructure this thing, please let me know.

Thanks, Alex.


Re: struts and multi-level access - please give me your ideas how to restructure..

2005-07-14 Thread Aleksandar Matijaca
That is a very interesting tag, I have never used it - thanks Laurie!!
 Cheers, Alex.


 On 7/14/05, Laurie Harper [EMAIL PROTECTED] wrote: 
 
 Not sure what a .def file is, but I think you're on the right track with
 combining them and using conditional logic within the JSP to control 
 what's
 displayed based on user role. Look at logic:present role=''/ for a 
 simple
 way to wrap role-dependent markup in your JSPs:
 
 http://struts.apache.org/userGuide/struts-logic.html#present
 
 L.
 
 Aleksandar Matijaca wrote:
  Hi there,
 
  I have an application that I am working on that requires two different 
 role
  levels (administrator and user).
  The administrator, will have some extra links visible to them. I want to 
 use
  only one struts-config file.
  I am currently running into a scalability issue -- here is what I mean:
 
 
 
  action path=/someAction ... 
 
  forward name=a_success path=someAdministratorPath.def !-- I am 
 using
  tiles --
  forward name=u_success path=someUserPath.def !-- I am using tiles 
 --
 
  /aciton
 
  The someAdministratorPath.def has a jsp with different kind of a menu
  structure - for administrators only,
  and someUserPath.def has a jsp with a subset of different menu 
 structures --
  the only real difference between
  the two .def files is a single jsp.
 
  Somehow the above seems awkward and unscalable to me, and I am afraid I 
 will
  run into a problem later.
  I know that I can probably put in some c:if statements in one of the 
 JSPs,
  and there discriminate between
  a User and Administrator, but somehow, that seems like a band-aid 
 solution.
 
  If you have any idea on how to restructure this thing, please let me 
 know.
 
  Thanks, Alex.
 
 
 
 --
 Laurie, Open Source advocate, Java geek and novice blogger:
 http://www.holoweb.net/~laurie/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



embedding forms

2005-07-07 Thread Aleksandar Matijaca
Hi there,

I am having a problem, trying to embed one ValidatorForm inside of another 
--- specifically this is the situation:

I have a class InstitutionForm and a class DnaForm -- I am trying to do the 
following

public class InstitutionForm extends ValidatorForm {

private DnaForm dnaForm;

private String institution_name;


public String getInstitution_name() {
return institution_name;
}

public void setInstitution_name(String institution_name) {
this.institution_name = institution_name;
}

public DnaForm getDnaForm() {
return dnaForm;
}
public void setDnaForm(DnaForm dnaForm) {
this.dnaForm = dnaForm;
}

}


public class DnaForm extends ValidatorForm {

private String first_name;

public String getFirst_name() {
return first_name;
}
public void setFirst_name(String first_name) {
this.first_name = first_name;
}

}


In my JSP, I have the following:

html:form action=/processRequestAccess method=POST
table border=1
tr
tdbean:message key=institution-name //td
tdhtml:text property=institution_name //td
tdbean:message key=title //td
td/td
/tr
tr
tdbean:message key=address1 //td
td/td
tdbean:message key=first-name //td
tdhtml:text property=dnaForm.first_name //td !-- DOESN'T LIKE THIS 
--
/tr

.

/html:form

the rendered JSP produces this:

12:25:33,653 INFO [TilesRequestProcessor] Tiles definition factory found for 
request processor ''.
12:25:36,567 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Invalid argument looking up property 
dnaForm.first_name of bean org.apache.struts.taglib.html.BEAN
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:1017)
at org.apache.struts.taglib.html.BaseFieldTag.renderInputElement(
BaseFieldTag.java:153)
at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java
:96)
at 
org.apache.jsp.WEB_002dINF.jsp.common.request_005faccess_jsp._jspx_meth_html_text_1
(org.apache.jsp.WEB_002dINF.jsp.common.request_005faccess_jsp:342)
at 
org.apache.jsp.WEB_002dINF.jsp.common.request_005faccess_jsp._jspx_meth_html_form_0
(org.apache.jsp.WEB_002dINF.jsp.common.request_005faccess_jsp:154)
at org.apache.jsp.WEB_002dINF.jsp.common.request_005faccess_jsp._jspService(
org.apache.jsp.WEB_002dINF.jsp.common.request_005faccess_jsp:81)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)


I am using JBoss 4.x

It is obvious, that the jsp rendering does not 'like' the
dnaForm.first_name--- is there a decent way of embedding these
Validatorform, one inside of
the other,
or should I just do a InstutionForm extends DnaForm instead??

Thanks, Alex.


Re: embedding forms

2005-07-07 Thread Aleksandar Matijaca
Wouldn't that give me a null-pointer exception?? I will give it a try,
and let you kow!

Thanks for the response, Alex.


On 7/7/05, Hubert Rabago [EMAIL PROTECTED] wrote:
 
 The problem could be that getDnaForm() is returning null. See if it
 makes a difference if getDnaForm() instantiates dnaForm before
 returning it if it's currently null.
 
 Hubert
 
 
 On 7/7/05, Aleksandar Matijaca [EMAIL PROTECTED] wrote:
  Hi there,
 
  I am having a problem, trying to embed one ValidatorForm inside of 
 another
  --- specifically this is the situation:
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: embedding forms

2005-07-07 Thread Aleksandar Matijaca
Hubert, that is EXACTLY what was wrong -- you were 100% correct!
I guess, sometimes, it just takes 'another eye' to see things properly..

Cheers, Alex.


On 7/7/05, Aleksandar Matijaca [EMAIL PROTECTED] wrote:
 
 Wouldn't that give me a null-pointer exception?? I will give it a try,
 and let you kow!
 
 Thanks for the response, Alex.
 
 
 On 7/7/05, Hubert Rabago [EMAIL PROTECTED] wrote:
  
  The problem could be that getDnaForm() is returning null. See if it
  makes a difference if getDnaForm() instantiates dnaForm before
  returning it if it's currently null.
  
  Hubert
  
  
  On 7/7/05, Aleksandar Matijaca  [EMAIL PROTECTED] wrote:
   Hi there,
  
   I am having a problem, trying to embed one ValidatorForm inside of 
  another
   --- specifically this is the situation: 
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  



fake emails --- Re: M Galbreath

2005-07-06 Thread Aleksandar Matijaca
People, it is inconceivable to me that a dumb-witted employer can fire 
somebody
over an email!! Don't these people know that a fake email can be created by 
anybody?
I can make myself look like M. Galbreath in no time at all on email. All he 
had to
say was --- This is not me, somebody is faking my email on this email 
list. There is
no way to PROVE where or from whom, a certain email came from, unless you 
start looking
for IP addresses in the email headers. However, if person  forwarded the 
emails
to his boss, and then his boss had a look at the email archives at their 
corporate/government
servers, and found those same emails there... Well that would be a different 
story

Regards, Alex.


On 7/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 I probably should not respond, but obviously I could not stop myself
 from doing so..
 1: How sure can we be that Mark wrote the message about him being fired
 over this
 2: If he did write this, AND the message is true, it seems far fetched
 that one gets fired over just posting in this thread (although his style
 is far from respectable)
 3: His actions in this forum (as far as I experienced it last week) is
 likely to trigger others to do something about it.. So he kinda brought
 it upon himself by provoking a maillist that should be far from name
 calling and showing lots of disrepect to many of us.. It should be a
 technical forum on the use of struts. Mark clearly violated several
 ethics with almost, if not all, of his posts...
 4: Maybe he was not allowed to use Intenet during business hours.
 5: Yes if this is the sole reason for him being fired, it is a bit over
 the top and the one who sent the thread summary to his director probably
 should not have done that. On the other hand, Mark is part of a public
 function and therefor has to answer to the public and therefor should
 have highg value of ethics.. His clear way of violating such ethics
 mgith be reason enough to have distrust in his addition to his public
 function, which kinda would make it a public's problem..
 6: bad carma?
 
 To make a long story short: he would not have anything to worry form
 this thread if he simply would have been polite and respectfull...
 
 Just my two cents...
 
 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]
 Sent: woensdag 6 juli 2005 18:07
 To: Struts Users Mailing List
 Subject: Re: M Galbreath
 
 
 I would like the person who sent this to know that they are the lowest
 form of life on the planet.
 
 Larry
 
 
 On 7/6/05, netsql [EMAIL PROTECTED] wrote:
  We all all sincererly very sorry, we just wanted a slap on the wrist
  from all the noise.
 
  .V
 
 
  Mark Galbreath wrote:
   Thanks to whomever emailed last weeks nonsense thread to the
   Director of the Board of Elections. It made me look like a racist
   and I was fired this morning. The State is also looking into
   whether my use of an official email address for that discussion is
   in violation of state law. You did your work well, you low-life
   bastard.
  
   Signing off
   Mark
  
 
 
  -
  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]
 
 
 -
 ATTENTION:
 The information in this electronic mail message is private and
 confidential, and only intended for the addressee. Should you
 receive this message by mistake, you are hereby notified that
 any disclosure, reproduction, distribution or use of this
 message is strictly prohibited. Please inform the sender by
 reply transmission and delete the message without copying or
 opening it.
 
 Messages and attachments are scanned for all viruses known.
 If this message contains password-protected attachments, the
 files have NOT been scanned for viruses by the ING mail domain.
 Always scan attachments before opening them.
 -
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Printing Bills

2005-07-06 Thread Aleksandar Matijaca
PDF is definitely the way to go While not strictly a struts thing -- the 
way to do it in my opinion is:

text from the article --- XML (data from the article in XML format) --- 
create an XSL:FO file using
some kind of a tool ( http://altova.com/ ) has demo software you can try for 
this -- XSL:FO + XML + FOP ( http://xml.apache.org/fop/ ) -- PDF !!!

Lickity split, 2 weeks of work or so...

Cheers, Alex.



On 7/6/05, Rafael Taboada [EMAIL PROTECTED] wrote:
 
 Hi folks, i'm developing a project in struts, this project is about 
 selling
 management.
 When the user selects some articles in order to sell them, there is a
 module with the client name and the articles list.
 I need to print that object: the bill. I'm in a hurry and I need ur
 experience in this kind of things.
 Do u know how to print bills? I mean, it has to have a format because 
 we'll
 print in a piece of paper which it has a specific place for the client 
 name
 and a specific place for the list of articles with its prices and 
 quantity.
 So I don't know how to do this. Please could u share ur experience?
 Perhaps, is there any project about this?.
 Thanks in advance
 
 --
 Rafael Taboada
 Software Engineer
 
 Cell : +511-97753290
 
 No creo en el destino pues no me gusta tener la idea de controlar mi 
 vida
 



Re: Printing Bills

2005-07-06 Thread Aleksandar Matijaca
There are a number of commercial products out there -- the products I 
outlined to you are open source, except the altova
product... This is actualy much simpler then it seems Rafael -- have look at 
FOP...

Regards, Alex.


On 7/6/05, Rafael Taboada [EMAIL PROTECTED] wrote:
 
 So aren't there any other way that PDF?
 
 
 --
 Rafael Taboada
 Software Engineer
 
 Cell : +511-97753290
 
 No creo en el destino pues no me gusta tener la idea de controlar mi 
 vida
 



Re: Newbie: Where to put instance for database access?

2005-07-06 Thread Aleksandar Matijaca
Create a singleton class, that holds the instance of a connection in a 
ThreadLocal class in that singleton --
this way you don't have to keep stuff in the session...

Regards, Alex.


On 7/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 Hi!
 
 I have maybe a simple question:
 
 My web-app has to get data out of a database. I have a class 
 DatabaseHandler
 which
 holds a connection to the database and provides methods to query it. I 
 would
 like to
 have only one instance of this class in my web-app. But I don't know where
 to put it.
 Should it be stored in the ServletContext for application scope? But how 
 do
 I access
 this instance from my Actions? Or would it be better to use data-sources? 
 If
 I should
 use them, does anybody know a good tutorial on the internet? Perhaps
 hibernate would
 be a good choice too, but I think its a bit oversized for my application.
 You see - I
 am a total newbie concerning the use of databases with struts. Please
 help!!!
 
 Peter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Printing Bills

2005-07-06 Thread Aleksandar Matijaca
Interesting, we didn't have that problem at all. I just wish that there was 
a better way of
including graphic objects that were created -on-the-fly...

Regards, Alex.


On 7/6/05, Nick Heudecker [EMAIL PROTECTED] wrote:
 
 I would either use JasperReports to create a simple report definition,
 or use IText to create the PDF. When we tried to use FOP, we had to
 embed the fonts which resulted in HUGE PDFs.
 
 On 7/6/05, Martin Gainty [EMAIL PROTECTED] wrote:
  Rafael
 
  Now I understand..
  You can use Crystal Reports to pretty print using cascading style
  stylesheets for formatting but if you want hardcopy used by most of the
  agencies of the US I would output to PDF
  Saludos Cordiales!
 
  Martin-
 
  - Original Message -
  From: Rafael Taboada [EMAIL PROTECTED]
  To: Struts List user@struts.apache.org
  Sent: Wednesday, July 06, 2005 2:13 PM
  Subject: Re: Printing Bills
 
 
  So aren't there any other way that PDF?
 
 
  --
  Rafael Taboada
  Software Engineer
 
  Cell : +511-97753290
 
  No creo en el destino pues no me gusta tener la idea de controlar mi 
 vida
 
  -
  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: forwarding out

2005-07-05 Thread Aleksandar Matijaca
I would not actionforward, I would just get a servlet context, and 
redirect

a.m.



On 7/5/05, Lucas Bern [EMAIL PROTECTED] wrote:
 
 
 Hi all
 
 I neeed to forwars form my action to a page out side my context...
 
 something like return new ActionForward(www.google.comhttp://www.google.com
 );
 
 does anybody know haw to do it??
 
 
 
 thanks
 
 
 -
 1GB gratis, Antivirus y Antispam
 Correo Yahoo!, el mejor correo web del mundo
 Abrí tu cuenta aquí



Re: [OT] Re: Unacceptable Behaviour of Mark Galbreath

2005-07-02 Thread Aleksandar Matijaca
On 7/2/05, Dakota Jack [EMAIL PROTECTED] wrote:
 The first person who steps far enough over the line is going to be
 slammed with a lawsuit by yours truly.  You are getting close

A lawsuit??  On the basis of what??  Slander?  On the internet
you can say anything you want, and get away with it  I mean, come
on --- people 'slander' McDonalds, WalMart, Microsoft on the net -- and
what happens from it??  NOTHING...  We all kow email addresses
can be faked...  I suggest you talk to a lawyer first

Regards, a.m.



 Friedman.  Impish grin that!
 
 Mark could care less about code.  I get crossways with people because
 I care about code.  Also, James and I are not really on the best terms
 and he and Mark have been buds for a long time.
 
 And, Friedman, that offering does not warrant the description as a
 thought. More like the absence of any discernable thought,
 consistent with your other puerile offerings on the list..
 
 On 7/1/05, David G. Friedman [EMAIL PROTECTED] wrote:
  Here is a thought:
 
  If Dakota Jack has been thought by some to be multiple people/posters, why
  couldn't this Ilias Lazaridis be another 'personality' of Mark Galbreath, or
  even another 'identity' of Dakota Jack himself?
 
  Regards,
  David, a list member who is often amused by the Mark Galbreath's comments
  but prefers a list keep to topic more than read insulting attacks on other
  list members.
 
  P.S. This post is pure speculation and NOT an attack Dakota, Jack, or this
  'Ilias' person. *impish grin*
 
  -Original Message-
  From: Larry Meadors [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 01, 2005 8:42 AM
  To: Struts Users Mailing List
  Subject: Re: [OT] Re: Unacceptable Behaviour of Mark Galbreath
 
 
  Hahah, I had forgotten that stain of humanity.
 
  I *did* think Mark was bad until I read a post from Ilias Lazaridis on
  the netbeans list. He makes Mark look intelligent and polished.
 
  Larry
 
 
  On 7/1/05, Daniel Perry [EMAIL PROTECTED] wrote:
   Yup. To be honest, i can handle the occasional insulting post
  
   Be thankful that he's just distasteful and has a sense of humor, and not a
   complete idiot that will never give up insulting developers.
  
   If you're bored, have a search for this guy: Ilias Lazaridis
  
   He came on the OJB mailing list and started laying into developers about
  not
   providing examples that he could use within 2 minutes of downloading them.
   He refused to accept that there is no point in providing an OJB app that
   does nothing, but runs. Absolute moron.  He has been banned from many
  lists,
   after insulting people.  there are some funny posts out there by him
  
   e.g.
  
  http://coding.derkeiler.com/Archive/Java/comp.lang.java.softwaretools/2005-0
   1/0147.html
  
   Daniel.
  
   
I love this drama. It's like watching a soap opera. *urmph* Did i just
admit that i like soap operas? And just think, our favorite troll is
savoring every moment of this :D.
   
Brandon
  
  
   -
   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]
 
 
 
 
 --
 You can lead a horse to water but you cannot make it float on its back.
 ~Dakota Jack~
 
 -
 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: [OT] Java vs .NET

2005-06-30 Thread Aleksandar Matijaca
That is interesting, because, the situation is completely opposite in 
Toronto, and in Canada in general I think.
I just did a quick search on google groups (group tor.jobs) :

http://groups.google.ca/groups?hl=enlr=q=c%23+group%3Ator.jobsqt_s=Search

returns 2200 jobs

http://groups.google.ca/groups?hl=enlr=q=j2ee+group%3Ator.jobs

returns 12800 jobs

All big employers here (Banks, Insurance companies ...) use J2EE. .NET is 
typicaly seen here as something
small companies without any expertise do..


Regards, Alex.


On 6/30/05, Mark Galbreath [EMAIL PROTECTED] wrote:
 
 Scary? Ponder this: in the Wash DC area, there is an overabundance of Java 
 gigs and a scarcity of Java developers. Why? Because all the Java developers 
 have wised up and realized that (1) C# is what Java should have been to 
 begin with, and (2) C# and .NET are O-P-E-N S-T-A-N-D-A-R-D-S (can you spell 
 it? say it, learn it, live it!) Java is NOT. What I find interesting is the 
 vast majority of Java developers are more technologically bigoted than any 
 M$ evangelist I've met. Curiously, at least the M$ camp's positions are 
 based in reality.
 
 ~mark
 
 -Original Message-
 From: Ed Griebel [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 30, 2005 8:49 AM
 To: Struts Users Mailing List
 Subject: Re: AW: [OT]Linux server market share...
 
 
 This is scary indeed. For Western NY, there's 2x .net jobs compared to
 plain Java, and 8x more .net than j2ee.
 
 However, consider that MS has marketed hard that any kind of
 development with Microsoft can now be tagged .Net, which inflates
 the figures. At least that's my story :-)
 
 -ed
 
 On 6/29/05, Yan Hu [EMAIL PROTECTED] wrote:
   Even then, most of us will agree that 20.54% for IIS is about 20% to 
 much
  2 years make it even worse.. Search on monster for .NET and 
 J2EE. Compare the number of
  jobs and do the same thing at www.indeed.com http://www.indeed.com,which 
 aggregate everything from All big jobsites in
  the US. Job numbers for NET and J2EE on indeed.com http://indeed.comis 
  almost scary...
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 ***
 This email and any file transmitted with it may be confidential and is 
 intended solely for the use of the individual or entity to whom it is 
 addressed. If you received this email in error please notify the DBM Service 
 Desk by forwarding this message to [EMAIL PROTECTED]
 
 This email has been scanned by networkMaryland Antivirus Service for the 
 presence of computer viruses.
 
 
 
 
 
 
 
 ***
 This email and any file transmitted with it may be confidential and is 
 intended solely for the use of the individual or entity to whom it is 
 addressed. If you received this email in error please notify the DBM Service 
 Desk by forwarding this message to [EMAIL PROTECTED]
 
 
 This email has been scanned by networkMaryland Antivirus Service for the 
 presence of computer viruses.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: [slightly OT] alternatives to Tiles?

2005-06-30 Thread Aleksandar Matijaca
I believe that if you are using JSP includes, the included file, looses 
any objects that were put in using request.setAttribute(...) ? I have found
that using jsp:includes is typicaly good enough to include any group page
imports, definitions and maybe any JavaScript...

Regards, Alex.


On 6/30/05, Wendy Smoak [EMAIL PROTECTED] wrote:
 
 From: Bill Schneider [EMAIL PROTECTED]
  Tiles is very powerful but I've found that 99% of the time I'm only 
 using
  it to wrap a page in a consistent layout/navigation. It seems like I'm
  not getting enough value out of it to justify the additional layer of
  indirection of having to touch tiles-defs.xml. I also would love to be
  able to include header/footer pages from another webapp context.
 
 What about plain-old jsp includes? Maybe they're enough for your needs.
 
 And, tiles-defs.xml is optional-- you can use the Tiles tags directly in 
 the
 page. See if this helps:
 http://www.onjava.com/pub/a/onjava/excerpt/progjakstruts_14/index4.html
 
 --
 Wendy Smoak
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: [OT] Off topic threads

2005-06-30 Thread Aleksandar Matijaca
Long weekend in Canada (day-off tomorrow)! Sorry, I fergot -- about OT 
topics on friday...

Cheers, Alex.


On 6/30/05, delbd [EMAIL PROTECTED] wrote:
 
 You know what?
 I was presuaded it's Friday today. Still one more day of work before 
 week-end :'(
 
 Le Jeudi 30 Juin 2005 15:43, Marsh-Bourdon, Christopher a écrit :
  I know this would stifle the debate, but can we just stop the very
  off-topic debates on:
 
  My IDE vs. Your Text Editor
  Struts vs. Anything else (especially Microsoft)
 
  It's not Friday and it only encourages the trolls.
 
  It really doesn't have a place here. I personally do attempt (however
  poorly) to answer questions on Struts. I for one will remove myself for 
 the
  list if I have to sift through this drivel for another day.
 
  Cheers
 
  Christopher Marsh-Bourdon
  www.marsh-bourdon.com http://www.marsh-bourdon.com
 
 
  
 
  The information contained herein is confidential and is intended solely 
 for the
  addressee. Access by any other party is unauthorised without the express
  written permission of the sender. If you are not the intended recipient, 
 please
  contact the sender either via the company switchboard on +44 (0)20 7623 
 8000, or
  via e-mail return. If you have received this e-mail in error or wish to 
 read our
  e-mail disclaimer statement and monitoring policy, please refer to
  http://www.drkw.com/disc/email/ or contact the sender. 3167
  
 
 
 
  -
  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]
 



Re: [FRIDAY] uh oh

2005-06-24 Thread Aleksandar Matijaca
There is an excellent site:

http://www.robert-tolksdorf.de/vmlanguages.html

That talks about a number of different interpreters for Java (no typos here, 
sentence is correct).
One of them is Lisp for java (written in Java). I have successfuly 
integrated Jython with a number of
j2ee projects

Regards, Alex.


On 6/24/05, Woodchuck [EMAIL PROTECTED] wrote:
 
 i vote for a Scheme port of Struts! :D
 
 woodchuck
 
 --- Simon Chappell [EMAIL PROTECTED] wrote:
 
  Hey, this isn't a joke is it? I would love to see a Lisp version of
  Struts. I'm trying to learn Lisp as a background process, so a
  working
  example of something I was already familiar with would be
  appreciated.
 
  Simon
 
  On 6/24/05, Dave Newton [EMAIL PROTECTED] wrote:
   Mark Galbreath wrote:
  
   James: when ru going to port struts to a Lisp framework?
   
   
   I'm almost done.
  
   The Tileth (Tileth Is Like Enhanced Tiles, Hey?) part is dragging a
   little bit due to laziness and other obligations (it's too bad I
  have to
   have a job...)
  
   So far I can take a simple Struts/JSTL page and run it unmodified
  on my
   hackish first draft. The back end, of course, must change :/ (I'm
   ignoring application resources for now, but most of the html and
  core
   tags work(ish) besides that).
  
   That part will take a little longer?
  
   Dave
  
  
  
  
  -
   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]
 
 
 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail - Find what you need with new enhanced search.
 http://info.mail.yahoo.com/mail_250
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Aleksandar Matijaca
Hi Tony,

try something like this:

ps -ef | grep httpd

this will show you where the process is running (from which directory) -- to 
shut down this process,
become root, and you should have somewhere in your computer the apachectl 
program -- do a

./apachectl stop 

from the directory where this file (apachectl) is located.

I think you should realy reconsider running Tomcat on 8080, and set up an 
apache plug-in for tomcat.
There is plenty of documentation on the web for this.

Regard, Alex.



On 6/23/05, Tony Smith [EMAIL PROTECTED] wrote:
 
 Thank all for response.
 
 I loged on as root and changed server.xml to use port
 80. When I start tomcat, it now compained that 80 is
 already in use. But I can not find out who is using
 it. I ran netstat -a, but I did not see anything
 like 80. Should I look at something else?
 
 I also tried telnet localhost 80, I got
 [EMAIL PROTECTED] telnet localhost 80
 Trying 127.0.0.1...
 Connected to localhost.localdomain (127.0.0.1 http://127.0.0.1).
 Escape character is '^]'.
 
 And it hang on there. I type in
 GET index.html HTTP/1.1
 After a couple minutes, I got a 400 bad request from
 Apache/2.0.46. Looks like I have apache running. How
 can I stop the apache server?
 
 I am using linux.
 
 We are still in the developing stage and all users are
 internal. Thus, security is not a concern right now.
 
 
 
 --- Timo -Blazko- Boewing [EMAIL PROTECTED]
 wrote:
 
  On Tue, 2005-06-21 at 18:54 +0200, mario nee wrote:
   in Unix system you must have root permission to
  open a port under 1024.
  
 
  Hello,
 
  While this is right, I would not recommend to run
  Tomcat as root. Better
  run Tomcat with another port just like the default
  8080 and use a
  firewall application such as iptables to internally
  forward incoming
  requests to port 8080; thus you avoid dangerous
  exploits in Tomcat's
  webapps.
 
  It can be done w/ something similar to this:
 
  iptables -t nat -A PREROUTING -i eth0 -p tcp --dport
  80 -j REDIRECT
  --to-port 8080
 
 
  --
  greetings, | /\
  | \ /
  ASCII-Ribbon-Campaign
  Timo | X Against HTML
  Mail
  | / \
 
 
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 
 Yahoo! Sports
 Rekindle the Rivalries. Sign up for Fantasy Football
 http://football.fantasysports.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Eclipse plug-in for Struts

2005-06-22 Thread Aleksandar Matijaca
I am happily using MyEclipseIde.com http://MyEclipseIde.com product - for 
$30/YEAR, you can't go wrong... I have succeessfuly used it
with Jboss (and Tomcat 5.x) and Weblogic.

a.m.



On 6/22/05, Tony Smith [EMAIL PROTECTED] wrote:
 
 Is there an Eclipse plug-in for Struts or Tomcat so
 that I can develop, debug, and test my web app all in
 Eclipse? Right now, if I want to change something I
 have to write my program in Eclipse, write my jsp in
 another text editor, export the jar file from Eclipse
 to web-inf/lib, restart Tomcat, and open IE
 
 
 
 
 
 __
 Yahoo! Mail Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.
 http://mobile.yahoo.com/learn/mail
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: File shared among several project...

2005-06-21 Thread Aleksandar Matijaca
I like the idea of 4 separate spaces, and 'moving around' miscalenous files 
(such as CSS, GIF and
others) should not hold you back. Presumably for such a large project, you 
are using ANT to facilitate builds etc.
You should be able to modify your scripts so that it also copies these files 
around to all four EARs (assuming here
that there are not hundreds and hundreds of these miscalenous files). Four 
separate EARs is the way to og in
my opinion.

Cheers, Aleksandar.


On 6/21/05, Gaet [EMAIL PROTECTED] wrote:
 
 Hello,
 
 I guess this is probably not the right place but I know also that there is 
 also a lot of good developers here and I would like to have your advice on a 
 simple problem.
 
 In fact, I am developping a web site with 4 distinct areas (public, 
 member, admin, employee) on Websphere environnement (WSAD, WAS,..)
 Until now, all these areas are developped into a same WSAD project and 
 packaged into a single EAR that we deploy.
 
 The weakness of this solution is that we need to stop all the 4 areas when 
 we have made an update on just one area.
 Our goal will be to be able to only stop the area(s) that have to be 
 updated to not disturb users of the others areas.
 
 We have though about have 4 project in WSAD but the BIG weakness of this 
 is that it required to have common files (CSS, javascript) shared among 
 these project (so we have to copy and paste them into each project at each 
 update)seels to be really heavy!
 
 So I have just two or three questions:
 Are we on the right solution by having one project by area? (in this case, 
 how to handle shared files simply?)
 Or may I should have only one project in WSAD and generate 4 EARs behind? 
 do you think this will be possible??
 
 Thanks in advance for your help
 



Re: running tomcat on port 80

2005-06-21 Thread Aleksandar Matijaca
The easiest way to find out what is realy going on is --

telnet localhost 80

If you don't get an error, it means some other process on your machine
is running on TCP 80.  Do you have some kind of a 'personal web
server' enabled by default?  If some process does answer on TCP 80 try
typing in (in your valid telnet session from above)

GET index.html HTTP/1.1

It will probably fail, but from the response back, you will have some
idea of which process has TCP 80...

Cheers, Alex.





On 6/21/05, Dave Newton [EMAIL PROTECTED] wrote:
 Tony Smith wrote:
 
 How can I set the permission? It is my box, viturally
 I can do whatever I want.
 
 
 I don't know what OS you're running, so it's... problematic.
 
 How about STFW for setting port permissions under [whatever OS you're
 running]?
 
 FWIW, this is pretty far afield from Struts.
 
 Dave
 
 
 
 -
 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: running tomcat on port 80

2005-06-21 Thread Aleksandar Matijaca
If you are running on Unix/Linux, you must be root to open on TCP 80.
If you are running on NT, you *can* run on TCP 80, however, if you allready have
a web server that is listening on that port, then you will not be able
to open on
TCP 80...

Regards, Alex.


On 6/21/05, Tony Smith [EMAIL PROTECTED] wrote:
 Hi, Can I run Tomcat 5.0 on port 80? After setting 80
 as port number in the server.xml and starting tomcat,
 I got the following error message:
 
 SEVERE: Error starting endpoint
 java.net.BindException:permission denied:80
 
 Thanks,
 
 
 
 
 
 Yahoo! Sports
 Rekindle the Rivalries. Sign up for Fantasy Football
 http://football.fantasysports.yahoo.com
 
 -
 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: Storing data in session scope

2005-06-21 Thread Aleksandar Matijaca
What I would do is, create an index.html, and inside of that index.html, do 
redirect to a struts action...
For example:

META HTTP-EQUIV=Refresh
  CONTENT=0; URL=firstAction.do


Then, in your struts, the action mapped through firstAction.do can load up 
the session with your TAX info...
Another way would be to create a Filter class, which will get called every 
time, and if a session object inside of its
chain method is empty (null), then, it knows that it is being called the 
first time, and then the Filter class would
create the session object, and put a value TAX inside of it...

Cheers, Alex.



On 6/21/05, Rafael Taboada [EMAIL PROTECTED] wrote:
 
 Hi folks. I need to store some objects in session scope in order to use
 around the application. What is the best way to do that?
 I need to have TAX value in any place of the application. I thought about
 creating an Action class y call a method which it get TAX data from 
 database
 and then put the value in session scope.
 But when I call for first time index.jsp, it has to call that method... 
 How
 can I do that?. Is it an appropiate way?
 I don't know how to call a method inside an action class from a jsp.
 Thanks in advance
 
 --
 Rafael Taboada
 Software Engineer
 
 Cell : +511-97753290
 
 No creo en el destino pues no me gusta tener la idea de controlar mi 
 vida
 



Re: Storing data in session scope

2005-06-21 Thread Aleksandar Matijaca
Wendy, can you please give me the complete class name of that Listener 
object? Is it referenced in the web.xml??

Thanks, Alex.



On 6/21/05, Wendy Smoak [EMAIL PROTECTED] wrote:
 
 From: Rafael Taboada [EMAIL PROTECTED]
 
  I need to store some objects in session scope in order to use
  around the application.
 
 If you need to use them across the entire webapp, then application/context
 scope might be more appropriate. But either way, what I do is have a
 Listener that is notified when the app (or a session) starts. I put 
 various
 Maps and Lists into the appropriate scope under known keys, and then 
 they're
 there to be used whenever I need them.
 
 Take a look at HttpSessionListener or ServletContextListener depending on
 what you decide you need.
 
 --
 Wendy Smoak
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Integrating reports in Struts Framework

2005-05-08 Thread Aleksandar Matijaca
Hi there,

I may not be the world's ultimate authority on this, but let me try to
answer this:

On 5/8/05, alec [EMAIL PROTECTED] wrote:
snip

 
 Is there any inbuilt functionality in struts framework for
 implementing reports.
 

No


 Are there any Apache based tools/model for reporting in java web
 application based on Struts framework.
 

Yes!!  -- However, it is a lot of work, and a detailed knowledge of
XML, XSL and XSLT
is required (this has nothing to do with Struts).

1)  You should have your data for reporting well defined in an XML format.

2)  Use Apache's FOP product to generate PDF (I think you can also make it
generate RTF documents, the closest thing to DOC) -- have a look at:

http://xml.apache.org/fop/

3)  You will also need some GUI tool to produce a XSD (from your XML), as well
to design the 'fo' for the XSL -- I suggest you have a look at a
product like this:

http://www.altova.com/products_xsl.html

Good luck!!

Alex.


 The reports have to generated in DOC, PDF, HTML etc file formats
 
 Looking forward to some suggestions
 
 Thanks  regards
 Shajee
 
 -
 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]