Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Geeta Ramasami

Ranch Hand
+ Follow
since Mar 05, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Geeta Ramasami

You can store a flag in the session after the user logs in.
When the user logs out the flag can be removed from the session.Based on the presence of the flag you would know if the user has already logged in.
If so you can redirect accordingly.
Is this the one you are lokking for.
In this scenario wherein u r working with website u can go in for html if the page has only static contents or JSP if it has some dynamic contents rather than designing the view with swings.
While designing web applications HTML for static and JSP for dynamic is preferrable.
15 years ago
HttpServer is meant for receiving the user request and identifying the resource to be processed and sending the response to the client.
Whereas servlet container would be responsible for compiling the servlet using the javac and then executing the class file. The output of the servlet excution would be routed to the HttpServer which would send it as a response to the client.
Hope this helps.
15 years ago
When the following code is run we encounter a JDOM Exception:
SAXBuilder builder = new SAXBuilder();
builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser", true);
builder.setFeature("http: //xml.org/sax/features/validation/schema", true);
builder.setProperty( "http://apache.org/xml/properties/schema/external-schemaLocation","file:///C:erepairSchema.xsd";);

The exception we are getting is:
exception caught org.jdom.JDOMException: http: //xml.org/sax/features/validation feature not recognized for SAX driver org.apache.xerces.parsers.SAXParser

Could anyone help us in the regard as to what would be the cause of this excpetion.

Cheers
Geeta
Hi,
Could anyone of u specify the differences , Pros&Cons in using JCO and JRFC..
Which is the prefered one and why?We need to decide on either of these two for our project to integrate our FrontEnd system(designed using Java) with SAP..
Any help would be appreciated.
I'm not very sure if i can post this topic over here.Apologise me in case of a wrong posting..
Regards
Geeta
Hi,
In ur code instead of checking the name variable if its null u r checking for some passcode.Shouldn't it be name checking?
Cheers
Geeta
17 years ago
Hi,
For record locking mechanism, u can use isolation levels.The isolation level called TRNSACTION_SERIALIZABLE would take care of locking mechanism so that it wud prevent dirty reads and phantom reads.
Since this incurs some resource overhead u can go in for optimistic or pessimistic locking.
Cheers
Geeta
Hi..
Check the classpath variable if it includes the
jar file pertinent to the parsing of XML.
Regards
Geeta
17 years ago
Hi,
U can use the following code snippet.
<CODE>
for(i=0;i<document.form.state.length;i++)
{
if (document.form.state.value == "<%stateValue%>")
{
document.form.state.selectedIndex = i;
}
}
</CODE>
where stateValue variable inside the sripplet tag is a jsp varaible which wud hold the value of the state to which the combo has to be high lighted to.
Regards
Geeta
17 years ago
JSP
Hi,
If u r going to have a javascript variable it will be reinitialised for every browser refresh.
For reflecting the avaliable tickets u can follow 2 approaches.
1.One is after storing the ticket value in the database and after each user visits the site and books the tckt u can update the DB so that each user when chooses to view the available ticktes it would be the correct one.
2.Other is using application variable(putting the number of available tickets in the servlet context).This variable is available for all the users and when each user books a ticket u can update this variable value(ie current value minus 1).If a user chooses to look in for the number of available tckts he would get the current availablity taken from the servlet context.
Regards
Geeta
17 years ago
JSP
Hi
For parsing and processing XML u have so many parsers available.U can go in for Apaches parser.Apaches SAX parser provides methods use to read XML file.
Regards
Geeta
17 years ago
JSP
Hi,
This is used to associate the bean with its environment.If the bean reference needs to be passed to some method u cannot use 'this',as the bean class doesn't implemnent the remote interface directly.So the reference of the bean will be stored in the context.U can retrieve the reference from the context and send it accross.
Regards
Geeta
Hi,
HttpSession Interface is for storing some client related information in the server so that the information could be accessed accross all the pages used up by that client.This will not stop the <cookie> getting created.By default when u request a webpage for the first time,ur webserver generates a <cookie> and is appended to the response header and send back to the client.In the client side if the <cookie> option is on then the cookie is stored and sent in request header for the next request by the same client.If u have some information that needs to be shared accross pages then session objects are used.<Cookies> live on the client whereas ur session objects are stored on the server.For the server to identify if its the same client <cookies> are passes to and for between client and server.
Cheers
Geeta
17 years ago
Hi..
If you want the response of the JSP to be produced in a Word document, then set the page content type="application/word".Hope u r looking for this.
Cheers
Geeta
17 years ago
JSP
HI..
1.Cold fusion has its syntax in form of tags.Just like u have JSP tags(actions) , coldfusion has a tag like syntax with all attributes specified for a specific kind of operation.This is one similiarity between JSP and ColdFusion.
2.ColdFusion has all the provisions like any other programming language has,like interacting with DB,Sending mails etc.
3.Its easily understandable and programmable using ColdFusion as its not case sensitive and has a syntactical structure as that of HTML.But u need to ensure that the tags are closed as it may not work well with Netscape Navigator.
4.Just like JSP even ColdFusion can run in any platform.

Cheers
Geeta
17 years ago
JSP