User Profile

Collapse

Profile Sidebar

Collapse
madshov
madshov
Last Activity: Nov 13 '11, 06:13 PM
Joined: Feb 20 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • madshov
    replied to Tomcat 7 servlet problem
    in Java
    Ok, I think i have found a possible cause. Can somebody confirm that the invoker servlet is diabled in tomcat 7?
    See more | Go to post

    Leave a comment:


  • madshov
    started a topic Tomcat 7 servlet problem
    in Java

    Tomcat 7 servlet problem

    Hello everyone,

    I have spent a couple of days now trying to figure out why I can't serve my servlets through tomcat. I have no experience with tomcat, so I'm running out of ideas.

    Basically I get a 404 error, saying that the requested resource can't be found. I have checked the log output in catalina.out, and there are no issues here. I know that tomcat is running. It reads the index.jsp which contains a redirect to /servlet/vservlets.Login ....
    See more | Go to post
    Last edited by madshov; Jun 28 '11, 03:11 PM. Reason: spelling mistake

  • madshov
    replied to finding the correct segment
    in XML
    Ok. I mean if I have id=4, I first find the AAA-segment with id=4. Then my job will be to find the first XXX-segment with element id=XXX02's value set to 98 beneath it.

    Imagine that the block I have shown in the thread is repeated within the start-tags, and only the values change. Ex. the id of the AAA-segment is incremented.

    Hope I make myself clear :)
    See more | Go to post

    Leave a comment:


  • madshov
    started a topic finding the correct segment
    in XML

    finding the correct segment

    Hi,

    I have the following:

    Code:
    <start>
        <segment Id="AAA">
            <element Id="id">1</element>
            <element Id="seq">122</element>
            <element Id="seq2" Composite="yes">
                <subelement Sequence="1">57002122338772</subelement>
           </element>
    ...
    See more | Go to post

  • madshov
    replied to simple XSLT question
    in XML
    Thanks! I figured it out!
    See more | Go to post

    Leave a comment:


  • madshov
    started a topic simple XSLT question
    in XML

    simple XSLT question

    Hi,

    I'm pretty new to XSLT, so my question might be really simple:
    How do I get the value og 'subelement Sequence="1"', where 'element Id="NAD01"' is equal to 'MO' in the following XML?

    Code:
    ...
    <segment Id="NAD">
              <element Id="NAD01">BY</element>
              <element Id="NAD02" Composite="yes">
    ...
    See more | Go to post

  • madshov
    replied to round function
    in C
    But can I make a fixed length. e.g. 8 characters with blankspaces i front:
    " 23.233"
    See more | Go to post

    Leave a comment:


  • madshov
    started a topic round function
    in C

    round function

    Hi,

    I need to make a function, that takes as input a double. This should be rounded so it always has a decimal precision of 3:

    12.1234 = 12.123
    12.1235 = 12.124
    12.12 = 12.120
    0 = 0.000

    Is this possible? The output is going to be written to a file, so it's ok to convert the double to a string and let the function return this string, if it makes the problem easier. Does anybody know...
    See more | Go to post

  • madshov
    replied to includes
    in C
    Yes of course! Now I see. Thanks for clarifying.
    See more | Go to post

    Leave a comment:


  • madshov
    started a topic includes
    in C

    includes

    Hi,

    How do I properly include classes that are dependable of each other, without getting an error that the compiler don't knoe anything about one of the classes?
    Ex:

    vector.h
    Code:
    class Vector
    {
     	public:
    ...
    	Vector operator*(const Matrix& m) const;
    }
    matrix.h
    Code:
    class Matrix
    {
    ...
           Vector operator* (const Vector& v) const;
    ...
    See more | Go to post

  • madshov
    started a topic apache redirect remove part of url

    apache redirect remove part of url

    How do make a redirect of the following example:

    www.test.com/xxx/yyy -> www.test.com/yyy

    In other words I would to always remove xxx from the url.
    I'm sure it's really straight forward, but I'm not very experienced with Apache.
    See more | Go to post

  • madshov
    started a topic include files
    in C

    include files

    Hi,
    I would like to hear opinions of the best way to include files (classes) within each other, without getting previously defined errors. Anyone have good tips for doing this?
    See more | Go to post

  • madshov
    replied to search for a string
    in C
    Thanks for the reply. I figured it out!
    See more | Go to post

    Leave a comment:


  • madshov
    started a topic search for a string
    in C

    search for a string

    Hi everyone,
    Does there exist a function to seach for a string in a file, when I have a pointer to a character array:

    Code:
    ifstream infile = f.c_str();
    See more | Go to post

  • madshov
    replied to Call to a static member function
    in C
    Thanks for the answer!
    See more | Go to post

    Leave a comment:


  • madshov
    started a topic Call to a static member function
    in C

    Call to a static member function

    Hi everyone,
    Is there an operator to call member functions of a class outside the class, without having to declare an instance of the object? Like the ::-operator i PHP (Hope I'm not offending anybody!)
    See more | Go to post

  • madshov
    replied to segmentation when cout
    in C
    Hi,
    Sorry, I only pasted some parts of my code, but I found the reason for the problem myself.
    See more | Go to post

    Leave a comment:


  • madshov
    replied to segmentation when cout
    in C
    The fourpoints class:
    Code:
    class fourpoints
    { 
        public:
    
        //constructor
        fourpoints();
    	
        //destructor
    	~fourpoints();
    	
    	Point fourpoints::get_1() const;
    	friend ostream& operator<<(ostream& os, const fourpoints& p);
    	
    	private:
        Point p1, p2, p3, p4;
    };
    See more | Go to post

    Leave a comment:


  • madshov
    started a topic segmentation when cout
    in C

    segmentation when cout

    Hi,

    I'm trying to overload the << operator. I have a point class which is represented by a vector of doubles. In this class I have overloaded the << operator with no problem:
    Code:
    class Point
    {
      public:
        //constructor
        Point();
        Point(vector<double> v);
    }
    
    Point::Point()
    {
       vector<double> vec(4,0);
       vec[3]= 1;
    ...
    See more | Go to post

  • madshov
    started a topic instantiating a class in another class
    in C

    instantiating a class in another class

    Hi,
    I have made a matrix class, that I wish to make an instiation of in another class.
    Matrix class:
    Code:
    #include <vector>
    #include <iostream>
    
    using namespace std; // So the program can see cout and endl
    
    class Matrix
    {
    
       //-public member data
       public:
         //-constructor, copy constructor, and deconstructor
         Matrix(const vector<
    ...
    See more | Go to post
No activity results to display
Show More
Working...