Re: How to use Hibernate with Struts and Tomcat?

2003-09-23 Thread Martin Naskovski
Matt Raible has provided an example of how to do just what you want- it's called struts-resume. It's a small, but useful application, that demonstrates all of the aspects you mentioned. Martin -- Tuesday, September 23, 2003, 7:46:15 AM, you wrote: MAN Hello, MAN I need some help to use

JSF and rich clients (non-HTML)

2003-09-19 Thread Martin Naskovski
Probably a lame question, but here it goes anyway since I haven't really looked into JSF - can JSF be used in a non-HTML specific way? E.g. use JSF to provide content for a JSwing (or similar) GUI? Is JSF this flexible or is it strictly confined to rendering certain output that can only be viewed

Re[2]: JSF and rich clients (non-HTML)

2003-09-19 Thread Martin Naskovski
Thanks Craig. Friday, September 19, 2003, 6:33:29 PM, you wrote: CRM On Fri, 19 Sep 2003, Martin Naskovski wrote: CRM You might want to download and play with it yourself :-). It's packaged CRM in the Java Web Services Developer Pack, version 1.2: CRM http://java.sun.com/webservices/ CRM

workflow - Re: integration with other app

2003-09-11 Thread Martin Naskovski
One thing I find particularly cumbersome in Struts is web page workflow. Currently, if I want to push Cancel for instance, or Submit on a certain page, in the Action itself, I have to hard code where to go next and/or pass any dynamically generated parameters through the request scope or the query

A JSP based JDBC query client?

2003-08-18 Thread Martin Naskovski
Does anyone know if there's a simple JSP page available to which one can submit SQL queries and just get plain rows back into as simple row format as possible? Akin to using the 'mysql' command line client, except in a JSP view :). Thanks. Martin --

set-property usage inside an action in struts-config.xml?

2003-08-14 Thread Martin Naskovski
Is it possible to use set-property inside an action /action definition? I tried embedding it, it says property does not exist by throwing an exception. I want to use this with the basic org.apache.struts.action.Action class. Is this somehow possible? Documentation on how to do this is a bit

Struts w/EJB

2003-07-31 Thread Martin Naskovski
Hello all. Is there an app that demonstrates the use of Struts EJB as a persistence layer? I checked out Struts-Resume from Matt Raible, but it uses Hibernate... Is there anything available w/EJB's? Thanks. Martin -- - To

[Friday] Consultant joke

2003-07-25 Thread Martin Naskovski
A shepherd was herding his flock in a remote pasture when suddenly a brand-new BMW advanced out of the dust cloud towards him. The driver, a young man in a Broni suit, Gucci shoes, Ray Ban sunglasses and YSL tie, leaned out the window and asked the shepherd, If I tell you exactly how many sheep

Re[2]: Ranko like question: What is the sense of some of these tags libs?

2003-07-24 Thread Martin Naskovski
JSTL+the struts tags and/or struts-el, for me has completely eliminated the need to use scriptlets. Using scriptlets invites the use of business logic in your view (at least, for less experienced programmers). This, IMHO, is a major violation of the MVC paradigm, and programmers doing that should

Re: Need Help : DispatchAction and html:image without javascript.

2003-07-24 Thread Martin Naskovski
Shashank, look for ImageButtonDispatchAction.java in the archives of 'struts-user'. The image buttons get submitted as property.x and property.y. Even if you didn't use the above named file that one of struts' users created, you can easily extend the DispatchAction (look at the source code for

Re[4]: Ranko like question: What is the sense of some of these tags libs?

2003-07-24 Thread Martin Naskovski
Message- RB From: Martin Naskovski [mailto:[EMAIL PROTECTED] RB Sent: Thursday, July 24, 2003 3:12 AM RB To: Ranko Bijelonic RB Cc: Struts Users Mailing List RB Subject: Re[2]: Ranko like question: What is the sense of some of these RB tags libs? RB JSTL+the struts tags and/or struts-el, for me has

Re[6]: Ranko like question: What is the sense of some of these tags libs?

2003-07-24 Thread Martin Naskovski
Thursday, July 24, 2003, 12:49:44 AM, you wrote: RB If the reason to use a tag in this example is because it looks like it RB belongs, and its not actual Java code, than I'm fine with it. I have RB nothing against tags. All I'm pointing out is that if you are trying to RB avoid logic in your

Re: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Martin Naskovski
Ranko, you could just buy Dynamo or WebSphere or WebLogic - that'll give you all you need, tightly integrated :). Where are you from BTW? Serbia, Croatia?? Martin -- Monday, July 21, 2003, 3:26:06 PM, you wrote: RB That's what I tought too until i read that discussion on sun forums. man I RB

Re[2]: Can a form bean be repopulated w/same data if 'validate()' fa ils?

2003-07-18 Thread Martin Naskovski
Thursday, July 17, 2003, 8:02:12 PM, you wrote: WS Martin wrote: I am curious, I cannot get the form to reappear with the data that I am validating. WS I have my forms in session scope and don't have this problem. What scope WS are your forms in? Hi Wendy - I was initially placing them in

Re: Passing request from Action to another action

2003-07-18 Thread Martin Naskovski
There's 2 common ways to pass data between subsequent HTTP requests - through the request scope and the session scope. If you use the request scope, then make sure none of your global/local forwards in your struts-config.xml are set to redirect=true. On the other hand, if you dont mind poluting

Re: What Is The Proper Location To Place Inputs For Creating A Drop-Down Menu

2003-07-18 Thread Martin Naskovski
Thursday, July 17, 2003, 11:30:03 PM, you wrote: CJ I want to put the label and value pairs of the 51 CJ states of the U.S. in a file, read in the file into an CJ ArrayList, and then create a drop-down menu in a .jsp CJ file. The United States has 50 states. :) CJ Question 1. Where is the

Re: Which JSTL impl?

2003-07-18 Thread Martin Naskovski
Struts-EL works with Jakarta's JSTL implementation very well. I've used it w/out a problem. Martin -- Friday, July 18, 2003, 12:26:06 PM, you wrote: HM Hi, HM I'm starting to use JSTL and am wondering which JSTL impl is my best bet. HM I know of the Jakarta one and the one that ships with

What's the equivlaent in JSTL of bean:write name=bean property=stringMapped(two)/?

2003-07-17 Thread Martin Naskovski
I am using Struts-EL, however, the bean:write tag is not implemented in it. It says to use JSTL's c:out. Well, how do I access a form's map value by using JSTL? The syntax for this using c:out escapes me. Can someone help me out a little? Thank you. Martin

Re: What's the equivlaent in JSTL of bean:write name=bean property=stringMapped(two)/?

2003-07-17 Thread Martin Naskovski
Ok, nevermind this question again - I answered it to myself, w/a little experimentation: This is what I was trying to do (note the c:out): logic-el:iterate id=element name=userProfileForm property=credentials tr valign=middle td valign=middle

Re[2]: What's the equivlaent in JSTL of bean:write name=bean prop erty=stringMapped(two)/?

2003-07-17 Thread Martin Naskovski
Hi Wendy :), I inadvertently discovered it :). Thanks for the tip though. I was a little puzzled by the syntax that the JSTL would have at first, thus my initial question (and self-response :). Martin Thursday, July 17, 2003, 11:14:46 AM, you wrote: WS Martin wrote: I am using Struts-EL,

Can a form bean be repopulated w/same data if 'validate()' fails?

2003-07-17 Thread Martin Naskovski
I am curious, I cannot get the form to reappear with the data that I am validating. I've implemented the validate() method on my ActionForm, it validates ok, but I would like to have the data that was on the form (regardless of whether the data was correct or not) repopulated. I tried something

Re: Can a form bean be repopulated w/same data if 'validate()' fails?

2003-07-17 Thread Martin Naskovski
Nevermind this question. I was creating a new form bean everytime in the Load (prepopulate) action, thus I kept overwriting the stuff that is already there. I feel like a moron.. I ask a question, then 5 minutes later I find the answer myself. My apologies. Martin -- Thursday, July 17, 2003,

A dynamic _map_ (not list) index?

2003-07-15 Thread Martin Naskovski
I was looking at http://jakarta.apache.org/struts/faqs/indexedprops.html, and realized it's possible to get a dynamic arraylist index by using Struts-EL. Well, my question is, if I have a radio button like: logic:iterate id=element html:radio property='userSkill' value=value(somekey)/

Re: A dynamic _map_ (not list) index?

2003-07-15 Thread Martin Naskovski
Never mind this question, I answered it to myself. The EL works just as well on map backed forms as it does on list-backed forms, or list backed form properties, more correctly :). Sorry to bug anyone. Martin Tuesday, July 15, 2003, 9:34:16 AM, you wrote: MN I was looking at

Re[2]: How do you access an application.properties value directly fr om within a class?

2003-07-15 Thread Martin Naskovski
Can you also somehow check from a JSP whether a certain message resource key is set to a certain value and then render certain HTML based on that value, or not? Thanks Martin Tuesday, July 15, 2003, 9:53:51 AM, you wrote: RM I forgot to add the simplest way in an Action class: RM

dynamic input forward?

2003-07-03 Thread Martin Naskovski
Hi Struts fans/experts, I'm curious, is there a dynamic way of redefining what the 'mapping.getInputForward()' function will return? Why I ask this? Well, if I have a 'Screen X', and I can get to this screen from 'Screen A' or 'Screen B' or 'Screen C' - if I clicked cancel/exit on Screen X, I'd

Can I have a nbsp; _not_ URL encoded?

2003-07-01 Thread Martin Naskovski
I have a LabelValueBean, and the Label property contains spaces. However, they do not get encoded into nbsp;'s. If I actually include the nbsp; tag, I get a 'nbsp;' on the screen verbatim :), instead of what I really wanted - a space. Is this some catch-22 or is there really a way to specify a

Re: AW: Can I have a nbsp; _not_ URL encoded?

2003-07-01 Thread Martin Naskovski
- SOBtsc Von: Martin Naskovski [mailto:[EMAIL PROTECTED] SOBtsc Gesendet: Dienstag, 1. Juli 2003 08:12 SOBtsc An: Struts Users SOBtsc Betreff: Can I have a nbsp; _not_ URL encoded? SOBtsc I have a LabelValueBean, and the Label property contains spaces. SOBtsc However, they do not get encoded

Re[2]: Can I have a nbsp; _not_ URL encoded?

2003-07-01 Thread Martin Naskovski
=someProperty filter=false/ MM Marco MM Martin Naskovski wrote: I have a LabelValueBean, and the Label property contains spachs. However, they do not get encoded into nbsp;'s. If I actually include the nbsp; tag, I get a 'nbsp;' on the screen verbatim :), instead of what I really wanted

Re: AW: AW: Can I have a nbsp; _not_ URL encoded?

2003-07-01 Thread Martin Naskovski
syntax instead of the link SOBtsc ie. a href=blablabla/a maybe someone on the forum could help us out SOBtsc -Ursprungliche Nachricht- SOBtsc Von: Martin Naskovski [mailto:[EMAIL PROTECTED] SOBtsc Gesendet: Dienstag, 1. Juli 2003 09:43 SOBtsc An: Opoku-Boadu, Samuel SOBtsc Cc: [EMAIL

Re: Representing a 1-m relationship. Any suggestions to the best ap proach?

2003-07-01 Thread Martin Naskovski
Have you checked out Hibernate? It does a lot of what you ask for :). (and then some). Plus it's LGPL. Martin Tuesday, July 1, 2003, 5:31:40 PM, you wrote: SM Hi SM I am struggling with the best approach to take with my first Struts SM application and wondered if I could get some voices of

Struts-EL w/Resin

2003-06-26 Thread Martin Naskovski
I noticed that Struts comes with an implementation of JSTL as well in the contrib directory. Do I need to install this JSTL library w/Resin and disable Resin's 'fast-jstl' implementation or is all I need the struts-el.jar and the *el-tld's to use Struts-EL? Thanks. Martin

Re: Design Patterns

2003-06-20 Thread Martin Naskovski
The Struts in Action book makes a mention of all the design patterns used throughout Struts. It is really not that hard to guess (e.g. ActionServlet plays 'front controller'), etc. You can go to www.javasoft.com, and search for J2EE Blueprints, to find out which patterns are the core patterns,

new LabelValueBean(nbsp + obj.getName(), obj.getValue()) is not working

2003-06-13 Thread Martin Naskovski
When my LabelValueBean which I construct as: lvb = new LabelValueBean(nbsp + obj.getName(), obj.getValue()); when it gets displayed, it translates the into amp; and what comes out is, literally nbsp, when in fact I wanted spaces :). Does anyone know how to specify a nbsp; for the Label value

Struts-resume app session facade

2003-06-08 Thread Martin Naskovski
Hi, I was looking at Matt Raible's Struts-Resume application and it seems he's using Hibernate to do his persistence. One thing I'm not 100% clear on is - which part of his application represents the Session Facade pattern? Is it the *Manager.java classes or is this pattern non-existent in this

logic:present roles=... tag - how to specify permissions (on top of roles)?

2003-06-06 Thread Martin Naskovski
Hi all - I have the following issue w/Struts' (or maybe even the Servlet API) role-based security model. If I had something like this in a JSP: logic:present roles=user, admin show an input field to change your password /logic how can I - within the current confines of Struts (1.1) and the