RE: XML to PDF(need sample servlet code...)

2003-01-22 Thread Maris Orbidans
I wrote my own XML-PDF FOP servlet. Here is the code. Maris -- import java.io.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; import org.xml.sax.InputSource; import org.apache.fop.apps.Driver; import org.apache.fop.apps.Version;

RE: Struts based app. and SSL doesnt work together

2003-01-08 Thread Maris Orbidans
: Struts based app. and SSL doesnt work together I had a similar problem with JRUN 3.1, after following the instruction and recompiled JRUN connector, the problem is solved. What type of system are you using? -D - Original Message - From: Maris Orbidans [EMAIL PROTECTED

RE: Struts based app. and SSL doesnt work together

2003-01-07 Thread Maris Orbidans
for me... No matter if I access Apache and it's SSL port or use Tomcat standalone (which I also configured to use ssl on 8443). Michael -Original Message- From: Maris Orbidans [mailto:[EMAIL PROTECTED]] Sent: Freitag, 3. Januar 2003 14:36 To: Struts Users Mailing List Subject

Struts based app. and SSL doesnt work together

2003-01-03 Thread Maris Orbidans
architecture consists of Apache HTTP server, which talks to Tomcat. SSL support is installed in Apache server. Do you have ideas how to solve this problem ? Maris Orbidans app. architect -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

RE: Struts based app. and SSL doesnt work together

2003-01-03 Thread Maris Orbidans
-Original Message- From: Maris Orbidans [mailto:[EMAIL PROTECTED]] Sent: Freitag, 3. Januar 2003 14:36 To: Struts Users Mailing List Subject: Struts based app. and SSL doesnt work together hello all We have finished a large project which was based on Struts. Now our client

RE: [STRUTS] Please !

2002-09-12 Thread Maris Orbidans
Try to comment this line. html:text property=userToFind size=35/ I think it's only plase which can cause NPE. Pls let us know if it works. Maris -Original Message- From: kiuma [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 8:18 PM To: struts-user Subject:

RE: Re: Struts + EJB ?

2002-09-09 Thread Maris Orbidans
grained getXXX setXXX methods through local interface, not DTO's as set/get parameter or ejbCreate with a lots of arguments. Maris Orbidans -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

stupid checkboxes

2002-08-28 Thread Maris Orbidans
hi I have a bunch of checkboxes genereted in a loop: logic:iterate name=ZurnaluProjekti property=saraksts type=lv.datapro.lad.pri.utils.ZurnaluProjektiView id=element html:checkbox name=ZurnaluProjekti property=raditIzdruka/ But when I read values of checkboxes

RE: stupid checkboxes

2002-08-28 Thread Maris Orbidans
I have solved it. I can read numbers of contracts to print as checkbox values. html:checkbox name=ZurnaluProjekti value=%=element.getLigumaNumurs()% property=raditIzdruka/ Maris -Original Message- From: Mâris Orbidâns Sent: Wednesday, August 28, 2002 8:53 PM To: Struts Users

Struts 1.1 article on TSS

2002-08-28 Thread Maris Orbidans
http://www.theserverside.com/resources/article.jsp?l=Struts1_1 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

How to specify RUNTIME EXPRESSION

2002-08-16 Thread Maris Orbidans
hello html:text tag has styleId attribute which is Rt Expr. I havent figured out how to generate html:text tags (in a loop) with different styleId attribs. Maris styleId Identifier to be assigned to this HTML element. [RT Expr] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

RE: html:text in logic:iterate ?

2002-08-16 Thread Maris Orbidans
Here you got sample code: Zurnals4Buvniecibas is form class, it has property saraksts which contains a vector with objects of Zurnals4CommonView. Zurnals4CommonView has properties jaiesniedzAtskaite, jaiesniedzDatums and so on ... Maris logic:iterate id=element

RE: Is it possible to generate styleId ?

2002-08-15 Thread Maris Orbidans
[mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 7:30 PM To: Struts Users Mailing List Subject: Re: Is it possible to generate styleId ? Maris Orbidans wrote: Hello I would like to have styleId different for each html:text element. How to achieve it ? logic:iterate id

Is it possible to generate styleId ?

2002-08-14 Thread Maris Orbidans
Hello I would like to have styleId different for each html:text element. How to achieve it ? logic:iterate id=element name=Zurnals4Zem6 property=saraksts type=lv.datapro.lad.pri.utils.Zurnals4BaseView td class=small3 html:text name=element styleId=123

RE: Character set problem, subclass action servlet

2002-07-22 Thread Maris Orbidans
this servlet servlet-nameaction/servlet-name servlet-classlv.datapro.lad.pri.actions.LADActionServlet/servlet-class ... init-param param-namerequestEncoding/param-name param-valuewindows-1257/param-value /init-param load-on-startup2/load-on-startup /servlet regards Maris

RE: Pros and Cons of Struts

2002-06-14 Thread Maris Orbidans
We use Struts in our project. it's very good Pros: + you can apply your OOP skills and build large class hierarchies of form beans and +action classes Maris -Original Message- From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:55 PM

RE: IDE for EJB2.0 development

2002-04-18 Thread Maris Orbidans
I believe that the best IDE is TogetherSoft Control Center. Beats even .net Visual Studio. It's sad that CC costs so much :-( Maris Orbidans -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 5:13 PM To: Struts Users Mailing List

RE: When is it bad form to use form beans?

2002-04-16 Thread Maris Orbidans
When is it bad form to use form beans? For example, if you are processing a web page with several form fields and the only goal of the process is to get the information from the form fields into the data base, is it ok to send a form bean from the Action servlet directly to a class in the

RE: Problem with multiple JSPs and one logon.jsp (do) / forwarding

2002-04-16 Thread Maris Orbidans
Maybe you can add a hidden param formName in all your JSPs. html:hidden property=formName value=Name1/ Then in your action class check which JSP page HTTP request came from and forward back to corresponding page. Don't know better solution. Maris -Original Message- From:

RE: Struts vs EJB, thoughts?

2002-04-15 Thread Maris Orbidans
for the last 4 months and don't mind it. I see it as a poor mans EJB. Poor man's EJB ? :-) No, EJB deals with very different problems. Also, seems like Struts is more useful for smaller companies and EJB is more suitable for large corporations. Is this pretty much a valid

RE: logic-tags related to beans not derived from ActionForm?

2002-04-15 Thread Maris Orbidans
Yes, of course, it's possible. There is no requirement that class you work with must be derived from ActionForm. A class derived from ActionForm is a bean. Logic tags also can work with cookies, request headers etc. ( see doc. of logic tags ) I'd suggest you to create some JavaBean ( in

RE: How to organize the CLASSPATH to compile and execute with struts.jar

2002-04-09 Thread Maris Orbidans
You specify classpath during compiling: C:\javac Usage: javac options source files where possible options include: -classpath path Specify where to find user class files -sourcepath pathSpecify where to find input source files -Original Message- From: Gilson

RE: How to organize the CLASSPATH to compile and execute with struts.jar

2002-04-09 Thread Maris Orbidans
And don't put struts.jar in global classpath. Maris Orbidans You specify classpath during compiling: C:\javac Usage: javac options source files where possible options include: -classpath path Specify where to find user class files -sourcepath pathSpecify where

RE: Struts Tutorial

2002-04-09 Thread Maris Orbidans
I like the tutorial. Thank you Stephan !!! Maris PS http://rzserv2.fhnon.de/~lg002556/struts/#pi2 Should be TLD instead of LTD, shouldn't it ? -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 3:10 PM To: 'Struts Users

RE: hi

2002-04-05 Thread Maris Orbidans
: define forward to action class. forward name=Page2Action path=/Page2.do/ In action class of first page do this: if (NextIsClicked) return mapping.findForward(Page2Action); hope it helps Maris Orbidans -Original Message- From: arul [mailto:[EMAIL PROTECTED]] Sent: Friday

when does STRUTS call reset() on form beans ?

2002-03-25 Thread Maris Orbidans
Does it depend on scope of a session bean ? thanx in advance Maris Orbidans -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: i18n and struts problem

2002-03-11 Thread Maris Orbidans
Have you written your encoding in page tag like this ? %@ page language=java contentType=text/html; charset=windows-1257 % Have you read http://tagunov.newmail.ru/i18n/i18n.html Maris -Original Message- From: Haider Kazmi [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002

html:errors/ prints null at both ends of message

2002-03-11 Thread Maris Orbidans
hello folks html:errors/ prints null blablabla null Why null gets printed ? if(!user.isPasswordValid(request.getParameter(password))) { log.info(Incorrect password for +request.getParameter(username)); errors.add(password, new

question about logic:equal

2002-02-27 Thread Maris Orbidans
hello What if there is no request attribute with name READ ? NPE ? logic:equal name=READ scope=request value=true /logic:equal Maris Orbidans -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

indexed properties

2002-02-27 Thread Maris Orbidans
hello Do I have to use Nightly Build to get subj. ? 1.0.2 says Lemums1.jsp: Attribute indexed invalid according to the specified TLD at line 194, column 5 html:text indexed=yes property=labCits size=20 maxlength=20/ Searched mail archive but didnt find any useful. Maris

indexed properties

2002-02-26 Thread Maris Orbidans
How to use indexed properties? Please, give me an URL with examples or documents. Maris Orbidans -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: iterate tag to repeat for a collection of individula objects

2002-02-26 Thread Maris Orbidans
tdjsp:getProperty name=element property=work//td tdjsp:getProperty name=element property=email//td tdjsp:getProperty name=element property=comments//td /tr /logic:iterate /table /logic:present Maris Orbidans -Original Message- From: Jay Milam [mailto:[EMAIL

EVAL_BODY_TAG has been deprecated ???

2002-02-22 Thread Maris Orbidans
hello If I compile my webapp with Tomcat 4.0 library it shows following warnings: saraksts.jsp: Warning #: 368 : variable EVAL_BODY_TAG in interface javax.servlet.jsp.tagext.BodyTag has been deprecated at line 24 Could anybody tell why ? Maris -- To unsubscribe, e-mail: mailto:[EMAIL

RE: EJB = bad = MS.net

2002-02-21 Thread Maris Orbidans
section of the 2.0 spec, this has evolved to the more mealy-mouthed: The client of an entity bean may be a remote client or the client may be a local client. It's simply because EJB 2.0 has local interfaces (1.1 doesnt) , not that claim to location independence is eroding. regards, Maris

Struts tag for label

2002-02-21 Thread Maris Orbidans
hello What if I want to just display some property of form bean (without any input field) ? Is there a tag for it ? thanx in advance Maris Orbidans Data Pro -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

forward to jsp or to do ?

2001-12-13 Thread Maris Orbidans
What' s the difference between a forward to jsp or to do ? In case of forward to jsp just servlet compiled from the jsp file will be called. Am I right ? What will happen if I forward to *.do ? regards, Maris global-forwards forward name=logon path=/logon.jsp/ forward

prev action class

2001-12-13 Thread Maris Orbidans
How can I determine ( in perform() method ) which was the previous ActionClass that forwarded to current class ? Maris -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

access a Collection from JSP page

2001-12-11 Thread Maris Orbidans
hello all I need to pass a Collection from an Action class to JSP form. (to display search results) Which is the best way to do it ? Store a Collection in session ? Maris Orbidans -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

RE: design question

2001-11-23 Thread Maris Orbidans
Maris Orbidans -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL

RE: OFFT: base for file reading in WEB apps

2001-11-22 Thread Maris Orbidans
Hi Gundars I have used new FileInputStream(servlet.properties) with no problems but then servlet.properties should be in Tomcat /bin directory. Method getClass().getResourceAsStream(servlet.properties); will work if you have the file in the classpath. regards Maris Orbidans DataPro private

RE: placing a value to a button

2001-11-22 Thread Maris Orbidans
html:submit property=prevbean:message key=button.prev//html:submit Maris -Original Message- From: Henrick Chua [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 7:38 PM To: Struts Users Mailing List (E-mail) Subject: placing a value to a button Hi! How can I place a

RE: comments

2001-11-22 Thread Maris Orbidans
Yes JSP have the same comment Maris -Original Message- From: Henrick Chua [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 8:12 PM To: Struts Users Mailing List (E-mail) Subject: comments hi all! how can I comment out struts code? do i do it like any other html comments?

RE: comments

2001-11-22 Thread Maris Orbidans
: comments No! JSP Comments are not !-- -- but %-- --% -- gR - Original Message - From: Maris Orbidans [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 22, 2001 7:14 PM Subject: RE: comments Yes JSP have the same comment Maris -Original

RE: which button pressed?

2001-11-20 Thread Maris Orbidans
=savebean:message key=button.save//html:submit/td tdhtml:submit property=deletebean:message key=button.delete//html:submit/td tdhtml:submit property=addbean:message key=button.add//html:submit/td /tr /table The question is: How to determine which one has been pressed ? Maris Orbidans

RE: which button pressed?

2001-11-20 Thread Maris Orbidans
=deletebean:message key=button.delete//html:submit/td tdhtml:submit property=addbean:message key=button.add//html:submit/td /tr /table The question is: How to determine which one has been pressed ? Maris Orbidans -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED

RE: JSP page without form bean ?

2001-11-20 Thread Maris Orbidans
So why make an action ? Because I need a forward forward name=main path=/main.jsp/ to main page and if I dont have the action I get: javax.servlet.ServletException: Cannot retrieve mapping for action /main Maris Attribut name in action element cannot be null, you must put