Re: OFF RECORD

2006-12-21 Thread Emmanouil Batsis
Wesley Wannemacher wrote: Have you looked at Tomcat's Jasper compiler? Jasper uses packages and a filesystem structure that only Tomcat understands (AFAIK). It would probably be better to leave JSP comilation to the container in use. Manos

Re: OFF RECORD

2006-12-21 Thread Emmanouil Batsis
Gundersen, Richard wrote: Um, this might be wrong but I think you could open a connection using URLConnection (or similar), and hit the JSP URL that way. That works i believe, but if the JSP is on the same container then a servlet filter in combination with an HttpServletResponseWrapper sh

Re: [OT] Remoting question

2006-08-29 Thread Emmanouil Batsis
Tom Ziemer wrote: a) If you send p to the server, your persistence layer will save it for you and update the id-field, yet this is not visible in the object on the client, this will force you to have an API like public Parent saveParent(Parent p); or public Long saveParent(Parent

Re: taglib for locale-dependent logic to images?

2006-08-01 Thread Emmanouil Batsis
locale and * serve that or * FW to the originally requested image URL if no locale dependent img is found. I don't even think a taglib makes sense anymore ;-) Cheers, Manos Emmanouil Batsis wrote: Suppose i have an images folder in my webapp with subfolders corresponding to locales:

taglib for locale-dependent logic to images?

2006-08-01 Thread Emmanouil Batsis
Suppose i have an images folder in my webapp with subfolders corresponding to locales: + WEB-INF + jsps + images + default + myImage.png + fr + myImage.png + el + myImage.png i'd like to do something like to render the image whose parent folder matches the user's local

Re: Quick question about the Resources.properties files.

2006-06-30 Thread Emmanouil Batsis
Fredrik Andersson wrote: ohh ok, didn't think of that. however, when I tried it the text fell out of the button (it says Submit Query) and sits besides it. I did this, smc:submit is an extension of the strutstag library. What happens if you use an instead? That would show whether i

Validate boolean

2006-06-29 Thread Emmanouil Batsis
Just wondering what people use as a best practice to handle/validate boolean values in form beans: * Do you use boolean or string objects in your form beans? * What do you use instead of @struts.validator type="boolean" ? Cheers, Manos

Re: Getting a list of fields in a form

2006-05-24 Thread Emmanouil Batsis
pantichd wrote: Can someone tell me if there is an easy way to get all the property keys along with their values from those two classes? Maybe there is a better way but using BeanUtils to construct a map out of the formbean should be pretty easy. hth, Manos -

Action 2.0 xdoclet?

2006-05-24 Thread Emmanouil Batsis
Holla, Is an xdoclet plugin or hack available for Struts Action 2? Cheers, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

" No action instance for path /Foobar/View could be created" after overwriting classes

2006-05-17 Thread Emmanouil Batsis
Hello, After overwriting some action classes with newer versions directly on the server and a restart, those cannot be instantiated and the class is reported as not found. This has happened for a number of classes so it should not be corrupted files or something, while the actions are in the

Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Emmanouil Batsis
M.Liang Liu wrote: My GOD! The same thing happened when I try to insert an image!! * Have you tried accessing the URL of the image directly from your browser? What is the response? * Anything in the logs? Manos -

Re: ???en_GB. in errors

2006-05-04 Thread Emmanouil Batsis
Shoukat, Faisal wrote: Hi, I throw a application exception back to the web layer and catch it in my action class. I then create a errors object with the exception as follows: errors.add("errors", new ActionMessage(e.getCause().getMessage())); You need to add false as a second param to th

Re: [OT] Re: Please help

2006-05-04 Thread Emmanouil Batsis
Meenakshi Singh wrote: Would u suggest any other way to meet the requirements mentioned in my mail. This is fully covered by CSS. I'm almost sure mobile profile also supports the pseudo classes for links (visited hover etc). BTW this is irrelevant to struts ;-) hth, Manos --

Working with business validation errors

2006-04-14 Thread Emmanouil Batsis
Hello, I'm very interested to hear about how do you guys handle business-tier-dependent validation errors in a struts+EJB application. For example, suppose a user tries to create an account with a username that already exists (maybe a poor example but you get the point), but you can only figu

Re: MVC Dilemma

2006-04-07 Thread Emmanouil Batsis
Larry Meadors wrote: Now that is what i miss in Hibernate. Using projection queries, there should be a way to get Map objects out of the box but unfortunatelly i have to create them from Object Arrays manually or create my own ResultTransformer (i hated that cause the only way i saw it

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-29 Thread Emmanouil Batsis
Leon Rosenberg wrote: But I think that CORBA can compete very well here! Or do you have other impressions? Nope, just wanted to point out that, where i come from, the analogy of CORBA and EJB devs is 1 to 10 at best. Cheers, Manos -

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-29 Thread Emmanouil Batsis
Tom Ziemer wrote: @Gareth: What do you think about the performance of ejb3? Did you integrate it with other frameworks such as Spring and/or Hibernate? Hibernate 3 can be used as an EJB3 implementation. See EJB 3.0 EntityManager: [1] http://www.hibernate.org/299.html hth, Manos

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-29 Thread Emmanouil Batsis
Hello Leon, Just wanted to mention that another decision factor is the available pool of human resources ;-) Manos Leon Rosenberg wrote: On 3/29/06, Tom Ziemer <[EMAIL PROTECTED]> wrote: Hi Leon, Hi, I've been doing a bit of reading and I guess I'll be using Spring's remoti

Re: [OT] JMS, RMI, CORBA, SOAP or what?

2006-03-28 Thread Emmanouil Batsis
Hello Tom, In short, there is no panacea or golden formula. I usually go for EJBs for my business logic (so, RMI & JMS). You can bypass RMI when on the same JVM by using local interfaces and in some servers AFAIK you dont even have to explicitly do that. Personally, i try to avoid web servi

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-27 Thread Emmanouil Batsis
Jonathan Revusky wrote: Struts has also fallen further and further behind technically in its space. (This has what has led to the Webwork merger so that the "Struts umbrella" could offer something reasonably up-to-date.) [Note: This is not a reply to Jonathan personally] I keep seeing post

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-23 Thread Emmanouil Batsis
Hello, As a mortal user i would suggest that all this discussion to be taken somewhere else, but i have a strong feeling that the motives behind this and many other thread posts during the last few months are actually fed by the visibility of the mailing list itself. Anyway, just wanted to

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Emmanouil Batsis
Dave Newton wrote: I'm not convinced you can set focus on a non-input item; that really wouldn't make any sense. +1 I'd try using a fragment identifier (pointing to from the link that leads to the page or via JS on load (the first way is better). hth, Manos ---

Re: Using saveToken and isTokenValid

2006-03-14 Thread Emmanouil Batsis
In simple cases i just keep redirecting to the result view (and maybe warn the user) even if the token is invalid. The view is the result of the first submission anyway. Manos starki78 wrote: Hi Thanks but my goal is just to tell the user that only the first submit shall be processed! My e

Re: [OT] Question about licensing

2006-03-08 Thread Emmanouil Batsis
Hello Leon, IMO the libraries have very little value without the source code being available under an OS license. In my experience this view now also applies in the corporate environment; managers want to stay away from free binary packages since they cannot know how the code actually works

Re: JavaT Application Verification Kit (AVK) : test results

2006-03-07 Thread Emmanouil Batsis
http://java.sun.com/j2ee/avk includes links to installation and release notes, as well as a user guide etc... Raghuveer wrote: I am new to Using AVK for my JSP web Application. My Environment: jdk1.4 Struts 1.2 hibernate3 OC4J 10g (9.0.4) SQL server2000 LDAP Plum tree portal. I am new to

Re: Question re: XML pipelining, Cocoon Plugin, stxx and possible alternatives

2006-03-01 Thread Emmanouil Batsis
Vladimir Olenin wrote: Browser --(request)--> WebApplication --(XML)--> Transformation Pipeline: [XML to PDF] OR [XML to HTML] For cases where you simply want to expose the XML produced by struts to another format the combo will work great. Cocoon shines as a publishing framework and provid

Re: Finegrained access control

2006-02-28 Thread Emmanouil Batsis
Dave Newton wrote: If you want _fine_-grained access control drop Spring on top of Struts and use Acegi. For us not wanting to put yet another framework into the table, any advice and pointers from more experienced people out there? My usual requirement is operation rights for roles in g

Re: [Friday]

2006-02-20 Thread Emmanouil Batsis
Michael Jouravlev wrote: On 2/17/06, Marco Mistroni <[EMAIL PROTECTED]> wrote: Hello, On Thu, February 16, 2006 4:51 pm, Michael Jouravlev said: The last thing I can think of is a hook, a rope and some soap. Uhmm.. you mean last resort is hanging? Or by soap you

Re: calling DispatchAction when clicked Refresh on Browser

2006-02-09 Thread Emmanouil Batsis
Hello Fea, fea jabi wrote: When I click on the Refresh on the toolbar of the browser, I am seeing that it tries to execute this Add method, and adding one more row. why is that? How to prevent the same? In general it is a good practice to redirect instead of forwarding to the view after

Re: [FRIDAY] You might be a pointy-haired-boss if ...

2006-01-27 Thread Emmanouil Batsis
... you want a clever reply to this thread yesterday. Ted Husted wrote: ... you think blogs are a breakfast treat. Engineer: "I like to start each day with a cup of coffee and a couple of blogs." PHB: ... H ... A cream-filled blog would hit the spot ... -Ted. ** http://husted.com/ted/bl

Re: Forcing URL Rewriting over Cookies in an existing application.

2006-01-23 Thread Emmanouil Batsis
Jay wrote: Hi all, I have an application (Sun ONE 6.1 sp2, Struts 1.02 (I guess)) that uses Cookies for session handling and has been so for around 3/4 years. I have a requirement where I want to force URL Rewriting even if the browser supports cookies. Please help! Jay This is a containe

Re: What JDK version are you using?

2006-01-23 Thread Emmanouil Batsis
1.4.2 atta-ur rehman wrote: [X] JDK 1.5 (or JDK 5) No validator. HTH. ATTA On 1/23/06, Dave Newton <[EMAIL PROTECTED]> wrote: Simon Chappell wrote: 1.4.1 and Struts 1.1 You're lucky. About 2/3 of our deployments are on 1.3. We use 1.3, 1.4, and new stuff will (hopefull

Re: [FRIDAY] You might be a Wally if ...

2006-01-20 Thread Emmanouil Batsis
David Delbecq wrote: ... you wander everyday in corridors, asking everyone around if there are any meetings today. ...after you got into this when you delivered a pizza to the company and someone grabbed you to take his place in a meeting. Especially if you forgot to get paid for the piz

Re: Is there a way to use Dates and Numbers with Dynamic Action Forms using a pattern?

2006-01-18 Thread Emmanouil Batsis
Dave Newton wrote: Néstor Boscán wrote: Is there a way to use Dates with Dynamic Action Forms using a pattern. We would like to use all our DTOs with Dynamic Form Beans but we're having problem with Date and Numbers were we need to apply patterns. Is there a way to do this? I'm not s

ValidatorActionForm and xdoclet?

2006-01-16 Thread Emmanouil Batsis
Hi all, Is anyone using xdoclet validator tags with ValidatorActionForms to generate different validation rule-sets per action? Is it even possible? Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: Using parameters

2006-01-13 Thread Emmanouil Batsis
Emmanouil Batsis wrote: salva wrote: Hello, is it possible to put the attributes from the form to the url if the user press the submit button? Use GET as the submition method. Nope, not a weird HTTP extention or anything. Should be submission ;-) Manos

Re: Using parameters

2006-01-13 Thread Emmanouil Batsis
salva wrote: Hello, is it possible to put the attributes from the form to the url if the user press the submit button? Use GET as the submition method. Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [FRIDAY] You might be a Dilbert if ...

2006-01-13 Thread Emmanouil Batsis
Ted Husted wrote: ... your only source of current events is Slashdot and The Daily Show. Common pattern. We read meta-news sites, we do meta-programming etc. I mean, picking your own news is like, err, micromanaging your own life right? Manos

Re: Need advice with performance of Struts-Application on Tomcat 4.1

2006-01-10 Thread Emmanouil Batsis
Emmanouil Batsis wrote: [...] the browser upon stibling on an img tag. Sorry, i stumbled while typing this ;-) Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Need advice with performance of Struts-Application on Tomcat 4.1

2006-01-10 Thread Emmanouil Batsis
starki78 wrote: Hi we are developing an application with Struts and I've a Action that creates 35 Charts writes it to the Session and displays it in a JSP. It runs on Tomcat 4.1. Most of the time it is fast but sometimes it takes significantly more time. I've tested all the methods, the session-

Re: which one is best for DATA PERSISTENCE

2006-01-10 Thread Emmanouil Batsis
JEEVANATHAM P. /BPCRP/INFOTECH/VASHI wrote: For my project we are doing lot of database actions such as inert, update, delete and read. For that which java frameworks is best to use? There is no such thing as "the best to use". It all depends on your project requirements and know how. Diffe

Re: serving binary files

2005-12-28 Thread Emmanouil Batsis
Daniel Blumenthal wrote: Hi there, and happy holidays! U 2. I usually have an action pick up the binary stream (and related info), put it in the request scope and then forward to a servlet responsible for building the response using that info from the request context. Never liked action

Re: Apache web design products?

2005-12-09 Thread Emmanouil Batsis
Tomas Kim wrote: I noticed that many of your websites (eg. http://beehive.apache.org/) have a "templated/tabbed" navigational look and feel. Check out Apache Maven or Apache Forrest. Both can be used to generate website/documentation. hth, Manos -

Re: Inserting special character into MySQL 5 problem

2005-11-24 Thread Emmanouil Batsis
Stanislav wrote: Because you're doing XML, you need to escape XML entities. Change your value to this: jdbc:mysql://localhost/databaseName?useUnicode=true&characterEncoding=utf-8 I don't know where to put this :- If I put this line of code in data-source I get error

Re: Inserting special character into MySQL 5 problem

2005-11-23 Thread Emmanouil Batsis
Stanislav wrote: Because you're doing XML, you need to escape XML entities. Change your value to this: jdbc:mysql://localhost/databaseName?useUnicode=true&characterEncoding=utf-8 I don't know where to put this :- If I put this line of code in data-source I get error Ah you

Re: Inserting special character into MySQL 5 problem

2005-11-23 Thread Emmanouil Batsis
Stanislav wrote: Where can i put this connestion URL in code? Only url connection I use is in struts-config.xml, but only this part: jdbc:mysql://localhost:3306/db-name. this should be it, change to jdbc:mysql://localhost:3306/db-name?useUnicode=true&characterEncoding=UTF-8 -

Re: Inserting special character into MySQL 5 problem

2005-11-23 Thread Emmanouil Batsis
Stanislav wrote: I think that JSP encoding isn't relevant here, because I put these special letters into Java Action, not from Form, and (for now) i directly call taht action. I'm not doing anything with JSP page... I'll try to be generic here and suppose you use a form. The JSP generati

Re: What to store in servlet context?

2005-09-23 Thread Emmanouil Batsis
Koen Jans wrote: This is probably a newbie question.. From the examples i studied, it looks like most applications store a reference to a database in servlet context.. AFAIK most people talk to databases via a datasource provided by the container through JNDI. Manos ---

Re: A little bit OT: unicode escape editor

2005-09-15 Thread Emmanouil Batsis
Wojciech Ciesielski wrote: Hi there, It's a bit off topic ;-) Does any of you know of some free/shareware editor or eclipse plug-in allowing transforming Unicode text into ISO-8859-1 escaped strings? We usually just edit out files (i.e. *.properties) with our editors in UTF-8 and feed them

Re: OT: Good Java host

2005-09-01 Thread Emmanouil Batsis
[EMAIL PROTECTED] wrote: I’ve recently started moving my jsp/servlet/ based sites to Kattare (see https://www.kattare.com/index.kvws) who have a good reputation and so far I’ve been pretty impressed. RE kattare, i signed with them more than a year ago and never had any serious issues. The

Re: logout problem

2005-08-31 Thread Emmanouil Batsis
Sławek Tuleja wrote: question: but how to evoke Logoff action when user closes browser? In general you dont :-) You just wait for the session to expire using a session event listener. However, if the client supports javascript, you can catch the onclose event and perhaps submit an XMLHTT

Re: [OT] DAO Pattern in Struts

2005-08-24 Thread Emmanouil Batsis
Larry Meadors wrote: You can (and should) use the DAO pattern with Hibernate, too. So true, plus a good DAO interface can decouple your database access implementation and the rest of your app, so that you can switch from hibernate to ibatis or plain jdbc or whatever without having to make

Re: Struts Hibernate error

2005-08-23 Thread Emmanouil Batsis
Luiz Godoy wrote: java.lang.RuntimeException: Exception building SessionFactory: null Search the hibernate forums, could be anything from your hibernate.cfg.xml location to your JDK version. In any case, it has nothing to do with struts. hth, Manos -

Re: Struts Hibernate error

2005-08-23 Thread Emmanouil Batsis
Luiz Godoy wrote: I´m having this error using eclipse, with struts and hibernate, any clue ? Not without the stacktrace. Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [URGENT] Struts 1.1 Source Download

2005-08-23 Thread Emmanouil Batsis
Right, no dice. Perhaps one should email the archive to you. Emmanouil Batsis wrote: Long shot but have you tried using HTTPS? Pilgrim, Peter wrote: Thanks Nicolas. Tried downloading from your site, but something in the ZIP is triggering the down security here. Nothing to do with the URL

Re: [URGENT] Struts 1.1 Source Download

2005-08-23 Thread Emmanouil Batsis
Long shot but have you tried using HTTPS? Pilgrim, Peter wrote: Thanks Nicolas. Tried downloading from your site, but something in the ZIP is triggering the down security here. Nothing to do with the URL location more probably I caught the bad side of the filter hashing algorithm. -- Peter

Re: [OT][FRIDAY] The 'Jakarta' of Javascript?

2005-08-05 Thread Emmanouil Batsis
Laurie Harper wrote: When it comes to server-side Java components and libraries, I generally find most of what I need at Jakarta or elsewhere at Apache; it's certainly one of the first places I always look. Is there a 'Jakarta' of client-side components? Some folks have been working on JSA

Re: forward to a new window

2005-08-01 Thread Emmanouil Batsis
Sorry, i only read the first paragraph :-/ Manos Emmanouil Batsis wrote: The only way is to include JS code in your response, to open a new windows for that resource. Questions like this one usually come from designs that can be improoved though. hth, Manos Rivka Shisman wrote: Hi

Re: forward to a new window

2005-08-01 Thread Emmanouil Batsis
The only way is to include JS code in your response, to open a new windows for that resource. Questions like this one usually come from designs that can be improoved though. hth, Manos Rivka Shisman wrote: Hi friends I would like to know if there is a way of forwarding a request to a n

Re: [OT] Create/Edit Form

2005-07-28 Thread Emmanouil Batsis
You need an identifier to update an object, which usually corresponds to a PK in your database. When the identifier is not present or does not correspond to a persisted entry, you probably want to create. hth, Manos Andrew Tomaka wrote: Hey all, The following is pretty hard to understan

Re: [FRIDAY] J2EE Web frameworks are in a state of flux

2005-07-25 Thread Emmanouil Batsis
John Henry Xu wrote: OK, spring has a good design and it may replace EJB. You cannot replace apples with oranges ;-) Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: (OT) Re: Struts vs .NET???

2005-07-07 Thread Emmanouil Batsis
John Henry Xu wrote: Now I can focus on my job and be more productive by not having to write getters and setters manually. Only when I wrote million line codes I realized how insane to write something machine can produce perfectly to you. The choice of a methodology like Model Driven devel

[OT] Find missing property file keys?

2005-06-23 Thread Emmanouil Batsis
Hi all, Is there any tool to compare property files based on their keys only ? I have some really huge ones for different locales but the number of keys is different and i need to find the missing ones... Thanks, Manos - To

Re: [FRIDAY] package naming nonsense

2005-06-17 Thread Emmanouil Batsis
Hubert Rabago wrote: The problem about unique names doesn't apply to JAR files because you can just rename them. The JAR names are irrelevant even for your classpath. The Java VM will load classes of which the full class name may be in conflict with another, unless you use something you c

Re: [OT] package naming nonsense

2005-06-17 Thread Emmanouil Batsis
Adam Hardy wrote: I'd love to drop the whole top-level domain but why on earth is it there in the first place? Domain names are used as identifiers and are controlled by the or authority that owns them; as such they are an excellent choice for namespaces/packages as well. ecoworks.forum

Re: Tomcat Struts form population problem in PRODUCTION

2005-06-07 Thread Emmanouil Batsis
Mark Benussi wrote: There is no security implemented. Is it possible that the JSP is not session aware and thus a session is not created to carry the form (and it's fields?)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Emmanouil Batsis
Frank W. Zammetti wrote: On Mon, April 18, 2005 11:12 am, Emmanouil Batsis said: I haven't really studied the samples yet, but it would seem more semantically correct to me if the html:form was used to make this work. I'll try to come up with more concrete suggestions. I thoug

Re: AJAX: Whoa, Nellie!

2005-04-18 Thread Emmanouil Batsis
Let me first say that IMHO, introducing AJAX capabilities into the html taglib is an awesome idea. Frank W. Zammetti wrote: So, the question is, does anyone see this as something interesting? Very. I was also thinking about working on AJAX taglibs using Sarissa [1] (introductory article at [2]

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-29 Thread Emmanouil Batsis
You may want to check out sarissa [1], a JS library i've written for doing this and other related tasks like XSLT and XPath using a crossbrowser API . It's well documented and open source. There's also a related turorial at oreilly's xml.com at [2]. I intent to wrap up some JSP taglibs to ease

Re: Displaying XL in browser

2005-03-18 Thread Emmanouil Batsis
Mili Aggarwal, Noida wrote: Hello, Its not taking the name of the servlet in Url..Its taking the name of form action in URL and that's where the problem is. You need to redirect instead of forward (setRedirect(true) or something). Cheers, Manos ---

Re: AppFuse - Impressions?

2005-03-02 Thread Emmanouil Batsis
David Johnson wrote: hi all I have been meaning to doeanload AppFuse after reading about it on this list (http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse) but I havent yet. Has anyone used it? + you can use a set of constantly evolving best practices without having to figure/work them out y

DTD resolution

2004-11-26 Thread Emmanouil Batsis
Hi, My jboss tries to resolve the DTDs for the validator plugin. Can anyone tell me how to avoid this? Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to go from action to action

2004-11-10 Thread Emmanouil Batsis
Morales de Frías wrote: Hello ¡¡ First thanks in advance if you are reading me, and please be patient with my english... I have an action which forward is another action. (A1, A2). And his actionForm (AF1, AF2) My question is how can i pass to A2 any parameter? Can i establish values for its acti

Re: Struts-Chain Roadmap and Inevitable Cocoon Analogy

2004-11-10 Thread Emmanouil Batsis
Don Brown wrote: Well, pipelines won't work for Struts in the strictest sense, as they rely on SAX and Struts isn't an XML transformation framework. Struts could use a sitemap thingy to pass a request along actions (without having the action choose an ActionForward). I guess that could work by

Re: dynamic html:text property with map-backed form

2004-11-10 Thread Emmanouil Batsis
Emmanouil Batsis wrote: But my output is What am i missing? Let me rephrase that; can i output "foo1" as the name attribute in the resulting HTML? Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For

dynamic html:text property with map-backed form

2004-11-10 Thread Emmanouil Batsis
My map-backed form has keys like "index1", "index2"..."indexN" and i'm trying to out put hits by iterating like (according to the docos): <% |String name = "value(foo" + |rId| + ")";| %> || But my output is What am i missing? Thanks, MAnos --

Re: Local (server based) search engine?

2004-11-10 Thread Emmanouil Batsis
Joachim , You might want to check out Apache Lucene. Cheers, Manos Joachim Dagerot wrote: Best practice to incorporate a search engine in a struts environment? I'm writing a quotation involving full text searching of attachments and conten. These attachments can be either stored in the DB or on dis

Re: Session IDs and robots

2004-10-26 Thread Emmanouil Batsis
Although others may come up with better answers, on the top of my head the quickest and maybe clean enough way to deal with this is a servlet filter that intercepts all requests, looks for the googlebot useragent and invalidates the HTTP session before passing the request to the chain. Or somet

Re: OT: html table full screen

2004-10-25 Thread Emmanouil Batsis
andy wix wrote: My Tiles layout page sets 'the daddy' table to be width and height 100% with cellspacing="0" and cellpadding="0", and yet when the page displays there is a border approx. 10 pixels wide between the table and the edge of the browser window. DO browsers add this spacing? Thats th

tool to produce a sitemap from struts-config

2004-10-07 Thread Emmanouil Batsis
I remember someone posted about a tool that reads struts-config and produces some kind of sitemap but i cant find it by searching... can someone please refresh my memory? Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Anyone succeeded using validator in struts1.2.4 ?

2004-10-07 Thread Emmanouil Batsis
yacout dadoun wrote: When trying typo:-^ the tag must not close there I get an error saying the end tag " Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mai

Re: [validator] dependent field

2004-10-07 Thread Emmanouil Batsis
One day later, I figured it out. One must split the validators to multiple struts.validator tags, each one having it's own msgkey... Emmanouil Batsis wrote: Consider two fields, type and time. The first mandatory, the second dependent on the value of the first. What I'm trying to do

Re: Browser page break with ms/word myme [pt_br]

2004-10-07 Thread Emmanouil Batsis
Henrique VIECILI wrote: Ae Paulo, experimenta fazer um servlet para retornar o html e mapeie-o com final .doc no web.xml, eu acho q o IE antes de verificar o mime-type verifica a extensão do arquivo. Eu fiz isso uma vez para gerar pdf e abrir diretamenta no adobe. Claro que não custa setar o mime-t

Re: RES: [struts] Re: Browser page break with ms/word myme

2004-10-07 Thread Emmanouil Batsis
Paulo Alvim wrote: Thanks a lot, Jeff! This is exactly what I was looking for... It would be the best solution (and the easier to use too) if it where supported. I've tried it in the past and failed miserably due to lack of support. Try alternative representations for printing, like hth, Ma

validwhen help

2004-10-07 Thread Emmanouil Batsis
Hi, Although my validator rule is interpeted just fine, an empty string message is produced for this specific error using the html:errors tag. Can someone please tell me what am i missing? My properties file works for all other rules and has a property formname.field... Thanks, Manos

Re: An Eclipse Like WebApp Framework?

2004-10-06 Thread Emmanouil Batsis
Hi Rob, Rob Evans wrote: [...] Anyone know a WebApp framework that does what I've described? Anyone else seen this problem or am I alone in this concern? You may want to check out Matt Raible's Appfuse. It's pretty cool, but when I tried it, i quit too quick cause it seemed too tied up with Tomc

[validator] dependent field

2004-10-05 Thread Emmanouil Batsis
Consider two fields, type and time. The first mandatory, the second dependent on the value of the first. What I'm trying to do enforce a not null and not empty value for the time field, when the type has a value of 'time'. I've been trying to do this for more than an hour; I was hoping someone

Re: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Emmanouil Batsis
There is no real validate() VS javascript question. Ideally, you have to use both. You make sure your input is valid with serverside validation and you avoid meaningless submissions and server resources with javascript. Nadia Kunkov wrote: Thanks for the replies. Have you ever noticed a performa

Re: Storing User in Session

2004-09-24 Thread Emmanouil Batsis
Sean Schofield wrote: I would recommend storing the user information in the session (I use POJO's) as you have suggested. Then you can access it from the session to preopulate the form. Your approach sounds correct. We're storing user information in the session on our project because its cons

Re: Switching between HTTP and HTTPS

2004-09-15 Thread Emmanouil Batsis
Tha way I usually do it is have a filter intercept the requests, check whether the resource should be requested with HTTP or HTTPS and redirect accordingly (both from and to SSL). I'd be interested in more "integrated" solutions. Manos Antony Paul wrote: Hi, Does solution for switching betwee

Re: [Gmail] - All gone,

2004-09-12 Thread Emmanouil Batsis
Ruben Cepeda wrote: Guys, I just ran out. No you didn't. I already have one so I'm not going to use your invitation... thanks! Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Learning the basics

2004-08-31 Thread Emmanouil Batsis
Geia sou re Keladi, Chris Keladis wrote: Hi Kenneth, Everyone. <>Since we're on the subject, using the example being discussed, towards the end of the chain we call findRecords.do which takes us to foundRecords.jsp. [...] I'm having trouble understanding how to get database output from the model t

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Emmanouil Batsis
Of course supplying getters for your constant values would work like a charm for JSTL ;-) Rick Reumann wrote: Woodchuck wrote: how can i do the following the non-scriptlet way on my jsp page? <%@ page import="MyPackage.Constants"%> <%= Constants.BUTTON__KEY %> is there an elegant Struts or JSTL e

Re: Somewhat OT: moving Struts app from BEA to Jboss

2004-08-27 Thread Emmanouil Batsis
ksitron wrote: Make sure to copy your dir structure to JBOSS_HOME/server/all/deploy/"nameOfYouWebApp.war" Right, even in unexpanded form, the *directory*'s name containing the app must end in .war - To unsubscribe, e-mail: [EMA

Re: [OT-humor] What does GA mean?

2004-08-26 Thread Emmanouil Batsis
Bill Siggelkow wrote: Giant Aardvark (duh!) Hey it's not friday yet. Go Away ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Question about authentication

2004-08-25 Thread Emmanouil Batsis
I usually perform complex authentication/authorization related checks in a servlet filter and attach the results in simpler forms (i.e. boolean objects) in the request for actions to access. IMHO such checks should not exist in the JSP pages, even if performed by taglibs; a JSP page should not

Re: HTTP Compression

2004-08-06 Thread Emmanouil Batsis
Google does http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html Shailender Jain wrote: Any pointers for these Servlet filter I have no idea how to approach. Emmanouil Batsis wrote: Shailender Jain wrote: Hi, I know this is not the right place to ask this question. Has anybody

Re: HTTP Compression

2004-08-06 Thread Emmanouil Batsis
Shailender Jain wrote: Hi, I know this is not the right place to ask this question. Has anybody ever used HTTP compression and image compression techniques so that the web page is downloaded extremely fast. The usual way is to use a Servlet filter to compress the right content for the right cli

Re: problem with file upload when validator error happens

2004-08-06 Thread Emmanouil Batsis
Jade Yaqiong Fang wrote: I have the problem with the file upload validation Exactly the same situation with v1.2. Cheers, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: title attrib equivalent using bean:write or c:out

2004-08-05 Thread Emmanouil Batsis
Slattery, Tim - BLS wrote: I would like to display a mouseover title on a data item displayed in the page with bean:write or c:out tags. There is no "title" attribute for either of these tags. What is the best way to do this, preferable without javascript? Try this: Works in Firefox a

  1   2   >