Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tiz
  • Order by date
  1. tiz

    Problems with XALAN under JRun 3.0

    They don't work in harmony - that is certainly true. I have since swapped to Resin (http://www.caucho.com) and Enhydra (http://www.enhydra.org). Tim -- Tim <tim@planetedge.co.uk>
  2. tiz

    Problems with XALAN under JRun 3.0

    Scott, You need to ensure you XSL/XML includes no other namespace declaration other than <xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; version=&quot;1.0&quot;> Tim -- Tim <tim@planetedge.co.uk>
  3. tiz

    How can i execute JavaScript Function from JSP For ... Loop

    Resin-Javascript maybe what you're looking for http://www.caucho.com Tiz -- Tim <tim@planetedge.co.uk>
  4. tiz

    How can i execute JavaScript Function from JSP For ... Loop

    You can't... anyone? -- Tim <tim@planetedge.co.uk>
  5. tiz

    Java servlet / JSP assistance needed!!

    response.sendRedirect(&quot;invalid.jsp&quot;); ? -- Tim <tim@planetedge.co.uk>
  6. tiz

    GD: Font Alignment

    Hi Guys, I'm using GD at the moment to try and create GIF file in which I need to be able to align the fonts used to left, right, center and justify. Is this possible GD? I can't seem to find any information about it in the O'Reilly book. If not, are there any other modules out there that...
  7. tiz

    Need an example for a JavaScript Function

    What errors do you get with using the <SCRIPT SRC=> tag? You can't use JavaScript to manipulate JSP variables, if that's what you're trying to do. Otherwise give us some more info on what the problem is - what's the function do? Source code? Error msg's? Thanks, Tim -- Tim <tim@planetedge.co.uk>
  8. tiz

    can't get function to work when fired by clicking on an image

    Try changing this.form.txtOther to document.form.txtOther? Tim -- Tim <tim@planetedge.co.uk>
  9. tiz

    Reading a dir

    Umm, try: $rec = $_; followed by chomp($rec); ... Tim -- Tim <tim@planetedge.co.uk>
  10. tiz

    Script Executing Itself?

    ...file called 'mycron' although it can be called anything. Inside the file you need to put some crontab configuration commands like the following: * * * * * /home/user/blah.sh Will run blah.sh every minute, on the minute, every day. I wouldn't suggest doing that tho =) A more practical...
  11. tiz

    Script Executing Itself?

    Hi, If you're running under Unix/Linux, use crontab to execute your script at specific intervals - 'man crontab' should give you the info you need. There is similar scheduling software under Windows but I don't think it's that reliable. Finally, you may not be able to specify which subroutine...
  12. tiz

    Please Help me with JSP!

    ...you've included the package name in the useBean tag, and make sure you're importing any required packages using <%@ page import = &quot;java.io.*,java.util.*&quot;> etc. Failing that, make sure your servlet engine knows about the classpath. Here's an example useBean: <%@page...
  13. tiz

    cast problem

    ..also check for NumberFormatException in case someone does myVar=xyz! Tim -- Tim <tim@planetedge.co.uk>
  14. tiz

    cast problem

    Try this Elise: import java.util.*; // Init an array String[] MyArray = new String[3]; // Add some data to the array MyArray[0] = &quot;Test&quot;; MyArray[1] = &quot;Blah&quot;; MyArray[2] = &quot;hah&quot;; // Cast n as (int)myVar int n =...
  15. tiz

    Assigning a value to a JSP variable from a Script

    Well, you can get the browser type by simply parsing the string 'ua' in the following example: <% String ua = request.getHeader(&quot;user-agent&quot;); out.println(ua); %> Based on whether 'ua' contains 'MSIE' or 'NAV' will tell you the browser type. I suggest you use <jsp:forward> or...
  16. tiz

    Assigning a value to a JSP variable from a Script

    Nope, you can't really. Can't think why you'd want to though? For browser detection, try: <SCRIPT LANGUAGE=&quot;JavaScript&quot;> <!-- n = (document.all) ? 0 : 1; if (n) { alert(&quot;This is Netscape!&quot;); } else { alert(&quot;This is IE!&quot;); } //--> </SCRIPT> The JSP engine...
  17. tiz

    JAVA/JSP Tools

    Hi, VisualCafe from Symantec is reportedly very good. JBuilder as you say, but pricey. Microsoft J++ is a goodun or InterDev. There's lots to choose from...the biggest con is the price ;) However, Sun have released a free IDE called Forte for Java Community Edition which you can use for...
  18. tiz

    XML-java-XML?

    I'm using Resin from Caucho.com as my servlet engine and SAX to parse my XML files. Also, for XSL I use Xerces and am in the process of writing a wrapper servlet for serving the conents of my site in xhtml and wml. I also have found little information on the web and other lists about this sort...
  19. tiz

    know where the bug is ? (jsp + servlet)

    Couple of things... 1) You don't need to include the scriptlet between the FORM tags. Doing this is confusing. Save the bit in the FORM tag for <input> or other form elements used to pass variables to your servlet i.e. <input type=&quot;hidden&quot; name=&quot;myvar&quot...
  20. tiz

    pass a string from the jsp to the servlet

    That is correct Elise. Also, if you want your servlet to support both GET and POST you should add this: To do that simply add, public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } Now your servlet...

Part and Inventory Search

Back
Top