Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

java - Context Param issue in sun-web.xml -


i using netbeans 6.9.1 glassfish 3 create web application consisting of handful of servlets. need store value in config file database connection string.

from find, done using web.xml file (sun-web.xml being auto-generated):

<context-param> <param-name>connectionstring</param-name> <param-value>connection string value in here</param-value> 

and subsequently read in during servlet init() using

string constring = context.getinitparameter("connectionstring"); 

however, when netbeans deploys application following error

severe: dpl8007: invalid deployment descriptors element param-name value connectionstring severe: dpl8007: invalid deployment descriptors element param-value valu 

any idea doing wrong here? here full contents of file:

<?xml version="1.0" encoding="utf-8"?> <!doctype sun-web-app public "-//sun microsystems, inc.//dtd glassfish application server 3.0 servlet 3.0//en" "http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd"> <sun-web-app error-url=""> <context-param> <param-name>connectionstring</param-name> <param-value>con value</param-value>  </context-param>  <context-root>/fqex</context-root> <class-loader delegate="true"/> <jsp-config> <property name="keepgenerated" value="true"> <description>keep copy of generated servlet class' java code.</description> </property>   </jsp-config> </sun-web-app> 

thanks in advance.

i don't see <context-param> in sun-web.xml dtd. guess not supposed there. place in regular web.xml, work there.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -